/* ============================================================
   JBC DESIGN & BUILD — ADU  ·  Design System
   California Contemporary / Architectural / Luxury Minimal
   ============================================================ */

:root {
  /* Palette ------------------------------------------------- */
  --ink:        #14181a;   /* dark charcoal (primary text/bg)  */
  --ink-900:    #1b2124;
  --ink-800:    #232a2e;
  --ink-700:    #323b40;
  --sand:       #f6f2ea;   /* warm neutral page bg             */
  --sand-200:   #ede6d9;
  --sand-300:   #e2d8c6;
  --paper:      #ffffff;
  --sage:       #7c8a6e;   /* muted green accent               */
  --sage-600:   #67765a;
  --sage-100:   #e9eee3;
  --clay:       #b08a5e;   /* warm brass — used sparingly      */
  --muted:      #6d7377;
  --line:       rgba(20,24,26,.10);
  --line-light: rgba(255,255,255,.14);

  /* Type ---------------------------------------------------- */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius / shadow ----------------------------------------- */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(20,24,26,.06);
  --shadow:    0 18px 50px -20px rgba(20,24,26,.28);
  --shadow-lg: 0 40px 90px -35px rgba(20,24,26,.45);

  /* Layout -------------------------------------------------- */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 150px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* Typography ------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 380; }
h2.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sage-600);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.55; }

/* Layout helpers -------------------------------------------- */
.container { width: min(var(--container), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--sand); }
.section--paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head p.lead { margin-top: 18px; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: var(--sand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(124,138,110,.7); }
.btn--ghost { background: transparent; color: currentColor; border: 1px solid var(--line); }
.section--dark .btn--ghost { border-color: var(--line-light); }
.btn--ghost:hover { background: rgba(20,24,26,.04); transform: translateY(-3px); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--lg { padding: 19px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Nav ------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s, padding .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(246,242,234,.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.01em; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--ink); opacity: .8; transition: opacity .25s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { font-weight: 600; font-size: .95rem; }
.nav__phone span { color: var(--muted); font-weight: 500; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: .3s; }

/* Mobile nav panel */
.mobile-panel {
  position: fixed; inset: 0; z-index: 99; background: var(--sand);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--gutter); transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-panel.open { transform: translateY(0); visibility: visible; }
.mobile-panel a { font-family: var(--serif); font-size: 2rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 24px; }

/* Hero ------------------------------------------------------ */
.hero { position: relative; padding-top: 128px; padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero__eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--sage); }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--sage-600); }
.hero__sub { max-width: 33ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-700); }
.hero__trust svg { width: 17px; height: 17px; color: var(--sage); flex: none; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(380px, 52vw, 620px); object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
  position: absolute; left: -24px; bottom: 34px;
  background: var(--paper); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 250px;
}
.hero__badge .num { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.hero__badge .lbl { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.hero__scrim { position: absolute; top: -20%; right: -10%; width: 55%; height: 140%; background: radial-gradient(closest-side, rgba(124,138,110,.14), transparent); z-index: -1; }

/* Stat strip ------------------------------------------------ */
.stats { border-block: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px,4vw,44px) 10px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.1rem); color: var(--ink); line-height: 1; }
.stat .num em { color: var(--sage-600); font-style: normal; }
.stat .lbl { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* Why / value cards ----------------------------------------- */
.why-grid { grid-template-columns: repeat(4, 1fr); }
.value-card {
  background: var(--paper); border-radius: var(--r); padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--sage-100); color: var(--sage-600); display: grid; place-items: center; margin-bottom: 22px; }
.value-card .ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.value-card p { font-size: .96rem; color: var(--muted); }

/* Split feature (Why JBC narrative) ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.split__media img { width: 100%; height: clamp(340px, 44vw, 520px); object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.split__list { margin-top: 28px; display: grid; gap: 18px; }
.split__list li { display: flex; gap: 14px; align-items: flex-start; }
.split__list .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--sand); display: grid; place-items: center; font-size: .82rem; font-weight: 600; }
.split__list h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; margin-bottom: 3px; }
.split__list p { font-size: .93rem; color: var(--muted); }

/* Projects gallery ------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-700); transition: .3s; }
.filter.active, .filter:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.projects { grid-template-columns: repeat(3, 1fr); }
.project {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project:hover img { transform: scale(1.06); }
.project__body {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px 24px;
  background: linear-gradient(to top, rgba(15,18,20,.92) 12%, rgba(15,18,20,.55) 55%, transparent);
  color: #fff;
}
.project__tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.project__body h3 { color: #fff; font-size: 1.3rem; margin: 8px 0 12px; }
.project__meta { display: flex; gap: 18px; font-size: .82rem; opacity: .82; }
.project__meta span { display: flex; align-items: center; gap: 6px; }
.project.hide { display: none; }

/* Services -------------------------------------------------- */
.services { grid-template-columns: repeat(3, 1fr); }
.service {
  background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 16/10; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service__body p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.service__benefits { display: grid; gap: 8px; margin-bottom: 22px; }
.service__benefits li { display: flex; gap: 9px; font-size: .9rem; color: var(--ink-700); }
.service__benefits svg { width: 16px; height: 16px; color: var(--sage); flex: none; margin-top: 3px; }
.service__link { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.service__link svg { width: 16px; height: 16px; transition: transform .3s; }
.service:hover .service__link svg { transform: translateX(5px); }

/* Process timeline ------------------------------------------ */
.process { position: relative; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; margin-top: 20px; }
.step { position: relative; }
.step__n { font-family: var(--serif); font-size: 1.05rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-light); color: var(--sand); margin-bottom: 20px; }
.step h4 { font-family: var(--sans); font-size: 1.1rem; font-weight: 650; margin-bottom: 8px; }
.step p { font-size: .9rem; color: rgba(246,242,234,.62); margin-bottom: 12px; }
.step .dur { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.step::after { content: ""; position: absolute; top: 23px; left: 58px; right: -12px; height: 1px; background: var(--line-light); }
.step:nth-child(4n)::after { display: none; }

/* Before / After slider ------------------------------------- */
.ba-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; user-select: none; }
.ba-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 3; transform: translateX(-50%); cursor: ew-resize; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2314181a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.ba-label { position: absolute; bottom: 18px; z-index: 4; padding: 7px 15px; border-radius: 999px; background: rgba(20,24,26,.7); color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.ba-label.before { left: 18px; } .ba-label.after { right: 18px; }

/* ROI / financing ------------------------------------------- */
.roi { grid-template-columns: repeat(3, 1fr); }
.roi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; position: relative; overflow: hidden; }
.roi-card.featured { background: var(--ink); color: var(--sand); }
.roi-card .tier { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-600); font-weight: 600; }
.roi-card.featured .tier { color: var(--sage); }
.roi-card h3 { font-size: 1.5rem; margin: 8px 0 4px; }
.roi-card .sqft { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.roi-card.featured .sqft { color: rgba(246,242,234,.6); }
.roi-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.roi-card.featured .roi-row { border-color: var(--line-light); }
.roi-row .big { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.roi-card.featured .roi-row .big { color: #fff; }
.roi-row .k { color: var(--muted); } .roi-card.featured .roi-row .k { color: rgba(246,242,234,.7); }
.roi-note { font-size: .78rem; color: var(--muted); margin-top: 26px; text-align: center; }

/* Reviews --------------------------------------------------- */
.reviews { grid-template-columns: repeat(3, 1fr); }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--clay); }
.stars svg { width: 18px; height: 18px; }
.review p { font-size: 1.02rem; line-height: 1.6; margin-bottom: 22px; }
.review__who { display: flex; align-items: center; gap: 13px; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-100); color: var(--sage-600); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.review__who .nm { font-weight: 650; font-size: .95rem; } .review__who .loc { font-size: .84rem; color: var(--muted); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.g-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.g-badge .rate { font-family: var(--serif); font-size: 1.5rem; }
.g-badge .stars svg { width: 15px; height: 15px; }

/* Areas served ---------------------------------------------- */
.areas { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.area-tags span { padding: 9px 18px; border-radius: 999px; background: var(--sand-200); font-size: .9rem; font-weight: 500; }
.areas__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.areas__map img { width: 100%; height: clamp(280px,34vw,420px); object-fit: cover; }

/* FAQ ------------------------------------------------------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; text-align: left; font-family: var(--serif); font-size: clamp(1.1rem,1.7vw,1.4rem); }
.faq-q .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .35s var(--ease); }
.faq-q .pm svg { width: 16px; height: 16px; transition: .35s; }
.faq-item.open .pm { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.faq-item.open .pm svg { transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a p { padding: 0 4px 26px; color: var(--muted); font-size: 1rem; max-width: 68ch; }

/* Lead form (multi-step) ------------------------------------ */
.leadwrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px,5vw,64px); align-items: stretch; }
.lead-copy .eyebrow { color: var(--sage); }
.lead-copy h2 { color: #fff; margin: 16px 0 20px; }
.lead-copy .lead { color: rgba(246,242,234,.72); }
.lead-assure { margin-top: 34px; display: grid; gap: 16px; }
.lead-assure li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; color: rgba(246,242,234,.9); }
.lead-assure svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 2px; }
.lead-phone { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-light); }
.lead-phone .k { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,242,234,.55); }
.lead-phone a { font-family: var(--serif); font-size: 1.9rem; color: #fff; }

.form-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px,3.4vw,42px); box-shadow: var(--shadow-lg); color: var(--ink); }
.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.progress .bar { flex: 1; height: 5px; border-radius: 999px; background: var(--sand-300); overflow: hidden; }
.progress .bar > i { display: block; height: 100%; width: 25%; background: var(--sage); border-radius: 999px; transition: width .45s var(--ease); }
.progress .cnt { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

.fstep { display: none; animation: fade .5s var(--ease); }
.fstep.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fstep h3 { font-size: 1.5rem; margin-bottom: 6px; }
.fstep .hint { font-size: .92rem; color: var(--muted); margin-bottom: 22px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 18px 18px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: .25s; background: var(--paper); }
.choice:hover { border-color: var(--sage); }
.choice.sel { border-color: var(--sage); background: var(--sage-100); }
.choice .ci { width: 34px; height: 34px; color: var(--sage-600); }
.choice .ct { font-weight: 650; font-size: 1rem; }
.choice .cs { font-size: .84rem; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  font: inherit; font-size: .98rem; background: var(--sand); color: var(--ink); transition: border .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: #fff; }
.field textarea { resize: vertical; min-height: 90px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.two label { grid-column: 1 / -1; margin-bottom: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--sage); }
.form-nav { display: flex; gap: 12px; margin-top: 8px; }
.form-nav .btn { flex: 1; }
.form-back { flex: 0 0 auto !important; width: 54px; }
.form-err { color: #b23b3b; font-size: .85rem; margin-bottom: 12px; display: none; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--sage-100); color: var(--sage-600); display: grid; place-items: center; margin: 0 auto 22px; }
.form-success .ok svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 1.7rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* Floating CTA + exit intent -------------------------------- */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; background: var(--sage); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(124,138,110,.8); font-weight: 600; font-size: .95rem;
  transform: translateY(140%); transition: transform .5s var(--ease); will-change: transform;
}
.floating-cta.show { transform: translateY(0); }
.floating-cta svg { width: 18px; height: 18px; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(15,18,20,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal__box { background: var(--paper); border-radius: var(--r-lg); max-width: 460px; padding: 40px 36px; text-align: center; box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .35s var(--ease); }
.modal.open .modal__box { transform: scale(1); }
.modal__box .eyebrow { color: var(--sage-600); }
.modal__box h3 { font-size: 1.9rem; margin: 12px 0 12px; }
.modal__box p { color: var(--muted); margin-bottom: 26px; }
.modal__close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 1.6rem; }

/* Footer ---------------------------------------------------- */
.footer { background: var(--ink); color: rgba(246,242,234,.7); padding-block: clamp(56px,7vw,88px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer .brand { color: var(--sand); margin-bottom: 18px; }
.footer__logo { height: 60px; width: auto; margin-bottom: 22px; }
.footer p.blurb { font-size: .94rem; max-width: 34ch; }
.footer h5 { font-family: var(--sans); color: var(--sand); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer li { margin-bottom: 11px; }
.footer a:hover { color: var(--sand); }
.footer__contact a { display: block; color: var(--sand); font-size: 1.05rem; margin-bottom: 8px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .84rem; }
.footer__bottom .lic { color: rgba(246,242,234,.5); }

/* Reveal animation ------------------------------------------ */
/* Progressive enhancement: content is visible by default; the hidden
   start-state only applies when JS is active (html.js), so no-JS users,
   crawlers, and observer edge-cases always see content. */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(4n)::after { display: block; } .step:nth-child(2n)::after { display: none; }
  .projects, .services, .roi, .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 12px; }
  .split, .areas, .leadwrap { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .projects, .services, .roi, .reviews, .why-grid, .timeline { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .choice-grid { grid-template-columns: 1fr; }
  .field.two { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; }
  .floating-cta { right: 14px; bottom: 14px; }
}
