/* =========================================================
   Trichy Dev Cabs — style.css
   Part 1: tokens, base, buttons, navigation, hero,
           trip planner
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --navy: #071B33;
    --navy-2: #0A2342;
    --navy-3: #12365F;
    --ink: #04101F;
    --gold: #D99A00;
    --gold-2: #E0A21A;
    --gold-ink: #B07400;   /* gold text on light backgrounds — passes contrast */
    --gold-deep: #9A6B00;  /* small gold text on light backgrounds */
    --gold-soft: rgba(217, 154, 0, .16);
    --white: #FFFFFF;
    --off: #F7F8FA;
    --charcoal: #252B31;
    --muted: #5F6873;
    --line: rgba(7, 27, 51, .12);

    --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Editorial type scale — restrained, never shouts */
    --fs-hero: clamp(2.3rem, 4vw, 3.9rem);
    --fs-display: clamp(2.2rem, 5.5vw, 5rem);
    --fs-h2: clamp(1.85rem, 3.3vw, 3.5rem);

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 6px 20px rgba(7, 27, 51, .07);
    --shadow-md: 0 18px 44px rgba(7, 27, 51, .13);
    --shadow-lg: 0 34px 80px rgba(7, 27, 51, .22);

    --header-h: 96px;
    --topbar-h: 40px;
    /* Height of the compacted (scrolled) bar — used for anchor scrolling
       so every section lands just below the sticky header. */
    --header-h-stuck: 76px;
    --container: 1360px;
    --gutter: 40px;
    /* One vertical rhythm for every section — same top and bottom gap
       everywhere (section end gaps were up to 190px and all different).
       Bottom gaps run slightly tighter, and IDENTICALLY on every section. */
    --sec-pad: clamp(56px, 3vw, 92px);
    --sec-pad-b: clamp(44px, 4.6vw, 68px);

    /* Motion levels */
    --t-micro: 240ms;
    --t-section: 720ms;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h-stuck) + 14px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.66;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.08;
    margin: 0 0 .45em;
    letter-spacing: -.03em;
    font-weight: 800;
}

p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

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

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--gold);
    color: var(--navy);
    padding: 12px 18px;
    font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.section { padding: var(--sec-pad) 0 var(--sec-pad-b); position: relative; }
.gold { color: var(--gold); }

/* ---------- Editorial headings ---------- */
.section-index {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 20px;
}
.section-index::before {
    content: "";
    width: 44px;
    height: 1px;
    background: currentColor;
}
.section-index.light { color: var(--gold-2); }

.section-display {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-display.light { color: #fff; }

/* Masked line reveal primitive */
.d-line { display: block; overflow: hidden; }
.d-in { display: block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--navy);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1.5px solid transparent;
    border-radius: 2px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .93rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    min-height: 52px;
    overflow: hidden;
    isolation: isolate;
    transition: color var(--t-micro) var(--ease),
                border-color var(--t-micro) var(--ease),
                transform var(--t-micro) var(--ease),
                box-shadow var(--t-micro) var(--ease);
}
/* gold layer slides in */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, var(--gold-2), var(--gold));
    transform: translateX(-101%);
    transition: transform .45s var(--ease-out);
}
.btn > * , .btn { }
.btn svg { flex-shrink: 0; transition: transform var(--t-micro) var(--ease-out); }

.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(217, 154, 0, .28); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: translateY(0); }

.btn-gold {
    --btn-bg: var(--gold);
    --btn-fg: var(--navy);
    box-shadow: 0 14px 30px rgba(217, 154, 0, .28);
}
.btn-gold::before { background: var(--navy); }
.btn-gold:hover { color: var(--gold); box-shadow: 0 16px 34px rgba(7, 27, 51, .30); }

.btn-whatsapp {
    --btn-bg: #1EA952;
    --btn-fg: #fff;
    box-shadow: 0 14px 30px rgba(30, 169, 82, .26);
}
.btn-whatsapp:hover { color: var(--navy); }

.btn-line {
    --btn-bg: transparent;
    --btn-fg: var(--navy);
    border-color: rgba(7, 27, 51, .28);
}
.btn-line:hover { border-color: var(--gold); }

.btn-line-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .38);
}
.btn-line-light::before { background: #fff; }
.btn-line-light:hover { color: var(--navy); border-color: #fff; }

.btn-lg { padding: 18px 34px; font-size: .98rem; min-height: 60px; }
.btn-sm { padding: 12px 20px; font-size: .82rem; min-height: 44px; }
.btn-block { width: 100%; }

/* ---------- Scene gradients (hero fallback + service stages) ---------- */
.scene-local, .scene-highway, .scene-tour,
.scene-oneway, .scene-booking, .scene-city {
    --sc-a: #12365F;
    --sc-b: #071B33;
    background-color: var(--sc-b);
    background-image:
        radial-gradient(circle at 78% 22%, rgba(217, 154, 0, .28), transparent 58%),
        repeating-linear-gradient(118deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 30px),
        linear-gradient(158deg, var(--sc-a) 0%, var(--sc-b) 88%);
}
.scene-local   { --sc-a: #14456A; }
.scene-city    { --sc-a: #0E3557; }
.scene-highway { --sc-a: #1E2A46; }
.scene-tour    { --sc-a: #14513C; }
.scene-oneway  { --sc-a: #2A2140; }
.scene-booking { --sc-a: #0A2342; }

/* =========================================================
   Header / Navbar
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 120;
    background: transparent;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

/* ---------- Contact topbar (desktop only, hides on scroll) ---------- */
.topbar {
    height: var(--topbar-h);
    overflow: hidden;
    background: var(--navy);
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: height .32s var(--ease), opacity .22s var(--ease), border-color .32s var(--ease);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: var(--topbar-h);
}
.topbar-list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--t-micro) var(--ease);
}
.topbar-list a:hover { color: var(--gold); }
.topbar-list a svg { color: var(--gold); flex-shrink: 0; }
.topbar-place {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    white-space: nowrap;
}
.topbar-place svg { color: var(--gold); flex-shrink: 0; }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(7, 27, 51, .08);
    box-shadow: 0 6px 22px rgba(7, 27, 51, .05);
    transition: box-shadow .35s var(--ease);
}
/* The bar never turns transparent — it only compacts on scroll. */
.site-header.is-stuck {
    box-shadow: 0 10px 30px rgba(7, 27, 51, .12);
}
.site-header.is-stuck .topbar { height: 0; opacity: 0; border-bottom-color: transparent; }
.site-header.is-stuck .header-inner { height: var(--header-h-stuck); }
.site-header.is-stuck .brand-mark { width: 54px; height: 56px; }
.site-header.is-stuck .brand-text strong { font-size: 1.26rem; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
    width: min(100% - (var(--gutter) * 2), var(--container));
    transition: height .35s var(--ease);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    flex-shrink: 0;
}
.brand-mark {
    display: block;
    width: 70px;
    height: 73px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(7, 27, 51, .12);
    transition: width .35s var(--ease), height .35s var(--ease);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.52rem;
    font-weight: 800;
    letter-spacing: .005em;
}
/* Logo lockup — TRICHY in navy, DEV CABS in gold, slogan underneath */
.brand-name { color: var(--navy); }
.brand-gold { color: var(--gold-ink); }
.brand-text small {
    text-transform: uppercase;
    font-size: .6rem;
    letter-spacing: .14em;
    color: var(--gold-deep);
    font-weight: 800;
    margin-top: 5px;
}
/* Dark surfaces (footer, mobile panel) use the artwork's bright gold */
.brand-footer .brand-name,
.mobile-menu-head .brand-name { color: #fff; }
.brand-footer .brand-gold,
.brand-footer .brand-slogan,
.mobile-menu-head .brand-gold,
.mobile-menu-head .brand-slogan { color: var(--gold); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 13px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--navy);
    transition: color var(--t-micro) var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 13px; right: 13px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 12px 20px; font-size: .8rem; }
.header-actions .btn-ghost,
.is-stuck .header-actions .btn-ghost {
    --btn-bg: rgba(7, 27, 51, .06);
    --btn-fg: var(--navy);
    border-color: rgba(7, 27, 51, .22);
}
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid rgba(7, 27, 51, .18);
    border-radius: 4px;
    background: rgba(7, 27, 51, .06);
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 13px; right: 13px;
    height: 2px;
    border-radius: 3px;
    background: var(--navy);
    transition: transform .3s var(--ease), opacity .2s linear;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(4, 16, 31, .68);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-panel {
    position: absolute;
    top: 0; right: 0;
    height: 100%;
    width: min(90vw, 400px);
    background: var(--ink);
    padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform .42s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}
.mobile-menu-head .brand { color: #fff; }
.mobile-menu-head .brand-mark { width: 62px; height: 64px; }
.mobile-close {
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
}
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 4px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    transition: color var(--t-micro), padding-left var(--t-micro) var(--ease);
}
.mobile-nav-list a::before { content: none; }
.mobile-nav-list a:hover, .mobile-nav-list a.is-active { color: var(--gold); padding-left: 10px; }
.mobile-menu-actions { display: grid; gap: 12px; margin-top: auto; }

/* =========================================================
   Hero — cinematic stage
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-h) + var(--topbar-h));
}

.hero-stage { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
    display: flex;
    align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg { position: absolute; inset: 0; }
.hero-slide.scene-city .hero-bg,
.hero-slide.scene-local .hero-bg,
.hero-slide.scene-highway .hero-bg,
.hero-slide.scene-tour .hero-bg,
.hero-slide.scene-oneway .hero-bg,
.hero-slide.scene-booking .hero-bg {
    background:
        radial-gradient(ellipse at 76% 26%, rgba(217, 154, 0, .26), transparent 55%),
        radial-gradient(ellipse at 8% 88%, rgba(18, 54, 95, .85), transparent 58%),
        linear-gradient(150deg, #0B2748 0%, var(--ink) 72%);
    transform: scale(1.05);
}
.hero-slide.is-active .hero-bg { animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.14); } }

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 25% 100%;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

/* Photographic stage background (real image + legibility scrim) */
.hero-photo {
    position: absolute;
    inset: 0;
}
.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    /* Legibility only where the copy sits — the photo stays clear on the right */
    background:
        linear-gradient(90deg, rgba(4, 14, 28, .94) 0%, rgba(4, 14, 28, .90) 34%, rgba(4, 14, 28, .74) 47%, rgba(4, 14, 28, .44) 58%, rgba(4, 14, 28, .12) 72%, rgba(4, 14, 28, 0) 84%),
        linear-gradient(0deg, rgba(3, 11, 22, .60) 0%, rgba(3, 11, 22, 0) 26%);
}

.hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
    gap: clamp(24px, 4vw, 60px);
    padding-top: clamp(40px, 7vh, 90px);
    padding-bottom: clamp(110px, 15vh, 170px);
    width: min(100% - (var(--gutter) * 2), var(--container));
}

.hero-copy { max-width: 760px; position: relative; z-index: 4; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin: 0 0 clamp(14px, 2.2vh, 26px);
}
.kicker-rule { width: 44px; height: 1px; background: var(--gold); display: inline-block; }

.hero-display {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 clamp(16px, 2.4vh, 28px);
}
/* Long words keep the same two-line rhythm, just smaller */
.hero-display.is-long { font-size: calc(var(--fs-hero) * .76); }
.hero-display .d-in { transform: translateY(110%); }
.hero-slide.is-active .hero-display .d-in { animation: lineUp .95s var(--ease-out) forwards; }
.hero-slide.is-active .d-line:nth-child(2) .d-in { animation-delay: .12s; }
.hero-slide.is-active .d-line:nth-child(3) .d-in { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lead {
    font-size: clamp(.95rem, 1.05vw, 1.1rem);
    color: rgba(255, 255, 255, .78);
    max-width: 44ch;
    margin-bottom: clamp(16px, 2.2vh, 26px);
    opacity: 0;
    transform: translateY(16px);
}
.hero-slide.is-active .hero-lead { animation: fadeUp .8s .42s var(--ease-out) forwards; }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(22px, 3vh, 36px);
    opacity: 0;
    transform: translateY(16px);
}
.hero-slide.is-active .hero-tags { animation: fadeUp .8s .62s var(--ease-out) forwards; }
.hero-tags li {
    padding: 8px 16px;
    border: 1px solid rgba(217, 154, 0, .45);
    color: #FFE7B4;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(217, 154, 0, .07);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(20px); }
.hero-slide.is-active .hero-cta { animation: fadeUp .8s .78s var(--ease-out) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-cta .btn-line {
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .40);
}
.hero-cta .btn-line::before { background: #fff; }
.hero-cta .btn-line:hover { color: var(--navy); border-color: #fff; }

/* --- Hero visual --- */
.hero-visual {
    position: relative;
    height: clamp(340px, 52vh, 620px);
    margin-right: calc(var(--gutter) * -1 - 3vw);
}

.hero-word {
    position: absolute;
    right: -4%;
    top: 6%;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(3.2rem, 10vw, 10rem);
    line-height: .8;
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .18);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    z-index: 1;
}
.hero-slide.is-active .hero-word { animation: wordIn 1.2s .1s var(--ease-out) forwards; }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.hero-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
}
.hr-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    filter: drop-shadow(0 0 10px rgba(217, 154, 0, .55));
}
.hero-slide.is-active .hr-path { animation: pathDraw 1.6s .35s var(--ease-out) forwards, routeDash 7s 2s linear infinite; }
@keyframes pathDraw { to { stroke-dashoffset: 0; } }
@keyframes routeDash { to { stroke-dashoffset: -1400; } }

.hr-node { fill: var(--gold); opacity: 0; }
.hero-slide.is-active .hr-node { animation: nodePop .5s .3s var(--ease-out) forwards; }

.hr-pin {
    fill: var(--gold);
    stroke: var(--gold);
    stroke-width: 4;
    transform-origin: 590px 44px;
    opacity: 0;
}
.hero-slide.is-active .hr-pin { animation: pinDrop .8s 1.1s var(--ease-out) forwards; }
@keyframes pinDrop {
    0% { opacity: 0; transform: translateY(-46px) scale(.7); }
    70% { opacity: 1; transform: translateY(4px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nodePop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* --- Side arrows on the slider (desktop; console arrows take over ≤1140px) --- */
.hero-nav {
    position: absolute;
    bottom: clamp(92px, 12vh, 132px);
    z-index: 7;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(4, 16, 31, .40);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease),
                color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease);
}
.hero-nav:hover, .hero-nav:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}
.hero-nav-prev { left: clamp(14px, 1.8vw, 30px); }
.hero-nav-next { right: clamp(14px, 1.8vw, 30px); }

/* --- Hero console --- */
.hero-console {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 6;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
}
.hero-console-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    width: min(100% - (var(--gutter) * 2), var(--container));
}
.hc-left { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.hc-dest {
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .26em;
    color: rgba(255, 255, 255, .82);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-dest::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 11px;
    vertical-align: middle;
}
.hc-progress {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .18);
    position: relative;
    overflow: hidden;
    min-width: 60px;
}
.hc-progress span {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--gold);
}
.hc-right { display: flex; align-items: center; gap: 12px; }
.hc-dots { display: flex; gap: 8px; }
.hc-dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    border-radius: 50%;
    transition: all var(--t-micro) var(--ease);
}
.hc-dot:hover { border-color: var(--gold); }
.hc-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.hc-arrow {
    width: 44px; height: 44px;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    /* Below 1140px the console arrows are the only slider controls */
    display: none;
    place-items: center;
    transition: all var(--t-micro) var(--ease);
}
.hc-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* =========================================================
   Floating trip planner
   ========================================================= */
.booking-planner {
    position: relative;
    z-index: 30;
    margin-top: -64px;
    background: var(--white);
}
/* Two-panel card: heading + call link left, fields + submit right */
.planner-card {
    background: var(--white);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 3vw, 40px);
    display: grid;
    grid-template-columns: minmax(230px, .78fr) minmax(0, 2.22fr);
    gap: clamp(22px, 3vw, 44px);
}
.planner-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding-right: clamp(18px, 2.2vw, 32px);
    border-right: 1px solid var(--line);
}
.planner-title {
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.03em;
    margin: 0;
}
.planner-note { color: var(--muted); font-size: .93rem; margin: 0; }

.planner-body { display: grid; gap: 20px; align-content: start; min-width: 0; }
.planner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1.5px solid rgba(7, 27, 51, .22);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    transition: border-color var(--t-micro) var(--ease), background-color var(--t-micro);
    min-height: 48px;
}
.field textarea { min-height: auto; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
    background: linear-gradient(180deg, rgba(217, 154, 0, .07), transparent 60%);
}
.field input.is-invalid { border-bottom-color: #D64545; }
.field select { appearance: none; padding-right: 24px;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.planner-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.planner-error {
    color: #B3261E;
    background: #FDECEA;
    border-left: 3px solid #D64545;
    padding: 10px 14px;
    font-size: .9rem;
    margin: 0;
    flex-basis: 100%;
}
.planner-alt { font-size: .93rem; color: var(--muted); margin: auto 0 0; padding-top: 8px; }
.planner-alt a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }
