/*
  Design tokens for Rosa's Sparkling Cleaning.
  Palette is drawn directly from the client's own logo (navy wordmark,
  pink/blue/gold/green door-and-swoosh icon) — not a stock preset.
*/

:root {
  /* Neutrals */
  --color-cloud: #f2f4f9;
  --color-cloud-deep: #e2e5ef;
  --color-white: #ffffff;

  /* Ink, from the logo's navy wordmark */
  --color-ink: #14192f;

  /* Pink, from "Rosa's" script and the Cleaning door panel */
  --color-pink: #e23f8e;
  --color-pink-deep: #b92c72;
  --color-pink-darker: #8f2059;
  --color-pink-light: #f6b3d6;

  /* One accent per remaining service panel in the logo, each with a deeper
     shade for when white text needs to sit on top of it */
  --color-blue: #2589c7;
  --color-blue-deep: #1d6f9c;
  --color-gold: #efa91c;
  --color-gold-deep: #b9800f;
  --color-green: #4a9950;
  --color-green-deep: #357339;

  /* WhatsApp's own color lane (never reused elsewhere), shifted from the
     official brand mint to a deeper jade so it sits comfortably in this
     site's more muted, jewel-toned palette instead of reading as a stock
     WhatsApp widget. Also clears 4.5:1 contrast with white text, which the
     original brand mint (#25d366) did not (~2:1). */
  --color-whatsapp: #127a4e;
  --color-whatsapp-deep: #0c5c3b;

  /* Type */
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem); /* body */
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* h3 */
  --step-2: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem); /* h2 */
  --step-3: clamp(2.5rem, 2rem + 2.2vw, 3.75rem); /* h1 */

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;

  --content-max: 72rem;
  --measure: 38rem; /* ~ 70-78 char line length for body copy */

  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cloud);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-pink-deep);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* Headings */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--color-ink);
}

h1 {
  font-size: var(--step-3);
  max-width: 20ch;
}

h2 {
  font-size: var(--step-2);
  max-width: 22ch;
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 var(--space-2);
  max-width: var(--measure);
}

/* Header */

.site-header {
  padding-block: var(--space-2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-apostrophe {
  color: var(--color-pink-deep);
}

.mobile-brand-header {
  display: none;
}

.mobile-header-actions {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-ink);
  border-bottom: 1px solid transparent;
  padding: 0.6em 0 calc(0.6em - 1px);
}

.site-nav a:hover {
  border-color: var(--color-pink);
}

.site-nav .nav-lang-switch {
  border: 1px solid var(--color-cloud-deep);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-nav .nav-lang-switch:hover {
  border-color: var(--color-pink);
  background: var(--color-cloud);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Nav submenus — "Services" and "Areas" each expand into a list of their
   sub-pages. Desktop reveals them on hover/focus; mobile needs the caret
   button since there's no hover, see .nav-submenu-toggle click handling in
   assets/js/main.js. */

.nav-item--has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-submenu-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

/* "Services" has no page of its own — the whole label is the submenu
   trigger (not a link), unlike "Areas" which keeps a separate label link
   next to its toggle. */
.nav-submenu-toggle--label {
  width: auto;
  height: auto;
  gap: 0.35em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 0.6em 0 calc(0.6em - 1px);
  border-bottom: 1px solid transparent;
}

.nav-submenu-toggle--label:hover {
  border-color: var(--color-pink);
}

.nav-item--has-submenu:hover .nav-submenu-toggle svg,
.nav-item--has-submenu:focus-within .nav-submenu-toggle svg,
.nav-item--has-submenu.is-open .nav-submenu-toggle svg {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  margin: 0;
  padding: var(--space-1) 0;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-cloud-deep);
  border-radius: var(--radius);
  box-shadow: 0 18px 32px -20px rgba(20, 25, 47, 0.35);
  z-index: 20;
}

.nav-submenu a {
  display: block;
  padding: 0.6em var(--space-2);
  border-bottom: none;
  white-space: nowrap;
}

.nav-submenu-heading {
  padding: 0.5em var(--space-2) 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink);
  opacity: 0.55;
  white-space: nowrap;
}

.nav-submenu-heading:not(:first-child) {
  margin-top: 0.4em;
  padding-top: 0.6em;
  border-top: 1px solid var(--color-cloud-deep);
}

.nav-item--has-submenu:hover .nav-submenu,
.nav-item--has-submenu:focus-within .nav-submenu,
.nav-item--has-submenu.is-open .nav-submenu {
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-pink-deep);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-pink-darker);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: var(--color-cloud);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-deep);
}

.btn-whatsapp svg {
  width: 1.6em;
  height: 1.6em;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-whatsapp--small {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.3;
  color: var(--color-pink-deep);
  max-width: none;
  margin-bottom: var(--space-3);
}

/* Home's hero reuses the same video-hero shell as every interior page (see
   .interior-hero below) instead of its own bespoke layout, so the two no
   longer look like different sites. The logo takes the kicker-icon badge
   slot other pages give to their service-theme icon, since Home doesn't
   have a single service theme of its own. */
.interior-hero--video .tagline {
  color: var(--color-pink-light);
}


/* Revealed by assets/js/main.js once the (non-looping) hero video plays
   through — see data-reveal-on-end on the <video> above. Hidden by default
   so it never flashes before the video finishes. */
.hero-end-logo {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  z-index: 2;
  width: min(84%, 48rem);
  height: auto;
  transform: translateY(-50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hero-end-logo.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

@media (max-width: 860px) {
  .hero-end-logo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-end-logo {
    transition: none;
  }
}


/* "Choose your path" — four audiences as one ledger list instead of four
   competing colored boxes. Native <details>/<summary> (name="paths-group"
   makes them mutually exclusive in browsers that support it, and it's a
   harmless no-op — not broken — where they don't), so no JS is needed. */

.paths {
  padding-top: var(--space-4);
  padding-bottom: var(--space-5);
  background: var(--color-cloud);
}

.paths-ledger {
  background: var(--color-white);
  border: 1px solid var(--color-cloud-deep);
  border-radius: var(--radius);
}

.path-row {
  border-bottom: 1px solid var(--color-cloud-deep);
}

.path-row:last-child {
  border-bottom: none;
}

/* A light tint distinct from both the white card and the page background
   behind it (--color-cloud) — using the page color here made the expanded
   row look like it had "escaped" the card onto the page. */
.path-row[open] {
  background: color-mix(in srgb, var(--color-cloud) 45%, var(--color-white));
}

.path-row summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  list-style: none;
}

.path-row summary::-webkit-details-marker {
  display: none;
}

.path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-pink);
}

.path-movein .path-icon {
  background: var(--color-blue);
}

.path-inherited .path-icon {
  background: var(--color-gold-deep);
}

.path-snowbird .path-icon {
  background: var(--color-green);
}

.path-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: var(--color-white);
}

.path-row-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.path-row-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-ink);
}

.path-row-highlight {
  font-size: 0.9rem;
  color: var(--color-ink);
  opacity: 0.7;
}

.path-row-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.path-row[open] .path-row-chevron {
  transform: rotate(180deg);
}

.path-row-body {
  padding: 0 var(--space-3) var(--space-3) calc(3rem + var(--space-2) + var(--space-3));
}

.path-row-body p {
  margin: 0 0 var(--space-2);
  max-width: none;
}

.path-row-body ul {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}

.path-row-body li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.4em 0;
  border-bottom: 1px solid var(--color-cloud-deep);
  font-size: 0.92rem;
}

.path-row-body li:last-child {
  border-bottom: none;
}

.path-row-body li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
  Vacant-home differentiator band — reframed as a literal monthly bill for
  leaving a property empty. The metaphor comes straight from the copy
  (vacancy costs you money), not a generic icon-card grid.
*/

.vacant-band {
  padding-block: var(--space-5);
  background: var(--color-green-deep);
  color: var(--color-cloud);
}

.vacant-band h2,
.vacant-band p {
  color: inherit;
}

.vacant-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.vacant-copy {
  max-width: 30rem;
}

.vacant-kicker {
  font-size: 0.95rem;
  color: var(--color-pink-light);
  margin-bottom: var(--space-1);
}

.bill {
  position: relative;
  background: var(--color-white);
  color: var(--color-ink);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: 2px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

.bill::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  height: 9px;
  background:
    linear-gradient(-45deg, var(--color-white) 6px, transparent 0) 0 0 / 12px 12px repeat-x,
    linear-gradient(45deg, var(--color-white) 6px, transparent 0) 0 0 / 12px 12px repeat-x;
}

.bill-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  max-width: none;
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--color-cloud-deep);
}

.bill-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bill-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-cloud-deep);
}

.bill-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
}

.bill-list li:nth-child(1) .bill-icon {
  color: var(--color-blue);
}

.bill-list li:nth-child(2) .bill-icon {
  color: var(--color-gold);
}

.bill-list li:nth-child(3) .bill-icon {
  color: var(--color-green);
}

.bill-list b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.bill-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-ink);
  opacity: 0.75;
}

.bill-cta {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  padding: 0.9em 1.2em;
  background: var(--color-pink-deep);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.bill-cta:hover {
  background: var(--color-pink-darker);
}

/* Results — the before/after that makes the value tangible */

.results {
  padding-block: var(--space-5);
  background: var(--color-white);
  text-align: center;
}

.results .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results p {
  max-width: 34rem;
}

.results-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-cloud);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.results-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  position: relative;
}

.results-label {
  font-size: 0.9rem;
  color: var(--color-ink);
  opacity: 0.7;
}

.results-price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
}

.results-price--before {
  color: var(--color-ink);
  opacity: 0.6;
  text-decoration: line-through;
  text-decoration-color: var(--color-pink);
  text-decoration-thickness: 2px;
}

.results-price--after {
  color: var(--color-green);
  font-weight: 600;
}

.results-delta {
  position: absolute;
  top: -0.6em;
  right: -2.6em;
  background: var(--color-gold);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 999px;
}

.results-arrow {
  width: 32px;
  height: 32px;
  stroke: var(--color-pink-deep);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.results-note {
  font-size: 0.85rem;
  color: var(--color-ink);
  opacity: 0.7;
  max-width: 30rem;
}

.stat:nth-child(1) b {
  color: var(--color-blue);
}

.stat:nth-child(2) b {
  color: var(--color-gold);
}

.stat:nth-child(3) b {
  color: var(--color-green);
}

/* Services strip — opens with the logo's own four-color swoosh, once */

.services {
  position: relative;
  padding-block: var(--space-5);
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-pink) 0 25%,
    var(--color-blue) 25% 50%,
    var(--color-gold) 50% 75%,
    var(--color-green) 75% 100%
  );
}

.services-grid {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.service-card {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-cloud-deep);
  border-top: 3px solid var(--color-ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: flex-grow 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-visible {
  flex-grow: 2.4;
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -20px rgba(20, 25, 47, 0.35);
}

.service-card--clean {
  border-top-color: var(--color-pink);
}

.service-card--paint {
  border-top-color: var(--color-blue);
}

.service-card--repairs {
  border-top-color: var(--color-gold);
}

.service-card--garden {
  border-top-color: var(--color-green);
}

.service-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1) translateX(0);
  transition: transform 0.6s ease;
}

.service-card:hover .service-photo,
.service-card:focus-visible .service-photo {
  transform: scale(1.06) translateX(-3%);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-body {
  padding: var(--space-3);
}

.service-card-body p {
  margin-bottom: 0;
}

/* Same circular-badge language as .path-icon, reprised here so the "pick
   your path" and "our services" sections read as one family. Colors match
   each card's own door color (see .service-card--* above); gold swaps to
   its -deep variant since plain gold falls under the 3:1 contrast floor
   for a white icon (see docs/superpowers/specs/2026-09-17-design-system.md
   §2's contrast rule). */

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: var(--space-2);
  background: var(--color-pink);
}

.service-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: var(--color-white);
}

.service-card--paint .service-icon {
  background: var(--color-blue);
}

.service-card--repairs .service-icon {
  background: var(--color-gold-deep);
}

.service-card--garden .service-icon {
  background: var(--color-green);
}

.services-secondary {
  margin-top: var(--space-3);
  color: currentColor;
  font-size: 0.95rem;
}

/* How it works — a genuine sequence, so numbers earn their place */

.how {
  padding-block: var(--space-5);
  background: var(--color-white);
}

.how ol {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.how li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
}

.how li:nth-child(1)::before {
  background: var(--color-pink-deep);
}

.how li:nth-child(2)::before {
  background: var(--color-blue);
}

.how li:nth-child(3)::before {
  background: var(--color-gold);
}

.how li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Areas strip */

.areas {
  padding-block: var(--space-4);
  background: var(--color-white);
}

.areas .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.areas h2 {
  margin-bottom: 0;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.areas-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.areas-list li a:hover,
.areas-list li a:focus-visible {
  border-color: var(--color-pink-deep);
}

.areas-list li svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: var(--color-pink-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Generic interior page (service/area/vacant-home pages): content-led hero
   plus alternating-background content sections, built from existing tokens
   and the same list/CTA patterns as the home page — no new visual language. */

.interior-hero {
  padding-block: var(--space-5);
}

.interior-hero-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.interior-hero-copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.interior-hero .kicker {
  font-size: 0.95rem;
  color: var(--color-ink);
  opacity: 0.75;
  margin-bottom: var(--space-2);
}

/* Video variant: the video fills the whole hero as a background, under a
   navy overlay (darker on the copy side) so the white text stays legible
   over any frame. */
.interior-hero--video {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 72vh, 42rem);
  background: var(--color-ink);
  color: var(--color-white);
}

.interior-hero--video .interior-hero-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.interior-hero--video .interior-hero-copy {
  max-width: 38rem;
}

.interior-hero--video h1 {
  color: var(--color-white);
}

.interior-hero--video .kicker {
  color: var(--color-white);
  opacity: 0.85;
}

.interior-hero-bg {
  position: absolute;
  inset: 0;
}

.interior-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay: navy where the copy sits (for legibility), shading into the
   page's accent color on the far side. The copy side follows heroAlign. */
.interior-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--overlay-angle, 90deg),
    rgba(20, 25, 47, 0.88) 0%,
    rgba(20, 25, 47, 0.6) 50%,
    color-mix(in srgb, var(--accent, var(--color-ink)) 40%, transparent) 100%
  );
}

.interior-hero--align-right {
  --overlay-angle: 270deg;
}

.interior-hero--align-right .interior-hero-copy {
  margin-left: auto;
}

.interior-hero--align-center .interior-hero-bg::after {
  background:
    radial-gradient(ellipse at center, rgba(20, 25, 47, 0.85) 0%, rgba(20, 25, 47, 0.55) 70%, transparent 100%),
    linear-gradient(to top, color-mix(in srgb, var(--accent, var(--color-ink)) 45%, transparent), transparent 60%);
}

.interior-hero--align-center .interior-hero-copy {
  margin-inline: auto;
  text-align: center;
}

.interior-hero--align-center .cta-row {
  justify-content: center;
}

/* A thin accent rule under the hero ties it to the page's color. */
.interior-hero--video::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent, var(--color-pink)), var(--accent-2, var(--color-blue)));
}

.kicker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--accent-badge, var(--color-pink));
}

.kicker-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: var(--color-white);
}

@media (max-width: 860px) {
  .interior-hero--video {
    min-height: 32rem;
  }

  .interior-hero-bg::after,
  .interior-hero--align-center .interior-hero-bg::after {
    background:
      linear-gradient(to top, color-mix(in srgb, var(--accent, var(--color-ink)) 35%, transparent), transparent 50%),
      rgba(20, 25, 47, 0.7);
  }
}

/* Discreet — a single rounded photo, not the home hero's abstract color
   blocks, so interior pages read as calmer than the landing page. */
.interior-hero-media {
  flex: 1 1 22rem;
  min-width: 0;
}

.interior-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.content-section {
  padding-block: var(--space-5);
  background: var(--color-cloud);
}

.content-section:nth-of-type(even) {
  background: var(--color-white);
}

.content-section ul {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}

.content-section li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--color-cloud-deep);
}

.content-section li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Per-service themes (content `theme` field). Each page picks up its own
   accent from the logo palette:
   --accent        overlay tint, card rule, CTA band tint
   --accent-2      second card rule, hero accent-rule gradient end
   --accent-badge  hero icon badge (must keep 3:1 with a white icon, so
                   gold uses its -deep shade)
   --accent-check  checklist ticks (3:1 on white)
   --panel-bg      solid "who it's for" panel behind white text (4.5:1) */

.service-theme--presale {
  --accent: var(--color-gold);
  --accent-2: var(--color-blue-deep);
  --accent-badge: var(--color-gold-deep);
  --accent-check: var(--color-gold-deep);
  --panel-bg: var(--color-ink);
}

.service-theme--movein {
  --accent: var(--color-blue);
  --accent-2: var(--color-pink-deep);
  --accent-badge: var(--color-blue);
  --accent-check: var(--color-blue-deep);
  --panel-bg: var(--color-blue-deep);
}

.service-theme--clean {
  --accent: var(--color-pink);
  --accent-2: var(--color-pink-light);
  --accent-badge: var(--color-pink);
  --accent-check: var(--color-pink-deep);
  --panel-bg: var(--color-pink-deep);
}

.service-theme--paint {
  --accent: var(--color-blue);
  --accent-2: var(--color-gold);
  --accent-badge: var(--color-blue);
  --accent-check: var(--color-blue-deep);
  --panel-bg: var(--color-blue-deep);
}

.service-theme--repairs {
  --accent: var(--color-gold);
  --accent-2: var(--color-ink);
  --accent-badge: var(--color-gold-deep);
  --accent-check: var(--color-gold-deep);
  --panel-bg: var(--color-ink);
}

.service-theme--garden {
  --accent: var(--color-green);
  --accent-2: var(--color-gold);
  --accent-badge: var(--color-green);
  --accent-check: var(--color-green-deep);
  --panel-bg: var(--color-green-deep);
}

/* Situational pages (Full Services), each keyed to the same accent already
   used for that audience elsewhere on the site — vacant ties to the
   vacant-band section on Home, inherited/snowbird tie to their path-icon
   colors in the "choose your path" ledger. */

.service-theme--vacant {
  --accent: var(--color-green-deep);
  --accent-2: var(--color-gold);
  --accent-badge: var(--color-green-deep);
  --accent-check: var(--color-green-deep);
  --panel-bg: var(--color-green-deep);
}

.service-theme--inherited {
  --accent: var(--color-gold-deep);
  --accent-2: var(--color-ink);
  --accent-badge: var(--color-gold-deep);
  --accent-check: var(--color-gold-deep);
  --panel-bg: var(--color-ink);
}

.service-theme--snowbird {
  --accent: var(--color-green);
  --accent-2: var(--color-blue);
  --accent-badge: var(--color-green);
  --accent-check: var(--color-green-deep);
  --panel-bg: var(--color-green-deep);
}

/* Video-hero service pages: sections as side-by-side cards, then a closing
   call to action */

.content-section.service-overview {
  background: var(--color-cloud);
  padding-block: var(--space-5);
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.overview-card {
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-cloud-deep);
  border-top: 4px solid var(--accent, var(--color-pink-deep));
  border-radius: 12px;
}

.overview-card:nth-child(2) {
  border-top-color: var(--accent-2, var(--color-blue));
}

.service-theme .content-section li svg {
  stroke: var(--accent-check, var(--color-green));
}

/* Split variant: the checklist gets the wider column, and "who it's for"
   becomes a solid accent panel set in the display face. */
.service-overview--split .service-overview-grid {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.service-overview--split .overview-card:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--panel-bg, var(--color-ink));
  border: 0;
  border-left: 6px solid var(--accent-2, var(--color-pink));
  color: var(--color-white);
}

.service-overview--split .overview-card:nth-child(2) h2 {
  color: inherit;
  font-size: var(--step-1);
  opacity: 0.85;
}

.service-overview--split .overview-card:nth-child(2) p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 860px) {
  .service-overview--split .service-overview-grid {
    grid-template-columns: 1fr;
  }
}

.overview-card h2 {
  font-size: var(--step-2);
}

.overview-card ul {
  margin-bottom: 0;
}

.overview-card li:last-child {
  border-bottom: 0;
}

.service-cta {
  padding-block: var(--space-5);
  background: color-mix(in srgb, var(--accent, var(--color-pink)) 12%, var(--color-white));
  border-top: 1px solid color-mix(in srgb, var(--accent, var(--color-pink)) 30%, var(--color-white));
  text-align: center;
}

.service-cta p {
  margin-inline: auto;
}

.service-cta .cta-row {
  justify-content: center;
}

@media (max-width: 860px) {
  .overview-card {
    padding: var(--space-3) var(--space-2) var(--space-2);
  }
}

/* Service detail pages (cleaning.html, painting.html, repairs.html, gardening.html) */

.service-hero {
  padding-block: var(--space-5) var(--space-4);
  background: var(--color-cloud);
}

.service-hero .kicker {
  font-size: 0.95rem;
  color: var(--color-pink-deep);
  margin-bottom: var(--space-1);
}

.service-hero h1 {
  max-width: 18ch;
}

.service-hero-image {
  width: 100%;
  max-width: 56rem;
  margin: var(--space-4) auto 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.service-detail {
  padding-block: var(--space-5);
  background: var(--color-white);
}

.service-detail + .service-detail {
  padding-top: 0;
}

.check-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  max-width: var(--measure);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--color-cloud-deep);
}

.check-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: var(--space-4);
  background: var(--color-cloud);
  border-top: 1px solid var(--color-cloud-deep);
}

.related-services h2 {
  font-size: var(--step-1);
  margin: 0;
}

.related-services ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
}

.related-services a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-pink-deep);
  text-decoration: none;
}

.related-services a:hover {
  text-decoration: underline;
}

/* Evidence — a before/after photo proving the service, on service pages */

.evidence-section {
  padding-block: var(--space-5);
  background: var(--color-white);
  text-align: center;
}

.evidence-photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* Visible expand cue — cursor:zoom-in above only signals "clickable" to a
   mouse; touch has no hover, so the photo needs its own icon to read as
   interactive there too. */

.evidence-zoom-icon {
  position: absolute;
  right: var(--space-2);
  bottom: var(--space-2);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(20, 25, 47, 0.65);
  fill: none;
  stroke: var(--color-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evidence-photo-trigger:focus-visible {
  outline: 3px solid var(--color-ink);
  outline-offset: 4px;
}

.evidence-photo,
.evidence-video {
  width: 100%;
  height: clamp(220px, 55vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
}

.evidence-video {
  display: block;
  max-width: 56rem;
  margin-inline: auto;
  background: var(--color-ink);
}

.evidence-caption {
  max-width: 40rem;
  margin: var(--space-2) auto 0;
  color: var(--color-ink);
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Evidence photo lightbox — opens the full-size image on click */

.lightbox {
  width: min(90vw, 60rem);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* Reviews placeholder (home + area pages) */

.reviews-section {
  padding-block: var(--space-4);
  background: var(--color-white);
  text-align: center;
}

.reviews-section p {
  margin-inline: auto;
}

.reviews-example-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.35em 0.9em;
  background: var(--color-cloud);
  border: 1px solid var(--color-cloud-deep);
  border-radius: 999px;
  color: var(--color-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.reviews-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--space-3);
  -webkit-overflow-scrolling: touch;
  text-align: left;
  padding-block-end: var(--space-2);
  margin-block-end: calc(var(--space-2) * -1);
}

.review-card {
  flex: 0 0 clamp(15.5rem, 80vw, 19rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-cloud-deep);
  border-radius: var(--radius);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.review-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
}

.review-stars {
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.review-quote {
  margin: 0;
  flex-grow: 1;
}

.review-author {
  margin: 0;
  font-weight: 600;
}

/* Quote calculator */

.calculator-wrap {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 900px) {
  .calculator-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  }

  .qc-summary {
    position: sticky;
    top: var(--space-3);
  }
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.qc-group {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-cloud-deep);
  border-radius: 12px;
  background: var(--color-white);
}

.qc-group legend {
  float: left;
  width: 100%;
  margin-bottom: var(--space-2);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.qc-group legend + * {
  clear: both;
}

/* Cleaning type: two selectable cards */

.qc-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-2);
}

.qc-type {
  position: relative;
  cursor: pointer;
}

.qc-type input,
.qc-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qc-type-body {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  height: 100%;
  padding: var(--space-2);
  border: 2px solid var(--color-cloud-deep);
  border-radius: 10px;
  transition: border-color 0.15s, background-color 0.15s;
}

.qc-type-name {
  font-weight: 600;
}

.qc-type-desc {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
  line-height: 1.45;
}

.qc-type-price {
  margin-top: auto;
  padding-top: 0.5em;
  font-weight: 600;
  color: var(--color-pink-deep);
}

.qc-type:hover .qc-type-body {
  border-color: var(--color-pink-light);
}

.qc-type input:checked + .qc-type-body {
  border-color: var(--color-pink-deep);
  background: color-mix(in srgb, var(--color-pink) 6%, var(--color-white));
}

.qc-type input:focus-visible + .qc-type-body,
.qc-chip input:focus-visible + span {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* Rooms / extras rows */

.qc-rows {
  display: flex;
  flex-direction: column;
}

.qc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.7rem;
  border-top: 1px solid var(--color-cloud-deep);
}

.qc-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.qc-row-label {
  font-weight: 500;
}

.qc-row-label small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--color-ink) 65%, transparent);
}

.qc-stepper {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--color-cloud-deep);
  border-radius: 999px;
  overflow: hidden;
}

.qc-stepper button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--color-cloud);
  color: var(--color-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.qc-stepper button:hover:not(:disabled) {
  background: var(--color-cloud-deep);
}

.qc-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.qc-stepper input {
  width: 3rem;
  height: 2.75rem;
  border: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-white);
  -moz-appearance: textfield;
  appearance: textfield;
}

.qc-stepper input::-webkit-inner-spin-button,
.qc-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qc-toggle {
  cursor: pointer;
}

.qc-toggle input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0.6rem;
  flex-shrink: 0;
  accent-color: var(--color-pink-deep);
  cursor: pointer;
}

/* Area chips */

.qc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.qc-chip {
  position: relative;
  cursor: pointer;
}

.qc-chip span {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 2px solid var(--color-cloud-deep);
  border-radius: 999px;
  font-weight: 500;
}

.qc-chip input:checked + span {
  border-color: var(--color-pink-deep);
  background: var(--color-pink-deep);
  color: var(--color-white);
}

.qc-other-services {
  font-size: 0.95rem;
  margin: 0;
}

.qc-noscript {
  grid-column: 1 / -1;
}

/* Breakdown card */

.qc-summary {
  border: 1px solid var(--color-cloud-deep);
  border-radius: 16px;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(20, 25, 47, 0.35);
  scroll-margin-top: var(--space-3);
}

.qc-summary-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--space-2) var(--space-3);
  background: color-mix(in srgb, var(--color-pink) 12%, var(--color-white));
}

.qc-summary-head svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--color-pink-deep);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}

.qc-summary-head h2 {
  margin: 0;
  font-size: var(--step-1);
}

.qc-summary-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.qc-meta,
.qc-lines {
  margin: 0;
}

.qc-meta {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-cloud-deep);
}

.qc-meta-row,
.qc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: 0.3rem;
}

.qc-meta dt,
.qc-line dt {
  color: color-mix(in srgb, var(--color-ink) 75%, transparent);
}

.qc-meta dd,
.qc-line dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.qc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 2px dashed var(--color-cloud-deep);
}

.qc-total-label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.qc-total-amount {
  padding: 0.3em 0.7em;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-pink) 12%, var(--color-white));
  color: var(--color-pink-deep);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.qc-fallback-heading {
  margin: 0;
  font-size: var(--step-1);
}

.qc-note {
  margin: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--color-ink) 70%, transparent);
}

.qc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qc-actions .btn,
.qc-actions .btn-whatsapp {
  justify-content: center;
  padding: 0.9em 1.2em;
  font-size: 1rem;
}

/* Mobile sticky total bar (only below the two-column breakpoint) */

.qc-mobile-bar {
  display: none;
}

@media (max-width: 899px) {
  .qc-mobile-bar:not([hidden]) {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.75rem var(--space-2) calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--color-white);
    border-top: 1px solid var(--color-cloud-deep);
    box-shadow: 0 -8px 24px -16px rgba(20, 25, 47, 0.4);
  }

  .qc-mobile-bar-total {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .qc-mobile-bar-total small {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--color-ink) 70%, transparent);
  }

  .qc-mobile-bar-total strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-pink-deep);
    font-variant-numeric: tabular-nums;
  }

  .qc-group {
    padding: var(--space-2);
  }

  .qc-summary-body {
    padding: var(--space-2);
  }
}

/* "Save as PDF" prints only the breakdown card */

@media print {
  body > :not(main),
  main > :not(.calculator-section),
  .calculator-form,
  .qc-mobile-bar,
  .qc-actions,
  .progress-bar {
    display: none !important;
  }

  .calculator-section {
    padding: 0;
    background: none;
  }

  .calculator-wrap {
    display: block;
  }

  .qc-summary {
    position: static;
    box-shadow: none;
    max-width: 28rem;
    margin-inline: auto;
  }
}

/* Footer */

.site-footer {
  padding-block: var(--space-4);
  background: var(--color-ink);
  color: var(--color-cloud);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.9rem;
}

/* Responsive */

/*
  Scroll-driven motion — restrained on purpose (see frontend-design guidance):
  one reading-progress indicator, and a single deliberate reveal on the
  differentiator section, not a fade-in repeated on every block. Pure CSS
  (Patterns 21 & 22, web-animation-css-animations skill), progressively
  enhanced via @supports so unsupported browsers just see static content.
*/

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--color-pink) 0 25%,
    var(--color-blue) 25% 50%,
    var(--color-gold) 50% 75%,
    var(--color-green) 75% 100%
  );
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 50;
}

@supports (animation-timeline: scroll()) {
  .progress-bar {
    animation: grow-width auto linear;
    animation-timeline: scroll(root);
  }
}

@keyframes grow-width {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@supports (animation-timeline: view()) {
  .vacant-band,
  .results-card {
    animation: fade-slide-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  /*
    Sections below settle into place as they scroll into view. Each item
    shares the same fade-slide-in motion but starts its range a little
    later than the one before it, so a row reveals as a left-to-right
    cascade instead of everything popping in at once.
  */

  .service-card,
  .how li {
    animation: fade-slide-in linear both;
    animation-timeline: view();
  }

  .paths-ledger {
    animation: fade-slide-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

  .service-card:nth-child(1) {
    animation-range: entry 0% entry 100%;
  }

  .service-card:nth-child(2) {
    animation-range: entry 6% entry 100%;
  }

  .service-card:nth-child(3) {
    animation-range: entry 12% entry 100%;
  }

  .service-card:nth-child(4) {
    animation-range: entry 18% entry 100%;
  }

  .how li:nth-child(1) {
    animation-range: entry 0% entry 100%;
  }

  .how li:nth-child(2) {
    animation-range: entry 8% entry 100%;
  }

  .how li:nth-child(3) {
    animation-range: entry 16% entry 100%;
  }

}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*
  Fallback for browsers without `animation-timeline: view()` support
  (Firefox, at the time of writing). main.js only adds `.reveal-pending`
  once it has confirmed native support is missing and JS is running, so
  no-JS visitors and reduced-motion visitors always get the static,
  fully-visible layout — this never becomes the only way to see the content.
*/

.reveal-pending {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .service-card {
    flex: initial;
  }

  .service-card:hover,
  .service-card:focus-within {
    flex-grow: initial;
  }

  .service-photo {
    aspect-ratio: 16 / 9;
  }

  .service-card-body {
    padding: var(--space-2);
  }

  .service-card-body h3 {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .service-card-body p {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --space-5: 3rem;
    --space-4: 2rem;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .mobile-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-cloud-deep);
    border-radius: 999px;
    padding: 0.3em 0.75em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
  }

  .mobile-lang-switch:hover {
    border-color: var(--color-pink);
    background: var(--color-cloud);
  }

  .brand {
    font-size: 1.05rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    display: none;
  }

  .mobile-brand-header {
    display: block;
    margin: 0;
    padding: var(--space-2) var(--space-3);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-ink);
    background: var(--color-cloud);
    border-bottom: 1px solid var(--color-cloud-deep);
  }

  nav[aria-label='Primary'] {
    width: 100%;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: var(--space-2);
    border-top: 1px solid var(--color-cloud-deep);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.9em var(--space-1);
    border-bottom: 1px solid var(--color-cloud-deep);
  }

  .site-nav .nav-lang-switch {
    display: none;
  }

  /* No hover on touch, so the submenu opens in place (accordion-style)
     via the caret button instead of floating like the desktop dropdown. */

  .nav-item--has-submenu {
    flex-wrap: wrap;
  }

  .nav-item--has-submenu > a {
    flex: 1 1 auto;
  }

  .nav-item--has-submenu .nav-submenu-toggle {
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-cloud-deep);
  }

  .nav-item--has-submenu > .nav-submenu-toggle--label {
    flex: 1 1 auto;
    width: 100%;
    justify-content: space-between;
    padding: 0.9em var(--space-1);
  }

  .nav-submenu {
    position: static;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-submenu a {
    padding-left: calc(var(--space-1) * 2);
    background: var(--color-cloud);
  }

  .paths .wrap,
  .vacant-band .wrap {
    grid-template-columns: 1fr;
  }

  .path-row summary {
    padding: var(--space-2);
    gap: var(--space-1);
  }

  .path-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .path-icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .path-row-title {
    font-size: 1rem;
  }

  .path-row-highlight {
    font-size: 0.85rem;
  }

  .path-row-body {
    padding: 0 var(--space-2) var(--space-2) calc(2.4rem + var(--space-1) + var(--space-2));
  }

  .path-row-body p {
    font-size: 0.92rem;
  }

  .path-row-body li {
    padding: 0.4em 0;
    font-size: 0.88rem;
  }

  .cta-row .btn,
  .cta-row .btn-whatsapp {
    flex: 1 1 100%;
    justify-content: center;
  }

  .how ol {
    grid-template-columns: 1fr;
  }

  .service-card-body {
    padding: var(--space-1);
  }

  .bill {
    padding: var(--space-3) var(--space-2) var(--space-2);
  }

  .results-card {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .results-arrow {
    transform: rotate(90deg);
  }

  .results-delta {
    position: static;
    display: inline-block;
    margin-top: 0.4em;
  }

  .areas .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-whatsapp--small {
    justify-content: center;
  }

  .site-nav {
    gap: var(--space-1) var(--space-2);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .results-price {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .vacant-band,
  .results-card,
  .paths-ledger,
  .service-card,
  .how li,
  .areas-list li,
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
