/* ============================================
   StrivaTX — handyman services in Austin, TX
   ============================================ */

:root {
  --navy: #0f2a44;
  --navy-700: #173856;
  --orange: #e07a2b;
  --orange-600: #c8651a;
  --cream: #faf7f2;
  --sand: #f3ede2;
  --ink: #1a1a1a;
  --muted: #5c6773;
  --line: #e5ddd0;
  --green: #2f7d4f;
  --red: #b9322a;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.08);
  --shadow-md: 0 6px 24px rgba(15, 42, 68, 0.10);
  --shadow-lg: 0 18px 48px rgba(15, 42, 68, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Sticky header is ~60px — make anchor jumps land below it */
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-600); }
button { font: inherit; cursor: pointer; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover { background: var(--orange-600); color: white; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: white; }
.btn-ghost {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--navy);
  display: inline-grid;
  place-items: center;
  color: var(--orange);
  font-weight: 800;
}
.brand-mark svg { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 500;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--orange); }
.nav-links a.active { border-bottom-color: var(--orange); }
.nav-cta {
  margin-left: 8px;
  padding: 0.65rem 1.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  min-height: 42px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 400px at 80% -10%, rgba(224, 122, 43, 0.18), transparent 60%),
              radial-gradient(800px 300px at 0% 100%, rgba(15, 42, 68, 0.06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.18);
}
.hero h1 .accent { color: var(--orange); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-trust .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 4.2;
  display: grid;
  place-items: center;
}
.hero-art .art-bg {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-art svg.art-fg { position: relative; width: 88%; }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 80px; }
section.tight { padding: 48px 0; }
[id] { scroll-margin-top: 80px; }
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--navy); margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.service-card ul {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-card ul li { margin: 4px 0; }

/* Why us / values */
.values {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.value {
  text-align: center;
  padding: 12px;
}
.value .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); margin: 0; }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.step h3 { margin-top: 6px; }
.step p { color: var(--muted); margin: 0; }

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: white;
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 43, 0.30), transparent 65%);
}
.cta-banner h2 { color: white; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-banner .btn-primary { box-shadow: 0 6px 20px rgba(224, 122, 43, 0.4); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .ico {
  width: 44px; height: 44px;
  background: var(--sand);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--orange-600);
}
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h3 { margin: 0 0 4px; font-size: 1rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); }
.info-card a:hover { color: var(--navy); }

/* Form */
.form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: white;
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
  background: #fef6f5;
}
.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 50, 42, 0.12);
}
.form-group .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-group .field-hint.error { color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e8f5ee; color: var(--green); border: 1px solid #b9dfc8; }
.form-status.error { background: #fdecea; color: var(--red); border: 1px solid #f3c5c0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .brand { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

/* Page header (small hero on inner pages) */
.page-header {
  padding: 64px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--sand), transparent);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* Service detail (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  align-items: start;
}
.service-detail .service-icon { margin-bottom: 0; }
.service-detail h3 { margin-bottom: 6px; }
.service-detail .price {
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 920px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 480px; margin: 0 auto; aspect-ratio: 4 / 3.4; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 28px; grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin: 12px 0 0; width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-banner { padding: 32px 22px; }
}
