/* ============================================================
   Dumouchel Homes Inc. — shared stylesheet
   Self-contained: local fonts (fonts/), local images (images/)
   ============================================================ */

:root {
  --navy:      #002366;
  --navy-dark: #001845;
  --cream:     #faf9f7;
  --gold:      #b0873f;
  --slate:     #4a6785;
  --text:      #414855;
  --muted:     #6b7280;
  --white:     #ffffff;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 92px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 2.5rem); padding-right: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.accent-line { width: 64px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 0 1.5rem; }
.center { text-align: center; }
.center .accent-line { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: clamp(.7rem, 1.6vw, .85rem); font-weight: 600; color: var(--gold); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .95rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1.05rem; cursor: pointer; border: 2px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,35,102,.28); }
.btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f6; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: background .3s ease, box-shadow .3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); padding-top: calc(.35rem + env(safe-area-inset-top, 0px)); padding-bottom: .35rem; } /* bar height is fixed (fits the big logo) so it never grows/shrinks on scroll; horizontal padding inherited from .container for content alignment */
/* The logo card is ALWAYS white (never fades), so the small gap on each side of
   the logo stays opaque white through the whole scroll — no dark slivers flicker
   there. Only the bar BEHIND the card fades. Position/padding are constant too
   (no sideways slide). The negative margin lines the logo up with page content. */
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 10px; padding: 0 12px; margin-left: -12px; background: #fff; box-shadow: none; }
.nav-logo img { height: 54px; width: auto; transition: height .3s ease; }
.nav-links { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, .85rem); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-links a { font-weight: 500; font-size: 1.05rem; color: #fff; position: relative; white-space: nowrap; transition: color .2s ease; }
/* Top-level nav items as gold-outline pills (Book Consultation stays the solid navy CTA) */
.nav-links > .nav-item > a, .nav-links > a { border: 1.5px solid var(--gold); border-radius: 8px; padding: .5rem 1.05rem; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.nav-links > .nav-item > a:hover, .nav-links > a:hover { background: var(--gold); border-color: var(--gold); color: #002366; }
.nav-parent { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.caret { width: 12px; height: 12px; transition: transform .25s ease; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { padding: .7rem 1.5rem; font-size: 1rem; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: .4rem; margin-right: -.4rem; cursor: pointer; line-height: 0; } /* cancel padding so the icon aligns with the right content gutter */
.menu-btn svg { width: 32px; height: 32px; }

/* Dropdown */
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 16px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown-inner { background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,35,102,.18); padding: .5rem; min-width: 260px; }
.nav-links .dropdown-inner a { display: block; padding: .7rem .9rem; border-radius: 8px; color: var(--navy); font-size: 1rem; font-weight: 500; white-space: nowrap; }
.nav-links .dropdown-inner a:hover { background: var(--cream); color: var(--gold); }
.nav-links .dropdown-inner a::after { display: none; }

/* At-top (transparent) vs scrolled */
.nav.at-top { background: transparent; }
/* Logo card bg is already white at all times (set on .nav-logo). No drop-shadow
   either — the shadow was what drew the moving "edge line" as the logo scaled.
   So scrolling only fades the bar behind an always-opaque white card. */
.nav.at-top .nav-logo img { height: clamp(66px, 6.8vw, 80px); } /* big prominent logo at the top, fits inside the fixed bar */
.nav.scrolled { background: #fff; backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,35,102,.08); }
.nav.scrolled .nav-links > .nav-item > a, .nav.scrolled .nav-links > a { color: var(--navy); }
.nav.scrolled .menu-btn { color: var(--navy); }

/* Mobile menu — animates open/closed (Apple-style gradual reveal) */
.mobile-menu {
  background: #fff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height .55s cubic-bezier(.33,1,.68,1), opacity .4s ease, transform .5s cubic-bezier(.33,1,.68,1), visibility 0s linear .55s;
}
.mobile-menu.open {
  border-top: 1px solid #eef0f2;
  box-shadow: 0 18px 30px rgba(0,35,102,.10);
  max-height: calc(100svh - var(--nav-h));
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  transform: translateY(0);
  transition: max-height .55s cubic-bezier(.33,1,.68,1), opacity .4s ease, transform .5s cubic-bezier(.33,1,.68,1), visibility 0s;
}
/* Each row eases in one after another, like apple.com's menu */
.mobile-menu ul > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.33,1,.68,1); }
.mobile-menu.open ul > li { opacity: 1; transform: none; }
.mobile-menu.open ul > li:nth-child(1) { transition-delay: .08s; }
.mobile-menu.open ul > li:nth-child(2) { transition-delay: .14s; }
.mobile-menu.open ul > li:nth-child(3) { transition-delay: .20s; }
.mobile-menu.open ul > li:nth-child(4) { transition-delay: .26s; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem; }
.mobile-menu li { border-bottom: 1px solid #f0f1f3; }
.mobile-menu a { display: block; padding: .9rem .25rem; font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.mobile-menu a.btn { display: block; margin-top: 1rem; padding: .95rem 2rem; }
.mobile-menu a.btn-primary { color: #fff; }
.mm-sub { padding: 0 0 .5rem .9rem; border-left: 2px solid var(--gold); margin: 0 0 .5rem .25rem; }
.mm-sub a { padding: .55rem .25rem; font-size: .98rem; font-weight: 400; color: var(--slate); }

/* Switch to hamburger before the desktop bar gets cramped */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0,24,69,.52), rgba(0,24,69,.70)), var(--hero-img, none) center/cover no-repeat;
  background-color: var(--navy);
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
}
.hero--sm { min-height: 62vh; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.5rem); font-weight: 700; margin: 1.25rem 0 1rem; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero .tagline { font-size: clamp(1.3rem, 3.2vw, 2.2rem); font-weight: 300; margin: 0 auto .9rem; max-width: 58rem; }
.hero .sub { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300; color: #e5e9f0; max-width: 42rem; margin: 0 auto 2.25rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Phone: keep the homepage hero full-bleed (fills down to the trust bar), but reduce
   the crop a little and frame lower so more of the house shows and it doesn't look
   unintentionally chopped. Still uses cover (no letterbox). */
@media (max-width: 640px) {
  .hero:not(.hero--sm) {
    min-height: 88svh;
    background-position: center 45%;
  }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; padding: 2.5rem 0; text-align: center; }
.trust-grid h3 { color: #fff; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.trust-grid p { margin: .35rem 0 0; font-size: .9rem; color: #c7cfdd; }

/* ---------- Section heading ---------- */
.heading { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.heading .accent-line { margin-left: auto; margin-right: auto; }
.heading h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.heading p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-reviews { grid-template-columns: 1fr; max-width: 960px; margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .grid-reviews { grid-template-columns: 1fr 1fr; } }

/* Sub-lead that bridges the reasons → reviews inside the combined Why-Us section */
.reviews-lead { max-width: 44rem; margin: clamp(2.75rem, 6vw, 4.25rem) auto clamp(1.75rem, 4vw, 2.5rem); }
.reviews-lead h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin-bottom: .6rem; }
.reviews-lead .rating-line { font-size: 1.1rem; color: var(--muted); margin: 0; }
.reviews-lead .rating-line a { color: var(--gold); font-weight: 600; }

/* Homepage "What We Build": 2 cards centered on top, 3 across below (tablet/desktop).
   6-col grid — top pair spans cols 2–3 and 4–5 (centered); bottom three fill 1–6. */
@media (min-width: 760px) {
  .grid-services { grid-template-columns: repeat(6, 1fr); }
  .grid-services > .service-card:nth-child(1) { grid-row: 1; grid-column: 2 / span 2; }
  .grid-services > .service-card:nth-child(2) { grid-row: 1; grid-column: 4 / span 2; }
  .grid-services > .service-card:nth-child(3) { grid-row: 2; grid-column: 1 / span 2; }
  .grid-services > .service-card:nth-child(4) { grid-row: 2; grid-column: 3 / span 2; }
  .grid-services > .service-card:nth-child(5) { grid-row: 2; grid-column: 5 / span 2; }
}

/* Areas we serve */
.areas-list { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem .7rem; justify-content: center; max-width: 920px; }
.areas-list li { background: #fff; border: 1px solid #e7e3db; color: var(--navy); border-radius: 999px; padding: .5rem 1.05rem; font-size: .95rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,35,102,.05); }

.card { background: #fff; border-radius: 14px; padding: clamp(1.75rem, 3vw, 2.25rem); box-shadow: 0 8px 24px rgba(0,35,102,.06); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,35,102,.12); }
.card h3 { font-size: 1.5rem; margin-bottom: .65rem; }
.card p { margin: 0; color: var(--muted); }
.icon-box { width: 56px; height: 56px; background: var(--navy); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.icon-box svg { width: 28px; height: 28px; }

/* Clickable service card (homepage) */
.service-card { display: flex; flex-direction: column; }
.service-card p { flex-grow: 1; }
.service-card .more { margin-top: 1.15rem; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.service-card .more svg { width: 18px; height: 18px; transition: transform .25s ease; }
.service-card:hover .more svg { transform: translateX(4px); }

/* Feature (centered icon) */
.feature { text-align: center; }
.feature .icon-circle { width: 66px; height: 66px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.feature .icon-circle svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.5rem; margin-bottom: .65rem; }
.feature p { margin: 0; color: var(--muted); }

/* Process steps */
.step { background: #fff; border-radius: 14px; padding: clamp(1.5rem, 3vw, 2rem); box-shadow: 0 8px 24px rgba(0,35,102,.06); }
.step .num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.25rem; margin: .5rem 0 .6rem; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Warm closing line under the process steps (folded in from the old Welcome Home section) */
.process-close { max-width: 52rem; margin: clamp(2.5rem, 5vw, 3.75rem) auto 0; }
.process-close .accent-line { margin: 0 auto 1.5rem; }
.process-close p { margin: 0; font-size: 1.2rem; color: var(--muted); }

/* Testimonials */
.quote { background: var(--cream); border-radius: 14px; padding: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.quote.on-white { background: #fff; box-shadow: 0 8px 24px rgba(0,35,102,.06); }
.quote .stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.25rem; font-style: italic; font-size: 1.1rem; color: #444b57; }
.quote figcaption { font-weight: 600; color: var(--navy); }

/* Featured testimonial — the standout review, set apart above the review grid */
.quote-feature { background: var(--navy); color: #fff; text-align: center; max-width: 60rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.9rem, 4vw, 2.75rem); border-radius: 16px; box-shadow: 0 20px 44px rgba(0,35,102,.18); }
.quote-feature .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 3px; margin-bottom: 1rem; }
.quote-feature blockquote { margin: 0 auto 1.3rem; max-width: 50rem; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; color: #fff; }
.quote-feature figcaption { color: #dbe1ec; font-weight: 600; }
.quote-feature figcaption .src { color: var(--gold); }

/* ---------- Project gallery (Our Work) ---------- */
.gallery { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,35,102,.07); transition: transform .3s ease, box-shadow .3s ease; }
.project:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,35,102,.12); }
.project .thumb { overflow: hidden; aspect-ratio: 4/3; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .thumb img { transform: scale(1.05); }
.project .body { padding: clamp(1.4rem, 2.5vw, 1.75rem); }
.project .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--gold); }
.project h3 { font-size: 1.5rem; margin: .5rem 0 .4rem; }
.project p { margin: 0; color: var(--muted); }
.gallery-note { text-align: center; color: var(--muted); max-width: 40rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }

/* ---------- Split content (service pages) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 840px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}
.split-media img { border-radius: 16px; box-shadow: 0 16px 40px rgba(0,35,102,.14); width: 100%; max-height: 460px; object-fit: cover; }
.split-body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.split-body > p { font-size: 1.1rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); }
.checklist svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* Related services */
.related-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related-card { display: block; background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,35,102,.06); transition: transform .3s ease, box-shadow .3s ease; }
.related-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,35,102,.12); }
.related-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.related-card span { color: var(--gold); font-weight: 600; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band .accent-line { margin: 0 auto 1.5rem; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { font-size: 1.2rem; color: #dbe1ec; margin: 0 auto 2.25rem; max-width: 36rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Thank-you page ---------- */
.thanks { background: var(--navy); color: #fff; text-align: center; min-height: 84vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.thanks .container { max-width: 46rem; }
.thanks-badge { width: 92px; height: 92px; border-radius: 50%; background: rgba(176,135,63,.16); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem; }
.thanks-badge svg { width: 46px; height: 46px; color: var(--gold); }
.thanks .accent-line { margin: 0 auto 1.5rem; }
.thanks h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 1rem; }
.thanks p { font-size: 1.2rem; color: #dbe1ec; max-width: 34rem; margin: 0 auto 1rem; }
.thanks .cta-btns { margin-top: 2.25rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.25rem; }
.contact .lead { font-size: 1.2rem; color: #dbe1ec; max-width: 32rem; margin: 0 0 2.25rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; }
.contact-item a { transition: color .2s ease; }
.contact-item a:hover { color: var(--gold); }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }

.form-card { background: #fff; color: var(--text); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 520px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #d5d8dd; border-radius: 8px; font-family: inherit; font-size: 1rem; color: var(--text); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,35,102,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.form-card .btn { width: 100%; margin-top: .25rem; }
.form-note { text-align: center; font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #c7cfdd; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 8px; padding: 8px 12px; transition: transform .2s ease, box-shadow .2s ease; }
a.footer-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.footer-logo img { height: 56px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }
.footer-nav a { color: #e7ebf2; font-weight: 500; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; text-align: center; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.thanks a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.thanks a:not(.btn):hover { color: var(--gold); }

/* ============================================================
   MOBILE REFINEMENTS (phones only — desktop untouched)
   Placed last so these intentionally win over the base rules above.
   ============================================================ */
@media (max-width: 640px) {
  /* Scale the whole UI down a touch for Apple-like restraint */
  html { font-size: 15px; }

  /* Shorter fixed bar on phones (the big desktop bar would eat too much hero) */
  :root { --nav-h: 76px; }

  /* Phone logo sizes (alignment + timing inherit from the base rules) */
  .nav-logo img { height: 46px; }
  .nav.at-top .nav-logo img { height: 56px; } /* gentle, same-position shrink to 46px */
  .menu-btn svg { width: 28px; height: 28px; }

  /* Buttons: compact, refined */
  .btn { padding: .8rem 1.5rem; font-size: 1rem; border-radius: 9px; }

  /* Trust bar: tidy 2-up cards instead of five tall stacked blocks */
  .trust-grid { grid-template-columns: 1fr 1fr; gap: .7rem; padding: 2rem 0; }
  .trust-grid > div { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1rem .7rem; display: flex; flex-direction: column; justify-content: center; }
  .trust-grid h3 { font-size: 1rem; }
  .trust-grid p { font-size: .78rem; margin-top: .25rem; }

  /* Mobile-menu rows a touch tighter */
  .mobile-menu a { font-size: 1.05rem; padding: .8rem .25rem; }

  /* "What We Build": compact each card into an icon-left row so the list
     isn't such a long scroll. Nothing removed — same icon, title, copy & link. */
  #services { padding-top: clamp(2.5rem, 7vw, 3.5rem); padding-bottom: clamp(2.5rem, 7vw, 3.5rem); }
  #services .heading { margin-bottom: 1.6rem; }
  #services .grid-services { gap: .8rem; }
  #services .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .95rem;
    padding: 1.05rem 1.1rem;
    border-radius: 12px;
  }
  #services .service-card .icon-box { grid-column: 1; grid-row: 1; width: 42px; height: 42px; margin: 0; border-radius: 10px; }
  #services .service-card .icon-box svg { width: 22px; height: 22px; }
  #services .service-card h3 { grid-column: 2; grid-row: 1; align-self: center; font-size: 1.2rem; margin: 0; }
  #services .service-card p { grid-column: 2; grid-row: 2; font-size: .9rem; margin: .35rem 0 0; }
  #services .service-card .more { grid-column: 2; grid-row: 3; margin-top: .5rem; font-size: .9rem; }

  /* "Why Families Choose Us" (and service-page benefit features): the big 66px
     circles + 1.5rem headings were oversized on phones — scale down to match
     the compact "What We Build" cards. */
  .feature .icon-circle { width: 46px; height: 46px; margin-bottom: .8rem; }
  .feature .icon-circle svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 1.2rem; margin-bottom: .4rem; }
  .feature p { font-size: .9rem; }
}
