/* =========================================================
   CoastalCarePros — Minimal, Mobile-first CSS
   Order: Global → Layout → Components → Sections → Footer
   ========================================================= */

/* ---------- 1. Tokens (Global Variables) ---------- */
:root {
  /* Brand Colors */
  --navy:#003B5C;
  --green:#34A853;
  --aqua:#00B4D8;
  --sand:#F4EFE7;
  --ink:#0B2239;
  --slate:#4A5B6B;
  --white:#FFFFFF;
  --muted:#6a7b8a; /* softer secondary text */

  /* Layout */
  --container:1200px;
  --pad:22px;
  --rad:12px;
  --shadow:0 4px 14px rgba(0,0,0,.07);

  /* Header sizing */
  --nav-h:68px;
  --nav-h-stuck:56px;
  --nav-pad:2px;
  --header-h:0px;

  /* Typography */
  --h1:clamp(30px,6vw,52px);
}

/* ---------- 2. Base / Resets ---------- */
* { box-sizing:border-box; }
html, body { margin:0; padding:0; overflow-x:hidden; }
body {
  font-family:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--ink); background:var(--white); line-height:1.6;
}
/* === Font rendering stability tweaks === */
main, main h1, main h2, main h3 {
  font-synthesis-weight: none; /* Prevent fake bold causing layout jump */
}

/* Keep fallback metrics close inside legacy page content without altering the shared shell. */
main { font-size-adjust: 0.52; }   /* Open Sans-like */
main h1, main h2, main h3 { font-size-adjust: 0.53; }  /* Montserrat-like */

img, picture, video { max-width:100%; height:auto; display:block; }
a { color:var(--navy); text-decoration:none; }
a:hover { text-decoration:underline; }
.container {
  max-width:var(--container); width:100%; margin:0 auto;
  padding-left:max(var(--pad), env(safe-area-inset-left));
  padding-right:max(var(--pad), env(safe-area-inset-right));
}

/* ---------- 3. Layout Utilities ---------- */
ul.plain { list-style:none; margin:0; padding:0; }
.mt-1   { margin-top:1rem; }
.mt-075 { margin-top:.75rem; }

/* ---------- 4. Global Components ---------- */
.badge {
  background:var(--navy); color:#fff; padding:4px 10px; border-radius:999px;
  font-size:0.78rem; line-height:1.2; white-space:nowrap;
}
.pill {
  display:inline-block; padding:.35rem .6rem; border-radius:999px;
  background:rgba(0,0,0,.06);
  font:600 .85rem/1 Open Sans,system-ui,sans-serif;
  margin-right:.4rem;
}
.highlight-box {
  border-left:6px solid var(--aqua);
  background:rgba(17,167,255,.06);
}

/* ===================== HEADER ELEMENTS ===================== */

/* --- Topbar --- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.topbar .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;                /* keep spacing consistent */
  padding: 10px;            /* moved here so it’s not only inline */
  align-items: start;       /* prevents overlap when left wraps */
}

/* make the right grid item hug the top if left wraps */
.topbar .container > *:last-child { align-self: start; }

.topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;             /* allow wrapping without pushing under button */
}

.topbar .badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Topbar Call Button --- */
.topbar .btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  height: auto;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font: 700 0.9rem/1.2 Montserrat, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
.topbar .btn.secondary:hover {
  background: #2c8d46;
  text-decoration: none;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Mobile tweaks */
@media (max-width:980px) {
  .topbar .left > span:first-child { display: none; }
  .topbar .badges { display: block; white-space: normal; }
  .topbar .badge {
    display: inline;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
  }
  .topbar .badge::before { content: "• "; opacity: .9; }
  .topbar .badges .badge:nth-child(n+3) { display: none; }
}

/* --- Header / Nav --- */
header {
  position: relative;
  z-index: 1100;
  background: #fff;
  transition: box-shadow .22s ease, background-color .22s ease;
}
header.is-fixed {
  position: fixed;
  left: 0; right: 0; top: 0;
  box-shadow: var(--shadow);
}

body.has-fixed-header { padding-top: var(--header-h); }

header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.12), transparent);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding-block: var(--nav-pad);
  transition: min-height .2s ease, padding .2s ease;
  overflow: visible;
}
header.is-stuck .nav { min-height: var(--nav-h-stuck); padding-block: 4px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
  padding-left: 10px;
}
.brand img {
  height: 54px;                /* tweak 48–56px until it fits nicely */
  width: auto;                 /* keeps correct proportions */
  display: block;
  transform: none;             /* removes the scaling */
  transition: height .2s ease;
  max-width: 100%;
}

header.is-stuck .brand img {
  height: 46px;                /* smaller when header sticks */
}

@media (max-width:980px) { .brand span { display: none; } }
@media (min-width:981px) { .brand span { margin-left: 58px; } }

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navlinks a {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 0;
  line-height: 1.25;
  text-transform: capitalize;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .18s ease;
}
.navlinks a:hover,
.navlinks a[aria-current="page"],
.navlinks a.active { background-size: 100% 2px; }
.navlinks .btn {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 12px;
  background-image: none;
}

/* --- Mobile Menu --- */
.menu-toggle { display: none; }
@media (max-width:980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    background: #fff;
    min-height: 44px;
    min-width: 44px;
    margin-right: clamp(14px, env(safe-area-inset-right) + 12px, 22px);
  }
  .navlinks { display: none; }
  .navlinks.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    padding: 14px var(--pad);
    z-index: 1200;
  }
}

/* ===================== HERO VARIANTS ===================== */
/* --- Homepage Hero (Gleam) --- */
.hero-gleam {
  --shine-cycle:5s; --img-shift-y:0px;
  min-height:clamp(520px,80vh,860px);
  background:linear-gradient(180deg,var(--sand),#fff);
  color:var(--ink);
  position:relative; overflow:hidden; isolation:isolate;
  display:grid; align-items:center;
}
.hero-gleam.has-photo { background:none; }

/* Background layers */
.hero-gleam .bg { position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-gleam .bg picture { position:absolute; inset:0; width:100%; height:100%; display:block; }

.hero-gleam .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  transform: translateY(var(--img-shift-y));
  transform-origin: center top;
  filter: saturate(.98) contrast(.98);

  /* NEW: lock the space so no layout shift */
  aspect-ratio: 16 / 9;   /* matches 1920x1080 */
}

.hero-gleam .bg .wash {
  position:absolute; inset:0; background:rgba(11,34,57,.16); mix-blend-mode:multiply;
}
.hero-gleam .bg .veil {
  position:absolute; inset:0;
  background:linear-gradient(90deg,
    rgba(244,239,231,.65) 0%,
    rgba(244,239,231,.35) 32%,
    rgba(244,239,231,.10) 58%,
    rgba(244,239,231,0) 78%);
}
.hero-gleam .bg .vignette {
  position:absolute; inset:0;
  background:radial-gradient(90% 75% at 50% 55%, rgba(0,0,0,.12), transparent 70%);
  mix-blend-mode:multiply;
}

/* Hero Content */
.hero-gleam .stage {
  max-width:1100px; margin:0 auto;
  padding:clamp(40px,13vh,110px) 20px;
  display:grid; place-items:center; text-align:center;
  position:relative; z-index:1;
}
.hero-gleam .kicker {
  color: var(--green);
  text-transform: uppercase; letter-spacing: .08em;
  font:700 .8rem/1.2 Montserrat,sans-serif;
  margin-bottom:.55rem;
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:rgba(244,239,231,0.80);
  text-shadow:0 1px 0 rgba(255,255,255,.6);
  box-shadow:0 0 0 1px rgba(0,0,0,.06) inset;
}
.hero-gleam h1 {
  position:relative; display:inline-block;
  font:800 clamp(28px,5.6vw,56px)/1.12 Montserrat,sans-serif;
  color:var(--navy);
  text-shadow:0 1.5px 0 rgba(255,255,255,.6), 0 0 14px rgba(255,255,255,.4);
  margin:.15rem 0 .75rem;
}
.hero-gleam .shine { position:relative; display:inline-block; padding-right:.15em; z-index:1; }
.hero-gleam .shine::after {
  content:""; position:absolute; inset:-.12em;
  background:linear-gradient(100deg, transparent 0%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,.75) 50%,
    rgba(255,255,255,0) 60%, transparent 100%);
  transform:translateX(-140%); mix-blend-mode:screen; opacity:0; pointer-events:none;
  animation:shine var(--shine-cycle) ease-in-out infinite;
}
@keyframes shine {
  0% { transform:translateX(-140%); opacity:0; }
  8% { opacity:1; }
  38% { transform:translateX(140%); opacity:1; }
  48%,100% { transform:translateX(140%); opacity:0; }
}
@media (prefers-reduced-motion:reduce) { .hero-gleam .shine::after { animation:none; } }

.hero-gleam .lead {
  font-size:1.15rem; color:var(--navy); max-width:760px;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}
.hero-gleam .cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:1rem; justify-content:center; }
.hero-gleam .btn {
  text-shadow:0 1.5px 0 rgba(11,34,57,.22), 0 0 12px rgba(11,34,57,.12);
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px;
  font:700 1rem/1.1 Montserrat,sans-serif; text-decoration:none;
}
.hero-gleam .btn.primary { background:var(--navy); color:#fff; }
.hero-gleam .cta .btn.outline { color:#fff; background:transparent; border:2px solid #fff; }
.hero-gleam .cta .btn.outline:hover { color:#fff; border-color:#fff; }

/* Responsive hero */
@media (max-width:980px) {
  .hero-gleam .stage { padding:clamp(32px,11vh,96px) 16px; }
  .hero-gleam .cta .btn { width:100%; }
}
@media (max-width:980px) and (orientation:portrait) { .hero-gleam .hero-bg { object-position:center 38%; } }
@media (max-width:980px) and (orientation:landscape) { .hero-gleam .hero-bg { object-position:center 42%; } }

/*Key Highlights */
.highlights {
  background:#f7f9fa;
  border-radius:12px;
  padding:24px;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}
.highlights h3 { font:700 1.1rem Montserrat,sans-serif; color:var(--navy); margin-bottom:.75rem; }
.highlights ul { list-style:none; padding:0; margin:0 0 1rem; }
.highlights li { margin:0.4rem 0; font-weight:600; color:var(--ink); }

/* ===================== SERVICE GRIDS (Homepage + Services Page) ===================== */

/* Base grid (mobile first) */
.svc-grid,
.svc-grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  /* Fix the baseline/row alignment bump */
  align-items: start;
}

/* Mobile only: make cards slightly narrower than viewport */
@media (max-width: 699px) {
  .svc-grid,
  .svc-grid-services {
    justify-items: center;
  }
  .svc-card {
    width: min(92%, 32rem);
  }
}

/* Tablet: 2 across */
@media (min-width: 700px) {
  .svc-grid,
  .svc-grid-services {
    grid-template-columns: repeat(2, 1fr);
    justify-items: stretch; /* keep full column width */
  }
}

/* Desktop: 4 across */
@media (min-width: 1100px) {
  .svc-grid,
  .svc-grid-services {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 36px;
    justify-content: center;
    justify-items: stretch; /* keep full column width */
  }
}

/* ===================== SERVICE CARD STYLES ===================== */
.svc-card {
  display: grid;
  background: var(--white);                /* keeps desktop look clean */
  text-align: center;
  position: relative;                      /* for card-link overlay */
  border-radius: var(--rad);
  overflow: hidden;                        /* clean thumb/band edges */

  /* Desktop stays effectively the same; gives cards definition on mobile too */
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
}

.svc-card .thumb{
  height: 96px;
  background-color: var(--white);
  background-image: var(--img);
  background-repeat: no-repeat;
  background-position: center 50%;
  background-size: 72px 72px;              /* fixed box = consistent */
}

.svc-card .content {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
  background: var(--white);
}

/* Core cards: sand band ONLY under the image (matches your desktop intent) */
.svc-card.core .content {
  background: var(--sand);
  border-top: 1px solid rgba(0,0,0,.05);
}

.svc-card .svc-tag {
  margin: 0;
  font: 700 0.72rem/1.2 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.svc-card h3 {
  margin: 0;
  font: 600 16px/1.2 Montserrat, sans-serif;
  color: var(--navy);
}

.svc-card .mini {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.svc-card .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.svc-card .actions {
  margin-top: auto;
  justify-self: center;
  position: relative;
  z-index: 2; /* above overlay */
}

.svc-card .actions a {
  font: 600 1rem/1.2 Montserrat, sans-serif;
  display: inline-flex;
  gap: 6px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .2s ease, background-size .25s ease;
}

.svc-card:hover .actions a {
  background-size: 100% 2px;
}

/* Make service cards fully clickable */
.svc-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
}

/* ------------- Split Hero ----------------- */
.split-hero {
  background: var(--sand);
  padding: 64px 0;
}
.split-hero .split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Split hero: image + overlaid CTA (clean, predictable) */
.split-hero .split-img {
  position: relative;
}

.split-hero .split-img img {
  width: 100%;
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  display: block;
}

/* Position the wrapper, not the anchor */
.split-hero .split-img > .cta-button {
  position: absolute;
  left: 50%;
  bottom: -34px;                 /* desktop overlap */
  transform: translateX(-50%);
  width: max-content;
}

/* Keep the anchor static inside the wrapper */
.split-hero .split-img > .cta-button .btn.primary {
  position: static;
  background: var(--green);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  font: 700 1rem/1.2 Montserrat, sans-serif;
  box-shadow: var(--shadow);
}

/* Mobile: reduce overlap so it doesn't cover countertop text */
@media (max-width: 640px) {
  .split-hero .split-img > .cta-button {
    bottom: -40px;                /* less negative = higher (less overlap) */
    transform: translateX(-50%); /* keep centered */
  }
}


/* Right: supporting text */
.split-hero .split-text h2 {
  color: var(--navy);
  font: 700 2rem/1.2 Montserrat, sans-serif;
  margin-bottom: 1rem;
}
.split-hero .split-text p,
.split-hero .split-text ul {
  color: var(--slate);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}
.split-hero .split-text ul {
  list-style: none;
  padding: 0;
}
.split-hero .split-text ul li {
  margin: 0.5rem 0;
}
.split-hero .split-text .subtext {
  font-size: 1rem;
  color: var(--slate);
}

/* Responsive */
@media (max-width: 900px) {
  .split-hero .split-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .split-hero .split-img {
    margin-bottom: 48px; /* creates space for button overlap */
  }
  .split-hero .split-img .btn.primary {
    bottom: -20px; /* tighter overlap on mobile */
  }
}

/* ===================== IN-PAGE HERO NAV ===================== */
.inpage-nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 59, 92, 0.1); /* subtle top divider */
  border-bottom: 1px solid rgba(0, 59, 92, 0.1); /* subtle bottom divider */
  background: rgba(244, 239, 231, 0.4); /* light sand tint */
}

.inpage-nav a {
  font: 600 0.95rem/1.2 Montserrat, sans-serif;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.inpage-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.inpage-nav a:hover::after,
.inpage-nav a:focus::after {
  transform: scaleX(1);
}

.inpage-nav a:hover {
  color: var(--aqua);
}

/* Mobile tweaks: slightly tighter spacing */
@media (max-width: 700px) {
  .inpage-nav {
    gap: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 0;
  }
}

/* --- Service Detail Pages (child pages: residential, commercial, etc.) --- */
.split-hero {
  padding:48px 0;
  background:var(--sand);
}
.split-hero .grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:center;
}
.split-hero .text .kicker {
  font:700 .9rem/1 Montserrat,system-ui,sans-serif;
  letter-spacing:.04em;
  color:var(--navy);
  text-transform:uppercase;
  margin-bottom:.5rem;
}
.split-hero h1 {
  color:var(--navy);
  font:800 2rem/1.2 Montserrat,sans-serif;
  margin:.25rem 0 1rem;
}
.split-hero .lead {
  font:400 1.05rem/1.55 Open Sans,system-ui,sans-serif;
  color:var(--ink);
}
.split-hero .media { position:relative; }
.split-hero .media .accent {
  position:absolute;
  inset:auto auto -16px -16px;
  width:120px; height:6px;
  background:var(--aqua);
  border-radius:3px;
}
.split-hero .media img {
  width:100%;
  border-radius:var(--rad);
  box-shadow:var(--shadow);
  display:block;
}

/* Commercial Cleaning: 3-image hero media grid (Quiet Authority) */
.split-hero .media.hero-media-grid{
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

.split-hero .hero-media-main picture,
.split-hero .hero-media-sub picture{
  display:block;
}

.split-hero .hero-media-main img,
.split-hero .hero-media-sub img{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  background: #e9ecef;
}

.split-hero .hero-media-subgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px){
  .split-hero .media.hero-media-grid .hero-media-subgrid{
    display: none;
  }
}

/* Ensure the main image aligns to the top of the hero content */
.split-hero .grid{
  align-items: start;
}

/* Mobile: keep sub-images as 2 columns, but allow wrapping if needed */
@media (max-width: 520px){
  .split-hero .hero-media-subgrid{
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width:900px){
  .split-hero .grid { grid-template-columns:1fr; }
  .split-hero { padding:32px 0; }
}

/* ===================== SECTION RHYTHM & ALTERNATING BACKGROUNDS ===================== */

/* Consistent vertical spacing for major sections */
.section {
  padding: 3rem 0;
}

.split-hero {
  padding: 5rem 0;
}

/* Alternate background colors between sections after hero */
main > section:not(.split-hero):nth-of-type(even) {
  background: var(--sand); /* your existing sand tone */
}

main > section:not(.split-hero):nth-of-type(odd) {
  background: var(--white);
}

/* Headings: ensure proper spacing between content blocks */
.section h1,
.section h2,
.section h3 {
  line-height: 1.2;
  margin-top: 0;
}

.section * + h2 {
  margin-top: 2.25rem;
}

.section * + h3 {
  margin-top: 1.25rem;
}

.section p + h3,
.section ul + h3,
.section ol + h3 {
  margin-top: 1.75rem;
}

/* Give cards breathing room */
.cards .card {
  padding: 1.25rem;
}

.cards .card h3 {
  margin-bottom: 0.5rem;
}

/* Subtle section dividers for large screens */
@media (min-width: 900px) {
  .section {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }
  .split-hero {
    border-top: none;
  }
}
/* Section Subtitle (used under hero images) */
.section-subtitle {
  color: var(--navy);             /* brand navy */
  font: 700 1.35rem/1.3 Montserrat, system-ui, sans-serif;
  margin: 1rem 0 1.25rem;         /* spacing above/below */
  text-align: left;
}

/* Responsive scaling */
@media (max-width: 600px) {
  .section-subtitle {
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

/* Intro Section */
.section.intro {
  background: var(--sand);
  padding: 56px 0;
}

.intro-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
  .intro-text p { font-size: 1.1rem; line-height: 1.7; }
}

.intro-icons ul {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.8;
}

.desktop-only { display: none; }
@media (min-width: 900px) {
  .desktop-only { display: block; }
}

/* --- Closing Band (general CTA) --- */
.section.closing {
  background: var(--sand);
  padding: 56px 0;
  text-align: center;
}
.section.closing h2 {
  color: var(--navy);
  font: 700 1.9rem/1.3 Montserrat, sans-serif;
  margin-bottom: 1rem;
}
.section.closing p {
  color: var(--slate);
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Services Page CTA Band (/services/) --- */
.closing-cta .cta-band {
  background: rgba(52,168,83,0.75); /* lighter translucent green */
  color: #fff;
  border-radius: var(--rad);
  padding: 36px 24px; /* reduced padding for desktop */
  text-align: center;
}
.closing-cta h2 {
  font: 700 1.9rem/1.3 Montserrat, sans-serif;
  margin-bottom: 1rem;
}
.closing-cta p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.closing-cta .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.closing-cta .btn {
  padding: 14px 26px;
  border-radius: 12px;
  font: 700 1rem/1.2 Montserrat, sans-serif;
  text-decoration: none;
}
.closing-cta .btn.primary {
  background: var(--navy);
  color: #fff;
}
.closing-cta .btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Mobile adjustment */
@media (max-width:700px) {
  .closing-cta .cta-band {
    padding: 28px 20px; /* smaller padding for mobile */
  }
}


/* Homepage lifestyle split keeps the post-standard alternation: sand -> white -> sand. */
.split-hero.home-lifestyle {
  background: var(--white);
}

/* ===================== HOMEPAGE STANDARD PREVIEW ===================== */
.standard-preview {
  background: #f7f3ed;
}

.standard-preview__intro {
  max-width: 840px;
  margin: 0 0 24px;
  text-align: left;
}

.section-kicker,
.standard-preview .kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 139, 166, .10);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}


.section.intro .section-kicker,
.standard-preview .section-kicker,
.section.closing .section-kicker {
  background: var(--white);
  border: 1px solid rgba(0, 73, 106, .10);
  box-shadow: 0 8px 22px rgba(0, 73, 106, .08);
}

.section.services .section-kicker,
.home-lifestyle .section-kicker {
  background: rgba(0, 139, 166, .10);
  border: 1px solid rgba(0, 139, 166, .14);
}
.standard-preview__intro h2 {
  margin-bottom: 12px;
  color: var(--navy);
}

.standard-preview__intro p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.standard-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.standard-preview__item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.05rem 1rem;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.standard-preview__item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.standard-preview__item h3 {
  margin: 0 0 .25rem;
  color: var(--navy);
}

.standard-preview__item p {
  margin: 0;
  color: var(--slate);
  font-size: .95rem;
  line-height: 1.5;
}

.standard-preview__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (min-width: 700px) {
  .standard-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .standard-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== SERVICE INFO SECTION TWEAKS ===================== */

/* More breathing room inside highlight box */
.section .card.highlight-box {
  padding: 24px 28px;
  margin-bottom: 32px;
}

/* Add spacing between cards in this section */
.section .grid.cards {
  gap: 32px;
}

/* Style checklists with green checkmarks */
.section .card ul.plain li::before {
  content: "✔";
  color: var(--green);
  margin-right: 8px;
  font-weight: bold;
}

/* Optional: make the bold phrases in list items green */
.section .card ul.plain li strong {
  color: var(--green);
}

/* Give "What You Can Expect" its own visual treatment */
.section .card.expect-card {
  border-left: 6px solid var(--green);
  padding-left: 20px;
  background: #fff;
}

/* Style the bottom CTA link in aqua to stand out */
.section .card .actions a,
.section .cta a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: underline;
}

/* ===================== GLOBAL BUTTONS ===================== */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:12px;
  font:700 1rem/1.2 Montserrat,sans-serif;
  text-decoration:none;
  cursor:pointer;
  transition:all .2s ease;
}

.btn.primary {
  background:var(--navy);
  color:#fff;
  border:2px solid var(--navy);
}

.btn.primary:hover {
  background:var(--green);
  border-color:var(--green);
}

.btn.outline {
  background:transparent;
  border:2px solid var(--navy);
  color:var(--navy);
}

.btn.outline:hover {
  background:var(--navy);
  color:#fff;
}
/* ===================== GLOBAL CTA SPACING ===================== */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;           /* space side by side */
  justify-content: center;
}

/* Add breathing room when buttons wrap vertically on small screens */
.cta .btn {
  flex: 1 1 auto;
}

@media (max-width:700px) {
  .cta {
    flex-direction: column;
    align-items: stretch;  /* buttons full width */
  }
  .cta .btn {
    margin-bottom: 12px;
  }
  .cta .btn:last-child {
    margin-bottom: 0;
  }
}

/* =====================
   GLOBAL UTILITIES (new)
   - Enables .btn.secondary sitewide (matches topbar green)
   - Adds .sr-only helper for accessibility
===================== */

.btn.secondary{
  background: var(--green);
  color: #fff !important;
  border: 2px solid var(--green);
}
.btn.secondary:hover{
  background: #2c8d46;
  border-color: #2c8d46;
  text-decoration: none;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* =====================
   ABOUT PAGE (scoped to /about/)
   Hook: <body class="about-page">
   Order: Head → Typography → What Sets Us Apart → Founder → Callout
   Notes:
   - Single source of truth (no duplicated founder rules)
   - Does NOT touch global grid systems (homepage grid remains unchanged)
   - About-cards is ONLY the 4-up block on About
   ===================== */

/* ---------------------
   Head + Typography
--------------------- */
body.about-page .section-head{ margin-bottom: 1rem; }

body.about-page .lead{
  font-size: 1.1rem;
  line-height: 1.65;
  margin: .25rem 0 .75rem;
}

body.about-page .pull-quote{
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--aqua);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* ---------------------
   What Sets Us Apart (4-up)
   - This only controls column behavior for that block.
   - Your base .card styles remain global.
--------------------- */
body.about-page .about-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px){
  body.about-page .about-cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  body.about-page .about-cards{ grid-template-columns: repeat(4, 1fr); }
}

/* Card header row that contains either an icon OR a badge image */
body.about-page .card-icon-row{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin-bottom:.4rem;
}

/* If you’re using Bootstrap Icons in this row */
body.about-page .card-icon-row .bi{
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
}

/* If you’re using a badge image (recommended here) */
body.about-page .card-icon-row picture{
  flex: 0 0 auto;
  display:block;
  width: 48px;
  height: 48px;
}
body.about-page .card-icon-row picture img{
  display:block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* If you ever drop the <picture> and use a plain <img>, this keeps it stable */
body.about-page .card-icon-row > img{
  display:block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Founder story block (distinct from gallery/card rhythm) */
.about-page .about-founder{
  margin-top: 2.25rem;
}

.about-page .founder-grid{
  display: grid;
  gap: 18px;
}

@media (min-width: 900px){
  .about-page .founder-grid{
    grid-template-columns: 1.35fr .65fr;
    align-items: start;
    gap: 24px;
  }
}

.about-page .founder-panel{
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 26px;
}

.about-page .founder-lead{
  font-size: 1.08rem;
  line-height: 1.65;
  margin: .5rem 0 1rem;
}

.about-page .founder-principles{
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.06);
}

.about-page .founder-principles li{
  margin: .5rem 0;
  color: var(--ink);
}

.about-page .founder-signature{
  background: var(--sand);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 22px;
}

.about-page .signature-kicker{
  font: 700 .85rem/1.2 Montserrat, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .75rem;
}

.about-page .signature-quote{
  margin: 0 0 1rem;
  font: 800 1.25rem/1.25 Montserrat, sans-serif;
  color: var(--navy);
}

.about-page .signature-note{
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
}
/* About — CTA actions container must be grid/flex for gap to work */
body.about-page .about-cta-actions{
  display: grid;
  gap: 14px;
}

/* ---------------------
   CTA Callout (premium but minimal)
--------------------- */
body.about-page .callout--premium{
  margin-top: 2rem;
  padding: 38px 28px;
  border-radius: 16px;
  text-align: center;
  background: var(--navy);
  color: #fff;
}

body.about-page .callout--premium h3{
  margin: 0 0 .5rem;
  color: #fff;
}

body.about-page .callout--premium p{
  opacity: .92;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: .75rem auto 1.25rem;
  max-width: 56ch;
}

/* =====================
   GALLERY PAGE (scoped to /gallery/)
   Matches ACTUAL HTML on /gallery/:
   - .pill-row (not .gallery-pill-row)
   - .divider (not .gallery-divider)
   - .proof-grid + .proof-tile (photo tiles)
   - .gallery-grid + .gallery-icon-card / .gallery-card (process + next steps)
   ===================== */

.gallery-page .hero-lede { max-width: 75ch; }

/* ---------------------------------
   Headings / basic rhythm (gallery-only)
---------------------------------- */
.gallery-page h1{
  margin: .25rem 0 .75rem;
  color: var(--navy);
  font: 800 var(--h1)/1.12 Montserrat, sans-serif;
}

.gallery-page h2{
  margin: 0 0 1rem;
  color: var(--navy);
  font: 800 clamp(26px, 4.2vw, 40px)/1.12 Montserrat, sans-serif;
}

/* Add breathing room before a section heading when it follows other content */
.gallery-page * + h2{ margin-top: 2.5rem; }
.gallery-page p{ margin: 0 0 1rem; }
.gallery-page p.muted{ margin: 0; }

/* ---------------------------------
   Pills (trust highlights)
   Fixes: bunched pills, no row gap, too close to headings
---------------------------------- */
.gallery-page .pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem .7rem;         /* row + column spacing */
  margin: 1.1rem 0 2.2rem;  /* space from hero + space before next block */
}

/* Make pills spacing controlled by gap (avoid global margin-right fights) */
.gallery-page .pill-row .pill{
  margin-right: 0;
  padding: .45rem .78rem;
  line-height: 1.15;
  font-size: .86rem;
}

/* ---------------------------------
   Divider (you use .divider in HTML)
   Fixes: grid → H2 glued together
---------------------------------- */
.gallery-page .divider{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 2.25rem 0;        /* consistent section separation */
}

/* ---------------------------------
   Shared Card styling (for your existing .card blocks)
---------------------------------- */
.gallery-page .card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* Lists used inside cards */
.gallery-page .list-tight{
  margin: .85rem 0 0;
  padding-left: 1.15rem;
}
.gallery-page .list-tight li{ margin: .4rem 0; }

/* ---------------------------------
   Your existing "grid-3" / "grid-2" blocks at top
---------------------------------- */
.gallery-page .grid-3,
.gallery-page .grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px){
  .gallery-page .grid-2{ grid-template-columns: repeat(2, 1fr); }
  .gallery-page .grid-3{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px){
  .gallery-page .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------
   Proof photo grid (detail tiles)
   Responsive fit with aspect-ratio
---------------------------------- */
.gallery-page .proof-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px){
  .gallery-page .proof-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px){
  .gallery-page .proof-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Tile card */
.gallery-page .proof-tile{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Media area — responsive, no fixed height */
.gallery-page .proof-media{
  background: rgba(0,0,0,.04);
  aspect-ratio: 4 / 3;   /* change to 16 / 9 if you want wider framing */
  overflow: hidden;
}

/* Ensure picture/img fills the media box */
.gallery-page .proof-media picture,
.gallery-page .proof-media img{
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-page .proof-media img{
  object-fit: cover;
  /* optional framing bias if needed later:
     object-position: 50% 60%; */
}

/* Body */
.gallery-page .proof-body{
  padding: 1rem 1rem 1.05rem;
}

.gallery-page .proof-body p{
  margin: 0;
  color: var(--muted);
}
/* ---------------------------------
   Gallery grids used later:
   - "Our Process" uses .gallery-grid with .gallery-icon-card
   - "Next Steps" uses .gallery-grid with .gallery-card blocks
---------------------------------- */
.gallery-page .gallery-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px){
  .gallery-page .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px){
  .gallery-page .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Icon cards (PNG badge cards) */
.gallery-page .gallery-icon-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.05rem 1rem;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
}

.gallery-page .gallery-icon-card img{
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.gallery-page .gallery-icon-card h4{ margin: 0 0 .25rem; }

.gallery-page .gallery-icon-card p{
  margin: 0;
  color: var(--slate);
  font-size: .95rem;
  line-height: 1.5;
}

/* Next steps “gallery-card” tiles */
.gallery-page .gallery-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.gallery-page .gallery-card h3{
  margin: 0 0 .6rem;
  color: var(--navy);
  font: 700 1.12rem/1.25 Montserrat, sans-serif;
}

/* CTA area inside the “Request a Quote” tile */
.gallery-page .gallery-card .cta{
  margin-top: 1rem;
}

/* ---------------------------------
   Callout (your existing .callout.gallery-callout)
---------------------------------- */
.gallery-page .gallery-callout{
  margin-top: 1.25rem;
}
/* Sand band must be applied to the SECTION (full-bleed) */
.gallery-page .section-sand {
  background: var(--sand);
  padding-bottom: 2rem; /* your requested extra breathing room */
}

/* Make the card visibly smaller than the container on mobile */
.gallery-page .section-sand .card {
  width: min(92%, 32rem);   /* <-- this is the fix */
  margin-inline: auto;
}
/* Gallery ONLY: invert section alternation */
body.gallery-page main > section.section:not(.split-hero):nth-of-type(odd){
  background: var(--sand);
}

body.gallery-page main > section.section:not(.split-hero):nth-of-type(even){
  background: var(--white);
}



/* =====================
   COMMERCIAL PAGE — Badge Scale + Uniformity Pass
   Hook: <body class="commercial-page">
   Goal: Make commercial category badges render uniformly (grid + standalone),
         without affecting other iconography (48px trust icons, SVGs, etc.)
===================== */

/* Commercial category badge sizing tokens (render box, not PNG dimensions) */
body.commercial-page{
  /* Commercial category badge render size (used where a category badge appears) */
  --comm-badge: 64px;
  --comm-badge-gap: 16px;
  --comm-grid-gap: 24px;
}

@media (min-width: 700px){
  body.commercial-page{
    --comm-badge: 72px;
    --comm-badge-gap: 16px;
  }
}

@media (min-width: 1100px){
  body.commercial-page{
    --comm-badge: 76px;
    --comm-badge-gap: 18px;
  }
}

/* Full-width editorial blocks (used for "Commercial Standard" + "Beyond Janitorial") */
body.commercial-page .editorial-stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px; /* structured balance: not airy, not cramped */
}

body.commercial-page .editorial-block{
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  padding: 1.05rem 1rem 1.05rem 1.25rem;
}

body.commercial-page .editorial-block::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: rgba(0,59,92,.28);
}

/* WHO WE SERVE grid */
body.commercial-page .serve-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--comm-grid-gap);
  margin-top: 24px;
}

@media (min-width: 700px){
  body.commercial-page .serve-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  body.commercial-page .serve-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Badge card (commercial-scoped, gallery-icon-card rhythm) */
body.commercial-page .serve-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--rad);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.05rem 1rem;
}

/* Serve cards: icon+title row (matches About/Gallery pattern) */
body.commercial-page .serve-card .card-icon-row{
  margin-bottom: .45rem;
}

body.commercial-page .serve-card .card-icon-row h3,
body.commercial-page .editorial-block .card-icon-row h3{
  margin: 0;
}

/* Normalize ONLY the commercial category badges (keeps all other icons unchanged) */
body.commercial-page img[src*="/images/badges/commercial-badges/"]{
  width: var(--comm-badge);
  height: var(--comm-badge);
  object-fit: contain;
  object-position: center;
  display:block;
  flex: 0 0 auto;
}

/* Tighten title/lede rhythm inside the right column */
body.commercial-page .serve-card h3{
  color: var(--navy);
  font: 700 1.12rem/1.25 Montserrat, sans-serif;
}
body.commercial-page .serve-card p{
  margin: .2rem 0 0;
  color: var(--slate);
  font-size: .95rem;
  line-height: 1.5;
}
body.commercial-page .serve-card ul.plain{
  margin: .65rem 0 0;
  color: var(--ink);
}
body.commercial-page .serve-card ul.plain li{
  margin: .3rem 0;
}


/* Event cleanup & venue reset page: keep venue recovery audience cards balanced as 2x2 on desktop/tablet */
body.commercial-page .serve-grid.serve-grid--event-venues{
  grid-template-columns: 1fr;
}

@media (min-width: 700px){
  body.commercial-page .serve-grid.serve-grid--event-venues{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px){
  body.commercial-page .serve-grid.serve-grid--event-venues{ grid-template-columns: repeat(2, 1fr); }
}

/* Ensure "Beyond Janitorial" uses the same commercial-badge scale inside card headers */
body.commercial-page .card-icon-row > img[src*="/images/badges/commercial-badges/"]{
  width: var(--comm-badge);
  height: var(--comm-badge);
}


/* ===================== FOOTER ===================== */

.footer-top { padding:24px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-bottom { padding:14px 0; color:#9bb3c7; font-size:.9rem; text-align:center; }
.footer-grid { display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:900px) {
  .footer-grid { grid-template-columns:2fr 1fr 1fr; }
  .footer-bottom { text-align:left; }
}

/* ===================== FOCUS / ACCESSIBILITY ===================== */
a:focus, button:focus, .btn:focus {
  outline:3px solid rgba(0,59,92,.32); outline-offset:2px;
}

/* ==========================================================================
   Sticky Side Tab — Call Button
   ========================================================================== */

.side-call-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  background-color: #004a99; /* Coastal Blue */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;

  padding: 15px 10px;
  border-radius: 8px 0 0 8px;

  /* Vertical label */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.04em;

  z-index: 9999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);

  /* Smooth but controlled animation */
  transition:
    background-color 0.25s ease,
    padding 0.25s ease;
}

.side-call-tab:hover,
.side-call-tab:focus-visible {
  background-color: #003366;
  padding-right: 20px;
}

/* Keyboard accessibility */
.side-call-tab:focus-visible {
  outline: 3px solid rgba(0, 74, 153, 0.35);
  outline-offset: 3px;
}

/* Small screens: reduce intrusion but keep CTA visible */
@media (max-width: 480px) {
  .side-call-tab {
    padding: 12px 8px;
    font-size: 0.9em;
  }
}


/* =====================
   Commercial page: trust badges inside cards (Quiet Authority)
   Mirrors About/Gallery badge usage (small, distributed; no big badge strip)
===================== */
body.commercial-page .card-icon-row > img{
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* Commercial page: enforce the same icon+title header unit used on About/Gallery */
body.commercial-page .card-icon-row{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin-bottom:.4rem;
}

/* Allow inline SVG icons (keeps the icon system self-contained when badge images aren't available) */
body.commercial-page .card-icon-row svg{
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: block;
  color: var(--navy);
}


/* =====================
   Residential page: Options section (alternating float-wrap pattern)
   Goal: image floats L/R on desktop; some content wraps beside; remaining clears under.
   Scope: ONLY the .options section on Residential Cleaning page.
===================== */

/* Base (mobile-first): stacked */
.options.options--pattern1 .option-group{
  display: flow-root; /* contain floats when desktop rules activate */
}

.options.options--pattern1 .option-group + .option-group{
  margin-top: 3rem;
}

.options.options--pattern1 .option-group__media{
  width: 100%;
  margin: 0 0 1.25rem 0;
}

.options.options--pattern1 .option-group__media img{
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Ensure the “under-image continuation” always resumes normal full width */
.options.options--pattern1 .option-group__full{
  clear: both;
  margin-top: 1.25rem;
}

/* Cards grid helpers for Options only (sitewide .grid is not assumed) */
.options.options--pattern1 .grid.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Desktop: float-wrap model activates */
@media (min-width: 768px){
  .options.options--pattern1 .option-group__media{
    width: min(44%, 520px);
    margin-bottom: 1rem;
  }

  .options.options--pattern1 .option-group--left-image .option-group__media{
    float: left;
    margin-right: 28px;
  }

  .options.options--pattern1 .option-group--right-image .option-group__media{
    float: right;
    margin-left: 28px;
  }

  /* Side zone: allow two cards to sit cleanly in the beside-image column when space allows */
  .options.options--pattern1 .option-group__side{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Full-width continuation: responsive multi-column without becoming too wide */
  .options.options--pattern1 .option-group__full .grid.cards{
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* FAQ accordion */
.faq-accordion{
  display:grid;
  gap:12px;
  margin-top:1rem;
}

.faq-item{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.faq-item > summary{
  position:relative;
  list-style:none;
  cursor:pointer;
  padding:1rem 3rem 1rem 1.25rem;
  font-family:var(--heading);
  font-size:1.06rem;
  font-weight:700;
  line-height:1.35;
  color:var(--ink);
}

.faq-item > summary::-webkit-details-marker{ display:none; }

.faq-item > summary::after{
  content:"+";
  position:absolute;
  right:1.1rem;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:1.2rem;
  font-weight:700;
}

.faq-item[open] > summary::after{
  content:"−";
}

.faq-item > summary:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:2px;
  border-radius:10px;
}

.faq-answer{
  padding:0 1.25rem 1rem;
}

.faq-answer p{
  margin:0;
}

/* =====================
   WELCOME PAGE (scoped to /welcome/)
   Compact cinematic digital business card scene
===================== */
body.welcome-page{
  --welcome-ink:#eaf3ff;
  --welcome-soft:rgba(215,232,252,.86);
  --welcome-muted:rgba(187,208,233,.78);
  --welcome-line:rgba(174,209,241,.22);
  color:var(--welcome-ink);
  background:
    radial-gradient(1300px 720px at -8% -25%, rgba(56,92,176,.34), transparent 62%),
    radial-gradient(1100px 740px at 102% 8%, rgba(2,146,193,.22), transparent 58%),
    linear-gradient(132deg, #050f1d 0%, #06172a 34%, #072138 57%, #050e1a 100%);
  min-height:100dvh;
}

body.welcome-page a{ color:inherit; }
body.welcome-page .btn:hover{ text-decoration:none; }

body.welcome-page .welcome-scene{
  position:relative;
  min-height:calc(100dvh - var(--nav-h) - 42px);
  display:grid;
  align-items:center;
  isolation:isolate;
  overflow:clip;
  padding:clamp(1.1rem, 2.8vw, 2.2rem) 0 clamp(1.7rem, 3.2vw, 2.6rem);
}

body.welcome-page .welcome-atmosphere{ position:absolute; inset:0; pointer-events:none; z-index:-1; }

body.welcome-page .welcome-glow{
  position:absolute;
  border-radius:999px;
  filter:blur(14px);
  opacity:.85;
  animation:welcomeGlowDrift 26s ease-in-out infinite alternate;
}

body.welcome-page .welcome-glow.glow-a{
  width:clamp(340px, 52vw, 780px);
  height:clamp(300px, 48vw, 700px);
  top:-20%;
  left:-10%;
  background:radial-gradient(circle at 35% 42%, rgba(126,176,255,.38), rgba(35,75,163,.13) 54%, transparent 72%);
}

body.welcome-page .welcome-glow.glow-b{
  width:clamp(320px, 46vw, 680px);
  height:clamp(320px, 48vw, 700px);
  right:-10%;
  bottom:-22%;
  background:radial-gradient(circle at 54% 46%, rgba(0,190,246,.26), rgba(8,58,122,.1) 56%, transparent 72%);
  animation-duration:30s;
  animation-direction:alternate-reverse;
}

body.welcome-page .welcome-grain{
  position:absolute;
  inset:-180px;
  opacity:.18;
  mix-blend-mode:soft-light;
  background-image:radial-gradient(circle at 1px 1px, rgba(220,236,255,.22) 1px, transparent 0);
  background-size:4px 4px;
  animation:welcomeGrainDrift 14s steps(12) infinite;
}

body.welcome-page .welcome-vignette{
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 82% at 50% 40%, transparent 48%, rgba(2,9,17,.52) 100%),
    linear-gradient(180deg, rgba(2,10,17,.16), rgba(2,10,17,.52));
}

body.welcome-page .welcome-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(280px, .95fr);
  gap:clamp(1rem, 3.2vw, 3.2rem);
  align-items:center;
}

body.welcome-page .welcome-primary{
  max-width:620px;
  padding:clamp(.8rem, 1.6vw, 1.4rem) 0;
}

body.welcome-page .welcome-kicker{
  margin:0;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--welcome-muted);
  font:600 .72rem/1.2 Montserrat, sans-serif;
}

body.welcome-page .welcome-primary h1{
  margin:.8rem 0 0;
  max-width:11.2ch;
  color:#f8fbff;
  font:800 clamp(2.15rem, 5.2vw, 4.8rem)/.95 Montserrat, sans-serif;
  letter-spacing:-.03em;
  text-wrap:balance;
}

body.welcome-page .welcome-lead{
  margin:1rem 0 0;
  max-width:45ch;
  color:var(--welcome-soft);
  font-size:clamp(1rem, 1.35vw, 1.18rem);
}

body.welcome-page .welcome-support{
  margin:.65rem 0 0;
  max-width:48ch;
  color:var(--welcome-muted);
}

body.welcome-page .welcome-actions{
  margin-top:1.25rem;
  display:flex;
  flex-wrap:wrap;
  gap:.72rem;
}

body.welcome-page .welcome-actions .btn{
  min-height:48px;
  border-radius:999px;
  padding:.8rem 1.22rem;
  font-weight:700;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.welcome-page .welcome-actions .btn.primary{ box-shadow:0 16px 34px rgba(2,58,110,.36); }

body.welcome-page .welcome-actions .btn.outline{
  border-color:rgba(220,239,255,.45);
  background:rgba(4,18,33,.34);
  color:#f6fbff;
}

body.welcome-page .welcome-actions .btn:hover,
body.welcome-page .welcome-actions .btn:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(2,8,18,.46);
}

body.welcome-page .welcome-direct{
  margin:.95rem 0 0;
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.55rem;
  color:rgba(230,242,255,.88);
  font-weight:600;
}

body.welcome-page .welcome-direct span{ opacity:.68; }

body.welcome-page .welcome-visual{
  position:relative;
  min-height:clamp(360px, 56vh, 640px);
  transform:translateX(clamp(2px, 1vw, 16px));
}

body.welcome-page .welcome-media-slab{
  position:absolute;
  top:clamp(10px, 2.2vh, 24px);
  right:clamp(-8px, 1.2vw, 10px);
  width:min(540px, 92%);
  height:clamp(290px, 55vh, 570px);
  border-radius:38px 10px 42px 16px;
  border:1px solid rgba(203,228,255,.24);
  overflow:clip;
  background:
    linear-gradient(138deg, rgba(8,35,62,.8), rgba(8,24,42,.65) 44%, rgba(4,16,31,.95)),
    radial-gradient(80% 66% at 75% 18%, rgba(124,188,255,.25), transparent 56%),
    radial-gradient(80% 70% at 15% 88%, rgba(0,166,221,.22), transparent 60%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), 0 36px 84px rgba(0,7,18,.56);
  animation:welcomeSlabDrift 18s ease-in-out infinite;
}

body.welcome-page .welcome-media-slab::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 20%, rgba(255,255,255,.09) 50%, transparent 77%);
  transform:translateX(-120%);
  animation:welcomeShimmer 8s ease-in-out infinite;
}

body.welcome-page .welcome-media-slab .slab-highlight{
  position:absolute;
  inset:20% 12% auto auto;
  width:28%;
  height:34%;
  border-radius:24px;
  background:radial-gradient(circle at 30% 30%, rgba(176,220,255,.38), rgba(125,173,247,.08) 65%, transparent 74%);
  filter:blur(1px);
}

body.welcome-page .welcome-card-artifact{
  position:absolute;
  left:clamp(-14px, .6vw, 14px);
  bottom:clamp(22px, 4.8vh, 56px);
  z-index:2;
  width:min(360px, 84%);
  margin:0;
  padding:1.15rem 1.2rem 1rem;
  color:#103452;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.58);
  background:
    linear-gradient(156deg, rgba(243,249,255,.96), rgba(225,240,255,.9)),
    linear-gradient(0deg, rgba(255,255,255,.32), rgba(255,255,255,.32));
  box-shadow:0 26px 58px rgba(0,9,19,.56), 0 0 0 1px rgba(19,61,95,.12);
  backdrop-filter:blur(5px);
  transform-origin:40% 70%;
  animation:welcomeCardFloat 10s ease-in-out infinite;
}

body.welcome-page .welcome-card-artifact:hover{
  transform:translateY(-4px) rotate(-.4deg);
  box-shadow:0 30px 64px rgba(0,9,19,.6), 0 0 0 1px rgba(19,61,95,.14);
}

body.welcome-page .welcome-card-artifact p{ margin:.3rem 0 0; font-weight:600; }

body.welcome-page .welcome-card-artifact .welcome-card-mark{
  margin-top:0;
  padding-bottom:.55rem;
  border-bottom:1px solid rgba(14,56,88,.16);
  font:700 .95rem/1.32 Montserrat, sans-serif;
  letter-spacing:.01em;
}

body.welcome-page .welcome-card-artifact .welcome-card-foot{
  margin-top:.58rem;
  padding-top:.56rem;
  border-top:1px solid rgba(14,56,88,.2);
  font-size:.86rem;
  color:rgba(12,44,74,.74);
}

body.welcome-page .welcome-card-artifact a{
  text-decoration:none;
  border-bottom:1px solid rgba(11,54,89,.3);
}

body.welcome-page .welcome-continuation{
  position:relative;
  margin-top:clamp(-1rem, -2.4vw, -1.8rem);
  padding:0 0 clamp(1.8rem, 4vw, 2.8rem);
}

body.welcome-page .welcome-continuation-grid{
  padding:clamp(1.05rem, 1.6vw, 1.4rem) clamp(1rem, 2vw, 1.6rem);
  border:1px solid var(--welcome-line);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(4,22,41,.72), rgba(3,15,30,.9));
  box-shadow:0 24px 40px rgba(0,7,16,.36);
  display:grid;
  gap:.56rem;
}

body.welcome-page .welcome-continuation-grid p{
  margin:0;
  color:rgba(220,237,255,.9);
}

body.welcome-page .welcome-continuation-contact{
  margin-top:.25rem !important;
  padding-top:.64rem;
  border-top:1px solid rgba(180,208,236,.22);
  font-weight:700;
}

body.welcome-page .welcome-footer{
  padding:0 0 max(1.1rem, env(safe-area-inset-bottom));
}

body.welcome-page .welcome-footer-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.3rem 1rem;
  color:rgba(184,208,235,.78);
  font-size:.92rem;
}

body.welcome-page .welcome-footer-inner p{ margin:0; }

body.welcome-page [data-stage="panel"] [data-stage="item"],
body.welcome-page [data-stage="slab"],
body.welcome-page [data-stage="card"]{ opacity:0; transform:translateY(14px); }

body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]{
  animation:welcomeEnter .78s cubic-bezier(.17,.78,.24,1) forwards;
}

body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(1){ animation-delay:.07s; }
body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(2){ animation-delay:.15s; }
body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(3){ animation-delay:.24s; }
body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(4){ animation-delay:.32s; }
body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(5){ animation-delay:.42s; }
body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"]:nth-child(6){ animation-delay:.5s; }

body.welcome-page.welcome-ready [data-stage="slab"]{
  animation:welcomeEnter .9s cubic-bezier(.16,.8,.24,1) .24s forwards;
}

body.welcome-page.welcome-ready [data-stage="card"]{
  animation:welcomeEnter .96s cubic-bezier(.16,.8,.24,1) .38s forwards, welcomeCardFloat 10s ease-in-out 1.6s infinite;
}

body.welcome-page [data-reveal]{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .68s ease, transform .68s ease;
}

body.welcome-page [data-reveal].is-visible{ opacity:1; transform:none; }

@keyframes welcomeEnter {
  from { opacity:0; transform:translateY(14px); }
  to { opacity:1; transform:none; }
}

@keyframes welcomeGlowDrift {
  from { transform:translate3d(0,0,0) scale(1); }
  to { transform:translate3d(2.5%, 3%, 0) scale(1.09); }
}

@keyframes welcomeGrainDrift {
  from { transform:translate3d(-1%, -1%, 0); }
  to { transform:translate3d(1%, 1%, 0); }
}

@keyframes welcomeSlabDrift {
  0%, 100% { transform:translateY(0) scale(1); }
  50% { transform:translateY(-7px) scale(1.008); }
}

@keyframes welcomeShimmer {
  0%, 55% { transform:translateX(-120%); opacity:0; }
  68% { opacity:.55; }
  82%, 100% { transform:translateX(120%); opacity:0; }
}

@keyframes welcomeCardFloat {
  0%,100% { transform:translateY(0) rotate(-.45deg); }
  50% { transform:translateY(-6px) rotate(-.05deg); }
}

@media (max-width:980px){
  body.welcome-page .welcome-scene{
    min-height:auto;
    padding-top:clamp(1rem, 3.6vw, 1.6rem);
  }

  body.welcome-page .welcome-layout{ grid-template-columns:1fr; gap:.9rem; }

  body.welcome-page .welcome-primary h1{ max-width:13ch; }

  body.welcome-page .welcome-visual{
    min-height:355px;
    max-width:620px;
    transform:none;
  }

  body.welcome-page .welcome-media-slab{
    width:min(560px, 100%);
    height:286px;
    right:0;
  }

  body.welcome-page .welcome-card-artifact{
    left:clamp(8px, 2vw, 18px);
    bottom:8px;
  }

  body.welcome-page .welcome-continuation{ margin-top:.55rem; }
}

@media (max-width:640px){
  body.welcome-page .welcome-scene{ padding-top:max(.9rem, env(safe-area-inset-top)); }

  body.welcome-page .welcome-actions .btn{
    flex:1 1 auto;
    min-width:145px;
    justify-content:center;
  }

  body.welcome-page .welcome-direct{ font-size:.95rem; }

  body.welcome-page .welcome-visual{
    min-height:325px;
    margin-top:.4rem;
  }

  body.welcome-page .welcome-media-slab{
    position:relative;
    width:100%;
    height:244px;
    border-radius:28px 12px 30px 14px;
  }

  body.welcome-page .welcome-card-artifact{
    left:4%;
    width:min(360px, 92%);
    bottom:-24px;
  }

  body.welcome-page .welcome-continuation{
    margin-top:1.5rem;
    padding-bottom:2rem;
  }

  body.welcome-page .welcome-footer-inner{
    flex-direction:column;
    gap:.1rem;
    font-size:.88rem;
  }
}

@media (prefers-reduced-motion: reduce){
  body.welcome-page .welcome-glow,
  body.welcome-page .welcome-grain,
  body.welcome-page .welcome-media-slab,
  body.welcome-page .welcome-media-slab::before,
  body.welcome-page .welcome-card-artifact,
  body.welcome-page.welcome-ready [data-stage="panel"] [data-stage="item"],
  body.welcome-page.welcome-ready [data-stage="slab"],
  body.welcome-page.welcome-ready [data-stage="card"],
  body.welcome-page [data-reveal]{
    animation:none !important;
    transition:none !important;
    opacity:1;
    transform:none;
  }
}


/* FINAL HOMEPAGE SECTION OVERRIDES */
main > .split-hero.home-lifestyle {
  background: var(--white);
}

main > .section.closing {
  background: var(--sand);
}

/* Homepage pill and mobile hero refinements */
.section-kicker,
.standard-preview .kicker {
  width: fit-content;
  max-width: min(100%, 360px);
  font-size: .78rem !important;
  line-height: 1.15 !important;
  padding: 8px 14px;
  letter-spacing: .08em;
  white-space: normal;
  text-align: center;
}

.section.closing .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  .hero-gleam {
    min-height: auto;
  }

  .hero-gleam .stage {
    padding-top: clamp(16px, 5vh, 38px);
    padding-bottom: clamp(28px, 7vh, 64px);
  }
}

@media (max-width: 520px) {
  .section-kicker,
  .standard-preview .kicker {
    max-width: 280px;
    font-size: .72rem !important;
    padding: 7px 12px;
    letter-spacing: .07em;
  }
}
