/* ==========================================================================
   M Square Invisible Grills — Design System
   Semantic HTML + CSS only. No build step required to read this file.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #0d1b2a;       /* deep navy-charcoal — lighter than the old near-black #0b1726, still unmistakably navy */
  --navy-soft: #152638;
  --slate: #334155;
  --bg: #f7f8fa;          /* soft off-white for light SECTION backgrounds — see .section--soft */
  --white: #ffffff;       /* reserved for CARD/surface backgrounds, so cards still read as "lifted" above the softer section bg */
  --offwhite: #f5f7fa;    /* primary headings/prominent labels sitting directly on navy — softer than pure #fff */
  --muted-on-dark: #aab7c7; /* secondary/body copy on navy — replaces the old mix of #e2e8f0/#cbd5e1/#94a3b8 with one consistent value */
  --blue: #1769d1;
  --blue-hover: #1258b5;
  --blue-light: #eaf3ff;
  --text: #111827;
  --text-muted: #64748b;
  --border: #e2e8f0;

  /* Type */
  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --mobile-bar-h: 64px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 20px 48px rgba(13, 27, 42, 0.16);
}

/* ------------------------- Reset & base ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
body.has-mobile-bar { padding-bottom: var(--mobile-bar-h); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; color: var(--navy); }
p { margin: 0; }

h1 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
  padding: var(--space-3) var(--space-4); z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.text-muted { color: var(--text-muted); }
.section { padding: var(--space-8) 0; }
.section--navy { background: var(--navy); color: var(--muted-on-dark); }
.section--navy h2, .section--navy h3 { color: var(--offwhite); }
.section--soft { background: var(--bg); }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-4);
}
.section--navy .eyebrow { color: var(--blue-light); }

.section-head { max-width: 700px; margin-bottom: var(--space-6); }
.section-head p { margin-top: var(--space-3); color: var(--text-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: var(--muted-on-dark); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline-navy:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: #25d366; color: #06341f; border-color: #25d366; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ------------------------- Header ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--navy);
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* `.container` is a plain block here (NOT a flex item of .site-header) so it
   keeps the same full-width-until-max-width behaviour every other
   `.container` on the site has. `.site-header` used to also be `display:
   flex; align-items: center;`, which turned `.container` into a flex item —
   flex items default to shrink-to-fit width rather than filling their
   parent, so `.container`'s own `margin: 0 auto` centred the whole
   shrink-wrapped brand+hamburger group as one unit below the desktop
   breakpoint, instead of letting the rule below push them to the true left/
   right edges. All layout + vertical centering happens here instead. */
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 100%; }

.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--offwhite); }
/* Real logo mark (transparent PNG, cropped from client-supplied artwork —
   see assets/images/brand/) replaces the old inline-SVG "M" badge. No
   background/border box any more: the artwork carries its own metallic
   finish and reads best directly against the navy header/footer, the only
   two places `.brand` is used. Width-only sizing (height:auto) preserves
   the source's own aspect ratio so the mark is never stretched. */
.brand-mark { display: flex; align-items: center; flex: none; }
.brand-mark img { width: 46px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-name { font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; color: var(--offwhite); }
.brand-text .brand-sub { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); }

.primary-nav { display: none; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav > ul > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 0.6rem 0.65rem; border-radius: var(--radius-sm);
  color: #e2e8f0; font-weight: 600; font-size: 0.9rem; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link .chev { width: 10px; height: 10px; transition: transform 0.15s ease; }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; left: 0; margin-top: 8px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: var(--space-5);
  display: grid; grid-auto-flow: column; gap: var(--space-6); width: max-content; max-width: min(560px, 90vw);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col { width: 220px; }
.mega-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--space-3); padding: 0 var(--space-2); }
.mega-col-links { max-height: min(60vh, 480px); overflow-y: auto; padding-right: var(--space-2); }
.mega-col a { display: block; padding: 0.4rem var(--space-2); color: var(--text); font-weight: 500; font-size: 0.92rem; border-radius: 4px; }
.mega-col a:hover, .mega-col a:focus-visible { color: var(--blue); background: var(--blue-light); }
.mega-col a:first-child { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); padding-bottom: var(--space-3); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.header-actions-desktop { display: none; align-items: center; gap: var(--space-2); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: transparent; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); color: #fff; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); z-index: 90;
  overflow-y: auto; padding: var(--space-5); display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav > .container { padding: 0; }
.mobile-nav .top-link {
  display: block; padding: var(--space-4) var(--space-2); color: var(--offwhite); font-weight: 700; font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav details { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav summary {
  padding: var(--space-4) var(--space-2); color: var(--offwhite); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .chev { width: 12px; height: 12px; transition: transform 0.15s ease; }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav .sub-group { padding: 0 var(--space-2); border-bottom: none; }
.mobile-nav .sub-group summary {
  padding: var(--space-3) 0; color: #cbd5e1; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.mobile-nav .sub-group .chev { width: 11px; height: 11px; }
.mobile-nav .sub-group-links { max-height: 45vh; overflow-y: auto; padding-bottom: var(--space-3); }
.mobile-nav .sub-group a { display: block; padding: var(--space-2) var(--space-2); color: #e2e8f0; font-size: 0.95rem; border-radius: 4px; }
.mobile-nav .sub-group a:hover, .mobile-nav .sub-group a:focus-visible { background: rgba(255,255,255,0.06); }
.mobile-nav a.mega-view-all { color: var(--blue-light); font-weight: 700; }
.mobile-nav details > div > a.mega-view-all { display: block; padding: var(--space-3) var(--space-2); font-size: 0.96rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .flat-links { padding: 0 var(--space-2) var(--space-3); }
.mobile-nav .flat-links a { display: block; padding: var(--space-3) var(--space-2); color: #e2e8f0; font-weight: 600; font-size: 0.98rem; border-radius: 4px; }
.mobile-nav .flat-links a:hover, .mobile-nav .flat-links a:focus-visible { background: rgba(255,255,255,0.06); }
.mobile-nav .flat-links a:first-child { color: var(--offwhite); border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: var(--space-3); margin-bottom: var(--space-2); }
.mobile-nav .mobile-nav-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }

/* ------------------------- Mobile sticky contact bar ------------------------- */
.mobile-contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--white);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(13,27,42,0.10);
  display: grid; grid-template-columns: 1fr 1fr; height: var(--mobile-bar-h);
}
.mobile-contact-bar a {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-weight: 700; font-size: 0.95rem;
}
.mobile-contact-bar .bar-call { background: var(--navy); color: #fff; }
.mobile-contact-bar .bar-whatsapp { background: #25d366; color: #06341f; }
.mobile-contact-bar svg { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-actions-desktop { display: flex; }
  .mobile-contact-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
}

/* ------------------------- Breadcrumb ------------------------- */
.breadcrumb { padding: var(--space-4) 0; background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li[aria-current="page"] { color: var(--text); font-weight: 600; }
.breadcrumb .sep { color: #cbd5e1; }

/* ------------------------- Hero ------------------------- */
.hero { background: var(--navy); color: var(--muted-on-dark); padding: var(--space-8) 0 var(--space-8); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; min-width: 0; }
.hero .container > * { min-width: 0; }
.hero h1 { color: var(--offwhite); }
.hero-lede { margin-top: var(--space-5); font-size: 1.15rem; color: var(--muted-on-dark); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); font-size: 0.9rem; color: var(--muted-on-dark); }
.hero-meta strong { color: var(--offwhite); }
.hero--sub { padding: var(--space-8) 0 var(--space-7); }
.hero--sub .hero-lede { max-width: 70ch; }

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}

/* The homepage hero (plain .hero, no breadcrumb above it) used to sit on
   var(--space-9) — 96px, the single largest top padding in the whole
   spacing scale — at every width, MORE than the 64px inner pages show
   below their own breadcrumb (.hero--sub), despite the homepage having
   nothing above it to lead into. .hero's own base padding-top above is now
   var(--space-8), matching .hero--sub's value, so desktop gets a normal,
   intentional gap instead of the old oversized one. Below the desktop
   breakpoint that's trimmed further, since the same absolute gap reads as
   proportionally larger against a short mobile viewport — `:not(.hero--sub)`
   keeps both of these scoped to the homepage only; .hero--sub is untouched
   at every width. */
@media (max-width: 959px) {
  .hero:not(.hero--sub) { padding-top: var(--space-7); }
}

/* On mobile/tablet (below the 900px breakpoint where the hero grid becomes
   two columns), the photo carousel is reordered to appear BEFORE the text
   block — visitors should see actual installation photos first, then read.
   `order` only changes the VISUAL position; the heading stays first in
   DOM/reading order for SEO and screen readers. Reverts automatically once
   the grid goes two-column, where text-left/image-right is the correct
   desktop layout (see servicePage.js/home.js — desktop is untouched).
   Two selectors, deliberately not a blanket `.hero--sub` rule:
   - `:not(.hero--sub)` — the home hero.
   - `.hero--image-first` — an explicit opt-in used only by the two main
     service pages (/invisible-grills/, /pigeon-nets/), which also carry a
     real carousel worth leading with. Every other `.hero--sub` page
     (locality, city, balcony) keeps its normal text-first order — they
     were never asked for and still open with a breadcrumb into one static
     photo, not a gallery. */
@media (max-width: 899px) {
  .hero:not(.hero--sub) .container > .media-frame,
  .hero--image-first .container > .media-frame {
    order: -1;
  }
}

/* ------------------------- Media placeholder (SVG line-art system) ------------------------- */
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(155deg, #122a3f, var(--navy) 70%);
  border: 1px solid rgba(255,255,255,0.08); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.media-frame.is-light { background: linear-gradient(155deg, #eef2f6, #e2e8f0); border-color: var(--border); }
.media-frame svg { width: 62%; height: 62%; opacity: 0.92; }
.media-frame.has-image { background: var(--bg); }
.media-frame.has-image img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------- Carousel ------------------------- */
/* Sits on top of .media-frame (inherits the rounded corners, border and 4:3
   ratio) — see scripts/components/ui.js `carousel()`. Behaviour (autoplay,
   swipe/drag, dots) lives in assets/js/main.js; this is purely presentation.
   Reduced-motion is handled globally at the top of this file, which forces
   `transition-duration` to ~0 on every element including `.carousel-track`,
   so navigation still works via dots/swipe but snaps instead of sliding. */
.carousel { touch-action: pan-y; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
/* Soft scrim so the (always-white) dots stay legible over any photo. */
.carousel--dots::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(0,0,0,0.38), transparent); pointer-events: none;
}
.carousel-dots { position: absolute; left: 0; right: 0; bottom: var(--space-2); display: flex; justify-content: center; gap: 2px; z-index: 2; }
.carousel-dot {
  width: 22px; height: 22px; padding: 0; border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.carousel-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55);
  transition: background-color 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}
.carousel-dot.is-active::before { background: #fff; width: 18px; border-radius: 4px; }
.carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* ------------------------- Service cards / grids ------------------------- */
.grid { display: grid; gap: var(--space-5); min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6); box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); }
.card-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.card-icon svg { width: 24px; height: 24px; color: var(--blue-hover); }

.service-card { display: flex; flex-direction: column; }
.service-card .media-frame { margin-bottom: var(--space-5); }
.service-card .card-link { margin-top: auto; padding-top: var(--space-4); color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link svg { width: 14px; height: 14px; }

.numbered-list { display: grid; gap: var(--space-5); counter-reset: step; }
.numbered-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: flex-start; }
.numbered-item .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.section--navy .numbered-item .num { background: var(--blue); }

.check-list { display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.section--navy .check-list svg { color: var(--blue-light); }

/* ------------------------- Locations / locality cards ------------------------- */
.location-card { display: block; padding: var(--space-5); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease; }
.location-card:hover { box-shadow: var(--shadow-md); }
.location-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.location-card:hover { border-color: var(--blue); }
.city-group { margin-bottom: var(--space-7); }
.city-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-5); flex-wrap: wrap; gap: var(--space-2); }
.city-group-head a { color: var(--blue); font-weight: 700; font-size: 0.92rem; }

/* ------------------------- FAQ (native details/summary, zero JS) ------------------------- */
.faq-list { display: grid; gap: var(--space-3); max-width: 840px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.section--navy .faq-item { background: var(--navy-soft); border-color: rgba(255,255,255,0.1); box-shadow: none; }
.faq-item summary {
  padding: var(--space-4) var(--space-5); cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); color: var(--navy);
}
.section--navy .faq-item summary { color: var(--offwhite); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 14px; height: 14px; flex: none; transition: transform 0.15s ease; color: var(--blue); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }
.section--navy .faq-item .faq-answer { color: var(--muted-on-dark); }

/* ------------------------- CTA band ------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #162e45); border-radius: var(--radius-lg); padding: var(--space-7);
  color: var(--offwhite); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.cta-band h2 { color: var(--offwhite); margin-bottom: var(--space-2); }
.cta-band p { color: var(--muted-on-dark); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ------------------------- Project gallery ------------------------- */
.project-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease; }
.project-card:hover { box-shadow: var(--shadow-md); }
.project-card .media-frame { border-radius: 0; aspect-ratio: 4/3; }
.project-card .project-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.project-card .project-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.tag { display: inline-block; background: var(--blue-light); color: var(--blue-hover); font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ------------------------- Forms ------------------------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: var(--space-4); min-width: 0; }
.form-grid > * { min-width: 0; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.98rem;
  font-family: inherit; background: var(--white); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: var(--space-3); }
.form-status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--blue-light); color: var(--blue-hover); font-weight: 600; font-size: 0.9rem; display: none; }
.form-status.is-visible { display: block; }

/* ------------------------- Footer ------------------------- */
.site-footer { background: var(--navy); color: var(--muted-on-dark); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; min-width: 0; }
.footer-grid > * { min-width: 0; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.2fr 0.7fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 { color: var(--offwhite); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }

/* Bangalore/Hyderabad each render twice (see footerLocationsColumn in
   layout.js) — a plain always-open list for desktop, a collapsed <details>
   accordion for mobile — with `display:none` picking exactly one per
   breakpoint. Two independently-hidden elements rather than one <details>
   forced open at desktop: a browser hides a closed <details>'s body via
   `content-visibility: hidden`, and while author CSS can flip that back to
   `visible` on paper, it does not reliably repaint — this avoids that
   fragility entirely, the same way the header already keeps `.mega`
   (desktop hover) and `.mobile-nav` (mobile tap) as separate elements
   instead of one element behaving two ways. */
.footer-col--locations-desktop { display: none; }
.footer-locations summary {
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
  color: var(--offwhite); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-locations summary::-webkit-details-marker { display: none; }
.footer-locations summary .chev { width: 12px; height: 12px; flex: none; transition: transform 0.15s ease; }
.footer-locations[open] summary .chev { transform: rotate(180deg); }
.footer-locations ul { margin-top: var(--space-4); }
.footer-areas-note { margin-top: var(--space-3); font-size: 0.82rem; color: var(--muted-on-dark); max-width: 32ch; }

@media (max-width: 959px) {
  /* Brand stays first; Contact (Company links + Call/WhatsApp) moves up
     so it's reachable without opening either accordion, matching the
     "most important info stays immediately visible" mobile requirement —
     the two location accordions fall to the end, collapsed. */
  .footer-col--services { order: 1; }
  .footer-col--contact { order: 2; }
  .footer-locations:nth-of-type(1) { order: 3; }
  .footer-locations:nth-of-type(2) { order: 4; }
}
@media (min-width: 960px) {
  .footer-col--locations-desktop { display: block; }
  .footer-locations { display: none; }
}

.footer-contact { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.footer-contact-link { display: flex; flex-direction: column; gap: 2px; }
.footer-contact-label { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-on-dark); }
.footer-contact-label svg { width: 15px; height: 15px; flex: none; }
.footer-contact-value { font-size: 1rem; font-weight: 700; color: var(--offwhite); }
.footer-contact-link:hover .footer-contact-value { color: var(--blue-light); }

.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 0.82rem; }

/* ------------------------- Utility ------------------------- */
.stack { display: grid; gap: var(--space-5); }
.stack-lg { display: grid; gap: var(--space-7); }
.two-col { display: grid; gap: var(--space-7); grid-template-columns: 1fr; align-items: start; min-width: 0; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col--wide-left { grid-template-columns: 1fr; }
@media (min-width: 900px) { .two-col--wide-left { grid-template-columns: 1.4fr 1fr; } }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { background: var(--white); border: 1px solid var(--border); padding: 0.4rem 0.9rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.pill:hover, .pill:focus-visible { border-color: var(--blue); color: var(--blue); }
.empty-state { max-width: 640px; }
.empty-state p { color: var(--text-muted); margin-top: var(--space-3); }
