/* Coastal Valet Trash Services — site design system.
   Tokens and components per docs/brand-brief.md. Flat 2-color brand (navy + red),
   Montserrat for display/UI, Inter for body. No framework, no build step. */

:root {
  --navy: #0B3F8C;
  --navy-deep: #072A5E;
  --navy-ink: #0A1F3F;
  --red: #D7141E;
  --red-hover: #B80F18;
  --red-soft: #FDECEC;
  --wave: #2F8FD6;
  --paper: #FFFFFF;
  --sky: #EEF3FB;
  --sky-2: #DCE6F5;
  --line: #D5DEEC;
  --ink: #16233A;
  --muted: #5A6A85;
  --sand: #F6F1E7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --container: 1200px;
  --gutter: 16px;
  --section-pad: 96px;
  --section-pad-mobile: 64px;
  --card-gap: 24px;

  --shadow-card: 0 1px 2px rgba(10, 31, 63, 0.04), 0 8px 24px rgba(10, 31, 63, 0.06);
  --shadow-lift: 0 2px 4px rgba(10, 31, 63, 0.06), 0 18px 40px rgba(10, 31, 63, 0.16);
  --wave-h: 40px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--navy-deep); margin: 0; }
h1 { font-size: 36px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 65ch; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
  body { font-size: 18px; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--section-pad-mobile) 0; }
@media (min-width: 768px) { section { padding: var(--section-pad) 0; } }

.bg-white { background: var(--paper); }
.bg-sky { background: var(--sky); }
.bg-navy { background: var(--navy-deep); color: #fff; }

/* Section textures: inline SVG + gradients, no image requests. Grain on every band, plus
   a dot grid (white), drawn wave lines (sky) and contour lines with a glow (navy). */
:root {
  --tx-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .16 0 0 0 0 .37 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
  --tx-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='56'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M0 14q30-9 60 0t60 0 60 0 60 0'/%3E%3Cpath d='M0 42q30-9 60 0t60 0 60 0 60 0' stroke-opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  --tx-contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='120'%3E%3Cg fill='none' stroke='%237DB8EE' stroke-width='1.2' stroke-opacity='.16'%3E%3Cpath d='M0 30q45-18 90 0t90 0 90 0 90 0'/%3E%3Cpath d='M0 90q45-18 90 0t90 0 90 0 90 0'/%3E%3C/g%3E%3C/svg%3E");
}
.bg-white {
  background-color: var(--paper);
  background-image: var(--tx-grain), radial-gradient(rgba(11,63,140,.09) 1px, transparent 1.5px);
  background-size: 180px 180px, 24px 24px;
}
.bg-sky {
  background-color: var(--sky);
  background-image: var(--tx-grain), var(--tx-waves), linear-gradient(180deg, #F3F7FD 0%, var(--sky) 55%, #E6EEF9 100%);
  background-size: 180px 180px, 240px 56px, 100% 100%;
}
.bg-navy {
  background-color: var(--navy-deep);
  background-image: var(--tx-grain), radial-gradient(ellipse 60% 70% at 15% 0%, rgba(47,143,214,.28), transparent 70%), radial-gradient(ellipse 50% 60% at 90% 100%, rgba(215,20,30,.12), transparent 70%), var(--tx-contour);
  background-size: 180px 180px, 100% 100%, 100% 100%, 360px 120px;
  background-blend-mode: soft-light, normal, normal, normal;
}
/* Closing call-to-action bands: a waving US flag under a navy wash that is darkest behind the text. */
.bg-flag {
  background-image: var(--tx-grain),
    radial-gradient(ellipse 42% 62% at 50% 50%, rgba(7,42,94,.93) 0%, rgba(7,42,94,.78) 50%, rgba(7,42,94,.38) 100%),
    url("/images/flag-wave.svg");
  background-size: 180px 180px, 100% 100%, cover;
  background-position: 0 0, center, 0% 50%;
  background-blend-mode: soft-light, normal, normal;
}
@media (max-width: 767px) {
  .bg-flag {
    background-image: var(--tx-grain),
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(7,42,94,.92) 0%, rgba(7,42,94,.64) 100%),
      url("/images/flag-wave.svg");
  }
}
/* Wave top edge: the section's own background rises into the band above it in a wave. */
.wave-top {
  position: relative; z-index: 1;
  margin-top: calc(var(--wave-h) * -1);
  padding-top: calc(var(--section-pad-mobile) + var(--wave-h));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C240 2 480 2 720 20s480 18 720 0v20Z'/%3E%3C/svg%3E") top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C240 2 480 2 720 20s480 18 720 0v20Z'/%3E%3C/svg%3E") top / 100% var(--wave-h) no-repeat, linear-gradient(#000 0 0) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
}
@media (min-width: 768px) { .wave-top { padding-top: calc(var(--section-pad) + var(--wave-h)); } }
html.a11y-contrast .bg-white, html.a11y-contrast .bg-sky, html.a11y-contrast .bg-navy { background-image: none; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #C9D6EE; }
.bg-sand { background: var(--sand); }

/* ---------- Eyebrow (rationed — see component usage) ---------- */
.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.bg-navy .eyebrow { color: #FF8A8F; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Long labels wrap on phones instead of pushing the page wider than the screen. */
@media (max-width: 767px) { .btn { white-space: normal; text-align: center; } }
.noi-calc .btn { white-space: normal; text-align: center; }
/* Primary CTAs: a light runs around the 2px border. The fill sits on padding-box and the
   rotating conic gradient on border-box, so the button keeps its size. "Stop motion" and
   reduced-motion leave a plain red border. */
@property --cta-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-primary {
  --cta-fill: var(--red);
  color: #fff;
  background:
    linear-gradient(var(--cta-fill), var(--cta-fill)) padding-box,
    conic-gradient(from var(--cta-angle), var(--red) 0 55%, #FFB3B6 68%, #fff 75%, #7DB8EE 82%, var(--red) 95%) border-box;
  animation: cta-border 3.2s linear infinite;
}
.btn-primary:hover { --cta-fill: var(--red-hover); }
@keyframes cta-border { to { --cta-angle: 360deg; } }
.btn-secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover { background: var(--sky); }
.bg-navy .btn-secondary, .hero .btn-secondary { border-color: #fff; color: #fff; }
.bg-navy .btn-secondary:hover, .hero .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Ribbon badge (signature motif — use sparingly) ---------- */
.ribbon {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}
.ribbon-navy { background: var(--navy); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
/* Only cards that are links lift on hover, so a lift always means "you can click this". */
a.card { transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease; }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--navy); }
.card-grid { display: grid; gap: var(--card-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Icon ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-red { stroke: var(--red); }
.icon-circle {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky); border-radius: 50%;
  margin-bottom: 16px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
@media (min-width: 1024px) { .site-header .container { height: 84px; } }
.site-header .logo { display: flex; align-items: center; height: 58px; }
.site-header .logo img { height: 58px; width: auto; }
@media (min-width: 1024px) { .site-header .logo, .site-header .logo img { height: 68px; } }
.site-nav { display: none; align-items: center; gap: 28px; }
.site-nav a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--ink);
}
.site-nav a:hover { color: var(--navy); }
.site-header .header-actions { display: flex; align-items: center; gap: 12px; }
/* Below desktop the sticky .mobile-cta-bar carries call + quote, so the header is just logo + menu. */
@media (max-width: 1023px) { .site-header .header-actions .btn { display: none !important; } }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px var(--gutter) 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none; color: var(--ink); padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding: 56px 0 72px;
}
@media (min-width: 768px) { .hero { padding: 88px 0 96px; } }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(7,42,94,.55); }
.hero .lede { text-shadow: 0 1px 8px rgba(7,42,94,.7); }
.hero .lede { color: #CFE0F7; font-size: 19px; max-width: 46ch; margin-top: 14px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  opacity: 0; transition: opacity .6s ease;
}
.hero-video.is-playing { opacity: 1; }
.hero-illustrative {
  position: absolute; right: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter)); bottom: 96px; z-index: 3;
  font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
@media (max-width: 767px) { .hero-illustrative { top: 12px; bottom: auto; } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,42,94,.28) 0%, rgba(7,42,94,.62) 100%);
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 90px;
  opacity: 0.6; z-index: 2;
}
.hero-inner { position: relative; z-index: 2; }

/* ---------- Trust row ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--navy-deep); }
.trust-item .icon { width: 20px; height: 20px; }
/* Homepage: the trust row floats as a card over the bottom of the hero. */
.trust-row.trust-float {
  position: relative; z-index: 3; margin-top: -32px;
  background: #fff; border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
  padding: 18px 24px; justify-content: space-around;
}
@media (min-width: 768px) { .trust-row.trust-float { margin-top: -44px; padding: 22px 32px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--card-gap); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-left: 52px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px;
}

/* ---------- Property-type cards ---------- */
.ptype-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; padding: 0; overflow: hidden; }
.ptype-card .ptype-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ptype-card .ptype-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ptype-card h3 { margin-bottom: 6px; }
.ptype-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.ptype-card .ptype-link { margin-top: auto; padding-top: 16px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: var(--navy); }

/* ---------- Photo feature (service-area town cards, page feature images) ---------- */
.photo-card { padding: 0; overflow: hidden; }
.photo-card .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-card .photo-body { padding: 20px 24px; }
.feature-photo { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; margin: 32px 0; }

/* ---------- Wave divider ---------- */
.wave-divider { display: block; width: 100%; height: 36px; }
.wave-divider path { fill: none; stroke: var(--wave); stroke-width: 2; opacity: 0.35; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy-deep);
}
.faq-q .icon { transition: transform .2s ease; }
.faq-item[open] .faq-q .icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Before/after gallery (placeholder-safe) ---------- */
.ba-grid { display: grid; gap: var(--card-gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }
.ba-pair { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ba-pair .ba-slot { height: 160px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ba-pair .ba-before { background: repeating-linear-gradient(135deg, #DCE6F5, #DCE6F5 10px, #EEF3FB 10px, #EEF3FB 20px); color: var(--muted); }
.ba-pair .ba-after { background: var(--sky); color: var(--navy); }
.ba-pair .ba-slot.ba-photo { position: relative; display: block; height: auto; aspect-ratio: 3 / 2; background: var(--sky-2); }
.ba-pair .ba-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-pair .ba-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 31, 63, 0.82); color: #fff; font-size: 11px; line-height: 1.4; }
.ba-pair .ba-after .ba-tag { background: var(--navy); }
.ba-pair .ba-caption { padding: 14px 16px; font-size: 14px; color: var(--muted); }

/* ---------- Service-area tag grid ---------- */
.town-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.town-tag {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px;
  border: 1px solid var(--sky-2); background: var(--sky); color: var(--navy-deep);
  border-radius: 20px; padding: 8px 18px; text-decoration: none;
}
.town-tag.base { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Request tiles ---------- */
.request-tile { text-align: center; }
.request-tile .icon-circle { margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--navy-deep); }
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
.field .hint { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #AFC3E6; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #AFC3E6; text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-logo img { display: block; height: 96px; width: auto; margin-bottom: 16px; }
.footer-google { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }
.footer-grid .gbp-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-grid .gbp-link:hover { text-decoration: underline; }
.g-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.footer-grid .review-cta { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--navy-ink); font-weight: 700; font-size: 14px; }
.footer-grid .review-cta:hover { background: #FFF4D6; color: var(--navy-ink); }
.footer-grid .review-cta:focus-visible, .footer-grid .gbp-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fb-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #1877F2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
.fg-credit { display: flex; justify-content: center; }
.fg-credit a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #7E93B8; text-decoration: none; transition: color .2s; }
.fg-credit a:hover { color: #fff; }
.fg-credit img { height: 20px; width: auto; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(10,31,63,0.08);
}
.mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.mobile-cta-bar .call { background: var(--navy); color: #fff; }
.mobile-cta-bar .quote { background: var(--red); color: #fff; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }
body.has-mobile-cta { padding-bottom: 60px; }
@media (min-width: 1024px) { body.has-mobile-cta { padding-bottom: 0; } }

/* ---------- NOI calculator (apartments page) ---------- */
.noi-calc { display: grid; gap: var(--card-gap); grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 768px) { .noi-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.noi-calc h3 { margin-bottom: 16px; }
.noi-field { margin-bottom: 16px; }
.noi-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.noi-field input, .noi-field select {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: inherit; background: #fff;
}
.noi-field input:focus-visible, .noi-field select:focus-visible { outline: 3px solid rgba(11,63,140,.35); border-color: var(--navy); }
.noi-help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.noi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.noi-row span { color: var(--muted); }
.noi-row strong { font-family: 'Montserrat', sans-serif; white-space: nowrap; }
.noi-row--total { border-bottom: 2px solid var(--navy); font-size: 18px; }
.noi-row--value { border-bottom: none; font-size: 20px; padding-top: 14px; }
.noi-row--value strong { color: var(--navy-deep); }
#noi-calculator.is-negative .noi-row--total strong,
#noi-calculator.is-negative .noi-row--value strong { color: var(--red); }
.noi-disclaimer { color: var(--muted); font-size: 13px; margin: 16px 0; }

/* ---------- Pull quote (founder voice, about page) ---------- */
.pull-quote {
  max-width: 680px; margin: 28px auto 0; padding: 4px 0 4px 24px;
  border-left: 4px solid var(--red); text-align: left;
}
.pull-quote p { font-style: italic; font-size: 19px; line-height: 1.5; color: var(--navy-deep); margin: 0 0 10px; }
.pull-quote cite { font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.max-w-measure { max-width: 60ch; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Founder card (about page) ---------- */
.founder-card { max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .founder-card { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.founder-photo img { width: 100%; max-width: 280px; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); display: block; margin: 0 auto; }
.founder-reel video { width: 100%; max-width: 280px; aspect-ratio: 9 / 16; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); display: block; margin: 0 auto; background: #072A5E; object-fit: cover; }

/* ---------- Service-area map (service areas page) ---------- */
.service-map { margin-top: 56px; }
.service-map__lede { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.map-embed {
  margin-top: 24px; max-width: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); background: var(--sky);
}
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (min-width: 768px) { .map-embed iframe { height: 400px; } }
.service-map__link { margin-top: 12px; font-size: 15px; }
.service-map__link a { color: var(--navy); font-weight: 600; }

/* ---------- Legal pages ---------- */
@media (min-width: 768px) { .hero.hero-compact { padding: 72px 0 88px; } }
.legal { max-width: 760px; }
.legal-updated { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--navy); }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-legal a { font-size: 13px; color: #AFC3E6; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Accessibility widget (public/scripts/a11y.js) ---------- */
.a11y-widget { position: fixed; left: 16px; bottom: 76px; z-index: 250; }
@media (min-width: 1024px) { .a11y-widget { bottom: 20px; } }
.a11y-toggle {
  display: inline-flex; align-items: center; gap: 0; height: 48px; min-width: 48px; padding: 0 12px;
  border: 2px solid #fff; border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer;
  font: 600 14px 'Montserrat', sans-serif; box-shadow: 0 6px 18px rgba(10,31,63,.28);
}
.a11y-toggle svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.a11y-toggle svg circle { fill: #fff; stroke: none; }
.a11y-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (min-width: 1024px) { .a11y-toggle { gap: 8px; padding: 0 16px 0 12px; } .a11y-toggle span { position: static; width: auto; height: auto; clip: auto; } }
.a11y-toggle:hover { background: var(--navy-deep); }
.a11y-toggle:focus-visible, .a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.a11y-panel {
  position: absolute; left: 0; bottom: 58px; width: 260px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(10,31,63,.22);
  display: flex; flex-direction: column; gap: 8px;
}
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 4px; font: 700 15px 'Montserrat', sans-serif; color: var(--navy-deep); }
.a11y-option {
  text-align: left; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: 500 15px 'Inter', sans-serif; cursor: pointer;
}
.a11y-option[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.a11y-reset { border: 0; background: none; padding: 6px 0; color: var(--red); font: 600 14px 'Inter', sans-serif; cursor: pointer; text-decoration: underline; }
.a11y-more { font-size: 13px; color: var(--navy); }

/* Option modes, set as classes on <html> */
html.a11y-text-1 main, html.a11y-text-1 .site-footer { zoom: 1.15; }
html.a11y-text-2 main, html.a11y-text-2 .site-footer { zoom: 1.3; }
/* Fixed bars inside main (estimator price bar) would stretch past the viewport if zoomed; undo it. */
html.a11y-text-1 .est__bar { zoom: calc(1 / 1.15); }
html.a11y-text-2 .est__bar { zoom: calc(1 / 1.3); }
/* The estimator's option grid can't get narrower than a 1.22x phone screen. */
@media (max-width: 480px) {
  html.a11y-text-2 main, html.a11y-text-2 .site-footer { zoom: 1.22; }
  html.a11y-text-2 .est__bar { zoom: calc(1 / 1.22); }
}
@media (max-width: 400px) {
  html.a11y-text-2 main, html.a11y-text-2 .site-footer { zoom: 1.15; }
  html.a11y-text-2 .est__bar { zoom: calc(1 / 1.15); }
}
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-contrast { --ink: #000; --muted: #1F2937; --line: #6B7A90; }
html.a11y-contrast .hero-overlay { background: rgba(4,20,46,.82); }
html.a11y-contrast .hero .lede { color: #fff; }
html.a11y-contrast .site-footer, html.a11y-contrast .footer-grid a, html.a11y-contrast .footer-legal a, html.a11y-contrast .site-footer p { color: #fff !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .hero-video { display: none; }

/* ---------- Owner guides (blog) ---------- */
.post-kicker { font-size: 14px; font-weight: 600; color: #DCE8F8; margin: 0 0 10px; }
.post-kicker a { color: #fff; }
.post h2 { margin-top: 44px; }
.post-answer { background: var(--sky); border-left: 4px solid var(--navy); border-radius: var(--radius-md); padding: 20px 22px; }
.post-answer h2 { margin-top: 0; }
.post-answer p:last-child { margin-bottom: 0; }
.post-cta { background: var(--sky); border-radius: var(--radius-md); padding: 24px; margin: 40px 0; }
.post-cta h2 { margin-top: 0; }
.post-faq { margin-top: 8px; }
.post-sources { font-size: 15px; }
.post-note { font-size: 14px; color: var(--muted); margin-top: 24px; }
.pref-source { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.footer-grid .pref-source { color: #fff; }
.pref-source:hover { background: rgba(255,255,255,0.08); }
.pref-source:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pref-source svg { flex: none; background: #fff; border-radius: 50%; padding: 2px; }
.post-pref-source { border: 1px solid var(--line, #DCE3EE); border-radius: var(--radius-md); padding: 20px 22px; margin-top: 32px; }
.post-pref-source p { margin-top: 0; }
.pref-source--light { color: var(--navy-ink); border-color: var(--navy-ink); background: #fff; }
.pref-source--light:hover { background: var(--sky); }
.post-list { display: grid; gap: 20px; max-width: 760px; }
.post-card { display: block; text-decoration: none; color: inherit; }
.post-card h2 { font-size: 22px; margin: 6px 0 10px; }
.post-card p { color: var(--muted); }
.post-card-meta { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0; }
.post-card-more { font-weight: 600; color: var(--navy); }
.post-card:hover h2, .post-card:focus-visible h2 { text-decoration: underline; }
.post sup.cite { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.post sup.cite a { color: var(--navy); text-decoration: none; font-weight: 600; }
.post sup.cite a:hover, .post sup.cite a:focus-visible { text-decoration: underline; }
.post-sources li:target { background: var(--sky); border-radius: 6px; }
ol.post-sources { padding-left: 26px; }

/* ---------- Site notices (public/scripts/notices.js) ----------
   One dock, bottom-right: the Airbnb fly-in stacks above the privacy notice.
   Phones: above the 60px call/quote bar and right of the accessibility button (bottom-left). */
.cv-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 240;
  width: min(380px, calc(100vw - 40px));
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  pointer-events: none;
}
.cv-dock > * { pointer-events: auto; }
@media (max-width: 1023px) {
  .cv-dock { right: 12px; left: 76px; bottom: 76px; width: auto; max-width: 380px; margin-left: auto; }
}

.cv-flyin {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 44px 16px 16px; border-radius: var(--radius-lg);
  background: var(--navy-ink); color: #fff; border-left: 4px solid var(--red);
  box-shadow: 0 18px 48px rgba(10,31,63,.38), 0 2px 6px rgba(10,31,63,.2);
  transform: translateX(calc(100% + 40px)); opacity: 0;
  transition: transform .6s cubic-bezier(.2,.9,.25,1), opacity .35s ease;
}
.cv-flyin.is-in { transform: none; opacity: 1; }
.cv-flyin__date {
  flex: none; width: 54px; border-radius: var(--radius-sm); overflow: hidden; text-align: center;
  background: #fff; color: var(--navy-ink); box-shadow: 0 3px 0 rgba(255,255,255,.18);
}
.cv-flyin__date span { display: block; padding: 3px 0 2px; background: var(--red); color: #fff; font: 700 11px/1.2 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cv-flyin__date strong { display: block; padding: 3px 0 5px; font: 800 24px/1 'Montserrat', sans-serif; }
.cv-flyin__body { min-width: 0; }
.cv-flyin__kicker { margin: 0 0 2px; font: 600 12px/1.3 'Inter', sans-serif; color: #AFC3E6; }
.cv-flyin__title { margin: 0 0 6px; font: 800 17px/1.25 'Montserrat', sans-serif; color: #fff; }
.cv-flyin__text { margin: 0 0 10px; font: 400 14px/1.45 'Inter', sans-serif; color: #DCE5F5; }
.cv-flyin__more {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--red); color: #fff; text-decoration: none; font: 700 14px 'Montserrat', sans-serif;
}
.cv-flyin__more:hover { background: var(--red-hover); color: #fff; }
.cv-flyin__close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.cv-flyin__close:hover { background: rgba(255,255,255,.12); }
.cv-flyin__close svg, .cv-privacy__close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }

.cv-privacy {
  padding: 14px 16px; border-radius: var(--radius-md); background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(10,31,63,.18);
  transform: translateY(16px); opacity: 0; transition: transform .45s ease, opacity .35s ease;
}
.cv-privacy.is-in { transform: none; opacity: 1; }
.cv-privacy__text { margin: 0 0 10px; font: 400 13.5px/1.45 'Inter', sans-serif; }
.cv-privacy__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-privacy__link { font: 600 13.5px 'Inter', sans-serif; color: var(--navy); }
.cv-privacy__ok {
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--navy); color: #fff; font: 700 14px 'Montserrat', sans-serif;
}
.cv-privacy__ok:hover { background: var(--navy-deep); }
.cv-dock a:focus-visible, .cv-dock button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cv-flyin a:focus-visible, .cv-flyin button:focus-visible { outline-color: #fff; }

@media (max-width: 1023px) {
  .cv-flyin { padding: 12px 40px 12px 12px; gap: 10px; }
  .cv-flyin__date { width: 44px; }
  .cv-flyin__date strong { font-size: 19px; }
  .cv-flyin__title { font-size: 15px; margin-bottom: 4px; }
  .cv-flyin__text { font-size: 13px; margin-bottom: 8px; }
  .cv-flyin__more { min-height: 36px; padding: 6px 14px; font-size: 13px; }
  .cv-privacy { padding: 12px; }
  .cv-privacy__text { font-size: 12.5px; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cv-flyin, .cv-privacy { transform: none; transition: opacity .2s ease; } }
html.a11y-motion .cv-flyin, html.a11y-motion .cv-privacy { transform: none; transition: opacity .2s ease; }
@media print { .cv-dock { display: none; } }
