/* ============================================================
   Infinitum Travel v2 — Cinematic, StoryBrand, no rules
   ============================================================ */

/* ---- Self-hosted fonts ------------------------------------ */
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("/assets/fonts/Rajdhani-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Variable.woff2") format("woff2-variations");
  font-weight: 300 500; font-style: normal; font-display: swap;
}

/* ---- Tokens ----------------------------------------------- */
:root {
  --carbon:   #18191A;
  --slate:    #232830;
  --linen:    #EEEBE4;
  --platinum: #D6CEBC;
  --ash:      #F2EEE6;
  --stone:    #B8B2A6;
  --deep:     #141412;
  --light-stone: #8A8680;

  --f-display: "Rajdhani", system-ui, sans-serif;
  --f-body:    "Montserrat", system-ui, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--carbon);
  color: var(--ash);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--platinum); outline-offset: 4px; }

/* ---- Utility --------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--linen); color: var(--deep);
  padding: .75rem 1.25rem; z-index: 500; font-size: .9rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---- Masthead -------------------------------------------- */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 0;
  transition: background 300ms ease, backdrop-filter 300ms ease;
}
.masthead[data-scrolled="true"] {
  background: rgba(24,25,26,0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 2rem;
}

/* ---- Logo image ------------------------------------------ */
.logo { display: flex; text-decoration: none; flex: none; }
.logo-img {
  display: block;
  /* Natural ratio preserved; height auto */
  width: 140px;
  height: auto;
  /* Slight brightness boost so it pops on photo backgrounds */
  filter: brightness(1.08);
}
@media (max-width: 700px) {
  .logo-img { width: 110px; }
}

/* ---- Wordmark (header) ----------------------------------- */
.wordmark {
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none; flex: none;
}
.wordmark-mark {
  width: 40px; height: 40px;
  color: var(--ash); flex: none;
}
.wordmark-type {
  display: flex; flex-direction: column;
  align-items: center;        /* TRAVEL centered under INFINITUM */
  line-height: 1; gap: 0;
}
.wordmark-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.22rem; letter-spacing: .38em;
  color: #FFFFFF; text-transform: uppercase;
  padding-right: .38em;       /* optical: trailing tracking gap */
}
.wordmark-rule {
  width: 100%; height: 1px;
  background: rgba(200,192,176,.45);
  margin: .32rem 0;
}
.wordmark-sub {
  font-family: var(--f-body); font-weight: 500;
  font-size: .56rem; letter-spacing: .52em;
  color: var(--platinum); text-transform: uppercase;
  padding-right: .52em;       /* optical: trailing tracking gap */
}

/* ---- Footer logo (stacked lockup) ------------------------ */
.logo-footer { display: flex; text-decoration: none; flex: none; }
.logo-img-footer {
  display: block;
  width: 180px;
  height: auto;
  filter: brightness(1.06);
}
@media (max-width: 680px) { .logo-img-footer { width: 150px; } }

/* ---- Nav ------------------------------------------------- */
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a {
  font-size: .75rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
  text-decoration: none; transition: color 160ms ease;
}
.nav a:hover { color: var(--ash); }
.nav-cta {
  color: #F2EEE6; background: transparent;
  border: 1.5px solid rgba(242,238,230,0.8);
  padding: .65rem 1.4rem; letter-spacing: .12em;
  font-weight: 500; transition: background 180ms ease, border-color 180ms ease;
}
.nav-cta:hover { background: rgba(242,238,230,0.14); border-color: #F2EEE6; color: #FFFFFF; }
@media (max-width: 700px) {
  .nav-link { display: none; }
  .nav-cta { font-size: .7rem; padding: .55rem 1rem; letter-spacing: .08em; }
  .wordmark-mark { width: 34px; height: 34px; }
  .wordmark-name { font-size: 1rem; letter-spacing: .28em; }
  .wordmark-rule { margin: .26rem 0; }
  .wordmark-sub { font-size: .50rem; letter-spacing: .44em; }
}

/* ============================================================
   HERO — full viewport, photo immersion
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background: url('/assets/photos/hero.jpg') center 30% / cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.js .hero-photo { transform: scale(1.04); }
.js .hero[data-loaded] .hero-photo { transform: scale(1); }

/* Gradient: transparent at top, carbon at bottom so text sits clean */
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(24,25,26,0.38) 0%,
      rgba(24,25,26,0.10) 35%,
      rgba(24,25,26,0.55) 65%,
      rgba(24,25,26,0.96) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: 5rem;
  width: 100%;
}
.hero-content .shell { display: flex; flex-direction: column; gap: 2rem; }

.hero-eyebrow {
  font-family: var(--f-body); font-weight: 500;
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: #D6CEBC;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  line-height: 1.02;
  font-size: clamp(2.8rem, 8.5vw, 6.2rem);
  color: #FFFFFF;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: rgba(242,238,230,.92);
  max-width: 46ch;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 1.25rem 2.25rem;
  margin-top: .5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--f-body); font-size: .8rem;
  font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  background: var(--platinum); color: var(--deep);
  border: 1.5px solid var(--platinum);
  text-decoration: none; cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--ash); border-color: var(--ash); }
.btn-ghost {
  background: transparent; color: var(--ash);
  border-color: rgba(200,192,176,.45);
}
.btn-ghost:hover { border-color: var(--platinum); color: var(--platinum); background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================================================
   PROBLEM — dark, text-forward, reader is the hero
   ============================================================ */
.problem {
  background: var(--carbon);
  padding-block: clamp(3.5rem, 9vw, 9rem);
}
.problem .shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
@media (max-width: 860px) {
  .problem .shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-photo { min-height: 240px; aspect-ratio: 16/9; }
}

.problem-label {
  font-family: var(--f-body); font-weight: 500;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--platinum); margin-bottom: 1.75rem;
}
.problem-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--ash); margin-bottom: 2rem;
}
.problem-body { color: #C8C2B6; line-height: 1.8; }
.problem-body p + p { margin-top: 1.25rem; }

.problem-photo {
  aspect-ratio: 1;
  background: url('/assets/photos/accent.jpg') center / cover no-repeat;
  filter: brightness(.75) saturate(.8);
  min-height: 320px;
}
@media (max-width: 860px) { .problem-photo { order: -1; min-height: 260px; aspect-ratio: 16/9; } }

/* ============================================================
   GUIDE — slate band, Infinitum as the trusted advisor
   ============================================================ */
.guide {
  background: var(--slate);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.guide .shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
@media (max-width: 860px) {
  .guide .shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .guide-photo { min-height: 240px; aspect-ratio: 16/9; }
}

.guide-photo {
  aspect-ratio: 4/3;
  background: url('/assets/photos/guide.jpg') center / cover no-repeat;
  filter: brightness(.72) saturate(.82);
  min-height: 280px;
}

.guide-label {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--platinum); font-weight: 500; margin-bottom: 1.75rem;
}
.guide-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; line-height: 1.08;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ash); margin-bottom: 1.75rem;
}
.guide-body { color: rgba(242,238,230,.90); line-height: 1.8; }
.guide-body p + p { margin-top: 1.2rem; }
.guide-body strong { color: var(--ash); font-weight: 500; }

/* ============================================================
   PLAN — three steps, carbon, bold numbers
   ============================================================ */
.plan {
  background: var(--carbon);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.plan-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.plan-label {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--platinum); font-weight: 500; margin-bottom: 1.25rem;
}
.plan-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; line-height: 1.08;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ash);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step { padding: 1.75rem; }
  .step-num { font-size: 2.8rem; margin-bottom: .75rem; }
}

.step {
  padding: clamp(2rem, 4vw, 2.75rem);
  background: rgba(232,228,220,.04);
  border-top: 2px solid var(--platinum);
}
.step-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: 3.5rem; letter-spacing: .04em;
  color: var(--platinum); opacity: .35;
  line-height: 1; margin-bottom: 1.25rem;
}
.step-title {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 1.15rem; color: var(--ash);
  margin-bottom: .9rem;
}
.step-body { color: #C0BAB0; line-height: 1.75; font-size: .98rem; }

/* Mid-page CTA after plan */
.plan-cta {
  text-align: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.plan-cta-note { font-size: .82rem; color: var(--light-stone); letter-spacing: .04em; }

/* ============================================================
   STAKES — failure on left, success on right, photo full bleed bg
   ============================================================ */
.stakes {
  position: relative;
  background: url('/assets/photos/success.jpg') center / cover no-repeat;
  padding-block: clamp(5rem, 11vw, 9rem);
}
.stakes::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(24,25,26,.96) 0%,
    rgba(24,25,26,.85) 48%,
    rgba(24,25,26,.70) 100%);
}
.stakes .shell {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}
@media (max-width: 780px) {
  .stakes .shell { grid-template-columns: 1fr; gap: 3rem; }
}

.stakes-label {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 1.5rem;
}
.stakes-failure .stakes-label { color: rgba(180,116,106,.9); }
.stakes-success .stakes-label { color: var(--platinum); }

.stakes-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; line-height: 1.1;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
}
.stakes-failure .stakes-headline { color: rgba(228,224,216,.9); }
.stakes-success .stakes-headline { color: var(--ash); }

.stakes-list {
  list-style: none; display: flex; flex-direction: column; gap: 1rem;
}
.stakes-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  font-size: .98rem; line-height: 1.65;
}
.stakes-failure .stakes-list li { color: rgba(200,194,182,.90); }
.stakes-success .stakes-list li { color: rgba(242,238,230,.95); }
.stakes-list li::before {
  content: "";
  flex: none; width: 7px; height: 7px;
  margin-top: .58em;
  transform: rotate(45deg);
}
.stakes-failure .stakes-list li::before { background: rgba(180,116,106,.7); }
.stakes-success .stakes-list li::before { background: var(--platinum); }

/* ============================================================
   FORM — carbon, wide, premium
   ============================================================ */
.consultation {
  background: var(--carbon);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.form-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 52ch; }
.form-label {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--platinum); font-weight: 500; margin-bottom: 1.5rem;
}
.form-headline {
  font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; line-height: 1.08;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--ash); margin-bottom: 1.25rem;
}
.form-lede { color: #C0BAB0; line-height: 1.75; }

/* Grid layout */
.form-wrap { max-width: 860px; }
.field-section { margin-bottom: 2.75rem; }
.field-section-label {
  font-family: var(--f-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--platinum); margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(200,192,176,.18);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .span-2 { grid-column: auto; }
}

/* Fields */
.field { display: flex; flex-direction: column; gap: .55rem; }
.field label {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); font-weight: 500;
}
.field .opt { text-transform: none; letter-spacing: .03em; color: var(--light-stone); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: .98rem; font-weight: 300;
  color: var(--ash);
  background: rgba(232,228,220,.05);
  border: 1px solid rgba(200,192,176,.22);
  padding: 1rem 1.1rem;
  width: 100%;
  appearance: none; -webkit-appearance: none;
  border-radius: 0;
  transition: border-color 160ms ease, background 160ms ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9488' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}
.field select option { background: var(--carbon); color: var(--ash); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--platinum);
  background: rgba(232,228,220,.08);
}
.field input::placeholder, .field textarea::placeholder { color: var(--light-stone); opacity: 1; }
[data-field][data-invalid="true"] input,
[data-field][data-invalid="true"] select,
[data-field][data-invalid="true"] textarea { border-color: rgba(180,116,106,.8); }
.field-error { font-size: .76rem; color: rgba(200,140,130,.9); min-height: 1em; }

/* Consent */
.consent {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 2.5rem;
}
.consent input[type="checkbox"] {
  flex: none; width: 18px; height: 18px; margin-top: .28rem;
  accent-color: var(--platinum); cursor: pointer;
}
.consent label { font-size: .88rem; color: var(--stone); line-height: 1.65; cursor: pointer; }
.consent a { color: var(--ash); text-underline-offset: 3px; }
[data-consent][data-invalid="true"] label { color: rgba(200,140,130,.9); }

/* Submit row */
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.submit-note { font-size: .82rem; color: var(--light-stone); }
.form-status { margin-top: 1.5rem; font-size: .92rem; line-height: 1.65; }
.form-status[data-state="error"] { color: rgba(200,140,130,.9); }
.form-done { display: none; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(200,192,176,.18); }
.form-done h3 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 1.5rem; color: var(--ash); margin-bottom: 1rem;
}
.form-done p { color: var(--stone); max-width: 50ch; }
.form-done a { color: var(--ash); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--slate);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer .shell {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 2rem;
}
.footer-left { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-tagline {
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  font-size: .88rem; color: var(--stone);
}
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
@media (max-width: 680px) {
  .footer .shell { flex-direction: column; gap: 2.5rem; }
  .footer-right { align-items: flex-start; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone); text-decoration: none;
  transition: color 160ms ease;
}
.footer-links a:hover { color: var(--ash); }
.footer-legal { font-size: .74rem; color: var(--stone); line-height: 1.6; }
.footer-legal a { color: var(--stone); text-underline-offset: 3px; }
.footer-gateway {
  font-size: .75rem; letter-spacing: .06em;
  color: var(--stone);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page { padding-block: 9rem 6rem; }
.legal-page h1 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ash); margin-bottom: .5rem;
}
.legal-page .updated { color: var(--light-stone); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3.5rem; }
.legal-page h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--platinum); margin: 3rem 0 1rem;
}
.legal-body { max-width: 66ch; }
.legal-body p { color: rgba(232,228,220,.78); font-size: .97rem; margin-bottom: 1.1rem; }
.legal-body ul { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.legal-body li { color: rgba(232,228,220,.78); font-size: .97rem; margin-bottom: .55rem; }
.legal-body a { color: var(--ash); }

/* ============================================================
   REVEAL ANIMATION — scoped under .js so no-JS sees content
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 900ms cubic-bezier(.22,.61,.36,1), transform 900ms cubic-bezier(.22,.61,.36,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-delay-1 { transition-delay: 140ms; }
  .js .reveal-delay-2 { transition-delay: 280ms; }
  .js .reveal-delay-3 { transition-delay: 420ms; }

  .js .hero-photo { transform: scale(1.06); transition: transform 7s ease-out; }
  .js .hero[data-loaded] .hero-photo { transform: scale(1); }
}
