/* ==========================================================================
   Sections — hero, trust, calculator, services, process, reviews, CTA
   ========================================================================== */

/* ---- Cinematic hero ------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding-block: calc(var(--header-h) + 4rem) var(--s-7);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* plane 1 — photographic backdrop */
.hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: 0;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.08) brightness(0.55);
  transform: scale(1.08);
  animation: kenburns 26s var(--ease-io) infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-1.5%, -1.5%, 0); }
}

/* plane 2 — ink tint */
.hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(10, 16, 24, 0.96) 12%, rgba(10, 16, 24, 0.72) 48%, rgba(10, 16, 24, 0.5) 100%),
    radial-gradient(120% 90% at 82% 12%, rgba(200, 164, 75, 0.20), transparent 55%),
    radial-gradient(90% 70% at 8% 100%, rgba(18, 164, 122, 0.16), transparent 60%);
}

/* plane 3 — noise */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-6);
  align-items: center;
  width: 100%;
}

.hero__title { margin-bottom: var(--s-3); }

.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(238, 242, 248, 0.82);
  max-width: 54ch;
  margin-bottom: var(--s-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: var(--s-4); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  font-size: var(--fs-caption);
  color: var(--text-muted-dark);
}

.hero__proof span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__proof svg { width: 15px; height: 15px; color: var(--emerald); }

/* plane 4 — floating glass cards */
.hero__cards {
  position: relative;
  display: grid;
  gap: var(--s-3);
  justify-items: end;
}

.float-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--e-glass);
  animation: floaty 7s var(--ease-io) infinite alternate;
  will-change: transform;
}

.float-card:nth-child(2) { animation-delay: -2.3s; margin-right: 2.5rem; }
.float-card:nth-child(3) { animation-delay: -4.6s; margin-right: -1rem; }

@keyframes floaty {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -14px, 0); }
}

.float-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(200, 164, 75, 0.15);
  color: var(--gold-bright);
}

.float-card__icon svg { width: 20px; height: 20px; }
.float-card__value { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.float-card__label { display: block; font-size: var(--fs-caption); line-height: 1.3; color: var(--text-muted-dark); }

/* scroll cue */
.hero__cue {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

.hero__cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease-io) infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* Grid children default to min-width:auto, so any child containing a
   horizontally scrolling region (rails, tables, long strings) can overflow
   its track. Reset it on every two-column layout. */
.calc > *,
.split > *,
.inquiry > *,
.proof > *,
.process__step > * { min-width: 0; }

/* ---- Interior page hero ---------------------------------------------------- */

.pagehero {
  position: relative;
  padding-block: calc(var(--header-h) + 3.5rem) var(--s-6);
  background: var(--grad-ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

.pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 90% at 88% 0%, rgba(200, 164, 75, 0.18), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(18, 164, 122, 0.12), transparent 60%);
  pointer-events: none;
}

.pagehero > .container { position: relative; z-index: 2; }
.pagehero__title { max-width: 18ch; }
.pagehero__lead { margin-top: var(--s-3); font-size: var(--fs-lead); color: rgba(238, 242, 248, 0.78); max-width: 62ch; }
.pagehero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s-4); }

/* ---- Trust strip ------------------------------------------------------------ */

.trust {
  padding-block: var(--s-5);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  text-align: center;
}

.trust__item { position: relative; }

.trust__item + .trust__item::before {
  content: "";
  position: absolute;
  left: calc(var(--s-4) / -2);
  top: 12%;
  height: 76%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 164, 75, 0.28), transparent);
}

/* ---- Calculator -------------------------------------------------------------- */

.calc {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-6);
  align-items: center;
}

.calc__panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--e-glass);
}

.calc__readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.calc__cell {
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calc__cell--hero { border-color: rgba(200, 164, 75, 0.35); background: rgba(200, 164, 75, 0.08); }

.calc__num {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gold);
}

.calc__cell--emerald .calc__num { color: var(--emerald-glow); }
.calc__cap { font-size: var(--fs-caption); color: var(--text-muted-dark); margin-top: 0.3rem; }

.calc__slider { margin-bottom: var(--s-4); }

.calc__slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: 0.85rem;
}

.calc__amount { font-size: 1.5rem; font-weight: 700; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }

input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold) var(--fill, 35%), rgba(255, 255, 255, 0.12) var(--fill, 35%));
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-gold);
  border: 3px solid var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(200, 164, 75, 0.14);
  transition: box-shadow var(--t-micro) var(--ease-out);
}

input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(200, 164, 75, 0.2); }

input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  cursor: pointer;
}

.calc__disclaimer {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: var(--fs-caption);
  color: var(--text-muted-dark);
  line-height: 1.55;
}

.calc__disclaimer svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--gold); }

/* ---- Services grid -------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .card__foot { margin-top: auto; padding-top: var(--s-3); }

/* ---- Process timeline ------------------------------------------------------------ */

.process { display: grid; gap: var(--s-6); }

.process__step {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-5);
  align-items: center;
}

.process__step:nth-child(even) { grid-template-columns: 5fr 7fr; }
.process__step:nth-child(even) .process__body { order: 2; }
.process__step:nth-child(even) .process__visual { order: 1; }

.process__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(200, 164, 75, 0.55);
  margin-bottom: var(--s-2);
}

.process__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(200, 164, 75, 0.12), rgba(18, 164, 122, 0.08));
  border: 1px solid rgba(200, 164, 75, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.process__visual svg { width: 42%; height: auto; color: rgba(200, 164, 75, 0.85); }

.process__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(230, 201, 121, 0.18), transparent 70%);
}

.process__line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.is-in .process__line { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- Why-us split ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-6);
  align-items: center;
}

.split--flip { grid-template-columns: 7fr 5fr; }

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--e2);
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, transparent 45%, rgba(10, 16, 24, 0.55));
  pointer-events: none;
}

.split__badge {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  z-index: 2;
  padding: 0.9rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(10, 16, 24, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(200, 164, 75, 0.35);
  color: var(--text-on-dark);
}

.split__badge b { display: block; color: var(--gold); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.split__badge span { font-size: var(--fs-caption); color: var(--text-muted-dark); }

/* ---- Reviews module ------------------------------------------------------------------ */

.reviews {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: var(--s-5);
  align-items: start;
}

/* The rail scrolls horizontally; without min-width:0 its content would
   blow out the track and squeeze the summary column. */
.reviews > * { min-width: 0; }

.reviews__summary {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--e-glass);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.reviews__score {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; color: var(--gold); }
.stars--sm svg { width: 15px; height: 15px; }

.reviews__meta { font-size: var(--fs-sm); color: var(--text-muted-dark); margin-top: 0.6rem; }

.reviews__google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-caption);
  color: var(--text-muted-dark);
}

.reviews__google svg { width: 18px; height: 18px; }

/* tabs */
.tabs {
  position: relative;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: var(--s-3);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 0.55rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-caption);
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-muted-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color var(--t-micro) var(--ease-out),
              background-color var(--t-micro) var(--ease-out),
              border-color var(--t-micro) var(--ease-out);
}

.tab:hover { color: var(--gold-bright); border-color: rgba(200, 164, 75, 0.4); }

.tab[aria-selected="true"] {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--ink);
}

.reviews__rail {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-2);
  scrollbar-width: none;
}

.reviews__rail::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--e-glass);
  transition: opacity var(--t-std) var(--ease-out), transform var(--t-std) var(--ease-out);
}

.reviews__rail.is-swapping .review { opacity: 0; transform: translateY(10px); }

.review__head { display: flex; align-items: center; gap: 0.75rem; }

.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--ink);
  background: var(--grad-gold);
}

.review__name { font-weight: 700; font-size: var(--fs-sm); color: var(--text-on-dark); }
.review__date { font-size: var(--fs-caption); color: var(--text-muted-dark); }
.review__text { font-size: var(--fs-sm); color: rgba(238, 242, 248, 0.8); line-height: 1.6; }
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.review__more {
  align-self: flex-start;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--gold);
}

.review__more:hover { text-decoration: underline; }

.review__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-caption);
  color: var(--text-muted-dark);
}

.review__verified { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--emerald-glow); }
.review__verified svg { width: 14px; height: 14px; }

.rail-nav { display: flex; gap: 0.5rem; margin-top: var(--s-3); }

.rail-nav button {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted-dark);
  transition: color var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out), border-color var(--t-micro) var(--ease-out);
}

.rail-nav button:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.rail-nav svg { width: 18px; height: 18px; }

.sample-note {
  margin-top: var(--s-3);
  font-size: var(--fs-caption);
  color: rgba(154, 167, 184, 0.7);
  font-style: italic;
}

/* Reviews grid (full page) */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.reviews-grid .review { flex: initial; }

/* ---- Savings proof band -------------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

.bars { display: grid; gap: var(--s-3); }

.bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--fs-sm);
  margin-bottom: 0.5rem;
}

.bar__value { font-weight: 700; font-variant-numeric: tabular-nums; }

.bar__track {
  height: 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 1.3s var(--ease-out);
}

.bar__fill--before { background: linear-gradient(90deg, #7C4152, var(--rose)); }
.bar__fill--after { background: var(--grad-emerald); }

/* ---- CTA band -------------------------------------------------------------------------- */

.ctaband {
  position: relative;
  padding-block: var(--s-7);
  background: var(--grad-ink);
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
}

.ctaband::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(200, 164, 75, 0.22), transparent 62%);
  pointer-events: none;
}

.ctaband > .container { position: relative; z-index: 2; }
.ctaband__title { max-width: 22ch; margin-inline: auto; }
.ctaband__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: var(--s-4); }

/* ---- Inquiry section --------------------------------------------------------------------- */

.inquiry { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6); align-items: start; }

.inquiry__panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--e-glass);
}

.contact-cards { display: grid; gap: var(--s-3); }

.contact-card {
  display: flex;
  gap: 1rem;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}

.contact-card:hover { border-color: rgba(200, 164, 75, 0.4); background: rgba(200, 164, 75, 0.06); }

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: rgba(200, 164, 75, 0.12);
  color: var(--gold);
}

.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card__label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted-dark); }
.contact-card__value { font-weight: 700; color: var(--text-on-dark); margin-top: 2px; }

/* ---- Prose (legal pages) --------------------------------------------------------------------- */

.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose h3 { margin-top: var(--s-4); margin-bottom: var(--s-1); }
.prose p { margin-bottom: var(--s-2); color: var(--text-muted); }
.prose ul { margin: 0 0 var(--s-3) 0; display: grid; gap: 0.6rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--text-muted); font-size: var(--fs-sm); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.prose strong { color: var(--text); }

/* ---- 404 ---------------------------------------------------------------------------------- */

.notfound { display: grid; place-items: center; min-height: 72vh; text-align: center; }
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px rgba(200, 164, 75, 0.5);
}
