/* Time Escape public website. Colors and type follow the logo and the company's own ads:
   ink navy + gold, a high-contrast serif for headlines, a handwritten script for little notes. */
:root {
    --navy: #0b2340;
    --navy-2: #173a66;
    --gold: #c9ae4f;
    --gold-ink: #8a6d1e;
    --sky: #eaf2fb;
    --paper: #ffffff;
    --muted: #4d5d78;
    --line: #d9e3f0;
    --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --script: 'Allura', 'Segoe Script', cursive;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--paper); color: var(--navy); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px;
    border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d9c071; color: var(--navy); }

/* Header */
.top { display: flex; align-items: center; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; }
.top-logo img { width: 172px; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .98rem; }
.top-nav a:hover { color: var(--gold-ink); }
.top-signin { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.top-signin:hover { color: var(--navy); border-color: var(--navy); }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-note { color: var(--gold-ink); font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 6px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--navy-2); }
.hero-intro { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.caps { margin: 28px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.caps i { font-style: normal; color: var(--gold); margin: 0 .4em; }
.hero-art { position: relative; aspect-ratio: 400 / 360; background: radial-gradient(closest-side, var(--sky) 0 72%, transparent 73%) 60% 45% / 92% 92% no-repeat; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flight-path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 9; }
.flight-plane path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.traveller { position: absolute; left: 0; bottom: 0; width: 58%; }
/* The dotted line draws itself once, from the traveller to the plane. */
@media (prefers-reduced-motion: no-preference) {
    .flight-path { mask: linear-gradient(#000 0 0) no-repeat 0 0 / 0% 100%; animation: draw 1.8s .3s ease-out forwards; }
    .flight-plane { opacity: 0; animation: arrive .5s 1.9s ease-out forwards; }
    @keyframes draw { to { mask-size: 100% 100%; } }
    @keyframes arrive { to { opacity: 1; } }
}

/* Trips */
.trips { background: var(--sky); padding: 80px 0 72px; }
.section-note { color: var(--gold-ink); font-size: 2.2rem; margin: 0 0 4px; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; max-width: 36em; }
.trip-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 44px 32px; }
.trip { display: flex; flex-direction: column; }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 0; box-shadow: 0 2px 4px rgba(11, 35, 64, .08), 0 14px 30px rgba(11, 35, 64, .12); transform: rotate(-1.4deg); transition: transform .25s; }
.trip:nth-child(even) .polaroid { transform: rotate(1.2deg); }
.trip:nth-child(3n) .polaroid { transform: rotate(-.6deg); }
.trip:hover .polaroid { transform: rotate(0) translateY(-3px); }
/* Posters show whole, in their own shape (no cropping of the text); very tall ones are shrunk to fit, not cut. */
.polaroid img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; background: #fff; }
.polaroid-blank { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 20px;
    background: var(--navy) repeating-linear-gradient(-35deg, transparent 0 22px, rgba(201, 174, 79, .08) 22px 23px); }
.polaroid-blank .script { color: var(--gold); font-size: clamp(3rem, 6vw, 3.8rem); }
.polaroid figcaption { color: var(--navy); font-size: 1.75rem; padding: 12px 6px 14px; text-align: center; }
.polaroid:not(:has(figcaption)) { padding-bottom: 36px; }
.trip-body { padding: 22px 4px 0; display: flex; flex-direction: column; flex: 1; }
.trip-body h3 { font-size: 1.6rem; }
.trip-meta { margin: 6px 0 0; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trip-price { margin: 10px 0 0; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--gold-ink); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 5px 0; color: var(--navy); font-size: .98rem; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border: solid var(--gold-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.trip-ask { margin-top: auto; padding-top: 16px; font-weight: 600; text-decoration: none; }
.trips-more { margin: 56px 0 0; font-size: 1.08rem; color: var(--muted); }

/* How booking works */
.how { padding: 84px 0; }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; border-top: 2px dotted var(--navy); }
.steps li::before { content: counter(step); position: absolute; top: -21px; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: #fff; font: 700 1.15rem/1 var(--display); }
.steps b { display: block; font-family: var(--display); font-size: 1.35rem; margin-bottom: 8px; }
.steps span { color: var(--muted); }

/* Legit check */
.legit { background: var(--navy); color: #fff; padding: 64px 0; }
.legit .section-note { color: var(--gold); }
.legit p { color: #d3ddeb; margin: 12px 0 0; max-width: 34em; }
.legit-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Contact */
.contact { padding: 84px 0 96px; }
.contact-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 32px 0 0; font-size: 1.05rem; }
.contact-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .25em; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-inner > *, .hero > * { min-width: 0; }
.contact-card { background: var(--sky); border-radius: 28px; padding: 32px 28px; text-align: center; }
.contact-traveller { width: 110px; margin: 0 auto; }
.contact-card .script { font-size: 2.3rem; color: var(--navy); margin: 14px 0 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .92rem; color: var(--muted); }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-inner img { width: 110px; }
.foot-inner p { margin: 0; flex: 1; }
.foot-inner a { color: var(--muted); font-weight: 600; }

.dock { display: none; }

/* Tablets */
@media (max-width: 900px) {
    .top-nav { display: none; }
    .top-signin { margin-left: auto; }
    .hero { grid-template-columns: 1fr; padding-bottom: 56px; gap: 8px; }
    .hero-art { max-width: 420px; width: 100%; margin: 0 auto; order: -1; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
    .contact-inner { grid-template-columns: 1fr; }
}

/* Phones: bigger taps, and Message/Call pinned to the bottom */
@media (max-width: 600px) {
    body.site { font-size: 16px; padding-bottom: 84px; }
    .top { padding: 10px 16px; }
    .top-logo img { width: 118px; }
    .hero { padding: 8px 16px 48px; }
    .hero-art { max-width: 320px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .caps { letter-spacing: .14em; }
    .wrap { padding: 0 16px; }
    .trips, .how, .contact { padding: 60px 0; }
    .trip-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .polaroid-blank .script { font-size: clamp(2rem, 13vw, 3.4rem); overflow-wrap: anywhere; }
    .dock .btn { padding: 12px 14px; }
    .polaroid, .trip:nth-child(even) .polaroid, .trip:nth-child(3n) .polaroid { transform: rotate(-.6deg); }
    .trip:nth-child(even) .polaroid { transform: rotate(.6deg); }
    .steps { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 1fr; gap: 2px; }
    .contact-list dd { margin-bottom: 14px; }
    .dock { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 35, 64, .08); }
    .dock .btn-navy { flex: 1; }
    .dock .btn-line { flex: 0 0 34%; background: #fff; }
}

/* Happy travelers carousel (scroll-snap; buttons and a slow drift from site.js) */
.travelers { padding: 84px 0 64px; overflow: hidden; }
.carousel { margin-top: 40px; }
.car-track { list-style: none; margin: 0; padding: 18px 4px 30px; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 clamp(240px, 28vw, 320px); scroll-snap-align: start; }
.car-slide:nth-child(odd) .polaroid { transform: rotate(-1.2deg); }
.car-slide:nth-child(even) .polaroid { transform: rotate(1deg); }
.car-slide .polaroid img { aspect-ratio: 4 / 5; object-position: center; }
.car-controls { display: flex; gap: 10px; justify-content: flex-end; }
.car-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 600 1.25rem/1 var(--body); cursor: pointer; }
.car-btn:hover { background: var(--navy); color: #fff; }

/* Inquiry form (becomes a lead in the app) */
.inquiry { text-align: left; padding: 30px 28px; }
.inquiry h3 { font-size: 1.7rem; }
.inq-sub { color: var(--muted); margin: 6px 0 16px; }
.inq-form { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.inq-form label, .inq-row > *, .inq-form input { min-width: 0; }
.inq-form label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.inq-form label small { font-weight: 400; color: var(--muted); }
.inq-form input, .inq-form textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--navy); background: #fff; border: 1.5px solid var(--line);
    border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.inq-form input:focus, .inq-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201, 174, 79, .45); }
.inq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.inq-err { color: #b3261e; font-size: .88rem; font-weight: 600; margin-top: -4px; }
.inq-reach { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.inq-reach legend { padding: 0; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.inq-reach legend small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.inq-form .req { color: #b3261e; font-weight: 700; }
.inq-form .btn { width: 100%; margin-top: 4px; }
.inq-alt { margin: 2px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }
.inq-done { color: var(--navy); font-size: 1.05rem; margin: 0; }
.inquiry .contact-traveller + .script { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-inner:has(.inquiry) { align-items: start; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .contact-inner:has(.inquiry) { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .travelers { padding: 60px 0 44px; }
    .car-slide { flex-basis: 78%; }
    .inquiry { padding: 24px 18px; border-radius: 22px; }
    .inq-row { grid-template-columns: minmax(0, 1fr); }
}

/* Big screens and TVs */
@media (min-width: 1700px) { html { zoom: 1.2; } }
@media (min-width: 2500px) { html { zoom: 1.6; } }

/* Reviews from clients (approved by the owner) */
.reviews { padding: 72px 0 56px; }
.review-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.review-card { background: #fff; padding: 22px 22px 18px; box-shadow: 0 2px 4px rgba(11, 35, 64, .06), 0 10px 24px rgba(11, 35, 64, .08); border-radius: 4px; display: flex; flex-direction: column; }
.review-stars { color: #e0a526; font-size: 1.25rem; letter-spacing: 2px; margin: 0 0 8px; }
.review-stars span { color: #d9dfe7; }
.review-card blockquote { margin: 0; color: var(--navy); font-size: 1.02rem; line-height: 1.55; flex: 1; overflow-wrap: anywhere; }
.review-who { margin: 14px 0 0; font-weight: 700; color: var(--navy); }
.review-who span { font-weight: 500; color: var(--muted); }
