/* ✨ Coastal Exteriors — COMMERCIAL niche landing pages (Realtors, Property
   Managers, Storefronts, Builders) + the /commercial hub.
   Shares the homepage design system (same nav, type, colors, tint) so every
   commercial page feels like one site, plus a few conversion components
   (pain grid, stat row, process steps, niche cards).
   Pairs with assets/commercial.v1.js (nav + FAQ), assets/service-extras.v2.css
   (testimonial / guarantee badge / bundle / sticky bar) and quote-modal.v1.*.
   ⚠️ assets/ is cached immutable for 1 year — if you change this file, rename it
   (v1 → v2) and update the <link> on every commercial page. */

:root {
  --bg: #FFFFFF; --bg-card: #FBF3EA; --ink: #2A1F14; --ink-muted: #6B5840;
  --ink-faint: #9A8470; --teal: #46697b; --teal-hi: #527589;
  --warn: #B4622F; --border: #E8DDD0; --white: #FAFAF8; --sage: #9A8470;
  --shadow-card: 0 1px 3px rgba(42,31,20,0.06), 0 4px 16px rgba(42,31,20,0.04);
  --shadow-lift: 0 4px 24px rgba(42,31,20,0.10);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1180px; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR — identical to the homepage / service pages (logo +
   dropdowns + mobile hamburger). Keeps the whole site in sync.
═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 80px; display: flex; align-items: center;
  background: rgba(251,243,234,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,210,190,0.8);
}
.nav__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; width: 100%; padding: 0 40px;
}
.nav__logo { grid-column: 1; justify-self: start; }
.nav__links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 36px; list-style: none; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink-muted); transition: color 0.2s; }
.nav__link:hover { color: var(--ink); }
.nav__cta {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 700; border-radius: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity 0.2s, transform 0.15s;
}
.nav__cta:hover { opacity: 0.82; transform: translateY(-1px); }
.nav__hamburger { grid-column: 3; justify-self: end; display: none; flex-direction: column; gap: 5px; width: 24px; cursor: pointer; }
.nav__hamburger span { display: block; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav__mobile-cta-wrap { display: none; }
.nav__dropdown { position: relative; }
.nav__dropdown-toggle { display: inline-flex; align-items: center; gap: 7px; }
.nav__dropdown-caret {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transform-origin: 65% 65%;
  transition: transform 0.25s var(--ease-out);
}
.nav__dropdown:hover .nav__dropdown-caret,
.nav__dropdown.open .nav__dropdown-caret { transform: rotate(225deg); }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; list-style: none;
  min-width: 248px; padding: 10px 0;
  background: rgba(251,243,234,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220,210,190,0.8); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(42,31,20,0.13);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav__dropdown-menu::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: block; padding: 11px 24px;
  font-size: 14px; color: var(--ink-muted); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav__dropdown-item:hover { color: var(--ink); background-color: rgba(255,145,60,0.10); }
.nav__dropdown-item[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav__logo { min-width: 0; }
  .nav__logo > div { width: 200px !important; height: 48px !important; margin-left: 0 !important; }
  .nav__cta { display: none; }
  .nav.open .nav__links {
    display: flex; flex-direction: column;
    justify-self: stretch; align-items: stretch; text-align: left;
    position: absolute; top: 80px; left: 0; right: 0;
    background: #F0E8DC;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 20px 20px 28px; gap: 0;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.open .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav.open .nav__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav__hamburger span:nth-child(2) { opacity: 0; }
  .nav.open .nav__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav.open .nav__mobile-cta-wrap { display: block; padding-top: 20px; border-bottom: none; }
  .nav__mobile-cta {
    display: flex; width: 100%; justify-content: center; align-items: center; height: 48px;
    background: var(--ink); color: var(--white); border-radius: 4px;
    font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  }
  .nav__dropdown-menu {
    position: static; display: none;
    min-width: 0; padding: 0 0 4px 18px;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: none; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; transition: none;
  }
  .nav__dropdown-menu::before { display: none; }
  .nav__dropdown.open .nav__dropdown-menu { display: block; transform: none; }
  .nav.open .nav__dropdown-item { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav.open .nav__dropdown-menu li:last-child .nav__dropdown-item { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   HERO — bold teal hero for the commercial niches (on-brand,
   blue-forward, distinct from the residential service pages).
═══════════════════════════════════════════════════════════ */
.hero { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 92px 0; text-align: center; }
.hero--teal {
  background: var(--teal); border-bottom: none; position: relative; overflow: hidden;
}
.hero--teal::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 18% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(0,0,0,0.16), transparent 58%);
}
.hero__content { position: relative; z-index: 2; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.hero--teal .eyebrow { color: rgba(255,255,255,0.72); }
h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 70px); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 22px; }
.hero--teal h1 { color: #fff; }
.hero p.lead { max-width: 660px; margin: 0 auto 36px; color: var(--ink-muted); font-size: clamp(17px, 2vw, 20px); font-weight: 400; }
.hero--teal p.lead { color: rgba(255,255,255,0.9); }
.hero__cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { margin-top: 18px; font-size: 12px; letter-spacing: 0.05em; color: var(--ink-faint); }
.hero--teal .hero__trust { color: rgba(255,255,255,0.66); }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); padding: 0 34px; height: 54px; border-radius: 4px; font-weight: 600; font-size: 15px; letter-spacing: 0.05em; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }
.hero--teal .btn { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(42,31,20,0.25); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); opacity: 1; }
.hero--teal .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--call svg { margin-right: 9px; }

/* hero proof bar — social proof sits directly under the hero CTA, above the fold */
.proofbar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 9px 22px; margin-top: 26px;
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
}
.hero--teal .proofbar { color: rgba(255,255,255,0.92); }
.proofbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.proofbar__item svg { flex-shrink: 0; opacity: 0.9; }
.proofbar__stars { color: #F2C14E; letter-spacing: 1px; font-size: 14px; }
@media (max-width: 520px) { .proofbar { gap: 7px 14px; font-size: 12.5px; } }

/* thin trust strip (used just under the hero on dark→light transition if needed) */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  padding: 22px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS / TYPE
═══════════════════════════════════════════════════════════ */
.section { padding: 84px 0; }
.section--tight { padding-top: 0; }
.section__head { max-width: 720px; }
.section__head--center { margin: 0 auto; text-align: center; }
h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 18px; }
.section p { color: var(--ink-muted); max-width: 720px; }
.section__head--center p { margin-left: auto; margin-right: auto; }
.section p + p { margin-top: 14px; }
.lede { font-size: clamp(18px, 2.2vw, 23px); font-weight: 300; line-height: 1.55; color: var(--ink-muted); max-width: 780px; }
.lede strong { color: var(--ink); font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 10px; box-shadow: var(--shadow-lift); height: auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } }

ul.checks { list-style: none; margin-top: 22px; color: var(--ink-muted); }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; }
ul.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.band ul.checks li { color: rgba(255,255,255,0.9); }
.band ul.checks li::before { color: #fff; }

/* value / "what's included" cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 48px; margin-top: 36px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { border-top: 1px solid var(--border); padding: 26px 0 12px; }
.card__icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 16px; }
.card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-muted); }
@media (max-width: 820px) {
  .cards, .cards--2 { grid-template-columns: 1fr 1fr; gap: 4px 28px; }
  .card { padding: 18px 0 8px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* pain points — the niche's real frustrations, stated plainly */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 44px; margin-top: 36px; }
.pain-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .pain-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--border); padding: 22px 0 8px; }
.pain-card__mark {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(180,98,47,0.12); color: var(--warn); font-weight: 800; font-size: 16px; line-height: 1;
}
.pain-card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pain-card p { font-size: 15px; color: var(--ink-muted); }

/* big proof numbers (drop inside a .band for white-on-teal) */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; gap: 28px 18px; } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-serif); font-weight: 300; font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--ink); }
.stat__label { margin-top: 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.band .stat__num { color: #fff; }
.band .stat__label { color: rgba(255,255,255,0.82); }

/* numbered process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 46px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-muted); }

/* 👻 ghost wordmark — giant Coastal mark rising from the base of the teal hero */
.hero--teal { position: relative; overflow: hidden; }
.hero--teal::before {
  content: ''; position: absolute; left: -4%; right: -4%; bottom: -8%; height: 46%;
  background: url('logo-white.png') center bottom / contain no-repeat;
  opacity: 0.045; pointer-events: none;
}

/* 🪧 footer brandmark — giant wordmark rises as the footer enters view */
.footer__brandmark { overflow: hidden; padding: 64px 24px 4px; }
.footer__brandmark-img {
  width: min(86vw, 1040px); aspect-ratio: 798 / 174; margin: 0 auto;
  background: url('assets/logo-trans.png') center/contain no-repeat;
  opacity: 0.9;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
.footer__brandmark-img {
  animation: brandmark-rise both;
  animation-timeline: view();
  animation-range: entry 5% entry 60%;
}
@keyframes brandmark-rise {
  from { opacity: 0; transform: translateY(46%); }
  to   { opacity: 0.9; transform: translateY(0); }
}
  }
}
@media (max-width: 768px) { .footer__brandmark { padding: 44px 20px 0; } }

/* teal band */
.band { background: var(--teal); color: var(--white); }
.band h2, .band p { color: var(--white); }
.band p { color: rgba(255,255,255,0.85); }
.band .btn { background: var(--white); color: var(--ink); }
.band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.band .btn--ghost:hover { border-color: #fff; }

/* niche cards (the /commercial hub) */
.niche-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 52px; margin-top: 40px; }
@media (max-width: 760px) { .niche-grid { grid-template-columns: 1fr; } }
.niche-card { display: block; border-top: 1px solid var(--border); padding: 30px 0 16px; }
.niche-card:hover h3 { color: var(--teal); }
.niche-card__eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 10px; }
.niche-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 27px; margin-bottom: 10px; }
.niche-card p { font-size: 15px; color: var(--ink-muted); margin-bottom: 18px; }
.niche-card__link { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.niche-card:hover .niche-card__link { gap: 12px; }

/* FAQ accordion — matches the homepage plus-sign dropdown */
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-of-type { border-top: 1px solid var(--border); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 0;
  font-family: var(--font-serif); font-size: clamp(18px, 2vw, 22px); font-weight: 400;
  color: var(--ink); cursor: pointer; list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+'; font-family: var(--font-sans); font-size: 22px; font-weight: 300;
  color: var(--ink-faint); flex-shrink: 0;
  transition: transform 0.25s ease; line-height: 1;
}
.faq__item.is-open > .faq__question::after { transform: rotate(45deg); }
.faq__answer-wrapper { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq__answer { padding-bottom: 28px; max-width: 700px; font-size: 16px; line-height: 1.7; color: var(--ink-muted); }

/* footer (full grid — same as homepage) */
.footer { background-color: var(--bg-card); color: var(--ink); padding: 64px 0 40px; border-top: 1px solid var(--border); font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.footer__logo {
  font-family: var(--font-serif); font-size: 24px; font-weight: 300;
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.footer__tagline { font-size: 14px; font-weight: 400; color: var(--ink-muted); line-height: 1.6; max-width: 280px; }
.footer__col-title {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-size: 15px; font-weight: 400; color: var(--ink-muted); transition: color 0.2s; }
.footer__link:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-size: 13px; color: var(--ink-faint); }
/* 🤖 #G-AI — footer fine print (quotable summary, identical site-wide) */
.footer__fineprint {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.7; color: var(--ink-faint);
}
.footer__fineprint a { text-decoration: underline; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:first-child { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* phone rhythm */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 66px; }
}
/* phone — big, full-width, thumb-friendly CTAs + tighter hero */
@media (max-width: 560px) {
  h1 { font-size: clamp(33px, 8.6vw, 40px); }
  .hero p.lead { font-size: 16.5px; }
  .hero__cta-row { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .hero__cta-row .btn { width: 100%; max-width: 360px; height: 56px; }
  .proofbar { margin-top: 22px; row-gap: 8px; }
  .btn { padding: 0 22px; }
  .testimonial-feature__quote { font-size: 19px; }
}

/* 🟠 light orange filter over the whole site (matches every other page) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999;
  background: rgba(255, 145, 60, 0.15);
  mix-blend-mode: multiply; pointer-events: none;
}
html, body { overflow-x: hidden; overflow-x: clip; }

/* ═══════════════════════════════════════════════════════════
   SCROLL-REVEAL "EXPERIENCE" — every block slides/fades into view
   as it enters the viewport, staggered so each niche's argument
   unfolds beat by beat. commercial.v1.js sets <html class="js">
   early (flash-free hide) and adds .is-in per element on scroll.
   • No JS  → html has no .js class → everything is shown normally.
   • Reduced motion → this whole block is skipped → shown normally.
   The selector list here MUST mirror the groups in commercial.v1.js.
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__content > *,
  html.js .section__head > *,
  html.js .lede,
  html.js .pain-grid > .pain-card,
  html.js .cards > .card,
  html.js .steps > .step,
  html.js .stat-row > .stat,
  html.js .niche-grid > .niche-card,
  html.js .testimonial-feature,
  html.js .band .container > h2,
  html.js .band .container > p,
  html.js .band .container > .btn {
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
  }
  /* accents that pop in with a soft scale instead of a straight rise */
  html.js .stat-row > .stat,
  html.js .niche-grid > .niche-card,
  html.js .testimonial-feature { transform: translateY(22px) scale(0.95); }
  /* revealed */
  html.js .is-in { opacity: 1 !important; transform: none !important; }
}
