/* ===========================================================
   TravelBoss — styles.css
   Mobile-first, dark-mode aware, no external dependencies.
   =========================================================== */

:root {
  /* Brand — Golden Hour palette */
  --coral-700: #c46437;
  --coral-500: #e07a4d;
  --coral-300: #f3a865;
  --ink-900:   #1f2e3d;
  --ink-700:   #3a4a5f;
  --ink-500:   #4a5a6e;
  --paper:     #faf2e7;
  --paper-2:   #f0e6d3;
  --line:      #e3d8c4;
  --shadow:    0 6px 20px rgba(31, 46, 61, 0.10);
  --radius:    14px;
  --radius-sm: 8px;
  --maxw:      1100px;
  --header-h:  64px;
  --ease:      cubic-bezier(.2,.7,.2,1);

  --bg:       var(--paper);
  --bg-alt:   var(--paper-2);
  --fg:       var(--ink-900);
  --fg-muted: var(--ink-500);
  --border:   var(--line);
  --primary:  var(--coral-500);
  --primary-ink: #ffffff;
  --accent:   var(--coral-300);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f1c26;
    --bg-alt:   #142532;
    --fg:       #f4ece1;
    --fg-muted: #b8c4cf;
    --border:   #2a3f52;
    --primary:  var(--coral-300);
    --primary-ink: #1f2e3d;
    --accent:   var(--coral-500);
    --shadow:   0 6px 20px rgba(0,0,0,0.45);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { max-width: 100%; }
iframe { border: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; color: var(--fg); }
h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; color: var(--fg); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-ink);
  padding: .6rem .9rem; border-radius: 0 0 8px 8px;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.logo {
  font-weight: 800; letter-spacing: .02em;
  color: var(--fg);
  font-size: 1.15rem;
}
.logo:hover { text-decoration: none; }

.nav-links {
  margin-left: auto;
  display: none;
  gap: 1.25rem;
}
.nav-links a {
  color: var(--fg);
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--primary); }

.menu-btn {
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-grid; place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s linear;
}
.menu-icon::before { position: absolute; top: -6px; left: 0; }
.menu-icon::after  { position: absolute; top:  6px; left: 0; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after  { top: 0; transform: rotate(-45deg); }

@media (min-width: 760px) {
  .menu-btn { display: none; }
  .nav-links { display: flex; }
}

@media (max-width: 759px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: flex; flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .25rem 1rem 1rem;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1; pointer-events: auto;
  }
  .nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow);
}
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.btn.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Layout ---------- */
.section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1rem;
}
.section.alt { background: var(--bg-alt); }
.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.section-heading p { color: var(--fg-muted); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}
.tagline {
  display: inline-block;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  margin: 0 0 1rem;
}
.hero-subline {
  font-size: clamp(1.05rem, .6vw + .9rem, 1.2rem);
  font-weight: 500;
  color: var(--fg);
  margin: .25rem 0 1rem;
  max-width: 50ch;
}
.hero-text { color: var(--fg-muted); max-width: 60ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

.hero-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.1rem; }
.hero-card > p { color: var(--fg-muted); margin-bottom: 1rem; }

.choice-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
  color: var(--fg);
  transition: transform .15s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.choice-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.choice-card strong { display: block; }
.choice-card small { color: var(--fg-muted); }
.choice-card .arrow { font-size: 1.25rem; color: var(--primary); }

/* ---------- Cards / panels ---------- */
.cards, .video-grid, .split, .social-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.cards { grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 600px)  { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card.adventure { display: flex; flex-direction: column; gap: .35rem; }
.card.adventure .btn { margin-top: auto; align-self: flex-start; }

.card, .panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card.product { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.card.product .btn { margin-top: auto; }
.emoji { font-size: 2rem; line-height: 1; }

.split { grid-template-columns: 1fr; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Videos ---------- */
.video-grid { grid-template-columns: 1fr; }
@media (min-width: 800px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.center { text-align: center; margin-top: 1.25rem; }

/* ---------- Social ---------- */
.social-grid {
  list-style: none; padding: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .social-grid { grid-template-columns: repeat(4, 1fr); } }
.social-grid a {
  display: block;
  text-align: center;
  padding: .9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-weight: 600;
}
.social-grid a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }

/* ---------- Disclosure ---------- */
.disclosure { max-width: var(--maxw); margin: 1rem auto 0; text-align: center; color: var(--fg-muted); }

/* ---------- Forms ---------- */
.form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.form textarea { resize: vertical; min-height: 110px; }

.form input:user-invalid,
.form select:user-invalid,
.form textarea:user-invalid {
  border-color: #c0392b;
}

.checkbox {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .95rem; color: var(--fg-muted);
}
.checkbox input { margin-top: .25rem; }

/* Honeypot — visually hidden but available to bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.form-status { margin: 0; min-height: 1.25em; font-size: .95rem; }
.form-status.success { color: var(--coral-700); font-weight: 600; }
.form-status.error   { color: #c0392b; font-weight: 600; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .75rem;
  background: var(--primary);
  color: var(--primary-ink);
  padding: .7rem .9rem .7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 40;
  max-width: calc(100% - 24px);
}
.sticky-cta a {
  color: var(--primary-ink);
  background: rgba(255,255,255,.18);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
}
.sticky-cta a:hover { text-decoration: none; background: rgba(255,255,255,.28); }
.cta-close {
  background: transparent;
  color: var(--primary-ink);
  border: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1;
  padding: .15rem .35rem;
  border-radius: 999px;
}
.cta-close:hover { background: rgba(255,255,255,.18); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 5rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}
.site-footer .social-grid { margin-bottom: 1rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}