/* DH Homes, Boise, Idaho
   Design system: Editorial tone, Standard rhythm, Photo-led (upgraded from Balanced per Keira, 2026-09-21).
   Palette (client brand, per Keira 2026-09-21): Orange #eb6824 | Charcoal grey #545456 | White / light grey #dcdcdc
   Type: Plus Jakarta Sans (headings) + Crimson Pro (body) */

:root {
  /* Variable names kept from the first pass; values are the client brand. navy = charcoal grey, gold = orange. */
  --navy: #3a3a3d;
  --navy-deep: #2b2b2e;
  --navy-soft: #545456;
  --navy-tint: #ececec;
  --gold: #eb6824;
  --gold-deep: #c9541a;
  --gold-tint: #fdeee4;
  --cream: #f4f4f2;
  --cream-2: #e6e6e4;
  --paper: #ffffff;
  --ink: #2b2b2e;
  --ink-2: #545456;
  --ink-3: #7d7d80;
  --line: #dcdcdc;
  --line-navy: rgba(255, 255, 255, 0.14);

  --font-head: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Crimson Pro", Georgia, "Times New Roman", serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.1875rem;
  --fs-md: 1.3125rem;
  --fs-lg: 1.625rem;
  --fs-xl: 2.125rem;
  --fs-2xl: 2.875rem;
  --fs-3xl: clamp(2.75rem, 5.2vw, 4.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --container: 1200px;
  --container-narrow: 760px;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(43, 43, 46, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 var(--space-2);
  display: block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  position: relative;
  top: -2px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #eef1f6; }
.section-navy h2, .section-navy h3 { color: #ffffff; }
.section-navy .eyebrow { color: var(--gold); }
.section-navy .lead { color: #c9d2e0; }

.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn-dark { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #ffffff; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #ffffff; }
.btn-gold { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #ffffff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #ffffff; }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: #ffffff; color: var(--navy); border-color: #ffffff; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1rem; }

.text-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* Header */
.topbar {
  background: var(--navy-deep);
  color: #d8deea;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: var(--space-2); }
.topbar a { color: #ffffff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--space-3);
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--navy); }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.06em; line-height: 1; }
.brand-text small { display: block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 0.3rem; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--navy); background: var(--cream); }
.nav-link .chev { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); position: relative; top: -2px; }
.nav-cta { margin-left: 0.75rem; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 280px;
  display: none;
  z-index: 60;
}
.dropdown-wide { min-width: 760px; display: none; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.nav > ul > li:hover > .dropdown,
.nav > ul > li:focus-within > .dropdown,
.nav > ul > li > .dropdown.open { display: block; }
.nav > ul > li:hover > .dropdown-wide,
.nav > ul > li:focus-within > .dropdown-wide,
.nav > ul > li > .dropdown-wide.open { display: grid; }
.dropdown h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0;
}
.dropdown li a:hover { color: var(--navy); padding-left: 4px; }
.dropdown-cols-2 { min-width: 460px; display: none; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.nav > ul > li:hover > .dropdown-cols-2,
.nav > ul > li:focus-within > .dropdown-cols-2,
.nav > ul > li > .dropdown-cols-2.open { display: grid; }

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars span { top: 5px; }
.menu-toggle .bars::after { bottom: 0; }

/* Hero */
.hero { background: var(--cream); position: relative; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy .lead { margin-bottom: var(--space-4); font-size: 1.375rem; }
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.hero-note { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--space-3); letter-spacing: 0.02em; }
.hero-media { position: relative; isolation: isolate; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(30, 58, 95, 0.92);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
}

/* Trust strip */
.trust { background: var(--navy); color: #ffffff; }
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.trust-item { padding-left: var(--space-3); border-left: 1px solid var(--line-navy); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--gold); line-height: 1.1; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.trust-item span { font-size: var(--fs-sm); color: #c9d2e0; font-family: var(--font-head); }

/* Services */
.service-group { margin-bottom: var(--space-5); }
.service-group:last-child { margin-bottom: 0; }
.service-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); border-bottom: 1px solid var(--line); padding-bottom: var(--space-2); margin-bottom: var(--space-3); }
.service-group-head h3 { margin: 0; font-size: var(--fs-md); }
.service-group-head span { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card h4 { margin: 0; font-size: 1.125rem; }
.service-card h4 a { text-decoration: none; color: var(--navy); }
.service-card h4 a::after { content: " \2192"; color: var(--gold); }
.service-card p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
.service-card .num { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--gold-deep); letter-spacing: 0.12em; }

/* Split feature (Balanced photo + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media.wide img { aspect-ratio: 3 / 2; }
.split-copy h2 { margin-bottom: var(--space-3); }
.split-copy .lead { margin-bottom: var(--space-3); }
.checks { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Case study preview */
.case { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: center; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.case-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.case-gallery img:nth-child(2) { margin-top: var(--space-5); }
.case-meta { display: flex; gap: var(--space-4); margin: var(--space-3) 0; padding: var(--space-3) 0; border-top: 1px solid var(--line-navy); border-bottom: 1px solid var(--line-navy); }
.case-meta div strong { display: block; font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.case-meta div span { font-size: var(--fs-sm); font-family: var(--font-head); color: #dfe5ee; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.quote .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.12em; margin-bottom: var(--space-2); font-family: var(--font-head); }
.quote blockquote { font-size: 1.125rem; }
.center-note { text-align: center; font-family: var(--font-head); font-size: var(--fs-xs); color: var(--ink-3); }
.quote blockquote { margin: 0 0 var(--space-3); font-size: var(--fs-md); line-height: 1.5; font-style: italic; }
.quote cite { font-style: normal; font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.quote.placeholder { border-style: dashed; background: var(--cream); }
.quote.placeholder blockquote { color: var(--ink-3); font-style: normal; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.step h3 { font-size: var(--fs-md); margin-bottom: 0.6rem; }
.step p { color: var(--ink-2); font-size: 1.0625rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-6); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  padding: 1.2rem 2.5rem 1.2rem 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--gold-deep);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }

/* CTA */
.cta { background: var(--navy); color: #ffffff; position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 1.5px solid rgba(200,165,94,0.35);
  border-radius: 50%;
}
.cta .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; position: relative; }
.cta h2 { color: #ffffff; }
.cta .lead { color: #c9d2e0; }
.cta-contact { margin-top: var(--space-3); font-family: var(--font-head); font-size: var(--fs-sm); color: #c9d2e0; }
.cta-contact a { color: #ffffff; font-weight: 700; text-decoration: none; }
.cta-contact a:hover { color: var(--gold); }
.form-slot {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space-4);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px dashed var(--gold);
}
.form-slot p { color: var(--ink-2); }
.form-slot .label { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: var(--space-2); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d2e0; font-size: 1.0625rem; }
.site-footer a { color: #e6ebf2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-top .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}
.footer-brand img { height: 64px; width: auto; background: #ffffff; padding: 6px; border-radius: var(--radius); margin-bottom: var(--space-2); }
.footer-brand p { color: #a9b4c6; font-style: italic; }
.footer-brand .btn { margin-top: var(--space-2); text-align: center; justify-content: center; }
.site-footer h4 {
  color: #ffffff;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-navy);
}
.site-footer ul + h4 { margin-top: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-family: var(--font-head); font-size: var(--fs-sm); }
.footer-nap address { font-style: normal; line-height: 1.5; margin-bottom: var(--space-2); }
.footer-nap .hours { font-family: var(--font-head); font-size: var(--fs-sm); }
.footer-nap .hours div { display: flex; justify-content: space-between; gap: var(--space-2); padding: 0.2rem 0; border-bottom: 1px dotted var(--line-navy); font-size: 0.875rem; }
.footer-nap .hours span:last-child { white-space: nowrap; }
.footer-map { margin-top: var(--space-3); }
.footer-map iframe { width: 100%; height: 200px; border: 0; border-radius: var(--radius); display: block; }
.footer-bottom { border-top: 1px solid var(--line-navy); }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  padding-top: var(--space-3); padding-bottom: var(--space-3);
  font-family: var(--font-head); font-size: var(--fs-xs); color: #8f9bb0;
}
.footer-bottom ul { display: flex; gap: var(--space-3); }
.footer-bottom li { margin: 0; }

/* Page hero for interior pages */
.page-hero { background: var(--cream); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.page-hero .lead { max-width: 680px; }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

/* Responsive */
@media (max-width: 1080px) {
  .dropdown-wide { min-width: 640px; }
  .footer-top .container { grid-template-columns: 1fr 1fr 1fr; }
  .footer-nap { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --fs-2xl: 2.25rem; }
  .section { padding: var(--space-6) 0; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-3) var(--space-3); }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1rem; }
  .nav-cta { margin: var(--space-2) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .dropdown, .dropdown-wide, .dropdown-cols-2 {
    position: static; min-width: 0; box-shadow: none; border: 0;
    padding: 0 0 var(--space-2) 0.5rem; display: none;
  }
  .nav > ul > li:hover > .dropdown,
  .nav > ul > li:hover > .dropdown-wide,
  .nav > ul > li:hover > .dropdown-cols-2,
  .nav > ul > li:focus-within > .dropdown,
  .nav > ul > li:focus-within > .dropdown-wide,
  .nav > ul > li:focus-within > .dropdown-cols-2 { display: none; }
  .nav > ul > li > .dropdown.open,
  .nav > ul > li > .dropdown-wide.open,
  .nav > ul > li > .dropdown-cols-2.open { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
  .dropdown h4 { margin-top: var(--space-2); }

  .hero .container { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-media::after { display: none; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--space-4); }
  .split.reverse .split-media { order: 0; }
  .case { grid-template-columns: 1fr; gap: var(--space-4); }
  .testimonials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: var(--space-4); }
  .cta .container { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-top .container { grid-template-columns: 1fr 1fr; }
  .footer-nap { grid-column: span 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar-left span:nth-child(2) { display: none; }
}

@media (max-width: 600px) {
  :root { --fs-base: 1.125rem; }
  .container { padding: 0 var(--space-2); }
  .brand img { height: 46px; }
  .brand-text { display: none; }
  .trust .container { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; padding-left: 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line-navy); }
  .trust-item:last-child { border-bottom: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-gallery img:nth-child(2) { margin-top: var(--space-3); }
  .footer-top .container { grid-template-columns: 1fr; }
  .footer-nap { grid-column: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .topbar .container { flex-direction: column; align-items: flex-start; padding-top: 0.4rem; padding-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}


/* ===== Photo-led additions ===== */

/* Full-bleed hero */
.hero-photo {
  position: relative;
  color: #ffffff;
  background: var(--navy-deep);
  isolation: isolate;
  overflow: hidden;
}
.hero-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,43,46,0.88) 0%, rgba(43,43,46,0.72) 45%, rgba(43,43,46,0.25) 100%);
  z-index: -1;
}
.hero-photo .container {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  align-items: end;
  min-height: min(82vh, 760px);
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  gap: var(--space-5);
}
.hero-photo h1 { color: #ffffff; }
.hero-photo .eyebrow { color: var(--gold); }
.hero-photo .lead { color: #e6e6e6; }
.hero-photo .hero-note { color: #cfcfcf; }
.hero-photo .text-link { color: #ffffff; }
.hero-photo .text-link:hover { color: var(--gold); }
.hero-thumbs {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  align-self: end;
}
.hero-thumbs a {
  display: block;
  width: 140px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-thumbs a:hover { transform: translateY(-3px); border-color: var(--gold); }
.hero-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Service cards with photos */
.service-card.has-media { padding: 0; overflow: hidden; }
.service-card.has-media .service-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s var(--ease); }
.service-card.has-media:hover .service-card-media img { transform: scale(1.03); }
.service-card.has-media .service-card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.6rem; }

/* Category band with photo */
.service-group-head.with-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: end;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--space-4);
}
.service-group-head.with-photo .group-copy { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.service-group-head.with-photo .group-copy h3 { font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.service-group-head.with-photo .group-copy p { color: var(--ink-2); margin: 0 0 0.5rem; }
.service-group-head.with-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: var(--space-2);
}
.gallery a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .span-2 { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(180deg, rgba(43,43,46,0) 0%, rgba(43,43,46,0.85) 100%);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.gallery figure { margin: 0; height: 100%; }

/* Collage for split sections */
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); align-items: start; }
.collage img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.collage img:first-child { aspect-ratio: 4 / 5; }
.collage img:nth-child(2) { aspect-ratio: 4 / 5; margin-top: var(--space-5); }
.collage .badge {
  position: absolute; left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
  text-align: center;
  padding: 1rem 1.1rem;
  border-radius: 50%;
  width: 124px; height: 124px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: var(--shadow);
  line-height: 1.05;
}
.collage .badge strong { font-size: 1.9rem; display: block; }
.collage .badge span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Case gallery: three images */
.case-gallery.three { grid-template-columns: 1.4fr 1fr; }
.case-gallery.three img:first-child { grid-row: span 2; aspect-ratio: 4 / 5; margin: 0; }
.case-gallery.three img:nth-child(2), .case-gallery.three img:nth-child(3) { aspect-ratio: 1 / 1; margin: 0; }

/* Process with photo */
.process-photo { margin-bottom: var(--space-5); }
.process-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

.faq-photo { margin-top: var(--space-5); border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .faq-photo { display: none; } }

/* Service rows: one distinct section per service, photo matched */
.service-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: var(--space-6) 0 var(--space-2); padding-bottom: var(--space-2); border-bottom: 2px solid var(--navy); }
.service-cat-head:first-of-type { margin-top: 0; }
.service-cat-head h3 { margin: 0; font-size: var(--fs-xl); }
.service-cat-head span { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.service-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.service-row-copy .num { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--gold-deep); letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.service-row-copy h4 { font-size: var(--fs-lg); margin-bottom: 0.6rem; }
.service-row-copy h4 a { text-decoration: none; color: var(--navy); }
.service-row-copy h4 a:hover { color: var(--gold-deep); }
.service-row-copy p { color: var(--ink-2); max-width: 58ch; }
.service-row-copy .also { font-family: var(--font-head); font-size: var(--fs-xs); color: var(--ink-3); margin: 0.6rem 0 0; }
.service-row-copy .text-link { display: inline-block; margin-top: var(--space-2); }
@media (max-width: 900px) {
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-4) 0; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-media img { aspect-ratio: 3 / 2; }
  .service-cat-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* Photo CTA */
.cta.cta-photo { isolation: isolate; }
.cta.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta.cta-photo::after { content: ""; position: absolute; inset: 0; background: rgba(43,43,46,0.86); z-index: -1; }
.cta.cta-photo::before { display: none; }

@media (max-width: 900px) {
  .hero-photo .container { grid-template-columns: 1fr; min-height: 78vh; align-items: end; padding-top: var(--space-7); }
  .hero-photo::before { background: linear-gradient(180deg, rgba(43,43,46,0.30) 0%, rgba(43,43,46,0.92) 60%); }
  .hero-thumbs { justify-content: flex-start; }
  .hero-thumbs a { width: 30%; }
  .service-group-head.with-photo { grid-template-columns: 1fr; gap: var(--space-2); }
  .service-group-head.with-photo img { aspect-ratio: 3 / 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .span-2 { grid-column: span 2; }
  .case-gallery.three { grid-template-columns: 1fr 1fr; }
  .case-gallery.three img:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .gallery { grid-auto-rows: 150px; }
  .gallery .tall { grid-row: auto; }
  .collage .badge { width: 104px; height: 104px; }
  .collage .badge strong { font-size: 1.5rem; }
  .hero-thumbs { display: none; }
}
