/* Adventure by Case Travel
   Brand tokens, aligned with the parent Case Travel site (navy, cream, taupe, slate blue).
   Change the values in :root only; everything else reads from them. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #1b1f2a;        /* Case Travel navy – hero, dark sections, footer */
  --ink-2: #262c3a;
  --slate: #4a6b78;      /* Case Travel slate blue */
  --cream: #f4eee5;      /* page background */
  --sand: #e7ddcd;
  --brass: #86704d;      /* taupe accent – text-safe on cream */
  --brass-light: #cdbd9f;/* taupe accent on navy */
  --text: #1b1f2a;
  --muted: #5a5f68;
  --line: rgba(27, 31, 42, 0.14);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, min(7vw, 10svh), 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.65rem; }
em { font-style: italic; color: var(--brass-light); }
.section-light em { color: var(--brass); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); padding: 10px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--brass); border-radius: var(--radius); background: var(--brass); color: #fff; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: transparent; color: var(--brass-light); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 242, 233, 0.45); }
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; padding: clamp(18px, 3.5svh, 28px) 0; color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 1.6rem/1 var(--serif); letter-spacing: 0.02em; }
.brand-sub { font: 500 0.625rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-light); margin-top: 7px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--brass-light); }
.nav .btn { padding: 12px 20px; opacity: 1; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; max-height: 1100px; display: flex; align-items: center; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,31,42,.78) 0%, rgba(27,31,42,.45) 45%, rgba(27,31,42,0) 75%), linear-gradient(180deg, rgba(27,31,42,.35) 0%, rgba(27,31,42,0) 35%, rgba(27,31,42,.55) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(27,31,42,.4) 0%, rgba(27,31,42,.55) 40%, rgba(27,31,42,.85) 100%); } }
.hero-content { position: relative; z-index: 2; padding-top: clamp(84px, 12vh, 120px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { max-width: 18ch; }
.hero-lede { max-width: 34rem; margin: clamp(16px, 3svh, 28px) 0 clamp(24px, 4.5svh, 40px); font-size: clamp(1rem, 2.2svh, 1.125rem); color: rgba(247, 242, 233, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
section { padding: clamp(80px, 12vw, 140px) 0; }
.section-light { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--cream); }


.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head p { max-width: 28rem; margin: 0; color: var(--muted); }
.section-dark .section-head p { color: rgba(247, 242, 233, 0.7); }

.journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journey { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 32px; color: var(--cream); background: var(--ink-2); overflow: hidden; }
.journey-art { position: absolute; inset: 0; }
.journey-art svg { width: 100%; height: 100%; }
.journey::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,31,42,0) 20%, rgba(27,31,42,.75) 55%, rgba(27,31,42,.94) 100%); }
.journey > *:not(.journey-art) { position: relative; z-index: 2; }
.journey .tag { font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 12px; }
.journey p { margin: 12px 0 0; font-size: 0.9375rem; color: rgba(247, 242, 233, 0.78); }
@media (max-width: 960px) { .journeys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .journeys { grid-template-columns: 1fr; } .journey { min-height: 340px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(247, 242, 233, 0.18); }
.steps li { padding: 40px 36px 0 0; }
.steps li + li { padding-left: 36px; border-left: 1px solid rgba(247, 242, 233, 0.18); }
.step-num { font: 500 3rem/1 var(--serif); color: var(--brass-light); margin-bottom: 20px; }
.steps p { color: rgba(247, 242, 233, 0.72); margin: 12px 0 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 32px 0; border-left: 0; border-bottom: 1px solid rgba(247, 242, 233, 0.18); } }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.promise h3 { font-size: 1.35rem; margin-bottom: 10px; }
.promise p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.promise .rule { width: 36px; height: 1px; background: var(--brass); margin-bottom: 22px; }
@media (max-width: 960px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; } }

/* Enquiry */
.enquire { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); }
.enquire-aside p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.contact-list a { text-decoration: none; font: 500 1.35rem/1.3 var(--serif); }
.contact-list a:hover { color: var(--brass); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(27, 31, 42, 0.3); border-radius: 0; padding: 10px 0; }
select { appearance: none; background: 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='%2386704d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.form-foot small { color: var(--muted); font-size: 0.8125rem; max-width: 26rem; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .enquire { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247, 242, 233, 0.7); padding: 64px 0 40px; font-size: 0.875rem; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(247, 242, 233, 0.14); }
.site-footer .brand { color: var(--cream); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 0.8125rem; }

/* Simple pages (privacy, thank-you, 404) */
.page-hero { background: var(--ink); color: var(--cream); padding: 180px 0 80px; }
.page-hero p { color: rgba(247, 242, 233, 0.75); max-width: 36rem; margin: 20px 0 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.9rem; margin: 2em 0 0.5em; }
.prose p, .prose li { color: var(--muted); }

/* Reveal on scroll */


/* Trust strip + form status */
.trust { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.trust a { color: var(--text); text-underline-offset: 4px; }
.trust strong { font: 500 1.25rem/1.2 var(--serif); color: var(--text); margin-right: 10px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.9375rem; color: #8a2d2d; }
.form-status:empty { display: none; }
.footer-legal { margin: 28px 0 0; font-size: 0.75rem; line-height: 1.6; color: rgba(244, 238, 229, 0.55); max-width: 60rem; }
.hero .eyebrow, .section-dark .eyebrow, .page-hero .eyebrow { color: var(--brass-light); }

@media (max-width: 560px) {
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 14px 20px; flex: 1 1 auto; justify-content: center; }
}

/* ---------- Motion ----------
   Everything below is progressive enhancement: without JS (html.no-js) or with
   reduced motion, content shows immediately. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Hero: staggered entrance, slow glow, parallax layers (moved by site.js) */
.load-in { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(150ms + var(--i, 0) * 140ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-art svg { animation: settle 2.4s var(--ease) both; transform-origin: 50% 100%; }
@keyframes settle { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
.hero-glow { animation: glow 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes glow { from { opacity: .4; transform: scale(.94); } to { opacity: .7; transform: scale(1.05); } }
.layer { will-change: transform; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(244, 238, 229, .45); border-radius: 12px; opacity: 0; animation: rise 1s var(--ease) 1.2s forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--brass-light); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 620px) { .scroll-cue { display: none; } }

/* Buttons */
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Generic reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Word-by-word headings */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(120ms + var(--w, 0) * 55ms); }
[data-split].is-in .w > span { transform: none; }

/* About Ellie */
.about .is-in .draw-line { display: block; width: 0; height: 1px; margin-top: 36px; background: var(--brass); transition: width 1.4s var(--ease) .7s; }
.about .is-in .draw-line { width: 120px; }
[data-stagger].reveal > * { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(200ms + var(--i, 0) * 120ms); }
[data-stagger].reveal.is-in > * { opacity: 1; transform: none; }

/* Journey tiles: hover lift, slow zoom, link slides in */
.journey { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.journey-art svg { transition: transform 1.2s var(--ease); }
.journey::before { content: ""; position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 0; height: 2px; background: var(--brass-light); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.journey h3, .journey .tag, .journey p { transition: transform .6s var(--ease); }
.journey-link { margin-top: 18px; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-light); text-decoration: none; }
.journey-link::after { content: ""; position: absolute; inset: -400px -32px -32px; z-index: 4; }
.journey-link span { display: inline-block; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .journey-link { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .journey:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -24px rgba(27, 31, 42, .55); }
  .journey:hover .journey-art svg { transform: scale(1.07); }
  .journey:hover::before { transform: scaleX(1); }
  .journey:hover h3, .journey:hover .tag, .journey:hover p { transform: translateY(-6px); }
  .journey:hover .journey-link { opacity: 1; transform: none; }
  .journey:hover .journey-link span { transform: translateX(4px); }
}
.journey:focus-within::before { transform: scaleX(1); }

/* How it works: numbers fade up */
.steps .step-num { transition: letter-spacing 1.2s var(--ease); letter-spacing: .2em; }
.steps .is-in .step-num { letter-spacing: 0; }

/* Why book: rules draw in, then text */
.promise .rule { width: 0; transition: width 1s var(--ease); transition-delay: calc(250ms + var(--i, 0) * 140ms); }
.promise .is-in .rule { width: 36px; }
.trust { transition-delay: .5s; }

/* No JS / reduced motion: show everything */
.no-js .reveal, .no-js [data-stagger] > *, .no-js .load-in { opacity: 1 !important; transform: none !important; animation: none; }
.no-js .promise .rule { width: 36px; } .no-js .draw-line { width: 120px; } .no-js @media (prefers-reduced-motion: reduce) {
  .load-in, .reveal, [data-stagger] > *, [data-split] .w > span, .scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; }
  .promise .rule { width: 36px; } .draw-line { width: 120px; }   .hero-art svg, .hero-glow, .scroll-cue span { animation: none; }
}
.journey.reveal { transition: opacity 1s var(--ease), transform .7s var(--ease), box-shadow .6s var(--ease); }
.reveal.done { transition-delay: 0s; }

/* About Ellie: portrait + story */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 40px; }
.portrait-frame { position: relative; max-width: 420px; }
.portrait-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); transform: translate(-18px, -18px); opacity: 0; transition: transform 1.4s var(--ease) .5s, opacity 1s var(--ease) .5s; }
.portrait-frame img { position: relative; width: 100%; height: auto; aspect-ratio: 405 / 401; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); }
.portrait.is-in .portrait-frame img { clip-path: inset(0 0 0 0); transform: none; }
.portrait.is-in .portrait-frame::before { opacity: 1; transform: none; }
.portrait figcaption { margin-top: 40px; font-size: 0.875rem; color: var(--muted); }
.portrait figcaption strong { display: block; font: 500 1.5rem/1.2 var(--serif); color: var(--text); }
.about-copy p { margin: 0 0 1.2em; color: var(--muted); }
.about-copy p.lead { font: 500 1.6rem/1.4 var(--serif); color: var(--text); margin-top: 36px; }
.favourites { margin: 36px 0 0; border-top: 1px solid var(--line); }
.favourites > div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.favourites dt { font: 500 0.6875rem/1.9 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.favourites dd { margin: 0; font: 500 1.25rem/1.4 var(--serif); color: var(--text); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 340px; }
}
@media (max-width: 560px) { .favourites > div { grid-template-columns: 1fr; gap: 4px; } }
.no-js .portrait-frame img { clip-path: none; transform: none; } .no-js .portrait-frame::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .portrait-frame img { clip-path: none !important; transform: none !important; } .portrait-frame::before { opacity: 1; transform: none; } }
