/* ==========================================================================
   District Concrete - public site styles
   Premium, fast, blue-dominant. No build step, plain CSS.
   ========================================================================== */

/* --- Self-hosted fonts ----------------------------------------------------
   Drop heading.woff2 (a bold condensed display face: Anton/Oswald/Archivo
   Narrow) and body.woff2 (Inter) into /assets/fonts/. Until then the stacks
   below fall back cleanly with no third-party request. */
@font-face {
  font-family: "District Display";
  src: url("/assets/fonts/heading.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "District Sans";
  src: url("/assets/fonts/body.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #0E1116;
  --blue: #0E78AC;        /* brand azure, pulled from the logo */
  --blue-deep: #0A5A82;   /* deeper variant for hovers, headers, and text contrast */
  --steel: #5B6B7B;
  --line: #E2E6EB;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --blue-light: #9DBBE0;   /* light blue for small accents on dark backgrounds */

  --font-display: "District Display", "Arial Narrow", "Oswald", system-ui, sans-serif;
  --font-body: "District Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(64px, 8vw, 120px);
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .06), 0 2px 8px rgba(14, 17, 22, .05);
  --shadow-md: 0 6px 24px rgba(14, 17, 22, .10);
  --header-h: 88px;
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* The ONLY thing allowed to control horizontal width and side padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Optional reading-measure cap for long body text. Stays left aligned to the
   container's left edge (never a separate centered box). */
.measure { max-width: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Section rhythm ------------------------------------------------------- */
.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .75rem;
  display: block;
}
.section--ink .eyebrow { color: var(--blue-light); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }  /* intentional centered heading block */
.lead { font-size: 1.15rem; color: var(--steel); }
.section--ink .lead { color: #c5cfdb; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #f0f3f7; color: var(--blue-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Wordmark: an inline-flex column whose width is set by the DISTRICT line, so
   CONCRETE CO can justify its letters across that exact width, edge to edge. */
.brand-text { display: inline-flex; flex-direction: column; line-height: .9; font-family: var(--font-display); }
.brand-district { color: var(--blue); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.brand-concrete {
  color: var(--ink);
  font-size: clamp(11px, 1.45vw, 15px);
  font-weight: 700;
  /* Base tracking gets the line close to DISTRICT's width, then justify pins
     the right edge exactly. inter-character spreads the small remainder per
     letter where supported; Safari ignores text-justify but the base tracking
     keeps it even, with only a small residual at the word space. */
  letter-spacing: .2em;
  margin-top: .14em;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}

.main-nav { margin-left: auto; }
/* One line, never wrap. Labels themselves never break. */
.nav-list { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(4px, 0.9vw, 16px); }
.nav-list > li { white-space: nowrap; }
.nav-list > li > a, .nav-list > li > .dropdown-toggle {
  display: inline-block; padding: .55rem .5rem; color: var(--ink); font-weight: 600; font-size: 15px;
  border-radius: 6px; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li > .dropdown-toggle:hover { color: var(--blue); background: var(--bg-soft); }
.nav-list a[aria-current="page"] { color: var(--blue); }

.has-dropdown { position: relative; }
.caret { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: .35rem; vertical-align: middle; }
/* Multi-column panel anchored under the Services item. */
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  display: none;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 2px 36px; min-width: 520px;
  padding: 18px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(14,17,22,.14); z-index: 120;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.has-dropdown.open .dropdown-panel { display: grid; }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; color: var(--ink); font-size: .95rem; }
.dropdown-panel a:hover { background: var(--bg-soft); color: var(--blue); }
/* Single-column dropdown for short menus (Resources) */
.dropdown-panel--single { grid-template-columns: 1fr; min-width: 200px; }

.header-actions { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--blue); }
.phone-icon { color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .4rem; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-close { display: none; position: absolute; top: 1rem; right: 1.25rem; font-size: 2.2rem; background: none; border: 0; color: var(--ink); line-height: 1; }
.nav-overlay { position: fixed; inset: 0; background: rgba(14,17,22,.5); z-index: 105; }

/* Mobile-only chrome inside the menu, hidden on desktop. */
.mobile-menu-head, .mobile-menu-actions { display: none; }
/* Lock background scroll while the mobile menu is open. */
body.nav-open { overflow: hidden; }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Dark gradient overlay sits above the photos so the headline and CTAs stay
   readable on any image. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,40,62,.9) 0%, rgba(14,17,22,.78) 52%, rgba(14,17,22,.6) 100%); z-index: 1; }

/* Rotating hero slideshow: stacked slides cross-fade with a slow Ken Burns zoom. */
.hero-slideshow .hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity, transform;
}
.hero-slideshow .hero-slide.is-active {
  opacity: 1;
  animation: hero-kenburns 5s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
/* Reduced motion: no zoom, no auto-rotation, just the first image. */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .hero-slide { transition: none; animation: none; }
  .hero-slideshow .hero-slide:not(.is-active) { display: none; }
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero h1 { color: #fff; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: #d7e0ea; margin: 1.25rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem; color: #aebccb; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust span::before { content: "\2713"; color: var(--blue-light); font-weight: 700; }

/* --- Stat counters -------------------------------------------------------- */
.stats { background: var(--blue); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; }
.stat-label { display: block; margin-top: .5rem; font-size: .95rem; color: #cfe0f1; letter-spacing: .02em; }

/* --- Generic grids -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Unified card system (one style for every card sitewide) -------------- */
.card {
  background: #fff;
  border: 1.5px solid var(--blue);     /* full border, all four sides, never top-only */
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(14,17,22,.06), 0 12px 30px rgba(14,17,22,.10);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  background: #F4F8FD;
  box-shadow: 0 6px 16px rgba(14,17,22,.10), 0 20px 44px rgba(14,17,22,.16);
}
.card h2, .card h3 { color: var(--blue); margin: 0 0 8px; font-size: 1.25rem; }
.card h2 a, .card h3 a { color: inherit; }
.card p  { color: var(--steel); margin: 0; }
.card p + p { margin-top: .65rem; }
.card .card-link { color: var(--blue); font-weight: 600; margin-top: auto; padding-top: .9rem; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; }
.card .card-link::after { content: " \2192"; }

/* Full-bleed media inside the bordered card (services, projects, resources) */
.card .card-media {
  display: block; margin: -28px -26px 18px; border-radius: 14px 14px 0 0;
  overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); position: relative;
}
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { display: flex; flex-direction: column; flex: 1; }

/* Process number, project meta, area link, all on the one card */
.card .num { font-size: 40px; line-height: 1; font-weight: 800; color: var(--blue); opacity: .25; margin-bottom: 14px; font-family: var(--font-display); }
.card .proj-city { color: var(--steel); font-size: .92rem; margin: 0 0 .6rem; }
.card .area-more { color: var(--blue); font-weight: 600; display: inline-block; margin-top: auto; padding-top: .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }

/* --- Process grid (cards use the unified .card) --------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Split (image + text) ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.split .bullets { margin-top: 1.25rem; }

/* --- Bullet lists --------------------------------------------------------- */
.bullets { display: grid; gap: .6rem; }
.bullets li { position: relative; padding-left: 1.75rem; color: var(--ink); }
.bullets li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.section--ink .bullets li::before { color: var(--blue-light); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: linear-gradient(100deg, var(--blue-deep), var(--blue)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.75rem; }
.cta-band .phone-big { font-family: var(--font-display); font-size: 1.3rem; color: #fff; display: inline-flex; align-items: center; gap: .5rem; }

/* --- FAQ accordion -------------------------------------------------------- */
.faq { max-width: none; }   /* fills the container, same width as card grids */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--blue); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding-bottom: 1.25rem; color: var(--steel); }
.faq-item.open .faq-a { max-height: 600px; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { font-size: .9rem; color: var(--steel); padding-block: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* --- Page hero (inner pages) --------------------------------------------- */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c5cfdb; margin-top: 1rem; font-size: 1.1rem; }

/* --- Prose (long copy) ---------------------------------------------------- */
.prose { max-width: none; }   /* fills the container, same width as card grids */
.prose p { margin-bottom: 1.25rem; color: #2a3340; line-height: 1.7; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.75rem 0 .75rem; }
.prose a { text-decoration: underline; }

/* --- Projects grid + filters --------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--steel); }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.category-pill { position: absolute; top: .75rem; left: .75rem; background: var(--blue); color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; padding: .3rem .7rem; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; font-size: .78rem; color: var(--steel); }
.featured-flag { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 4px; margin-bottom: .5rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--steel); border: 2px dashed var(--line); border-radius: var(--radius); }

/* --- Project detail gallery ---------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --- Contact -------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--steel); }
.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem; }
.alert-error { background: #fdecec; border: 1px solid #f5b5b5; color: #8a1c1c; }
.alert-ok { background: #ecf8f1; border: 1px solid #a9dcc0; color: #1c6b40; }

.nap-block { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.nap-block h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.nap-block address { font-style: normal; line-height: 1.9; }
.nap-hours { display: block; margin: .6rem 0; }
.map-embed { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* --- Testimonials (empty until real reviews exist) ------------------------ */
.testimonials-empty { text-align: center; color: var(--steel); }

/* --- 404 ------------------------------------------------------------------ */
.page-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.page-404 .big { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--blue); line-height: 1; }
.page-404 .links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* --- Misc ----------------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.text-link { font-weight: 700; }
.text-link::after { content: " \2192"; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c2cbd6; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-block: clamp(48px, 6vw, 80px);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px; color: #8b97a6; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .footer-h-2nd { margin-top: 28px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-flex; flex-direction: column; line-height: .92; }
.footer-logo .brand-district { color: #fff; }
.footer-logo .brand-concrete { color: var(--blue-light); }
.footer-tagline { color: #97a2af; margin: 16px 0; }
.footer-ig { display: inline-block; font-weight: 700; color: #fff; }
.footer-nap { font-style: normal; line-height: 1.9; margin-top: 16px; color: #97a2af; }
.footer-nap strong { color: #fff; }
.footer-license { margin-top: 14px; font-size: .8rem; line-height: 1.6; color: #7c8896; }
.footer-cta-col .footer-phone { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 20px; }
.footer-copy { color: #7c8896; font-size: .88rem; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: #7c8896; font-size: .88rem; }
.footer-legal a:hover { color: #fff; }
.footer-admin { opacity: .7; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}
@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Full-screen overlay menu with a solid background. */
  .main-nav {
    position: fixed; inset: 0; width: 100vw; height: 100dvh;
    background: #fff; overflow-y: auto; padding: 24px var(--gutter) 48px;
    transform: translateX(100%); transition: transform .25s ease; z-index: 1000;
    display: flex; flex-direction: column;
  }
  body.nav-open .main-nav { transform: translateX(0); }

  .mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .mobile-menu-head .brand-text { line-height: .9; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li > a, .nav-list > li > .dropdown-toggle {
    font-size: 20px; padding: 14px 0; display: block; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-close { display: block; font-size: 2.4rem; background: none; border: 0; color: var(--ink); line-height: 1; position: static; }

  /* Services group expands inline to show the ten services. */
  .dropdown-panel { position: static; grid-template-columns: 1fr; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .5rem 1rem; gap: 0; }
  .has-dropdown.open .dropdown-panel { display: grid; }
  .dropdown-panel a { font-size: 18px; padding: 12px 0; }

  .mobile-menu-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
  .mobile-menu-actions .header-phone { font-size: 20px; }
  .mobile-menu-actions .btn { justify-content: center; }

  /* Top-bar phone shows the icon only on mobile; the menu carries the full number. */
  .header-actions .header-phone span:last-child { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .process-grid, .stats-grid, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
