/* Alliance Travel Partners — launch page styles.
   Tokens are copied from atp-relaunch/website/design-system/tokens.css
   ("The Horizon Line", v1.0). Change tokens there first, then here. */

:root {
  --ink: #15202F;
  --navy: #1A2B42;
  --navy-deep: #0E1725;
  --alabaster: #F7F2E9;
  --alabaster-deep: #EEE6D6;
  --gold: #C5A059;
  --gold-bright: #D9B878;
  --gold-deep: #8A6D33;
  --terracotta: #A85638;
  --terracotta-deep: #8C4128;
  --text-on-light: var(--ink);
  --text-on-light-muted: rgba(21, 32, 47, 0.66);
  --text-on-dark: #F3EDE2;
  --text-on-dark-muted: rgba(243, 237, 226, 0.62);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', -apple-system, 'Segoe UI', sans-serif;
  --size-display: clamp(40px, 6.2vw, 64px);
  --size-h2: clamp(30px, 4vw, 44px);
  --size-h3: clamp(20px, 2.2vw, 24px);
  --size-body: 17px;
  --size-small: 14px;
  --size-eyebrow: 12px;
  --leading-display: 1.05;
  --leading-body: 1.7;
  --track-eyebrow: 0.18em;
  --track-button: 0.14em;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --section-pad: clamp(72px, 10vw, 128px);
  --container: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 3px;
  --radius-card: 6px;
  --shadow-card: 0 18px 44px rgba(14, 23, 37, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-slow: 0.9s;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--text-on-light);
  background: var(--alabaster);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 200;
  padding: 12px 18px; background: var(--gold); color: var(--navy-deep);
  font: 600 13px/1 var(--font-body); border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font: 600 var(--size-eyebrow)/1 var(--font-body);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-dark .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 420; line-height: 1.08; }
h2 { font-size: var(--size-h2); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
.on-dark h1 em, .on-dark h2 em { color: var(--gold-bright); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-on-light-muted); max-width: 56ch; }
.on-dark .lede { color: var(--text-on-dark-muted); }

.horizon {
  display: block; height: 1px; width: 100%; max-width: 340px;
  margin: 26px 0 30px;
  background: linear-gradient(90deg, var(--gold), rgba(197, 160, 89, 0.22) 75%, transparent);
}

.btn {
  display: inline-block;
  font: 600 13px/1 var(--font-body);
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  padding: 17px 38px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ink { background: var(--ink); color: var(--alabaster); }
.btn-ink:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(197, 160, 89, 0.55); }
.btn-ghost:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(14, 23, 37, 0.94);
  backdrop-filter: blur(18px);
  padding: 13px var(--gutter);
  box-shadow: 0 1px 0 rgba(197, 160, 89, 0.16);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--text-on-dark); }
.brand svg { height: 40px; width: auto; color: var(--gold); transition: height 0.35s ease; }
.nav.scrolled .brand svg { height: 31px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.12; }
.brand-word b { font: 700 13.5px/1.1 var(--font-body); letter-spacing: 0.3em; color: var(--text-on-dark); }
.brand-word span { font: 500 8.5px/1.4 var(--font-body); letter-spacing: 0.42em; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font: 500 12.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark); }
.nav-links .btn { padding: 12px 22px; font-size: 11.5px; }
@media (max-width: 920px) { .nav-links li:not(:last-child) { display: none; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--text-on-dark);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 42% at 74% 56%, rgba(217, 184, 120, 0.55), transparent 62%),
    radial-gradient(circle 116px at 74% 57%, #E8CD96 0 34%, rgba(232, 205, 150, 0.35) 60%, transparent 72%),
    linear-gradient(180deg, #0C1524 0%, #15263E 30%, #3A4B63 48%, #8A6D4E 55%, #B0714A 58.5%, #7E5140 62%, #22344B 66%, #101C2E 82%, #0C1524 100%);
}
.hero-art::before {
  content: ''; position: absolute; left: 0; right: 0; top: 58.2%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 205, 150, 0.9) 30% 70%, transparent);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 23, 37, 0.62) 0%, rgba(14, 23, 37, 0.12) 38%, rgba(14, 23, 37, 0.24) 62%, rgba(14, 23, 37, 0.88) 100%);
}
.hero-inner { position: relative; width: 100%; padding: 140px 0 118px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(44px, 6.6vw, 78px); font-weight: 400; letter-spacing: -0.015em; max-width: 16ch; margin: 22px 0 24px; }
.hero .lede { color: var(--text-on-dark-muted); max-width: 52ch; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.cred {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(197, 160, 89, 0.28);
  background: rgba(12, 20, 33, 0.55);
  backdrop-filter: blur(10px);
}
.cred-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0;
  padding: 20px var(--gutter);
  font: 500 12.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-on-dark-muted); list-style: none;
}
.cred-inner li { display: flex; align-items: center; }
.cred-inner li + li::before {
  content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); margin: 0 22px;
}
@media (max-width: 700px) {
  .cred-inner { font-size: 10.5px; }
  .cred-inner li + li::before { margin: 0 12px; }
}

/* ── Sections ─────────────────────────────────────────────── */
section { padding: var(--section-pad) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

/* ── What we design ───────────────────────────────────────── */
/* Photo slots are gradient blocks until ENG-210 brings licensed imagery. */
.craft { background: var(--alabaster); }
.craft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .craft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .craft-grid { grid-template-columns: 1fr; } }
.craft-card {
  display: flex; flex-direction: column;
  background: #FFFDF8;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.craft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.craft-art { position: relative; height: 180px; overflow: hidden; }
.art-sea { background: linear-gradient(180deg, #12233B 0%, #1E3A55 42%, #2E5570 55%, #1B3148 58%, #132539 100%); }
.art-sea::before { content: ''; position: absolute; left: 8%; right: 8%; top: 54%; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 184, 120, 0.8), transparent); }
.art-coast { background: linear-gradient(168deg, #D9B878 0%, #C08B57 30%, #A85638 55%, #7E4A33 75%, #57392E 100%); }
.art-coast::before { content: ''; position: absolute; inset: auto -10% 18% -10%; height: 36%; background: radial-gradient(60% 100% at 30% 100%, #6B4A35 0 60%, transparent 61%), radial-gradient(50% 90% at 75% 100%, #7E5140 0 55%, transparent 56%); opacity: 0.85; }
.art-fete { background: radial-gradient(90% 70% at 50% 88%, rgba(232, 205, 150, 0.75), transparent 60%), linear-gradient(180deg, #1C1626 0%, #3A2334 45%, #6B3A33 78%, #8C4A32 100%); }
.art-north { background: linear-gradient(180deg, #0B1B2B 0%, #123146 45%, #1E4A52 62%, #0F2434 100%); }
.art-north::before { content: ''; position: absolute; left: -10%; right: -10%; top: 12%; height: 36%; background: linear-gradient(100deg, transparent 15%, rgba(120, 214, 175, 0.34) 35%, rgba(197, 160, 89, 0.22) 55%, transparent 75%); filter: blur(14px); transform: rotate(-6deg); }
.craft-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.craft-body .eyebrow { color: var(--terracotta-deep); margin-bottom: 12px; letter-spacing: 0.14em; }
.craft-body h3 { font-size: 23px; margin-bottom: 12px; }
.craft-body > p:last-child { font-size: 14.5px; color: var(--text-on-light-muted); flex: 1; }

/* ── How it works ─────────────────────────────────────────── */
.how { background: var(--alabaster-deep); }
.how-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.route { position: relative; margin-top: 8px; list-style: none; counter-reset: step; }
.route::before { content: ''; position: absolute; left: 9px; top: 14px; bottom: 14px; border-left: 2px dotted rgba(138, 109, 51, 0.55); }
.step { position: relative; padding: 0 0 34px 46px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--alabaster-deep); border: 2px solid var(--gold-deep);
}
.step h3 { font-size: 21px; margin-bottom: 7px; }
.step h3::before { counter-increment: step; content: counter(step) " · "; color: var(--gold-deep); }
.step p { font-size: 15px; color: var(--text-on-light-muted); }

/* ── Testimonials ─────────────────────────────────────────── */
/* The three quotes already published on the Squarespace site, excerpted. */
.voices { background: var(--alabaster); }
.voices-head { margin-bottom: clamp(32px, 4vw, 48px); }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .voices-grid { grid-template-columns: 1fr; } }
.voice {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px) 28px;
  background: #FFFDF8;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-card);
  display: flex; flex-direction: column;
}
.voice::before {
  content: '\201C'; position: absolute; top: 2px; left: 22px;
  font: 400 72px/1 var(--font-display); color: var(--gold); opacity: 0.5;
}
.voice blockquote { font: italic 400 clamp(18px, 1.6vw, 20px)/1.5 var(--font-display); letter-spacing: -0.005em; flex: 1; padding-top: 10px; }
.voice figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(197, 160, 89, 0.3); font: 600 11.5px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-light-muted); }

/* ── Hero, split layout (/alt) ────────────────────────────── */
/* Same markup as /, switched by <body class="hero-split">: photo on one side, headline on alabaster. */
.hero-split .nav { background: rgba(14, 23, 37, 0.94); backdrop-filter: blur(18px); padding: 13px var(--gutter); box-shadow: 0 1px 0 rgba(197, 160, 89, 0.16); }
.hero-split .nav .brand svg { height: 31px; }
.hero-split .hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  min-height: 100svh; padding-top: 66px;
  background: var(--alabaster); color: var(--text-on-light);
}
.hero-split .hero-media { position: relative; inset: auto; z-index: 0; order: 2; min-height: 520px; }
.hero-split .hero-shade { background: linear-gradient(180deg, rgba(14, 23, 37, 0.18) 0%, rgba(14, 23, 37, 0) 40%, rgba(14, 23, 37, 0.28) 100%); }
.hero-split .hero-inner { order: 1; align-self: center; max-width: none; margin: 0; padding: clamp(56px, 8vw, 110px) clamp(32px, 5vw, 80px) clamp(56px, 8vw, 110px) var(--gutter); }
.hero-split .hero .eyebrow { color: var(--gold-deep); }
.hero-split .hero h1 { max-width: 13ch; }
.hero-split .hero h1 em { color: var(--terracotta); }
.hero-split .hero .lede { color: var(--text-on-light-muted); }
.hero-split .cred { position: static; order: 3; grid-column: 1 / -1; background: var(--navy-deep); backdrop-filter: none; }
@media (min-width: 1181px) { .hero-split .hero-inner { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); } }
@media (max-width: 900px) {
  .hero-split .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-split .hero-media { order: 1; min-height: 0; height: clamp(240px, 58vw, 440px); }
  .hero-split .hero-inner { order: 2; padding: 48px var(--gutter) 56px; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  position: relative; color: var(--text-on-dark);
  background: linear-gradient(180deg, #101C2E 0%, #1A2B42 55%, #0E1725 100%);
}
.contact::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { margin: 16px 0; }
.contact-aside p { color: var(--text-on-dark-muted); }
.contact-lines { margin-top: 30px; font-size: 15px; color: var(--text-on-dark-muted); line-height: 2; }
.contact-lines a { color: var(--gold-bright); border-bottom: 1px solid rgba(217, 184, 120, 0.4); }

.form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.4vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.field label small { font-weight: 500; letter-spacing: 0.06em; text-transform: none; color: var(--text-on-dark-muted); margin-left: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  font: 400 16px/1.4 var(--font-body); color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 237, 226, 0.22);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.09); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 237, 226, 0.4); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--terracotta); }
.field-error { font-size: 13px; color: #E2A58B; min-height: 0; display: none; }
.field.invalid .field-error { display: block; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form-fine { font-size: 12.5px; color: var(--text-on-dark-muted); }
.form-status { margin-top: 18px; font-size: 15px; color: var(--text-on-dark-muted); }
.form-status[data-state="error"] { color: #E2A58B; }
.form-success { text-align: center; padding: clamp(24px, 4vw, 48px) 0; }
.form-success h3 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 12px; }
.form-success p { color: var(--text-on-dark-muted); max-width: 44ch; margin: 0 auto; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep); color: var(--text-on-dark-muted);
  border-top: 1px solid rgba(197, 160, 89, 0.16);
  padding: 56px 0 40px;
}
.f-grid { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.f-brand { display: flex; align-items: center; gap: 14px; }
.f-brand svg { height: 34px; color: var(--gold); opacity: 0.85; }
.f-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.f-links a { font: 500 11.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.f-links a:hover { color: var(--gold); }
.f-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(243, 237, 226, 0.08); font-size: 12.5px; line-height: 1.8; }
.f-legal a { color: var(--text-on-dark); }

/* ── 404 ──────────────────────────────────────────────────── */
/* Classes, not style attributes: the hosting CSP (style-src 'self') blocks inline styles. */
.page-404 { background: var(--navy-deep); color: var(--text-on-dark); min-height: 100svh; display: flex; align-items: center; }
.page-404 main { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.page-404 h1 { font-size: var(--size-h2); margin: 16px 0; }
.page-404 .lede { margin-bottom: 32px; }

/* ── Motion ───────────────────────────────────────────────── */
/* Content is visible by default; form.js adds .js-reveal to <html> only once the
   IntersectionObserver is watching, so no script means no hidden content. */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.24s; } .d3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
