/* ==========================================================================
   HOU Commercial Glass Services — site styles
   Sections follow the page top to bottom. All screen-size rules live together
   in "Responsive" near the end, so a change for phones is made in one place.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light only;          /* stop phone browsers from auto-darkening the page */
  --navy: #112041;                   /* brand color, from the logo */
  --navy-2: #1b2a4f;
  --blue: #2a4a8c;
  --ice: #e9eef7;
  --accent-light: #a9c1e6;           /* light blue used on navy backgrounds */
  --on-dark: #d0dbe7;                /* body text on navy */
  --on-dark-muted: #b8c7d8;          /* secondary text on navy */
  --text: #1c2530;
  --muted: #5b6776;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --radius: 10px;
  --max: 1180px;
  --header-h: 74px;
  --glass: rgba(255,255,255,.07);    /* frosted-glass panels over dark photos */
  --glass-edge: rgba(255,255,255,.18);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }

/* Keyboard users: first Tab shows a "Skip to main content" link */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Text for screen readers only (e.g. "Learn more about Storefronts") */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout helpers ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 90px 0; }
.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 50px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.sub-head { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 44px 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon { width: 52px; height: 52px; border-radius: 10px; background: var(--ice); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 16px; transition: .2s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--ice); }

/* Glass shine: a soft reflection sweeps across cards and buttons on hover */
.card, .btn-primary, .btn-white { position: relative; overflow: hidden; }
.card::after, .btn-primary::after, .btn-white::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); opacity: 0;
}
.btn-primary::after { background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 100%); }
.card:hover::after, .btn-primary:hover::after, .btn-white:hover::after { animation: shine .9s ease; }
@keyframes shine { 0% { left: -75%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

/* ---------- 5. Top bar, header, navigation ---------- */
.topbar { background: var(--navy); color: #c9d4e0; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.topbar strong { color: #fff; }
.emergency { color: #ffb4a2; font-weight: 600; }

header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo img { height: 58px; width: 58px; object-fit: contain; }
.logo small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.logo span { line-height: 1.1; }

nav > ul { display: flex; gap: 30px; list-style: none; align-items: center; }
nav a { font-weight: 500; color: var(--text); font-size: 15px; white-space: nowrap; }
nav a:hover { color: var(--blue); }
nav .btn { padding: 10px 20px; color: #fff; }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--navy); }

/* Services drop-down (opens on click/tap; also on hover for mouse users, see Responsive) */
.has-submenu { position: relative; }
.submenu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; font: 500 15px Inter, system-ui, sans-serif; color: var(--text); }
.submenu-toggle:hover { color: var(--blue); }
.submenu-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.submenu-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.submenu { display: none; position: absolute; top: calc(100% + 18px); left: -18px; z-index: 60; min-width: 250px; list-style: none; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(17,32,65,.14); }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }   /* bridges the gap so hover doesn't drop */
.has-submenu.open .submenu { display: block; }
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--ice); color: var(--navy); }
.submenu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.submenu-all a { color: var(--blue); font-weight: 600; }

/* ---------- 6. Hero ---------- */
/* The hero is taller than the screen; its inner panel stays pinned while the
   blue glass grid cross-fades into the Houston skyline (driven by scroll in site.js). */
/* svh = "small viewport height": stays fixed while phone browser bars slide in/out, so the pinned hero doesn't jump. vh is the fallback for older browsers. */
.hero { position: relative; height: 175vh; height: 175svh; padding: 0; color: #fff; background: var(--navy); }
.hero-pin { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-layer { position: absolute; inset: 0; }
.hero-city { background: url("https://images.unsplash.com/photo-1666610278692-51058ed05e9a?w=2400&q=80&auto=format&fit=crop") center 55% / cover no-repeat;
  opacity: 0; transform: scale(1.12); will-change: opacity, transform; }
.hero-blue { will-change: opacity;
  background:
    repeating-linear-gradient(90deg, #2c3d63 0 2px, transparent 2px 120px),
    repeating-linear-gradient(0deg, #2c3d63 0 2px, transparent 2px 90px),
    linear-gradient(160deg, #8ea3c7 0%, #3a5285 50%, #112041 100%);
}
.hero-shade { background: linear-gradient(0deg, rgba(17,32,65,.95) 0%, rgba(17,32,65,0) 40%), linear-gradient(100deg, rgba(17,32,65,.94) 0%, rgba(17,32,65,.78) 45%, rgba(17,32,65,.3) 100%); }
.hero-content { position: relative; width: 100%; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 { font-size: clamp(36px, 6vw, 62px); max-width: 760px; margin-bottom: 22px; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 19px; color: var(--on-dark); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 12px; margin-top: 56px; flex-wrap: wrap; color: var(--on-dark); font-size: 14px; }
.hero-badges div { padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-badges div::before { content: "✓"; color: var(--accent-light); font-weight: 700; margin-right: 8px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .4s; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--on-dark-muted), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- 7. Scroll-in reveal ---------- */
/* site.js adds .js to <html> and .reveal to elements, so content stays visible if scripts don't run.
   The .js prefix also lets these rules win over a card's own hover transition. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 8. Stats strip ---------- */
.stats { background: var(--navy-2); color: #fff; padding: 44px 0; }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--accent-light); }
.stat-label { color: var(--on-dark-muted); font-size: 14px; }

/* ---------- 9. Services ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(17,32,65,.1); border-color: transparent; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* "No job too small" service-call panel */
.service-band { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center;
  background: var(--ice); border-radius: 14px; padding: 44px; }
.service-band h3 { font-size: 28px; margin-bottom: 12px; color: var(--navy); }
.service-band p { color: var(--muted); margin-bottom: 24px; }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.service-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.service-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

/* ---------- 10. Who hires us + project types ---------- */
.hires { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hire { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hire .icon { flex: none; margin: 0; }
.hire h3 { font-size: 20px; margin-bottom: 8px; }
.hire p { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.chip.area { display: inline-flex; align-items: center; gap: 8px; }
/* Map-pin icon drawn once here instead of an SVG copied into every area chip */
.chip.area::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-7 8-13a8 8 0 0 0-16 0c0 6 8 13 8 13z'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-7 8-13a8 8 0 0 0-16 0c0 6 8 13 8 13z'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.chip.more { border-style: dashed; color: var(--muted); background: transparent; }

/* ---------- 11. Service areas + map ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 70px; }
.areas .section-head { margin: 0 0 24px; }
.areas-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.areas-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.areas-note a { color: var(--blue); font-weight: 600; }
.area-map { margin: 0; background: var(--navy); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(17,32,65,.18); }
#service-map { height: 460px; background: var(--ice); z-index: 0; }
/* Soften the street map to a cool grey so the navy overlay and pins stand out (not applied to satellite) */
#service-map.is-street .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.92); }
.map-toggle { display: flex; background: #fff; border-radius: 8px; padding: 3px; box-shadow: 0 2px 10px rgba(17,32,65,.25); }
.map-toggle button { border: 0; background: none; font: 600 12px Inter, sans-serif; color: var(--navy); padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.map-toggle button.on { background: var(--navy); color: #fff; }
.shop-pin { width: 38px; height: 50px; cursor: pointer; filter: drop-shadow(0 4px 6px rgba(17,32,65,.4)); transition: transform .2s; transform-origin: 50% 100%; }
.shop-pin:hover { transform: scale(1.12); }
.shop-pin svg { width: 100%; height: 100%; display: block; }
.leaflet-tooltip.shop-tip { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font: 500 13px/1.45 Inter, sans-serif; box-shadow: 0 8px 24px rgba(17,32,65,.3); }
.leaflet-tooltip.shop-tip::before { border-top-color: var(--navy); }
.shop-tip strong { display: block; font-size: 14px; }
.shop-tip small { display: block; color: var(--accent-light); margin-top: 4px; font-size: 12px; }
.leaflet-tooltip.town-tip { background: #fff; color: var(--navy); border: 0; border-radius: 6px; padding: 4px 10px; font: 600 12px Inter, sans-serif; box-shadow: 0 4px 12px rgba(17,32,65,.18); }
.area-map .leaflet-control-attribution { font-size: 10px; }
.area-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 20px; color: var(--on-dark); font-size: 13px; }
.area-map figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.map-see-shop { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 600 13px Inter, sans-serif; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.map-see-shop:hover { background: rgba(255,255,255,.1); }
.map-directions { margin-left: auto; color: #fff; font-weight: 600; }
.map-directions:hover { text-decoration: underline; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.key.zone { background: rgba(42,74,140,.35); border: 1.5px dashed var(--accent-light); }
.key.town { width: 10px; height: 10px; background: #fff; border: 2px solid var(--blue); }
.key.hq { background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--navy); }

/* ---------- 12. Why choose us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checklist { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; }
.checklist li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 15px; }

/* ---------- 13. Projects (photo gallery on service pages) ---------- */
/* The building name fades in on hover and out when the cursor leaves (always shown on touch screens). */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; color: #fff; margin: 0; cursor: pointer; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.06); }
.project figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(180deg, rgba(17,32,65,0) 35%, rgba(17,32,65,.92) 100%);
  opacity: 0; transition: opacity .45s ease; }
.project figcaption > * { transform: translateY(12px); transition: transform .45s ease; }
.project:hover figcaption, .project:focus-visible figcaption { opacity: 1; }
.project:hover figcaption > *, .project:focus-visible figcaption > * { transform: none; }
.project:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.project .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #c3d4ee; font-weight: 600; }
.project h3 { font-size: 19px; }
.project .loc { font-size: 14px; color: var(--on-dark); }

/* Photo lightbox: click a project photo to see it large with its details */
.lightbox { padding: 0; border: 0; border-radius: 14px; width: min(1100px, 94vw); max-height: 94vh; background: var(--navy); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(10,18,38,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #0a1226; }
.lightbox-caption { padding: 14px 20px 16px; font-size: 15px; color: var(--on-dark); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(17,32,65,.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--navy); }

/* ---------- 14. Process + scroll scene ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 16px; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 44px; font-weight: 800; color: #d3dcec; display: block; margin-bottom: 6px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Scroll scene: the section always sits on brand navy with white text (readable at every moment);
   a photo fades in behind it near the middle of the screen and out as you scroll past (site.js). */
.scene { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 150px 0; }
.scene-bg { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; background-position: center 60%; background-size: cover; background-repeat: no-repeat; opacity: 0; will-change: opacity, transform; }
.scene-bg-process { background-image: url("https://images.unsplash.com/photo-1622007151631-25aa98ab394b?w=2400&q=80&auto=format&fit=crop"); }
.scene-shade { position: absolute; inset: 0; background:
    linear-gradient(180deg, var(--navy) 0%, rgba(17,32,65,.55) 22%, rgba(17,32,65,.55) 78%, var(--navy) 100%),
    linear-gradient(100deg, rgba(17,32,65,.75) 0%, rgba(17,32,65,.35) 100%); }
.scene > .container { position: relative; }
.scene .eyebrow { color: var(--accent-light); }
.scene .lead { color: var(--on-dark); }
/* Frosted-glass step panels: the photo shows through, blurred, with a thin light edge on top */
.scene .step { padding: 22px 22px 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.scene .step::before { color: rgba(169,193,230,.6); }
.scene .step p { color: var(--on-dark); }
.scene h2, .scene h3, .scene p { text-shadow: 0 1px 12px rgba(17,32,65,.5); }

/* ---------- 15. Testimonials ---------- */
/* Section is not on the site yet. Its HTML and CSS wait in saved-sections.html; re-add only with real
   reviews used with the client's permission. */

/* ---------- 16. "Project out to bid?" band ---------- */
.cta-band { color: #fff; padding: 90px 0;
  background: linear-gradient(120deg, rgba(42,74,140,.88) 0%, rgba(17,32,65,.95) 100%), url("https://images.unsplash.com/photo-1666610278692-51058ed05e9a?w=2400&q=80&auto=format&fit=crop") center 40% / cover fixed; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); }
.cta-band p { color: #d7e8fa; margin-top: 6px; }

/* ---------- 17. Contact + quote form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.contact-info { display: grid; gap: 22px; margin-top: 30px; }
.contact-info > div { display: flex; gap: 14px; align-items: center; }
.contact-info .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-info .icon svg { width: 20px; height: 20px; }
.contact-info strong { display: block; }
.contact-info span { color: var(--muted); font-size: 15px; display: block; }
.contact-info .note { font-size: 13px; margin-top: 2px; }

form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: 0 10px 30px rgba(17,32,65,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; margin-bottom: 18px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
form .btn { width: 100%; }
/* Optional plans/photos upload */
input[type="file"] { margin-bottom: 6px; padding: 10px; background: var(--bg-alt); border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
label .optional { font-weight: 400; color: var(--muted); }
.field-hint { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.form-consent { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.form-consent a { color: var(--blue); text-decoration: underline; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #8a1f11; font-size: 14px; }
.form-error a { font-weight: 600; text-decoration: underline; }

/* ---------- 18. Footer ---------- */
footer { background: var(--navy); color: #9fb0c3; padding: 60px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer .logo { color: #fff; margin-bottom: 14px; }
footer .logo img { background: #fff; border-radius: 8px; padding: 4px; height: 64px; width: 64px; }
footer .logo small { color: #9fb0c3; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a3a5c; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.footer-bottom a { text-decoration: underline; }

/* ---------- 18b. Legal pages (privacy.html, terms.html) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 20px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); color: var(--navy); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; color: var(--navy); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--blue); font-weight: 600; text-decoration: none; }

/* ---------- 18c. Service pages (/services/…) ---------- */
.page-hero { color: #fff; padding: 70px 0 80px;
  background: linear-gradient(100deg, rgba(17,32,65,.96) 0%, rgba(17,32,65,.86) 55%, rgba(42,74,140,.8) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 120px), var(--navy); }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 18px; }
.page-hero p { font-size: 19px; color: var(--on-dark); max-width: 640px; margin-bottom: 32px; }
.breadcrumb { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 28px; }
.breadcrumb a { color: inherit; }   /* beats the header's "nav a" color (the breadcrumb is a nav too) */
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.service-detail { align-items: start; }
.service-detail h2 { margin-bottom: 0; }
.service-area-note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.gc-subhead { margin-top: 32px; }
.page-hero .hero-badges { margin-top: 36px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--blue); }
.card-link:hover { text-decoration: underline; }
a.chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 19. Phone call/request bar (shown under 820px, see Responsive) ---------- */
.mobile-cta { display: none; }

/* ---------- 20. PLACEHOLDERS — delete each block once real content replaces it ---------- */
/* "Why choose us" image placeholder → replace the .visual div with a real crew/job photo */
.visual { aspect-ratio: 4/3.4; border-radius: 14px; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 3px, transparent 3px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.55) 0 3px, transparent 3px 110px),
    linear-gradient(135deg, #d6e0ef 0%, #7c93bd 40%, #1b2a4f 100%);
}
.visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); }
/* Service pages without photos yet → replaced automatically once real photos are listed in _data/services.js */
.photos-soon { grid-column: 1 / -1; padding: 36px 28px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.photos-soon strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.photos-soon span { color: var(--muted); font-size: 15px; }
.photos-soon a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   21. Responsive — largest breakpoint first
   ========================================================================== */
/* Mouse users: the Services drop-down also opens on hover (desktop menu only) */
@media (hover: hover) and (min-width: 821px) {
  .has-submenu:hover .submenu { display: block; }
}

@media (max-width: 960px) {
  .grid-3, .steps, .projects { grid-template-columns: repeat(2, 1fr); }
  nav > ul { gap: 16px; }   /* five menu items still fit on one line down to 821px */
  header .container { gap: 20px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .areas { grid-template-columns: 1fr; gap: 36px; }
  .service-band { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { gap: 12px; }
  .stat-num { font-size: 30px; }
}

@media (max-width: 820px) {
  /* Menu collapses behind the ☰ button */
  .menu-toggle { display: block; }
  nav > ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  nav > ul.open { display: flex; }
  /* Services drop-down opens inside the phone menu */
  nav > ul { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .has-submenu { text-align: center; }
  .submenu { position: static; min-width: 0; margin-top: 8px; padding: 6px; text-align: center; border: 0; background: var(--bg-alt); box-shadow: none; }
  .submenu::before { display: none; }

  /* Lighter background photos on phones and tablets */
  .hero-city { background-image: url("https://images.unsplash.com/photo-1666610278692-51058ed05e9a?w=1100&q=75&auto=format&fit=crop"); }
  .scene-bg-process { background-image: url("https://images.unsplash.com/photo-1622007151631-25aa98ab394b?w=1100&q=75&auto=format&fit=crop"); }
  .cta-band { background-image: linear-gradient(120deg, rgba(42,74,140,.88) 0%, rgba(17,32,65,.95) 100%), url("https://images.unsplash.com/photo-1666610278692-51058ed05e9a?w=1100&q=75&auto=format&fit=crop"); }

  /* Sticky call/quote bar; site.js adds .show after scrolling past the top */
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17,32,65,.08);
    transform: translateY(110%); transition: transform .35s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
  .mobile-cta .call { background: var(--navy); color: #fff; }
  .mobile-cta .cta-request { border: 2px solid var(--navy); color: var(--navy); }
  .mobile-cta svg { width: 18px; height: 18px; }
  footer { padding-bottom: 100px; }   /* room for the call bar */
}

@media (max-width: 760px) {
  .hires { grid-template-columns: 1fr; }
  .hire { padding: 24px; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-3, .steps, .projects, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero p { font-size: 17px; }
  .topbar .hide-sm { display: none; }
  .hero { height: 140vh; height: 140svh; }
  .hero p { font-size: 17px; margin-bottom: 28px; }
  .hero-badges { margin-top: 28px; gap: 8px 20px; }
  .hero-shade { background: linear-gradient(180deg, rgba(17,32,65,.85), rgba(17,32,65,.7)); }
  .scroll-cue { display: none; }
  #service-map { height: 360px; }
  form { padding: 24px; }
}

@media (max-width: 480px) {
  .service-list { grid-template-columns: 1fr; }
}

/* Touch screens (no hover): show project names and avoid fixed backgrounds, which phones don't support */
@media (hover: none) {
  .project figcaption { opacity: 1; }
  .project figcaption > * { transform: none; }
  .cta-band { background-attachment: scroll; }
}

/* Visitors who turn on "reduce motion": no pinned hero, fades or shine; photos simply shown */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; top: 0; height: auto; padding: 120px 0; }
  .hero-city { opacity: 1; transform: none; }
  .hero-blue, .scroll-cue { display: none; }
  .scene-bg { opacity: .55; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover::after, .btn-primary:hover::after, .btn-white:hover::after { animation: none; }
}
