/* ==========================================================================
   craft.css — the design system for the public site.
   Loaded after brand.css, which owns the palette and the hero bubbles.
   Replaces the old inline <style> block and the Tailwind CDN build.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
:target { scroll-margin-top: 7rem; }
[id] { scroll-margin-top: 7rem; }
[hidden] { display: none !important; }

/* --- 2. Tokens ----------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --muted: #8fa3b5;
  --danger: #d92d20;

  /* Warm-tinted elevation reads softer than neutral black shadow. */
  --shadow-xs: 0 1px 2px rgba(20, 45, 67, .05);
  --shadow-sm: 0 2px 8px -2px rgba(20, 45, 67, .08), 0 1px 3px rgba(20, 45, 67, .04);
  --shadow-md: 0 14px 30px -18px rgba(20, 45, 67, .26), 0 2px 8px -4px rgba(20, 45, 67, .08);
  --shadow-lg: 0 34px 60px -32px rgba(20, 45, 67, .34), 0 6px 18px -10px rgba(20, 45, 67, .1);
  --shadow-pink: 0 16px 34px -18px rgba(190, 36, 107, .5);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --gutter: clamp(1.15rem, 4vw, 2rem);
  --measure: 62ch;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 3. Base type -------------------------------------------------------- */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}
.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.025em;
}
/* Larger display sizes want tighter tracking to stay optically even. */
h1, h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.035em; line-height: 1.08; font-weight: 800; }
h3, h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--pink-soft); color: var(--pink-dark); }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 4. Utility shim -----------------------------------------------------
   The quote funnel (app.js) renders a fixed set of utility classes. These are
   the only ones it uses, so the 3.8MB Tailwind CDN is no longer loaded.
   -------------------------------------------------------------------------- */
.grid { display: grid; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.text-xs { font-size: .75rem; line-height: 1.5; }
.text-sm { font-size: .875rem; line-height: 1.55; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: .05em; }
.underline { text-decoration: underline; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Framed media: the <picture> wrapper has to fill the frame so the <img>
   inside it can be object-fit against a fixed aspect ratio. */
.ba-panel picture { display: block; width: 100%; height: 100%; }

/* --- 5. Layout primitives ------------------------------------------------ */
.container-x {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 880px; }
.section {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--tight { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tint { background: var(--bg-soft); }
.section--pink { background: var(--pink-tint); }
.rule-top { border-top: 1px solid var(--line); }

/* Section heading block: eyebrow + title + optional lede. */
.s-head { max-width: 46rem; }
.s-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .775rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-strong);
}
.eyebrow::before {
  content: ''; width: 1.75rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--accent));
}
.s-head--center .eyebrow::before { display: none; }
.s-title {
  margin-top: .9rem;
  font-size: clamp(1.85rem, 1.1rem + 2.7vw, 3.1rem);
  text-wrap: balance;
}
.s-lede {
  margin-top: 1.1rem;
  font-size: clamp(1rem, .96rem + .28vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.s-head--center .s-lede { margin-inline: auto; }

/* --- 6. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn svg { flex: 0 0 auto; transition: transform .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary { background: var(--pink-strong); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(158, 25, 85, .62); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #d8e3ed; box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--accent-soft); border-color: #b9dcf2; color: var(--accent-deep); transform: translateY(-2px); }

.btn-blue { background: var(--accent); color: #fff; box-shadow: 0 16px 34px -18px rgba(8, 123, 193, .6); }
.btn-blue:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--pink-tint); color: var(--pink-dark); transform: translateY(-2px); }

.btn-outline-light { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

.btn-lg { min-height: 52px; padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-xl { min-height: 58px; padding: 1.15rem 2.15rem; font-size: 1.08rem; }
.btn-compact { min-height: 42px; padding: .6rem 1.15rem; font-size: .875rem; }
.btn-block { width: 100%; }
@media (min-width: 640px) { .btn-auto { width: auto; } }

/* Text link with a travelling underline. */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--accent-dark);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, gap .2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .65rem; }

/* --- 7. Header ----------------------------------------------------------- */
.top-bar {
  background: var(--pink-tint);
  font-size: .8rem;
  color: var(--ink-soft);
  border-bottom: 1px solid #f7e2ec;
}
.top-bar .container-x {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .45rem;
}
.top-bar a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--pink-strong); }
.top-bar a:hover { color: var(--pink-dark); }
.top-bar-links { display: flex; align-items: center; gap: 1.1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -14px rgba(20, 45, 67, .28);
}
.header-layout {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: .5rem;
}
.brand-link { display: block; flex: 0 1 360px; min-width: 0; border-radius: 10px; }
.brand-logo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 1.9rem; }
.desktop-nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .925rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  border-radius: 2px; background: var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.desktop-nav a:hover { color: var(--pink-strong); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  transition: background-color .2s ease, transform .2s var(--ease);
}
.icon-btn:hover { background: #c9e9fb; transform: translateY(-2px); }

@media (max-width: 1023px) {
  .header-layout { justify-content: space-between; gap: .75rem; }
  .brand-link { flex: 0 1 260px; }
  .desktop-nav { display: none; }
}
/* Below the desktop nav the tagline is dropped so the two numbers stay on one line. */
@media (max-width: 767px) {
  .top-bar-note { display: none; }
  .top-bar .container-x { justify-content: center; }
  .top-bar-links { gap: 1.25rem; }
}
@media (max-width: 479px) {
  .brand-link { flex: 1 1 auto; max-width: 200px; }
  .top-bar { font-size: .74rem; }
  .top-bar-links { gap: .9rem; }
}

/* --- 8. Hero ------------------------------------------------------------- */
.brand-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 2% 12%, #ffe8f2 0, transparent 53%),
    radial-gradient(ellipse at 98% 50%, #e3f5ff 0, transparent 55%),
    #fff;
}
.hero-layout {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  min-height: 34rem;
  padding-block: clamp(3rem, 7vw, 5.75rem) clamp(3.25rem, 8vw, 6.25rem);
}
.hero-copy { position: relative; z-index: 1; max-width: 44rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem .45rem .6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f5c9dd;
  color: var(--pink-dark);
  font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-xs);
}
.hero-badge .dot {
  width: .5rem; height: .5rem; border-radius: 999px; background: var(--pink);
  box-shadow: 0 0 0 3px rgba(241, 59, 138, .18);
}
.hero-heading {
  margin-top: 1.4rem;
  font-size: clamp(2.3rem, 1.2rem + 3.9vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}
.hero-heading em {
  font-style: normal;
  position: relative;
  color: var(--pink-strong);
  white-space: nowrap;
}
/* Hand-drawn underline keeps the headline from reading as a stock template. */
.hero-heading em::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -.04em; height: .1em;
  background: var(--pink);
  opacity: .32;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-sweep 1s var(--ease) .45s forwards;
}
@keyframes underline-sweep { to { transform: scaleX(1); } }

.hero-lede {
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, .97rem + .38vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-lede strong { color: var(--accent-dark); font-weight: 600; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions--center { justify-content: center; }
.hero-assure {
  margin-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
}
.hero-assure li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .89rem; font-weight: 500; color: var(--ink-soft);
}
.hero-assure svg { color: var(--accent); flex: 0 0 auto; }

/* Hero photograph */

@media (max-width: 1023px) {
  .hero-layout { min-height: 0; padding-block: 2.5rem 3.25rem; }
}
@media (max-width: 639px) {
  .hero-heading { font-size: clamp(2.05rem, 1.1rem + 5.4vw, 2.9rem); }
  .hero-actions .btn { width: 100%; }
  .hero-assure { flex-direction: column; gap: .55rem; }
}

/* --- 9. Proof bar -------------------------------------------------------- */
.proof-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, var(--pink-tint), var(--bg-tint));
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.proof-item { text-align: center; padding-inline: .5rem; position: relative; }
.proof-item + .proof-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 2.2rem; background: linear-gradient(transparent, #cfe0ee, transparent);
}
.proof-k {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1; letter-spacing: -.035em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.proof-item:nth-child(even) .proof-k { color: var(--pink-strong); }
.proof-v {
  margin-top: .5rem; font-size: .73rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
@media (max-width: 639px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; }
  .proof-item:nth-child(odd)::before { display: none; }
}

/* --- 10. Before / after -------------------------------------------------- */
.ba-tabs {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.ba-tab {
  padding: .6rem 1.15rem;
  border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color .25s var(--ease), color .2s ease;
}
.ba-tab:hover { color: var(--pink-strong); }
.ba-tab[aria-selected="true"] { background: var(--pink-strong); color: #fff; box-shadow: var(--shadow-pink); }

.ba-stage {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 900px) { .ba-stage { aspect-ratio: 16 / 10; } }
.ba-panel { position: absolute; inset: 0; }
.ba-panel img { width: 100%; height: 100%; object-fit: cover; }
/* The "after" layer is clipped to the divider position. */
.ba-panel--after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-label {
  position: absolute; top: 1rem; z-index: 3;
  padding: .38rem .8rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(20, 45, 67, .62);
  color: #fff;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; background: rgba(190, 36, 107, .82); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; z-index: 4;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(20, 45, 67, .35);
  pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-strong);
  box-shadow: 0 6px 18px -4px rgba(20, 45, 67, .45);
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.ba-handle:hover { transform: translate(-50%, -50%) scale(1.08); }
.ba-handle:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.ba-hint {
  position: absolute; left: 50%; bottom: 1rem; z-index: 3;
  transform: translateX(-50%);
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(20, 45, 67, .58);
  color: #fff;
  font-size: .73rem; font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity .4s ease;
}
.ba-stage.is-touched .ba-hint { opacity: 0; }
.ba-caption {
  margin-top: 1.1rem;
  font-size: .92rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: .5rem;
}
.ba-caption svg { color: var(--accent); flex: 0 0 auto; }

/* --- 11. Service cards --------------------------------------------------- */
.svc-card:hover .svc-note {
  margin-top: 1.75rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* --- 11. Service cards ---------------------------------------------------
   Two generous cards per row rather than four thin ones, each carrying a
   soap bubble from the hero so the section belongs to this brand.
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  text-align: left;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  opacity: 0;
  transition: opacity .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d9e7f2; }
.svc-card:hover::before { opacity: 1; }

.svc-bubble {
  position: absolute; z-index: -1;
  right: -3rem; top: -3rem;
  width: 12rem; height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 30%, #ffffffd9, #dff2ff7a 58%, #9adcf44d 100%);
  border: 1.5px solid #c6e7f7;
  transition: transform .7s var(--ease);
}
.svc-card:nth-child(even) .svc-bubble {
  background: radial-gradient(circle at 32% 30%, #ffffffd9, #ffe5f07a 58%, #f4b9d94d 100%);
  border-color: #f5c9de;
}
.svc-card:hover .svc-bubble { transform: scale(1.14) translate(-8px, 8px); }

.svc-ico {
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 14px 24px -14px rgba(8, 123, 193, .8);
  transition: transform .4s var(--ease);
}
.svc-card:nth-child(even) .svc-ico {
  background: linear-gradient(140deg, var(--pink), var(--pink-strong));
  box-shadow: 0 14px 24px -14px rgba(190, 36, 107, .75);
}
.svc-card:hover .svc-ico { transform: translateY(-3px) rotate(-6deg); }

.svc-tag {
  display: block; margin-top: 1.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: clamp(1.2rem, 1.1rem + .35vw, 1.4rem);
  letter-spacing: -.028em; color: var(--ink);
}
.svc-desc {
  display: block; margin-top: .6rem;
  font-size: .97rem; line-height: 1.65; color: var(--ink-soft);
  max-width: 30rem;
}
.svc-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.45rem;
  font-size: .9rem; font-weight: 700; color: var(--pink-strong);
  transition: gap .25s var(--ease);
}
.svc-card:nth-child(odd) .svc-cta { color: var(--accent-dark); }
.svc-card:hover .svc-cta { gap: .75rem; }

/* --- 13b. Facebook & promotions ------------------------------------------ */
.follow-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: stretch; }
@media (min-width: 960px) { .follow-grid { grid-template-columns: 3fr 2fr; } }

.fb-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.75rem, 4vw, 2.8rem);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(ellipse at 100% 0, #9e326d 0, transparent 67%),
    linear-gradient(130deg, #103f64, #087bc1);
  box-shadow: var(--shadow-lg);
}
/* the original card's two floating suds */
.bubble {
  position: absolute; z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(219,234,254,.5) 60%, rgba(59,130,246,.15) 100%);
  pointer-events: none;
}
.bubble-a { width: 220px; height: 220px; right: -60px; top: -60px; opacity: .35; }
.bubble-b { width: 140px; height: 140px; right: 90px; bottom: -50px; opacity: .25; }

.promo-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.promo-tag.dark { background: var(--pink-soft); color: var(--pink-strong); }

.fb-title { margin-top: 1rem; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); line-height: 1.15; text-wrap: balance; }
.fb-lede { margin-top: .85rem; color: #dbeafe; line-height: 1.7; max-width: 28rem; }
.fb-actions { position: relative; z-index: 1; margin-top: 1.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.fb-link { font-size: .9rem; font-weight: 600; color: #fff; }
.fb-link:hover { text-decoration: underline; }

.promo-stack { display: grid; gap: 1rem; }
.promo-card {
  display: block;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.promo-card:first-child { background: var(--pink-tint); border-color: #f7d9e7; }
.promo-card:hover { transform: translateY(-4px); border-color: #f3a3c7; box-shadow: 0 14px 30px -18px rgba(190, 36, 107, .5); }
.promo-card h3 { margin-top: .85rem; font-size: 1.12rem; }
.promo-card p { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

/* --- 17. Closing band ----------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.cta-band picture { position: absolute; inset: 0; z-index: -2; display: block; }
.cta-band img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(158, 25, 85, .62), transparent 62%),
    linear-gradient(105deg, rgba(10, 44, 70, .94) 34%, rgba(8, 123, 193, .82));
}
.cta-band > .container-x { position: relative; z-index: 1; }
.cta-inner { max-width: 46rem; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cta-eyebrow {
  display: inline-block;
  font-size: .775rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #ffc9e0;
}
.cta-title { margin-top: .9rem; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.1rem); text-wrap: balance; }
.cta-lede { margin-top: 1.1rem; font-size: clamp(1rem, .96rem + .3vw, 1.12rem); line-height: 1.75; color: #d9e8f4; max-width: 38rem; }
.cta-lede strong { color: #fff; font-weight: 600; }
@media (max-width: 639px) { .cta-actions .btn { width: 100%; } }

/* --- 12. Process --------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* One continuous hairline behind the three steps, instead of three boxes. */
.process::before {
  content: '';
  position: absolute; top: 1.55rem; left: 16.6%; right: 16.6%; height: 2px;
  background: repeating-linear-gradient(90deg, #cfe0ee 0 7px, transparent 7px 15px);
}
.step-item { position: relative; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 3.1rem; height: 3.1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--accent-soft);
  color: var(--accent-dark);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.step-item:nth-child(2) .step-n { border-color: var(--pink-soft); color: var(--pink-strong); }
.step-item:nth-child(3) .step-n { border-color: #d9f0c9; color: #3f7a31; }
.step-item h3 { margin-top: 1.4rem; font-size: 1.18rem; }
.step-item p { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
@media (max-width: 767px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .process::before {
    top: 0; bottom: 0; left: 1.55rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, #cfe0ee 0 7px, transparent 7px 15px);
  }
  .step-item { padding-left: 4.4rem; }
  .step-n { position: absolute; left: 0; top: 0; }
  .step-item h3 { margin-top: .35rem; }
}

/* --- 13. Split band (commercial / about) --------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
/* Two photos, offset — reads like a designed spread rather than a stock block. */
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
}

/* --- 13c. Commercial spec list ------------------------------------------- */
.spec-list { display: grid; gap: 1rem; }
.spec-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #f3dde8;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}
.spec-list strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: -.015em; color: var(--ink);
  margin-bottom: .2rem;
}
.spec-list li > span:last-child { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }
.tick {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 1.55rem; height: 1.55rem; margin-top: .15rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
}

/* --- 14. Service areas ---------------------------------------------------
   Town names as pins rather than a grid of boxes: the ZIPs matter to search
   engines, not to someone checking whether we come to their street.
   -------------------------------------------------------------------------- */
.area-chips {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.area-chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: .96rem; letter-spacing: -.015em;
  color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease, color .2s ease;
}
.area-chips svg { color: var(--accent); transition: color .2s ease; }
.area-chips li:nth-child(even) svg { color: var(--pink); }
.area-chips li:hover {
  transform: translateY(-3px);
  border-color: #f3a3c7;
  color: var(--pink-strong);
  box-shadow: 0 12px 24px -16px rgba(190, 36, 107, .55);
}
.area-chips li:hover svg { color: var(--pink-strong); }

.area-note { margin-top: 1.75rem; font-size: .95rem; color: var(--ink-soft); max-width: var(--measure); }

/* --- 15. FAQ ------------------------------------------------------------- */
.faq-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  /* The heading trails the questions rather than leaving the column empty. */
  .faq-layout .s-head { position: sticky; top: 8.5rem; }
}
.faq-list { margin-top: 0; display: grid; gap: .7rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: #cfe0ee; }
.faq-item[open] { border-color: #f4b5d1; box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.01rem; letter-spacing: -.015em;
  line-height: 1.4;
}
.faq-item[open] summary { color: var(--pink-strong); }
.faq-item summary svg { flex: 0 0 auto; color: var(--muted); transition: transform .3s var(--ease), color .2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--pink-strong); }
.faq-answer { padding: 0 1.35rem 1.3rem; color: var(--ink-soft); line-height: 1.7; font-size: .96rem; max-width: var(--measure); }
.faq-item[open] .faq-answer { animation: faq-open .35s var(--ease) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- 16. Español band ---------------------------------------------------- */
.es-band { background: linear-gradient(120deg, #fff2f8, #eff9ff); border-top: 1px solid var(--line); }

/* --- 17. Closing CTA ----------------------------------------------------- */
.cta-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- 18. Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c8d6; border-top: 4px solid var(--pink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
.footer-grid p { font-size: .9rem; line-height: 1.7; }
.footer-h { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-list { margin-top: .9rem; display: grid; gap: .55rem; font-size: .9rem; }
.footer-list a:hover, .footer-social:hover { color: #fff; }
.footer-list span { color: #8298aa; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .9rem; font-weight: 600; color: #fff; }
.footer-social:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container-x {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
  padding-block: 1.25rem;
  font-size: .78rem;
  color: #8298aa;
}
.footer-bottom a { border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } }

/* --- 19. Quote funnel components (consumed by app.js) -------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }

.field {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid #d8e3ed; border-radius: var(--r-sm);
  background: #fff; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.hint { font-size: .8rem; color: var(--ink-soft); margin-top: .35rem; }
.errortext { font-size: .8rem; color: var(--danger); margin-top: .35rem; }

.choice {
  cursor: pointer; padding: 1.05rem;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: #fff;
  display: flex; align-items: center; gap: .9rem;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: var(--accent); background: var(--bg-tint); }
.choice.selected { border-color: var(--accent); background: var(--bg-tint); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice .ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.choice .title { font-weight: 700; line-height: 1.2; }
.choice .desc { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }

.room-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; }
.room-counter {
  min-height: 112px; padding: 1rem;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: .9rem;
}
.room-meta { min-width: 0; }
.room-label { font-weight: 800; line-height: 1.2; }
.room-help { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; line-height: 1.35; }
.room-stepper { flex: 0 0 auto; display: inline-grid; grid-template-columns: 42px minmax(3rem, 3.5rem) 42px; align-items: center; gap: .35rem; }
.stepper-btn {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.stepper-btn:hover:not(:disabled) { background: var(--bg-tint); border-color: var(--accent); color: var(--accent-dark); }
.stepper-btn:active:not(:disabled) { transform: translateY(1px); }
.stepper-btn:disabled { opacity: .4; cursor: not-allowed; }
.room-count { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 390px) {
  .room-counter { align-items: stretch; flex-direction: column; }
  .room-stepper { width: 100%; grid-template-columns: 42px 1fr 42px; }
}

.note { background: #fff8e6; border: 1px solid #fce4a6; color: #714600; border-radius: var(--r-sm); padding: .9rem 1rem; font-size: .85rem; line-height: 1.45; }
.step-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.step-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--pink)); transition: width .45s var(--ease); }
.step { animation: fade-up .35s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.price-shimmer {
  background: linear-gradient(90deg, var(--accent-dark), var(--pink-strong), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 27, 43, .58);
  backdrop-filter: blur(5px);
  display: none; align-items: stretch; justify-content: center;
}
.modal-overlay.open { display: flex; animation: overlay-in .25s ease both; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal-shell { width: 100%; max-width: 760px; margin: 0; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { padding: 1.25rem 1.75rem 1rem; border-bottom: 1px solid var(--line); }
.modal-head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.modal-close {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-step-label { font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.scroll-area { overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) { .modal-foot #quote-next { flex: 0 0 auto; } }
@media (min-width: 640px) {
  .modal-overlay { padding: 1.5rem; align-items: center; }
  .modal-shell { border-radius: var(--r-lg); max-height: calc(100vh - 3rem); box-shadow: var(--shadow-lg); }
  .modal-overlay.open .modal-shell { animation: modal-in .35s var(--ease) both; }
  @keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
}
@media (max-width: 639px) {
  .modal-head { padding: 1rem 1rem .85rem; }
  .modal-foot { padding: .8rem 1rem; }
}

/* --- Contact preference --------------------------------------------------
   Three compact pills with icons rather than three full-size choice cards —
   it is a minor preference and should not outweigh the fields above it.
   -------------------------------------------------------------------------- */
#quote-body .contact-preference { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
#quote-body .contact-preference .choice {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem .5rem;
  min-height: 0;
  border-width: 1px;
  border-radius: var(--r-sm);
  text-align: center;
}
#quote-body .contact-preference .pref-ico {
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease;
}
#quote-body .contact-preference .pref-label { font-size: .85rem; font-weight: 600; line-height: 1.25; }
#quote-body .contact-preference .choice.selected {
  border-color: var(--accent);
  background: var(--bg-tint);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
#quote-body .contact-preference .choice.selected .pref-ico { background: var(--accent); color: #fff; }
#quote-body .contact-preference .choice.selected .pref-label { color: var(--accent-deep); }
@media (max-width: 380px) {
  #quote-body .contact-preference .pref-label { font-size: .78rem; }
  #quote-body .contact-preference .choice { padding: .75rem .3rem; }
}

/* --- Home / Business router --------------------------------------------- */
#quote-body .flow-toggle {
  display: inline-flex;
  gap: .25rem;
  margin-top: 1.1rem;
  padding: .28rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
#quote-body .flow-opt {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: background-color .22s var(--ease), color .2s ease, box-shadow .22s ease;
}
#quote-body .flow-opt:hover { color: var(--accent-dark); }
#quote-body .flow-opt[aria-checked="true"] {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 2px 8px -2px rgba(20, 45, 67, .18);
}
#quote-body .flow-opt[aria-checked="true"] svg { color: var(--pink-strong); }
#quote-body .switch-hint { margin-top: .5rem; }
#quote-body .switch-hint a { color: var(--accent-dark); font-weight: 600; border-bottom: 1px solid currentColor; }
#quote-body .switch-hint a:hover { color: var(--pink-strong); }

/* --- Commercial funnel: recap + next steps ------------------------------- */
#quote-body .fit-recap {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--pink-tint), var(--bg-tint));
  border: 1px solid #e6dce6;
}
#quote-body .fit-k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
#quote-body .fit-v { margin-top: .35rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.02rem; line-height: 1.5; color: var(--accent-deep); }
#quote-body .fit-steps { display: grid; gap: .85rem; }
#quote-body .fit-steps li { display: flex; gap: .85rem; align-items: flex-start; }
#quote-body .fit-steps li > span {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .88rem;
}
#quote-body .fit-steps li:nth-child(2) > span { background: var(--pink-soft); color: var(--pink-strong); }
#quote-body .fit-steps strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .98rem; color: var(--ink); }
#quote-body .fit-steps div { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }

/* --- 20. Scroll reveal ---------------------------------------------------
   Elements start shifted, and site.js adds .in-view as they enter. The
   no-js / no-observer path leaves them visible.
   -------------------------------------------------------------------------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-reveal [data-reveal].in-view { opacity: 1; transform: none; }

/* --- 21. Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
  .hero-heading em::after { transform: scaleX(1); }
}
