/* ============================================================
   Asterra — "Where the world opens"
   Art direction: cartographer's dusk. Deep ink blues, one gold.
   Every visual generated in-house (Blender 3D renders, SVG, CSS).
   Hero globe + enquiry backdrop are genuine Blender Cycles renders;
   see blender/ for the deterministic scene scripts.
   ============================================================ */

:root {
  --ink: #0c1322;
  --ink-2: #111a2e;
  --ink-3: #16223c;
  --paper: #f4f1e8;
  --paper-dim: #cfc9b8;
  --gold: #e8b34b;
  --gold-deep: #c9922f;
  --teal: #39d0a5;
  --line: rgba(244, 241, 232, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.3, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 650;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f2c66e; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 200; font-weight: 600;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--ink); }

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), color 220ms var(--ease-out),
              box-shadow 220ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 8px 28px rgba(232, 179, 75, 0.22);
}
.btn-gold:hover { background: #f2c66e; color: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line); color: var(--paper);
  background: rgba(244, 241, 232, 0.04);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn-large { font-size: 1.05rem; padding: 1rem 2.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 19, 34, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.8rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--paper); text-decoration: none; font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--paper); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); }
.site-nav {
  display: flex; gap: 1.4rem; margin-left: auto;
}
.site-nav a {
  color: var(--paper-dim); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  transition: color 200ms var(--ease-out);
}
.site-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.55rem 0.6rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--paper);
  margin: 4px 0; border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column; gap: 0.2rem;
  padding: 0.5rem 1.25rem 1.2rem;
  border-top: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  color: var(--paper); text-decoration: none; padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 0.8rem; text-align: center; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5.5rem;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(57, 208, 165, 0.07), transparent 60%),
    radial-gradient(900px 520px at 15% 80%, rgba(232, 179, 75, 0.08), transparent 60%),
    linear-gradient(180deg, #0a101d 0%, var(--ink) 70%);
}
.hero-stage {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-visual {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.95;
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-drift {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.2%, 1%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 19, 34, 0.80) 0%, rgba(12, 19, 34, 0.45) 42%, rgba(12, 19, 34, 0) 68%),
    linear-gradient(0deg, rgba(12, 19, 34, 0.55) 0%, rgba(12, 19, 34, 0) 32%);
}
.hero-fallback[hidden] { display: none; }
.hero-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6vw;
}
.hero-fallback svg { width: min(46vw, 520px); height: auto; opacity: 0.9; }

.hero-copy {
  position: relative;
  max-width: 640px;
  padding-top: 2rem;
}
.kicker {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--gold); font-size: 0.98rem; font-weight: 600;
  margin-bottom: 1.2rem;
}
.kicker-rule {
  display: inline-block; width: 2.4rem; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.hero h1 { margin-bottom: 1.1rem; }
.lede {
  font-size: 1.18rem; color: var(--paper-dim);
  max-width: 34rem; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; gap: 2.6rem; flex-wrap: wrap; margin: 0;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-size: 2rem; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hero-stats dd { margin: 0; color: var(--paper-dim); font-size: 0.92rem; }
.hero-caption {
  position: absolute; right: 1.4rem; bottom: 1.1rem;
  font-size: 0.8rem; color: rgba(244, 241, 232, 0.42);
  font-style: italic; margin: 0;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-sub { color: var(--paper-dim); font-size: 1.08rem; margin: 0; }

/* ---------- Destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}
.dest-card {
  grid-column: span 3;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.dest-card:nth-child(3n + 1) { grid-column: span 4; }
.dest-card:nth-child(3n + 2) { grid-column: span 2; }
.dest-card:nth-child(3n)     { grid-column: span 3; }
.dest-card:nth-child(3n + 4) { grid-column: span 3; }
.dest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 179, 75, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.dest-art { width: 100%; height: auto; aspect-ratio: 400 / 230; object-fit: cover; }
.dest-body { padding: 1.5rem 1.6rem 1.7rem; }
.dest-body h3 { margin-bottom: 0.5rem; }
.dest-body p { color: var(--paper-dim); font-size: 0.99rem; margin-bottom: 0.8rem; }
.dest-note {
  color: var(--gold) !important;
  font-size: 0.9rem !important; font-weight: 600; margin-bottom: 0 !important;
}

/* ---------- Journeys ---------- */
.journey-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.journey {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.8rem; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(244, 241, 232, 0.025);
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.journey:hover { border-color: rgba(232, 179, 75, 0.5); transform: translateY(-3px); }
.journey svg {
  flex: 0 0 46px; width: 46px; height: 46px; color: var(--gold);
  margin-top: 0.2rem;
}
.journey h3 { margin-bottom: 0.4rem; }
.journey p { color: var(--paper-dim); margin: 0; font-size: 0.99rem; }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.7rem 1.8rem; overflow: hidden;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(232, 179, 75, 0.12); color: var(--gold);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 1.1rem;
  border: 1px solid rgba(232, 179, 75, 0.4);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--paper-dim); margin: 0; font-size: 0.99rem; }

/* ---------- Testimonials ---------- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.quote {
  margin: 0; padding: 1.9rem 1.7rem;
  border-left: 3px solid var(--gold);
  background: rgba(244, 241, 232, 0.025);
  border-radius: 0 14px 14px 0;
}
.quote blockquote {
  margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.06rem;
  font-style: italic; color: var(--paper);
}
.quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.quote figcaption strong { font-size: 0.98rem; }
.quote figcaption span { color: var(--paper-dim); font-size: 0.87rem; }

/* ---------- Enquiry ---------- */
.enquiry {
  background:
    radial-gradient(800px 420px at 12% 20%, rgba(232, 179, 75, 0.07), transparent 60%),
    linear-gradient(rgba(12, 19, 34, 0.87), rgba(12, 19, 34, 0.91)),
    url("assets/dusk-vista.png") center 35% / cover no-repeat,
    var(--ink);
  border-top: 1px solid var(--line);
}
.enquiry-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start;
}
.enquiry-points { list-style: none; margin: 1.6rem 0; padding: 0; }
.enquiry-points li {
  position: relative; padding-left: 1.9rem; margin-bottom: 0.75rem;
  color: var(--paper-dim);
}
.enquiry-points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.9rem; height: 0.55rem;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: rotate(-48deg);
}
.enquiry-alt { color: var(--paper-dim); font-size: 0.95rem; }

.enquiry-form {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.45rem;
  color: var(--paper);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(12, 19, 34, 0.7);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--paper); font: inherit; font-size: 0.99rem;
  padding: 0.75rem 0.95rem;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(207, 201, 184, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 179, 75, 0.22);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e8b34b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form-error {
  color: #ff9d8a; font-size: 0.93rem; font-weight: 600; margin: 0 0 1rem;
}
.form-hint { color: var(--paper-dim); font-size: 0.88rem; margin: 0.9rem 0 0; }
.enquiry-form .btn { width: 100%; text-align: center; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; align-items: center;
}
.about-grid p { color: var(--paper-dim); }
.about-art { border-radius: 18px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
  background: #090e19;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start;
}
.brand-line { font-size: 1.05rem; margin-bottom: 0.3rem; }
.footer-note, .footer-legal { color: var(--paper-dim); font-size: 0.9rem; margin: 0; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer nav a { color: var(--paper-dim); text-decoration: none; font-size: 0.95rem; }
.site-footer nav a:hover { color: var(--gold); }
.footer-legal { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 70ms; }
.reveal:nth-child(3) { transition-delay: 140ms; }
.reveal:nth-child(4) { transition-delay: 210ms; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .dest-card, .dest-card:nth-child(3n + 1), .dest-card:nth-child(3n + 2) { grid-column: span 6; }
  .journey-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .enquiry-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-fallback { justify-content: center; padding-right: 0; opacity: 0.35; }
  .hero-visual { object-position: 65% 40%; }
}
@media (max-width: 720px) {
  .site-nav, .header-inner > .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .hero-caption { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* Mobile fix: Ensure kicker text never sits directly over globe */
@media (max-width: 720px) {
  .hero-veil {
    background: linear-gradient(180deg, rgba(12, 19, 34, 0.92) 0%, rgba(12, 19, 34, 0.65) 45%, rgba(12, 19, 34, 0.95) 100%) !important;
  }
  .hero-visual {
    object-position: 85% 75% !important;
    opacity: 0.55 !important;
  }
  .hero-copy {
    padding-top: 3.5rem !important;
  }
  .kicker {
    position: relative !important;
    z-index: 5 !important;
    background: rgba(12, 19, 34, 0.72) !important;
    display: inline-flex !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
}
