/* =========================
   Design tokens
========================= */
:root {
  --rausch: #ff5a5f;
  --rausch-600: #ff385c;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --bg: #fff6f3;
  --surface: #ffffff;
  --soft: #fff0eb;
  --border: #ececec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  --container-max: 1200px;
  --content-pad: clamp(16px, 3vw, 32px);
  --header-h: 72px;

  /* Scroll UX tokens */
  --reveal-distance: 18px;
  --reveal-duration: 0.7s;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --stagger: 80ms;
}

/* =========================
   Base / Resets
========================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}

/* a11y helpers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* =========================
   Layout
========================= */
.container {
  width: min(var(--container-max), calc(100% - 2 * var(--content-pad)));
  margin-inline: auto;
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section.soft {
  background: var(--soft);
}
.section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 0 0 10px;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 28px;
  text-align: center;
}

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo-img {
  height: clamp(48px, 7vw, 90px);
  width: auto;
}

.primary-nav ul {
  display: flex;
  gap: clamp(16px, 2.2vw, 26px);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  font-weight: 500;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: #111;
  margin: 7px 9px;
}

.mobile-menu {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu a {
  padding: 12px;
  border-radius: 12px;
  background: #f7f7f7;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid #ddd;
  transition: 0.2s transform, 0.2s box-shadow, 0.2s filter;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--rausch-600);
  border-color: var(--rausch-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 56, 92, 0.25);
}
.btn.outline {
  background: #fff;
  border-color: var(--border);
}
.btn.pill {
  border-radius: 999px;
}
.btn.small {
  padding: 8px 14px;
}
.btn.full {
  width: 100%;
}

/* =========================
   Hero
========================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, #fff6f3, rgba(255, 246, 243, 0));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}
.headline {
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.subhead {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: clamp(14px, 1.6vw, 18px);
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-art {
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(560px, 72vw);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* =========================
   Partner Belt (marquee)
========================= */
.partner-belt {
  overflow: hidden;
  width: 100%;
  padding: 28px 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.belt-track {
  display: flex;
  align-items: center;
  gap: clamp(64px, 10vw, 120px);
  width: max-content;
  animation: belt-scroll 28s linear infinite;
}
.partner-belt img {
  height: clamp(64px, 8vw, 96px);
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2) opacity(0.95);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.partner-belt img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.08);
}
@keyframes belt-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (hover: hover) {
  .partner-belt:hover .belt-track {
    animation-play-state: paused;
  }
}

/* =========================
   Featured listings
========================= */
.featured-listings {
  text-align: center;
}
.chip-accent {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #b2002a;
  background: #ffe1e4;
  border: 1px solid #ffd1d7;
  margin-bottom: 10px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: 14px;
}
.listing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  border-color: #eaeaea;
}
.listing-card .fav {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.listing-card .fav svg {
  width: 18px;
  height: 18px;
  fill: #888;
}
.listing-card .fav.active svg {
  fill: var(--rausch-600);
}
.media {
  position: relative;
  aspect-ratio: 4/3;
  background: #f6f6f6;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: #fff;
  border: 1px solid #eee;
}
.img-badge.dark {
  background: #111;
  color: #fff;
  border-color: #111;
}
.listing-body {
  padding: 16px 16px 14px;
}
.listing-title {
  margin: 0 0 4px;
  font-size: 18px;
}
.listing-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.amen {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.amen li {
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fffaf8;
}
.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price strong {
  font-size: 18px;
}
.price span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.rating {
  font-weight: 700;
}
.cta-row.center {
  justify-content: center;
  margin-top: 18px;
}
.cta-row.center .btn {
  min-width: 180px;
}

/* =========================
   Services (rail)
========================= */
.services-rail {
  padding: clamp(64px, 9vw, 88px) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(520px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.services-header {
  text-align: center;
}
.services-intro {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-width: 460px;
}
.services-rows {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 28px;
  max-width: 820px;
  justify-self: start;
}
.services-rows::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 56, 92, 0.2),
    rgba(0, 0, 0, 0.06)
  );
}
.service-row {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.4vw, 24px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition: 0.18s transform, 0.18s box-shadow, 0.18s border-color;
}
.service-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  border-color: #e9e9e9;
}
.service-row::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rausch-600);
  box-shadow: 0 0 0 6px rgba(255, 56, 92, 0.14);
}
.service-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff7f8;
  border: 1px solid #ffe0e5;
  display: grid;
  place-items: center;
}
.service-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--rausch-600);
}
.service-head h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.01em;
}
.service-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #b2002a;
  background: #ffe1e4;
  border: 1px solid #ffd1d7;
}
.service-badge.alt {
  color: #0f5132;
  background: #e6f6ee;
  border-color: #cfe9dc;
}
.service-points {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #444;
}
.service-points li {
  line-height: 1.5;
}

/* =========================
   Pricing, Testimonials, Contact
========================= */
.pricing .price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card .chip {
  align-self: flex-start;
  background: #ffe4e6;
  color: #b2002a;
  border: 1px solid #ffd1d7;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.price-card .chip.hot {
  background: #ffe1e4;
}
.price {
  font-size: clamp(32px, 4.2vw, 40px);
  font-weight: 700;
  margin: 0;
}
.price span {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  font-weight: 500;
}
.features {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #333;
}
.features li::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 22px);
}
.quote p {
  font-size: clamp(16px, 2.4vw, 18px);
  margin: 0 0 8px;
}
.byline {
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
form {
  display: grid;
  gap: 12px;
}
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.18);
  border-color: var(--rausch-600);
}
.form-note {
  margin: 0;
  color: var(--muted);
}
.contact-card h3 {
  margin-top: 0;
}

/* =========================
   Footer
========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.social {
  display: flex;
  gap: 14px;
}
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* =========================
   FAQ Section
========================= */
#faq .container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
#faq .section-title {
  text-align: center;
  margin-bottom: 24px;
}
#faq details.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#faq details.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
#faq summary {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
}
#faq summary::-webkit-details-marker {
  display: none;
}
#faq details[open] {
  background: #fff8f7;
}
#faq details p {
  margin-top: 10px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================
   Interiors
========================= */
.interiors-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.interiors-intro {
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.interiors-points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #434343;
  display: grid;
  gap: 6px;
}
.interiors-right {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

/* Tips */
.interiors-tips .tip {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.interiors-tips .tip:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}
.tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff7f8;
  border: 1px solid #ffe0e5;
  font-size: 18px;
}

/* Palette tool */
.palette-head h3 {
  margin: 0 0 6px;
}
.palette-head .muted {
  color: var(--muted);
  margin: 0 0 12px;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}
.swatch {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.swatch input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0;
  background: #fff;
  cursor: pointer;
}
.swatch input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 12px;
}
.swatch input::-webkit-color-swatch {
  border: none;
  border-radius: 12px;
}
.swatch .hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #555;
}

/* Room mock */
.room {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 200px;
  margin-top: 14px;
  background: #fafafa;
}
.room .wall {
  position: absolute;
  inset: 0;
  background: #f5f2ee;
}
.room .sofa {
  position: absolute;
  left: 18%;
  bottom: 18px;
  width: 44%;
  height: 64px;
  border-radius: 16px;
  background: #e8e8e6;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.room .pillow {
  position: absolute;
  bottom: 44px;
  width: 36px;
  height: 26px;
  border-radius: 8px;
  background: #ff385c;
}
.room .pillow.left {
  left: 24%;
}
.room .pillow.right {
  left: 34%;
}
.room .table {
  position: absolute;
  right: 18%;
  bottom: 22px;
  width: 18%;
  height: 10px;
  background: #8b6b4a;
  border-radius: 6px;
}
.room .frame {
  position: absolute;
  right: 14%;
  top: 18%;
  width: 80px;
  height: 56px;
  border: 4px solid #8b6b4a;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.palette-actions,
.check-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.copy-note {
  color: var(--muted);
  font-size: 13px;
}

/* Checklist */
.check-head {
  display: grid;
  gap: 10px;
}
.progress {
  width: 100%;
  height: 8px;
  background: #f5f5f5;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #eee;
}
.progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--rausch-600), #ff7a90);
  width: 0%;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checks label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--rausch-600);
}

/* =========================
   Makeover (Before / After)
========================= */
.makeover-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
}
.makeover-copy p {
  margin: 0 0 12px;
}

.makeover-compare {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.mk-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s linear;
}

.mk-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  z-index: 3;
}
.mk-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
}
.mk-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
}

.mk-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.mk-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid #eaeaea;
}
.mk-tags {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}
.mk-tags .tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eee;
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.before-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}
.makeover-copy {
  text-align: center;
}
.makeover-copy .btn {
  display: inline-block;
  margin-top: 16px;
}

/* =========================
   Lead Magnet Section
========================= */
.lead-section {
  background: var(--rausch);
  color: #fff;
  padding: clamp(56px, 10vw, 120px) 0;
}
.lead-wrap {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.lead-title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
  margin: 0 0 12px;
}
.lead-sub {
  margin: 0 0 22px;
  opacity: 0.95;
}
.lead-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.lead-form input[type="email"] {
  background: #fff;
  border: 0;
  color: #111;
  padding: 14px 16px;
  border-radius: 999px;
  min-width: min(460px, 90vw);
  font: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.lead-btn {
  background: #fff;
  color: #111;
  border-color: #fff;
  padding: 14px 18px;
  font-weight: 700;
}
.lead-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
.lead-note {
  margin-top: 10px;
  color: #fff;
}
.lead-fallback {
  margin-top: 6px;
}
.lead-fallback a {
  color: #fff;
  text-decoration: underline;
}

/* =========================
   Scroll UX Enhancements
========================= */
/* Base hidden state applied by JS via .will-animate */
.will-animate {
  opacity: 0;
  transform: translateY(var(--distance, var(--reveal-distance)))
    scale(var(--scale, 1));
  filter: var(--blur, none);
  transition: transform var(--dur, var(--reveal-duration))
      var(--ease, var(--reveal-ease)),
    opacity var(--dur, var(--reveal-duration)) var(--ease, var(--reveal-ease)),
    filter var(--dur, var(--reveal-duration)) var(--ease, var(--reveal-ease));
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity, filter;
}
.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

/* Variants */
[data-animate="fade-up"] {
  --distance: 16px;
}
[data-animate="fade-down"] {
  --distance: -16px;
}
[data-animate="fade-left"] {
  transform: translateX(20px);
}
[data-animate="fade-right"] {
  transform: translateX(-20px);
}
[data-animate="scale-in"] {
  --scale: 0.96;
}
[data-animate="blur-in"] {
  --blur: blur(8px);
}
[data-animate="rotate-in"] {
  transform: rotate(-2deg) translateY(8px);
}
.is-inview[data-animate="rotate-in"] {
  transform: rotate(0) translateY(0);
}

/* Stagger children */
[data-stagger] > * {
  transition-delay: calc(var(--stagger, 80ms) * var(--i, 0));
}

/* Scroll progress bar (inserted by JS) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rausch-600), #ff7a90);
  width: 0%;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Active nav link */
.primary-nav a.active {
  color: var(--rausch-600);
}

/* Parallax helper */
.parallax {
  will-change: transform;
  transform: translateY(var(--py, 0));
}

/* =========================
   Responsive
========================= */
@media (min-width: 1280px) {
  :root {
    --container-max: 1280px;
  }
  .hero-art img {
    width: 600px;
  }
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }
  .menu-btn {
    display: inline-block;
  }
  .mobile-menu.open {
    display: grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art img {
    width: min(680px, 92vw);
  }

  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-intro {
    position: static;
    text-align: center;
    max-width: none;
  }
  .services-rows {
    padding-left: 0;
    max-width: 100%;
  }
  .services-rows::before,
  .service-row::before {
    display: none;
  }

  .makeover-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .logo-img {
    height: 52px;
  }
  .headline {
    line-height: 1.08;
  }
  .cta-row .btn {
    flex: 1 1 auto;
  }

  /* Listings: 1-per-row */
  .listing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .listing-title {
    font-size: 16px;
  }
  .listing-meta,
  .amen li {
    font-size: 13px;
  }

  /* Partner belt */
  .partner-belt img {
    height: 28px;
  }
  .belt-track {
    gap: 48px;
  }

  /* Makeover */
  .makeover-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .makeover-copy {
    text-align: center;
  }
  .makeover-copy .btn {
    margin-inline: auto;
  }
  .makeover-compare {
    max-width: 100%;
  }

  /* Lead form stack */
  .lead-form {
    flex-direction: column;
    align-items: stretch;
  }
  .lead-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --radius: 12px;
  }
  .service-head {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .service-icon {
    display: none;
  }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .will-animate,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .scroll-progress {
    display: none;
  }
}
/* === Lead: hardening overrides (place at END of CSS) === */
.lead-section,
.section.lead-section {
  background: var(--rausch) !important;
  color: #fff;
}

.lead-section .lead-wrap {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.lead-section .lead-title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
  margin: 0 0 12px;
}
.lead-section .lead-sub {
  margin: 0 0 22px;
  opacity: 0.95;
}

.lead-section .lead-form {
  display: flex !important;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.lead-section .lead-input,
.lead-section .lead-form input[type="email"] {
  background: #fff !important;
  border: 0 !important;
  color: #111 !important;
  padding: 14px 16px !important;
  border-radius: 999px !important;
  min-width: min(460px, 90vw);
  font: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.lead-section .btn.lead-btn {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  padding: 14px 18px !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: auto !important;
}
.lead-section .btn.lead-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.lead-section .lead-note,
.lead-section .lead-fallback {
  margin-top: 10px;
  color: #fff;
}
.lead-section .lead-fallback a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .lead-section .lead-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .lead-section .btn.lead-btn {
    width: 100% !important;
  }
}
/* Emergency override for lead section */
section#guide.lead-section {
  background: #ff5a5f !important;
  color: #fff !important;
}

section#guide.lead-section * {
  color: #fff !important;
}

section#guide.lead-section .lead-form input[type="email"] {
  background: #fff !important;
  color: #111 !important;
}

section#guide.lead-section .btn.lead-btn {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid #fff !important;
}
