/* River Remodeling — design tokens + homepage styles
   Layer 1: primitives  ·  Layer 2: semantic  ·  Layer 3: component */

:root {
  /* Primitives */
  /* From the logo: navy #292662, sky #81C9DA */
  --fog-50: #F7F8FA;
  --fog-100: #EEF0F4;
  --fog-200: #DCE0E8;
  --navy-700: #292662;
  --navy-800: #1F1C4E;
  --navy-900: #16143A;
  --sky-300: #A3D8E5;
  --sky-400: #81C9DA;
  --sky-700: #2C7A8E;
  --slate-500: #5B6070;
  --ink-900: #1B1A2E;
  --white: #FFFFFF;

  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  /* Type scale (1.25 ratio) */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 2.25rem;
  --fs-2xl: clamp(2.25rem, 4.2vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 5.6vw, 4.6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1200px;

  /* Semantic */
  --color-bg: var(--fog-100);
  --color-surface: var(--fog-50);
  --color-line: var(--fog-200);
  --color-text: var(--ink-900);
  --color-text-muted: var(--slate-500);
  --color-brand: var(--navy-700);
  --color-brand-deep: var(--navy-900);
  --color-accent: var(--sky-400);
  --color-on-brand: var(--fog-50);
  --color-focus: var(--sky-700);

  /* Component */
  --btn-primary-bg: var(--sky-400);
  --btn-primary-bg-hover: var(--sky-300);
  --btn-primary-text: var(--navy-900);
  --btn-ghost-border: rgba(247, 245, 240, 0.55);
  --card-bg: var(--color-surface);
  --form-bg: var(--fog-50);
  --input-border: #C3C8D4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }

/* Photo slots: show a labeled placeholder until the real image exists */
.photo { position: relative; overflow: hidden; background: var(--navy-800); }
.photo::before {
  content: attr(data-slot);
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: rgba(247,245,240,.55); font-size: var(--fs-sm);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.035) 14px 28px),
    var(--navy-800);
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm);
  font: 600 var(--fs-base)/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s ease;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
.btn-ghost { border-color: var(--btn-ghost-border); color: var(--color-on-brand); }
.btn-ghost:hover { background: rgba(247,245,240,.1); }
.btn-dark { background: var(--color-brand); color: var(--color-on-brand); }
.btn-dark:hover { background: var(--color-brand-deep); }

/* Utility bar + header */
.utility { background: var(--color-brand-deep); color: rgba(247,245,240,.8); font-size: var(--fs-sm); }
.utility .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.utility a { color: var(--sky-300); font-weight: 600; text-decoration: none; }

.site-header { background: var(--color-surface); color: var(--color-text); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--color-line); box-shadow: 0 2px 12px rgba(22,20,58,.06); }
.site-header .container { display: flex; align-items: center; gap: 2rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.site-header .nav a { color: var(--color-text); }
.site-header .menu-toggle { border-color: var(--input-border); color: var(--color-text); }
.brand-mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.brand-mark small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; opacity: .75; letter-spacing: .02em; margin-top: 4px; }
.nav { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 2px solid var(--btn-ghost-border); color: inherit; border-radius: var(--radius-sm); padding: .5rem .75rem; font: inherit; }

/* Hero */
.hero { position: relative; color: var(--color-on-brand); background: var(--color-brand-deep); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg { overflow: hidden; background: var(--navy-900); }

/* Opening animation: real project photos crossfade with a slow zoom, and the hero text + form ease in once on load.
   Desktop: bathroom, ADU, roof (6s each, 18s loop). The kitchen photo is portrait and too soft at desktop width,
   so it only shows on phones (see Mobile hero below). */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  animation: hero-slide 18s linear infinite;
}
.hs-kitchen { display: none; }
.hs-adu { animation-delay: 6s; }
.hs-roof { animation-delay: 12s; }
@keyframes hero-slide {
  0%   { opacity: 0; transform: scale(1.02); }
  7%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

.hero-copy > *, .hero .estimate { animation: hero-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero .estimate { animation-delay: .3s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hs-bath { opacity: 1; transform: none; }
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,20,58,.9) 0%, rgba(22,20,58,.62) 42%, rgba(22,20,58,.12) 100%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-12); align-items: center; padding-block: var(--space-24) var(--space-16); }
.hero h1 { font-size: var(--fs-hero); max-width: 16ch; }
.hero-lede { font-size: var(--fs-md); margin-top: var(--space-6); max-width: 34rem; color: rgba(247,245,240,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); margin: var(--space-12) 0 0; padding: var(--space-6) 0 0; border-top: 1px solid rgba(247,245,240,.2); list-style: none; font-size: var(--fs-sm); }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--sky-300); }

/* Estimate form card */
.estimate { background: var(--form-bg); color: var(--color-text); border-radius: var(--radius-md); padding: var(--space-8); box-shadow: 0 24px 60px rgba(16,14,40,.35); border-top: 6px solid var(--color-accent); }
.estimate h2 { font-size: var(--fs-lg); }
.estimate > p { color: var(--color-text-muted); margin-top: var(--space-2); font-size: var(--fs-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); background: var(--white); color: var(--color-text); width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 0; border-color: var(--color-brand); }
.estimate .btn { width: 100%; margin-top: var(--space-6); }
.estimate .btn:disabled { opacity: .7; cursor: progress; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .78rem; line-height: 1.45; color: var(--color-text-muted); margin-top: var(--space-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.invalid input, .field.invalid select { border-color: #9B2C1F; }
.form-note { font-size: .8rem; color: var(--color-text-muted); margin-top: var(--space-3); }
.form-status { margin-top: var(--space-4); font-weight: 600; }
.form-status[data-state="ok"] { color: var(--color-brand); }
.form-status[data-state="error"] { color: #9B2C1F; }

/* Section shell */
.section { padding-block: var(--space-24); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: end; margin-bottom: var(--space-12); }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-md); max-width: 36rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); }
.service { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; border-radius: var(--radius-md); overflow: hidden; color: var(--color-on-brand); text-decoration: none; }
.service:nth-child(1), .service:nth-child(2) { grid-column: span 6; min-height: 420px; }
.service:nth-child(n+3) { grid-column: span 3; }
.service h3 { font-size: var(--fs-md); }
.service:nth-child(-n+2) h3 { font-size: var(--fs-lg); }
.service .photo { position: absolute; inset: 0; }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(22,20,58,.92) 100%); }
.service-body { position: relative; z-index: 1; padding: var(--space-6); }
.service-body p { margin-top: var(--space-2); color: rgba(247,245,240,.85); max-width: 32ch; }
.service-body span { display: inline-block; margin-top: var(--space-3); font-weight: 600; color: var(--sky-300); }
.service:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* Roofing band */
.roof-band { background: var(--color-brand); color: var(--color-on-brand); }
.roof-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; padding-block: var(--space-16); }
.roof-band .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.roof-band p { margin-top: var(--space-4); color: rgba(247,245,240,.85); font-size: var(--fs-md); max-width: 34rem; }
.roof-band ul { margin: var(--space-6) 0 var(--space-8); padding-left: 1.2rem; color: rgba(247,245,240,.85); }
.roof-band li + li { margin-top: .35rem; }

/* Project job tags */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8) var(--space-6); }
.project .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.job-tag { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1rem; padding: var(--space-4) var(--space-4) var(--space-4); background: var(--card-bg); border: 1px solid var(--color-line); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); font-size: var(--fs-sm); }
.job-tag h3 { grid-column: 1 / -1; font-size: var(--fs-md); margin-bottom: var(--space-2); }
.job-tag dt { color: var(--color-text-muted); }
.job-tag dd { margin: 0; font-weight: 600; }

/* Team */
.team { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.member .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.member h3 { font-size: var(--fs-md); margin-top: var(--space-4); }
.member .role { color: var(--color-brand); font-weight: 600; font-size: var(--fs-sm); }
.member p:last-child { color: var(--color-text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); }

/* Process */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: step; }
.process-list li { counter-increment: step; border-top: 3px solid var(--color-brand); padding-top: var(--space-6); }
.process-list li::before { content: counter(step); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--sky-700); line-height: 1; }
.process-list h3 { font-size: var(--fs-md); margin-top: var(--space-3); }
.process-list p { color: var(--color-text-muted); margin-top: var(--space-2); font-size: var(--fs-sm); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.review { background: var(--card-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-8); margin: 0; }
.review { display: flex; flex-direction: column; }
.review blockquote { margin: 0; font-size: var(--fs-base); line-height: 1.65; flex: 1; }
.review figcaption { font-weight: 600; color: var(--color-text); }
.review figcaption { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--color-text-muted); }
.stars { color: var(--sky-700); letter-spacing: .1em; margin-bottom: var(--space-3); }

/* Areas + CTA */
.areas { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-12); align-items: start; }
.counties { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.counties h3 { font-size: var(--fs-md); color: var(--color-brand); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-brand); }
.counties ul { list-style: none; padding: 0; margin: 0; font-weight: 500; }
.counties li { padding: .4rem 0; border-bottom: 1px solid var(--color-line); }
.areas p { margin-top: var(--space-4); color: var(--color-text-muted); }
.section-flush { padding-top: 0; }
.footer-contact { margin-top: .75rem; }

.final-cta { background: var(--color-brand-deep); color: var(--color-on-brand); text-align: center; }
.final-cta p { margin: var(--space-4) auto var(--space-8); max-width: 38rem; color: rgba(247,245,240,.85); font-size: var(--fs-md); }
.final-cta .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(247,245,240,.75); font-size: var(--fs-sm); border-top: 1px solid rgba(247,245,240,.12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-block: var(--space-16) var(--space-8); }
.site-footer h3 { font-size: var(--fs-base); color: var(--color-on-brand); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sky-300); }
.footer-legal { border-top: 1px solid rgba(247,245,240,.12); padding-block: var(--space-6); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.roof-band .roof-cta { margin-top: var(--space-8); }

/* Mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--color-brand-deep); border-top: 1px solid rgba(247,245,240,.15);
  }
  .mobile-bar .btn { padding-block: .8rem; }
  .mobile-bar .btn-dark { border-color: var(--btn-ghost-border); }
  .site-footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero .container, .roof-band .container, .areas, .section-head { grid-template-columns: 1fr; }
  .hero .container { padding-block: var(--space-16); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(n) { grid-column: span 1; min-height: 300px; }
  .projects-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); padding: 1rem; gap: 1rem; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
  .site-header .container { position: relative; }
  .site-header .btn-primary { display: none; }
}
@media (max-width: 600px) {
  .section { padding-block: var(--space-16); }
  .services-grid, .projects-grid, .reviews-grid, .team-grid, .process-list, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .estimate { padding: var(--space-6); }
  .counties { grid-template-columns: 1fr; gap: var(--space-6); }
  .utility .container { justify-content: center; text-align: center; gap: .15rem 1rem; }
}

/* ===== Multi-page components ===== */

/* Nav: Remodeling dropdown + current page */
.nav { align-items: center; }
.nav-group { position: relative; }
.nav-parent::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: -1rem; min-width: 280px; z-index: 40;
  display: none; flex-direction: column; padding: .5rem;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(16,14,40,.16);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: flex; }
.site-header .nav-menu a { padding: .55rem .75rem; border-radius: var(--radius-sm); opacity: 1; }
.site-header .nav-menu a:hover { background: var(--color-bg); text-decoration: none; }
.site-header .nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sky-400); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header .nav-menu a[aria-current="page"] { text-decoration: none; background: var(--color-bg); }
.hero-proof a { color: inherit; }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; color: var(--color-on-brand); background: var(--navy-900); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22,20,58,.92) 0%, rgba(22,20,58,.7) 50%, rgba(22,20,58,.35) 100%); }
.page-hero .container { padding-block: var(--space-16) var(--space-16); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 18ch; }
.page-hero .hero-lede { max-width: 40rem; }
.crumbs { font-size: var(--fs-sm); color: rgba(247,248,250,.75); margin-bottom: var(--space-4); }
.crumbs a { color: inherit; }
.crumbs span[aria-current] { color: var(--color-on-brand); }

/* Two-column intro + checklist */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-12); align-items: start; }
.prose h2 { margin-bottom: var(--space-6); }
.prose p { max-width: 38rem; }
.prose p + p { margin-top: var(--space-4); }
.prose a, .faq a, .cta-form-copy a, .section-head a { color: var(--color-brand); font-weight: 600; }
.checklist-card, .steps-card { background: var(--color-surface); border: 1px solid var(--color-line); border-top: 4px solid var(--color-brand); border-radius: var(--radius-md); padding: var(--space-8); }
.checklist-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-4); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 1.9rem; border-bottom: 1px solid var(--color-line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .8rem; height: .45rem; border-left: 2.5px solid var(--sky-700); border-bottom: 2.5px solid var(--sky-700); transform: rotate(-45deg); }
.steps-card { margin: 0; padding-left: calc(var(--space-8) + 1rem); }
.steps-card li { padding: .5rem 0; }
.steps-card li::marker { font-family: var(--font-display); font-weight: 700; color: var(--sky-700); }
.fine-print { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Photo galleries */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-1 { grid-template-columns: minmax(0, 560px); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-line); }
.gallery-note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.reviews-grid.single { grid-template-columns: 1fr; }
.container.narrow { width: min(100% - 2rem, 820px); }

/* FAQ */
.faq-section h2 { margin-bottom: var(--space-6); }
.faq { border-bottom: 1px solid var(--color-line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) 2rem var(--space-4) 0; font-weight: 600; font-size: var(--fs-md); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--sky-700); }
.faq[open] summary::after { content: "–"; }
.faq p { padding-bottom: var(--space-4); color: var(--color-text-muted); max-width: 44rem; }

/* Estimate section at the bottom of inner pages */
.cta-form { background: var(--color-brand-deep); color: var(--color-on-brand); }
.cta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.cta-form-copy p { margin-top: var(--space-4); color: rgba(247,248,250,.85); font-size: var(--fs-md); max-width: 32rem; }
.cta-form-copy a { color: var(--sky-300); }
.contact-list { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); }
.contact-list li { color: rgba(247,248,250,.85); }
.contact-list strong { display: block; font-family: var(--font-display); color: var(--color-on-brand); font-size: var(--fs-md); }

/* Related services */
.related h2 { font-size: var(--fs-lg); margin-bottom: var(--space-4); }
.related { padding-top: var(--space-16); }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.related-list a { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); text-decoration: none; font-weight: 600; color: var(--color-brand); }
.related-list a:hover { border-color: var(--color-brand); }

/* Our work: filter + grid */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter { font: 600 var(--fs-sm)/1 var(--font-body); padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.work-grid figure { margin: 0; }
.work-grid figure[hidden] { display: none; }
.work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-line); }
.work-grid figcaption { margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: 600; }

.footer-sub { margin-top: var(--space-6); }
.footer-legal a { text-decoration: none; }

@media (max-width: 1000px) {
  .split, .cta-form-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav.open { align-items: flex-start; }
  .nav.open .nav-group { display: flex; flex-direction: column; gap: .75rem; }
  .nav.open .nav-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; background: none; }
  .nav.open .nav-menu::before, .nav-parent::after { display: none; }
  .site-header .nav-menu a { padding: .2rem 0; }
}
@media (max-width: 600px) {
  .gallery, .gallery-2, .gallery-3, .work-grid { grid-template-columns: 1fr; }
  .page-hero .container { padding-block: var(--space-12); }
  .checklist-card, .steps-card { padding: var(--space-6); }
}

/* ===== Mobile hero (under 768px) =====
   The form stacks under the headline, so the hero gets ~2000px tall. Instead of stretching
   the photo over all of it, the photo covers only the headline area (height set by main.js
   as --hero-media-h), each photo is positioned on its subject, and only the two finished
   rooms rotate: kitchen (dark cabinets + L-shaped island) and bathroom (walk-in tile shower). */
@media (max-width: 767px) {
  .hero-bg { bottom: auto; height: var(--hero-media-h, 820px); }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(22,20,58,.5) 0%, rgba(22,20,58,.6) 55%, rgba(22,20,58,.85) 85%, var(--navy-900) 100%);
  }
  .hs-kitchen { display: block; object-position: 40% 50%; }
  .hs-bath { object-position: 72% 50%; }
  .hs-adu, .hs-roof { display: none; }
  /* Kitchen is fully visible the moment the page loads (negative delay skips its fade-in). */
  .hero-slide { animation-name: hero-slide-2; animation-duration: 12s; }
  .hs-kitchen { animation-delay: -1.2s; }
  .hs-bath { animation-delay: 4.8s; }
}
@keyframes hero-slide-2 {
  0%   { opacity: 0; transform: scale(1.02); }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  62%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* Inner page hero without a photo (until a real one exists) */
.page-hero:not(:has(.page-hero-bg))::after { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%); }

/* Our work: Before & after cards (before and after side by side; stacked on phones) */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: var(--space-8); }
.ba-card h3 { font-size: var(--fs-md); margin-top: var(--space-4); }
.ba-card p { margin-top: var(--space-2); color: var(--color-text-muted); max-width: 44rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ba-pair figure { position: relative; margin: 0; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); background: var(--color-line); display: block; }
.ba-label {
  position: absolute; top: var(--space-3); left: var(--space-3);
  padding: .3rem .6rem; border-radius: var(--radius-sm);
  font: 700 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(22,20,58,.85); color: var(--color-on-brand);
}
.ba-label-after { background: var(--sky-400); color: var(--navy-900); }
@media (max-width: 767px) {
  .ba-pair { grid-template-columns: 1fr; }
}

/* ---------- Step-by-step estimate form ---------- */
.form-progress { list-style: none; display: flex; gap: 6px; margin: var(--space-4) 0 0; padding: 0; }
.form-progress li { flex: 1; height: 4px; border-radius: 2px; background: var(--color-line); }
.form-progress li.on { background: var(--sky-700); }
.form-step { border: 0; margin: var(--space-6) 0 0; padding: 0; min-width: 0; }
.form-step + .form-step { margin-top: var(--space-8); }
.is-stepped .form-step + .form-step { margin-top: var(--space-6); }
.form-step legend { padding: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--color-text); }
.step-count { display: block; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--sky-700); margin-bottom: .15rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-4) 0 var(--space-4); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 48px; padding: .55rem .85rem; border: 1.5px solid var(--input-border); border-radius: var(--radius-md); background: var(--white); font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--color-brand); transition: border-color .15s, background .15s; }
.choice:hover span { border-color: var(--color-brand); }
.choice input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.choice input:checked + span { background: var(--color-brand); border-color: var(--color-brand); color: var(--white); }
.form-step .form-grid { margin-top: var(--space-4); }
.form-nav { display: none; }
.is-stepped .form-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.is-stepped .form-nav .form-next { width: auto; margin: 0 0 0 auto; padding-inline: 2rem; }
.is-stepped .form-nav .form-next[hidden], .form-back[hidden] { display: none; }
.form-back { background: none; border: 0; padding: .5rem 0; font: inherit; font-weight: 600; color: var(--color-brand); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.estimate.is-done .form-status { font-size: var(--fs-md); margin-top: var(--space-6); }
@media (max-width: 420px) { .choice span { font-size: .9rem; padding: .5rem .7rem; } }

/* ---------- Sliders (before & after, reviews) ---------- */
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 560px); gap: var(--space-6); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: var(--space-4); scrollbar-width: thin; overscroll-behavior-x: contain; }
.slider-track > * { scroll-snap-align: start; }
.slider-track:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.reviews-track { grid-auto-columns: min(100%, 380px); }
.reviews-track .review { height: 100%; }
.slider-controls { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-4); }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--color-brand); background: var(--white); color: var(--color-brand); font-size: 1.25rem; cursor: pointer; }
.slider-btn:hover { background: var(--color-brand); color: var(--white); }
.slider-btn:disabled { opacity: .35; cursor: default; background: var(--white); color: var(--color-brand); }
.slider.no-scroll .slider-controls { display: none; }

/* ---------- Homepage: luxury rooms, commercial & referral ---------- */
.room-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--color-brand); }
.room-list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .25rem; border-bottom: 1px solid var(--color-line); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--color-brand); }
.room-list a::after { content: "\2192"; color: var(--sky-700); }
.room-list a:hover { background: var(--color-surface); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.duo-card { display: block; padding: var(--space-12) var(--space-8); border-radius: var(--radius-md); background: var(--color-brand); color: var(--color-on-brand); text-decoration: none; }
.duo-card h2 { font-size: var(--fs-xl); }
.duo-card p { margin-top: var(--space-3); max-width: 38ch; color: rgba(247,245,240,.85); }
.duo-card span { display: inline-block; margin-top: var(--space-6); font-weight: 600; color: var(--sky-300); }
.duo-card:hover span { text-decoration: underline; text-underline-offset: 4px; }
.duo-card-light { background: var(--sky-400); color: var(--navy-900); }
.duo-card-light p { color: var(--navy-800); }
.duo-card-light span { color: var(--navy-700); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo-card { padding: var(--space-8) var(--space-6); } }

/* ---------- Luxury rooms & commercial: service blocks ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.room { background: var(--color-surface); border: 1px solid var(--color-line); border-top: 4px solid var(--color-brand); border-radius: var(--radius-md); padding: var(--space-8); scroll-margin-top: 100px; }
.room h2 { font-size: var(--fs-lg); }
.room > p { margin-top: var(--space-3); color: var(--color-text-muted); }
.room .checklist { margin-top: var(--space-4); }
.rooms .room:last-child:nth-child(odd) { grid-column: 1 / -1; }
.process-list-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .rooms, .process-list-3 { grid-template-columns: 1fr; } }

/* ---------- Referral program ---------- */
.reward-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); }
.reward { border-radius: var(--radius-md); padding: var(--space-12) var(--space-8); background: var(--color-brand); color: var(--color-on-brand); }
.reward p { max-width: 40ch; }
.reward-who { font-weight: 600; color: var(--sky-300); }
.reward-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: var(--space-2) 0 var(--space-2); }
.reward-amount-sm { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-top: var(--space-6); }
.reward-friend { background: var(--sky-400); color: var(--navy-900); }
.reward-friend .reward-who { color: var(--navy-700); }
.share-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-8); scroll-margin-top: 100px; }
.share-card p { margin-top: var(--space-3); color: var(--color-text-muted); max-width: 46ch; }
.share-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.share-actions .btn { text-align: center; }
.share-call { font-weight: 600; color: var(--color-brand); }
@media (max-width: 760px) { .reward-cards, .share-card { grid-template-columns: 1fr; } .reward { padding: var(--space-8) var(--space-6); } }
.prose a.btn-dark { color: var(--color-on-brand); text-decoration: none; }
.prose a.btn-primary { color: var(--btn-primary-text); text-decoration: none; }

/* ---------- Referral form ---------- */
.reward-cards-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.reward-family { background: var(--navy-900); }
.reward-family .reward-who { color: var(--sky-300); }
.refer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-12); align-items: start; scroll-margin-top: 100px; }
.refer-copy p { margin-top: var(--space-3); color: var(--color-text-muted); max-width: 40ch; }
.refer-copy .checklist { margin-top: var(--space-6); }
.refer-alt a { color: var(--color-brand); font-weight: 600; }
.referral-form { box-shadow: 0 16px 40px rgba(16,14,40,.12); }
.refer-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.refer-tab { position: relative; cursor: pointer; }
.refer-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.refer-tab span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: .5rem; border: 1.5px solid var(--input-border); border-radius: var(--radius-md); background: var(--white); font-weight: 700; color: var(--color-brand); text-align: center; line-height: 1.2; }
.refer-tab small { font-weight: 600; font-size: var(--fs-sm); color: var(--sky-700); margin-top: .2rem; }
.refer-tab input:checked + span { background: var(--color-brand); border-color: var(--color-brand); color: var(--white); }
.refer-tab input:checked + span small { color: var(--sky-300); }
.refer-tab input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.refer-group { border: 0; padding: 0; margin: var(--space-6) 0 0; min-width: 0; }
.refer-group legend { padding: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); }
.refer-group .form-grid { margin-top: var(--space-3); }
.field[hidden] { display: none; }
.field.invalid select { border-color: #9B2C1F; }
@media (max-width: 1000px) { .reward-cards-3 { grid-template-columns: 1fr 1fr; } .reward-cards-3 .reward:first-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .refer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .reward-cards-3 { grid-template-columns: 1fr; } }
