/* Swell Pool Service — Option1 port.
   Cream editorial look: big black serif display type with an orange italic
   accent, rounded orange pill CTAs, thin black rules, split hero with a
   circular logo badge overlapping the photo. Font substitution: Option1 uses
   self-hosted Fraunces/Manrope (woff2) which do not exist in this repo and
   SPEC forbids CDN fonts — approximated here with system serif/sans stacks
   (see BUILD-NOTES.md "Font substitution decision"). */

:root {
  --cream: #FAF3DF;
  --paper: #FFFCF3;
  --ink: #14181B;
  --muted: #5F625D;
  --orange: #E8541D;
  --orange-dark: #C43F0F;
  --blue: #2E9BD6;
  --blue-deep: #16628C;
  --line: rgba(20, 24, 27, 0.14);
  --white: #FFFFFF;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", ui-serif, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; }

/* the orange italic accent phrase inside H1 (Option1 pattern) */
h1 span { color: var(--orange); font-style: italic; font-weight: 500; display: block; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.inner.narrow { max-width: 820px; }
.block { padding: 88px 0; }

/* ── LOCAL DEV banner (HQ Kit standard) ─────────────────────────────── */
.dev-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
button.btn-primary { cursor: pointer; font-family: var(--font); border: none; }
button.btn-primary:disabled { opacity: 0.65; cursor: default; }

.text-link {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  font-size: 0.9rem;
  font-weight: 800;
}
.text-link:hover { border-bottom-color: var(--orange); color: var(--orange); }

/* ── Header / nav ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 243, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { width: 152px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  position: relative;
}
.nav-links a:not(.nav-phone)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 100%;
  transition: transform 0.18s;
}
.nav-links a:not(.nav-phone):hover::after { transform: scaleX(1); transform-origin: 0; }
.nav-phone { white-space: nowrap; color: var(--orange-dark) !important; }
.nav-cta {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav { gap: 16px; padding: 10px 18px; }
  .logo-img { width: 124px; }
  .nav-cta { display: none; } /* sticky call bar owns the mobile CTA */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; font-size: 1.02rem; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { background: var(--cream); padding: 56px 0 0; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.hero-eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 26px; }
.hero-support { color: #3D403B; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 34em; line-height: 1.7; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-note p { margin: 0; font-size: 0.82rem; line-height: 1.5; }
.hero-note .check {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-photo { position: relative; }
.photo-frame { border-radius: var(--radius); overflow: hidden; background: var(--white); }
.photo-frame picture { display: block; height: 100%; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .photo-frame { aspect-ratio: 4 / 3.4; }
.hero-badge {
  position: absolute;
  top: 28px;
  left: -28px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 6px solid var(--paper);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.hero-badge img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-badge { top: -22px; left: auto; right: 20px; width: 88px; height: 88px; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { align-self: center; }
}

/* ── Trust strip ────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.trust-strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 22px;
}
.trust-strip div:first-child { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.trust-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
}
.trust-strip p { margin: 0; font-size: 0.78rem; font-weight: 800; line-height: 1.35; }

@media (max-width: 899px) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-strip div:first-child { border-left: 0; }
  .trust-strip div:nth-child(3) { border-right: 0; }
  .trust-strip div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .trust-strip div:last-child { grid-column: span 2; }
}
@media (max-width: 599px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .trust-strip div:nth-child(2n) { border-right: 0; }
  .trust-strip div:last-child { grid-column: span 2; justify-content: center; border-bottom: 0; }
}

/* wave divider sits on the body background; the SVG paints the band color */
.wave-divider { line-height: 0; margin-top: -1px; }

/* ── Section heads ──────────────────────────────────────────────────── */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* ── Service cards ──────────────────────────────────────────────────── */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.service-card:hover { border-color: var(--orange); box-shadow: 0 20px 44px rgba(20, 24, 27, 0.1); transform: translateY(-4px); }
.service-topline { display: flex; align-items: center; justify-content: space-between; color: var(--orange); }
.service-topline > span:first-child { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.05rem; }
.service-icon { display: inline-flex; width: 30px; height: 30px; color: var(--orange); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin: 40px 0 12px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.service-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.service-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}
.service-detail span { color: var(--blue); font-size: 0.6rem; transform: translateY(5px); }

@media (max-width: 1023px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .card-grid { grid-template-columns: 1fr; } }

/* ── Plan details ("What's included") ──────────────────────────────── */
.plan-details { background: var(--cream); }
.plan-note { color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin-top: 16px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 32px;
}
.plan-group h3 { font-size: 1.1rem; margin-bottom: 14px; }
.plan-group ul { list-style: none; }
.plan-group li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.plan-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

@media (max-width: 1023px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .plan-grid { grid-template-columns: 1fr; } }

/* ── Split feature ("Why Swell") ────────────────────────────────────── */
.split-feature { background: var(--blue-deep); color: var(--white); }
.split-feature .section-eyebrow { color: var(--cream); }
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.split-copy { align-self: center; padding: 8px clamp(8px, 4vw, 56px); min-width: 0; }
.split-photo { min-width: 0; width: 100%; }
.split-copy h2 { color: var(--white); margin-bottom: 20px; max-width: 620px; }
.split-copy p { margin-bottom: 18px; max-width: 34em; color: #D9F0FF; line-height: 1.75; }
.split-note { font-size: 0.92rem; }
.split-photo { position: relative; }
.split-photo .photo-frame { width: 100%; height: 100%; min-height: 420px; border-radius: 0; }
.photo-label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.photo-left .split-photo { order: -1; }

.process-list { list-style: none; margin: 8px 0 0; }
.process-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.process-list li > span {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}
.process-list h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 4px; }
.process-list p { color: #D9F0FF; margin: 0; font-size: 0.82rem; }

@media (max-width: 899px) {
  .split-inner { grid-template-columns: 1fr; }
  .split-copy { padding: 48px 24px; }
  .split-photo .photo-frame { aspect-ratio: 4 / 3; min-height: 320px; }
  .photo-left .split-photo { order: 0; }
}

/* ── Commercial band ────────────────────────────────────────────────── */
.commercial-section {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}
.commercial-callout {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 24px;
}
.commercial-section h2 { color: var(--white); margin-bottom: 18px; }
.commercial-section p { max-width: 42em; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.78); font-size: 1.04rem; }

/* ── Photo proof ────────────────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.proof-photo .photo-frame { aspect-ratio: 4 / 3; }
.proof-photo figcaption {
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--orange-dark);
}

@media (max-width: 899px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .proof-grid { grid-template-columns: 1fr; } }

/* ── About ──────────────────────────────────────────────────────────── */
.about-section { background: var(--cream); }
.about-section .section-eyebrow { color: var(--orange-dark); }
.about-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.about-section p { margin-bottom: 16px; max-width: 46em; color: #3D403B; line-height: 1.8; }
.about-positioning { font-weight: 700; color: var(--ink) !important; }
.about-brand-line {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  font-style: italic;
  color: var(--orange-dark) !important;
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  line-height: 1.35;
  max-width: 24em;
}
.signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about-team-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); }
.signature span { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; font-weight: 700; }
.signature small { display: block; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; font-weight: 800; margin-top: 4px; }

.about-accents { display: flex; gap: 16px; margin: 30px 0; flex-wrap: wrap; }
.about-accent-photo { width: 160px; }
.about-accent-photo .photo-frame { aspect-ratio: 4 / 3; border-radius: 12px; }
.about-accent-photo figcaption { margin-top: 8px; font-size: 0.74rem; color: var(--muted); font-weight: 600; }

@media (max-width: 599px) {
  .about-accent-photo { width: calc(50% - 8px); }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { background: var(--paper); }
.faq-inner { display: grid; grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr); gap: clamp(32px, 6vw, 90px); }
.faq-heading { align-self: start; }
.faq-heading p:not(.section-eyebrow) { margin: 20px 0 20px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 1.1rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.faq-list details[open] summary i { background: var(--orange); border-color: var(--orange); color: var(--white); transform: rotate(45deg); }
.faq-list details > p { color: var(--muted); max-width: 640px; margin: -4px 0 24px; font-size: 0.92rem; line-height: 1.75; }

@media (max-width: 899px) { .faq-inner { grid-template-columns: 1fr; } }

/* ── Work gallery (real work done — deliberately secondary, small cards) ── */
.work-gallery { background: var(--paper); padding-top: 56px; padding-bottom: 56px; }
.work-gallery .section-head { margin-bottom: 28px; }
.work-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.work-gallery-label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.work-gallery-row { display: flex; gap: 12px; }
.work-gallery-photo { width: 50%; }
.work-gallery-photo .photo-frame { aspect-ratio: 4 / 3; border-radius: 10px; }
.work-gallery-photo figcaption { margin-top: 8px; font-size: 0.72rem; color: var(--muted); }

@media (max-width: 767px) { .work-gallery-grid { grid-template-columns: 1fr; } }

/* ── Contact (also doubles as Option1's final orange "cta-section" band —
   the working /api/lead form lives inside it, restyled to sit on orange) ── */
.contact-section { padding: 100px 0; background: var(--orange); color: var(--white); }
.contact-section .section-eyebrow { color: var(--cream); }
.contact-section .section-head h2 { color: var(--white); }
.contact-section .section-lead { color: #FFF1E9; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
}
.contact-phone-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
}
.contact-phone-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.contact-phone {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.contact-phone:hover { color: var(--cream); }
.contact-phone-note { font-size: 0.94rem; color: rgba(255, 255, 255, 0.85); }

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; }
.form-message { margin-top: 16px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid; font-weight: 600; }
.form-message-success { background: #E4F6E9; color: #14532D; border-color: #15803D; }
.form-message-error { background: #FDE8E4; color: #7F1D1D; border-color: #B91C1C; }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit { width: 100%; }
}

/* ── Rich text (briefing) ───────────────────────────────────────────── */
.rich-text { padding: 40px 0; }
.rich-text h2 { margin-bottom: 16px; }
.rich-text h3 { margin: 20px 0 8px; }
.rich-text p { margin-bottom: 14px; }
.rich-list { margin: 10px 0 10px 22px; }
.rich-list li { margin-bottom: 10px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 24px 28px;
  margin-top: 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-badge { width: 84px; height: 84px; }
.footer-tagline { font-weight: 700; font-size: 1rem; max-width: 20em; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-phone {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-phone:hover { color: var(--orange); }
.footer-email { color: rgba(250, 243, 223, 0.85); text-decoration: none; font-weight: 600; }
.footer-email:hover { text-decoration: underline; }
.footer-social { display: flex; justify-content: flex-end; }
.footer-social a { color: rgba(250, 243, 223, 0.85); display: inline-flex; }
.footer-social a:hover { color: var(--orange); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 243, 223, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(250, 243, 223, 0.7);
}
.footer-bottom a { color: rgba(250, 243, 223, 0.85); }

@media (max-width: 767px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
  .site-footer { padding-bottom: 96px; } /* clear the sticky call bar */
}

/* ── Sticky mobile call bar ─────────────────────────────────────────── */
.sticky-call { display: none; }
@media (max-width: 767px) {
  .sticky-call {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .sticky-call a {
    text-align: center;
    font-weight: 800;
    font-size: 0.96rem;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 999px;
  }
  .sticky-call-phone { background: var(--ink); color: var(--white); }
  .sticky-call-cta { background: var(--orange); color: var(--white); }

  /* Lift the house feedback pill above the sticky call bar (site-side
     override — public/feedback-widget.js itself stays verbatim). */
  .fw-pip { bottom: calc(env(safe-area-inset-bottom, 0px) + 86px) !important; }
}

/* ── Reveal motion (skipped under prefers-reduced-motion via JS) ────── */
.pre-reveal { opacity: 0; transform: translateY(18px); }
.revealed { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal-child] { transition: opacity 0.55s ease, transform 0.55s ease; }
.pre-reveal [data-reveal-child] { opacity: 0; transform: translateY(14px); }
.revealed [data-reveal-child].revealed-child { opacity: 1; transform: none; }
