/* ===========================================================================
   VISTATROVE, style.css
   A premium, original travel-magazine design system.
   No CSS frameworks. Pure CSS3.

   TABLE OF CONTENTS
   1.  Design tokens (CSS custom properties)
   2.  Reset & base
   3.  Typography
   4.  Layout helpers (container, section, eyebrow)
   5.  Buttons
   6.  Utility: progress bar, skip link
   7.  Navigation (sticky + glass + mobile)
   8.  Hero (full-screen, animated background)
   9.  Stats / animated counters
   10. Featured destinations
   11. Guide cards
   12. Newsletter & forms
   13. Footer
   14. Article / blog-detail layout
   15. Back-to-top
   16. Scroll-reveal & keyframe animations
   17. Responsive breakpoints
   18. Reduced-motion & print
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------------- */
:root {
    /* Brand palette: deep forest-teal family with one warm gold "trove" accent on warm paper.
       Restraint over variety, the gold reads premium and calm against teal/paper. */
    --ink:        #16211f;
    --forest:     #0e3a37;
    --forest-700: #0b2e2c;
    --teal:       #14857b;
    --sea:        #2bb3a3;
    --coral:      #C9A86A;   /* muted gold (warm "trove" accent) */
    --amber:      #B8915A;   /* deeper gold */
    --gold-soft:  #E3CB9C;   /* light gold for small labels over dark scrims */

    /* Neutrals */
    --paper:      #faf6ef;   /* page background */
    --cream:      #fffdf9;   /* card / surface */
    --line:       #e7e0d4;   /* hairline borders */
    --text:       #20302c;   /* body text */
    --muted:      #5d6b66;   /* secondary text */
    --muted-soft: #8a958f;

    /* Gradients */
    --grad-brand:  linear-gradient(120deg, #0e3a37 0%, #14857b 60%, #2bb3a3 100%);
    --grad-sunset: linear-gradient(120deg, #C9A86A 0%, #B8915A 100%);
    --grad-glass:  linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));

    /* Typography */
    --font-display: "Fraunces", "Georgia", serif;
    --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 34px;
    --r-pill: 999px;

    /* Soft shadows */
    --shadow-sm: 0 4px 14px rgba(20, 40, 36, .06);
    --shadow-md: 0 18px 40px -18px rgba(20, 40, 36, .28);
    --shadow-lg: 0 40px 80px -32px rgba(14, 58, 55, .45);
    --shadow-glow: 0 18px 50px -12px rgba(43, 179, 163, .45);

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    /* Layout */
    --container: 1200px;
    --nav-h: 76px;
}


/* Dark mode: flip the neutral tokens only. Cards, footer and accents inherit,
   so the teal/gold brand stays intact while surfaces go dark. */
@media (prefers-color-scheme: dark) {
    :root {
        --ink:        #f3efe7;
        --text:       #e7e2d8;
        --muted:      #b3bcb6;
        --muted-soft: #9aa49d;
        --paper:      #0c1614;
        --cream:      #132220;
        --line:       #2a3a36;
    }
    body::before { opacity: .55; }
}

/* ---------------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle paper texture using a layered gradient, adds warmth */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(43,179,163,.08), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(201,168,106,.07), transparent 55%);
    pointer-events: none;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: 1rem; }

svg { width: 100%; height: 100%; }

::selection { background: rgba(43,179,163,.28); }

:focus-visible {
    outline: 3px solid var(--sea);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Contrasting halo so the teal ring stays visible over photos/dark scrims */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
    box-shadow: 0 0 0 6px rgba(0,0,0,.45);
}
/* On light surfaces (cards, prose, TOC) drop the dark halo, the teal ring is enough */
.card:focus-visible,
.prose a:focus-visible,
.toc__link:focus-visible {
    box-shadow: none;
}


/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { color: var(--text); }

strong { color: var(--ink); font-weight: 700; }


/* ---------------------------------------------------------------------------
   4. LAYOUT HELPERS
   --------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Section heading block */
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #0e6f66;   /* darkened teal for >=4.5:1 on cream */
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--grad-sunset);
    border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }

.section-head p {
    color: var(--muted);
    font-size: 1.08rem;
    margin-top: .9rem;
}

.lead { font-size: 1.18rem; color: var(--muted); }


/* ---------------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------------- */
.btn {
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .92rem 1.7rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: .98rem;
    color: var(--btn-fg);
    background: var(--forest);
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(-1px); }

.btn--gradient { background: var(--grad-brand); background-size: 160% 160%; box-shadow: var(--shadow-glow); }
.btn--gradient:hover { background-position: 100% 0; }

.btn--sunset { background: var(--grad-sunset); color: #2b2113; box-shadow: 0 16px 40px -16px rgba(184,145,90,.55); }

.btn--ghost {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--outline {
    background: transparent;
    color: var(--forest);
    border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

.btn--small { padding: .6rem 1.1rem; font-size: .88rem; }

/* Ripple element injected by script.js */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,.45);
    animation: ripple .6s var(--ease-out);
    pointer-events: none;
    z-index: -1;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }


/* ---------------------------------------------------------------------------
   6. PROGRESS BAR & SKIP LINK
   --------------------------------------------------------------------------- */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-sunset);
    z-index: 1000;
    transition: width .1s linear;
}

.skip-link {
    position: fixed;
    top: -120px; left: 16px;
    z-index: 1100;
    background: var(--forest);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: var(--r-sm);
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }


/* ---------------------------------------------------------------------------
   7. NAVIGATION
   --------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.nav__inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Glassmorphism once scrolled (class toggled by JS) */
.nav.is-stuck {
    height: 64px;
    background: rgba(250, 246, 239, .72);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 10px 30px -18px rgba(20,40,36,.4);
    border-bottom: 1px solid rgba(255,255,255,.4);
}

.nav__brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; }
.nav__logo {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--sea); /* static light teal, the end colour of --grad-brand */
    color: #fff;
    padding: 8px;
    box-shadow: var(--shadow-glow);
}
.nav__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--cream);
    transition: color .4s var(--ease);
}
.nav.is-stuck .nav__name { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
    position: relative;
    padding: .55rem .85rem;
    font-weight: 600;
    font-size: .96rem;
    color: rgba(255,255,255,.92);
    border-radius: var(--r-pill);
    transition: color .3s var(--ease);
}
.nav.is-stuck .nav__link { color: var(--muted); }
.nav__link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 6px;
    width: 0; height: 2px;
    background: var(--grad-sunset);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav.is-stuck .nav__link:hover,
.nav.is-stuck .nav__link.is-active { color: var(--forest); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 22px; }
.nav__link.is-active { color: #fff; }

.nav__cta { margin-left: .5rem; }

/* Hamburger */
.nav__toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
}
.nav.is-stuck .nav__toggle { background: rgba(14,58,55,.08); }
.nav__toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .25s var(--ease), background .3s;
}
.nav.is-stuck .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 880;
    background: rgba(11,30,28,.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.nav__backdrop.is-show { opacity: 1; }

/* Lock body scroll while the mobile drawer is open (toggled by script.js) */
body.nav-open { overflow: hidden; }


/* ---------------------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -3;
}
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
/* Animated colour wash drifting over the photo */
.hero__bg::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 1;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(43,179,163,.55), transparent 60%),
        radial-gradient(45% 55% at 85% 70%, rgba(201,168,106,.42), transparent 60%),
        radial-gradient(60% 60% at 60% 10%, rgba(14,58,55,.5), transparent 70%);
    mix-blend-mode: multiply;
    animation: auroraDrift 16s ease-in-out infinite alternate;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11,30,28,.55) 0%, rgba(11,30,28,.25) 35%, rgba(11,30,28,.78) 100%);
}

/* Floating soft orbs in the background */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    z-index: -2;
    opacity: .5;
    background: var(--grad-sunset);
    animation: float 9s ease-in-out infinite;
}
.hero__orb--1 { width: 120px; height: 120px; top: 18%; left: 8%; }
.hero__orb--2 { width: 70px;  height: 70px;  bottom: 20%; right: 12%; background: var(--grad-brand); animation-delay: -3s; }
.hero__orb--3 { width: 46px;  height: 46px;  top: 30%; right: 26%; animation-delay: -5s; }

/* Keep the always-on hero compositor animations off small screens (battery/jank);
   only run them on wider viewports for users who allow motion. */
@media (max-width: 920px) {
    .hero__bg img { animation: none; transform: scale(1.08); }
    .hero__bg::after { animation: none; }
    .hero__orb { animation: none; }
}

.hero__content {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.2rem);
    padding-top: var(--nav-h);
}
.hero__inner { max-width: 760px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 1rem;
    border-radius: var(--r-pill);
    background: rgba(11,30,28,.72);   /* opaque dark fill for legible white text */
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.6rem;
}
.hero__badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 0 0 rgba(227,203,156,.7);
    animation: pulse 2.2s infinite;
}

.hero h1 {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 6px 40px rgba(0,0,0,.3);
}
.hero h1 em {
    font-style: italic;
    background: var(--grad-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__sub {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    color: rgba(255,255,255,.9);
    max-width: 560px;
}
.hero__actions {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero text reveal, each line animates up. Lines get a stagger var. */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
    display: block;
    transform: translateY(110%);
    animation: lineUp .9s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * .12s + .15s);
}
.hero__badge,
.hero__sub,
.hero__actions { opacity: 0; animation: fadeUp .8s var(--ease-out) forwards; }
.hero__badge   { animation-delay: .1s; }
.hero__sub     { animation-delay: .7s; }
.hero__actions { animation-delay: .85s; }

/* Scroll cue */
.hero__scroll {
    position: absolute;
    bottom: 1.7rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
    color: rgba(255,255,255,.75);
    opacity: 0; animation: fadeUp .8s var(--ease-out) 1.1s forwards;
}
.hero__mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 14px;
    position: relative;
}
.hero__mouse::after {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 7px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: wheel 1.6s var(--ease) infinite;
}


/* ---------------------------------------------------------------------------
   9. STATS / ANIMATED COUNTERS
   --------------------------------------------------------------------------- */
.stats {
    position: relative;
    background: var(--grad-brand);
    color: #fff;
    border-radius: var(--r-xl);
    padding: clamp(2rem, 5vw, 3.2rem);
    margin-top: clamp(-4rem, -6vw, -5rem);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 120% at 90% -10%, rgba(255,255,255,.18), transparent 60%);
}
.stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
}
.stat__suffix { color: var(--gold-soft); }
.stat__label {
    margin-top: .6rem;
    font-size: .92rem;
    color: rgba(255,255,255,.82);
    letter-spacing: .02em;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,.16); }


/* ---------------------------------------------------------------------------
   10. FEATURED DESTINATIONS
   --------------------------------------------------------------------------- */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
/* First tile spans two columns + two rows for a magazine mosaic feel */
.dest-grid--mosaic .dest:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.dest {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    color: #fff;
    display: flex;
    align-items: flex-end;
}
.dest-grid--mosaic .dest:nth-child(1) { min-height: 460px; }
.dest img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .9s var(--ease);
}
.dest::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 30%, rgba(11,30,28,.82) 100%);
    transition: background .4s var(--ease);
}
.dest:hover img { transform: scale(1.09); }
.dest:hover::after { background: linear-gradient(180deg, rgba(20,133,123,.35) 0%, rgba(11,30,28,.85) 100%); }

.dest__info { padding: 1.4rem 1.5rem; width: 100%; }
.dest__country {
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-soft);   /* light gold for >=4.5:1 over the dark scrim */
    font-weight: 700;
}
.dest__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin-top: .15rem;
}
.dest-grid--mosaic .dest:nth-child(1) .dest__name { font-size: 2.1rem; }
.dest__blurb {
    font-size: .92rem;
    color: rgba(255,255,255,.9);
    margin-top: .35rem;
    max-width: 36ch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease), opacity .45s var(--ease), margin .45s var(--ease);
}
/* Reveal the blurb for mouse (hover) AND keyboard (focus-within),
   since .dest is a focusable link, so the descriptive copy is reachable. */
.dest:hover .dest__blurb,
.dest:focus-within .dest__blurb { max-height: 80px; opacity: 1; }
/* Touch / coarse-pointer / narrow screens have no hover, so always show the blurb. */
@media (hover: none), (pointer: coarse), (max-width: 720px) {
    .dest__blurb { max-height: none; opacity: 1; margin-top: .35rem; }
}
.dest__tag {
    position: absolute;
    top: 1rem; right: 1rem;
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
    background: rgba(11,30,28,.72);   /* opaque dark fill for >=4.5:1 white text */
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
}
/* Box-shadow focus ring for .dest (overflow:hidden clips outline offsets) */
.dest:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--sea), 0 0 0 4px rgba(0,0,0,.4);
}


/* ---------------------------------------------------------------------------
   11. GUIDE CARDS
   --------------------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

/* Hidden by the Travel Guides filter; matching cards get a soft pop-in */
.card.is-hidden { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.card.pop { animation: cardIn .45s var(--ease) both; }

.card {
    background: var(--cream);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
/* Box-shadow focus ring (overflow:hidden clips outline offsets) */
.card__media:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--sea), 0 0 0 4px rgba(0,0,0,.4);
}
.card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.card:hover .card__img { transform: scale(1.1); }
.card__country {
    position: absolute;
    top: .9rem; left: .9rem;
    padding: .35rem .85rem;
    border-radius: var(--r-pill);
    background: var(--grad-glass);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.card__body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__location {
    display: flex; align-items: center; gap: .35rem;
    font-size: .82rem; color: var(--teal); font-weight: 600;
    margin-bottom: .55rem;
}
.icon-pin { width: 15px; height: 15px; fill: var(--teal); flex: none; }
.card__title {
    font-size: 1.22rem;
    line-height: 1.2;
    margin-bottom: .55rem;
}
.card__title a { transition: color .25s var(--ease); }
.card:hover .card__title a { color: var(--teal); }
.card__excerpt {
    color: var(--muted);
    font-size: .94rem;
    margin-bottom: 1rem;
    flex: 1;
}
.card__meta {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: var(--muted-soft);
    margin-bottom: 1.1rem;
}
.card__link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 700; font-size: .92rem; color: var(--forest);
    align-self: flex-start;
}
.card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.card__link:hover { color: var(--coral); }
.card__link:hover svg { transform: translateX(5px); }


/* ---------------------------------------------------------------------------
   12. NEWSLETTER & FORMS
   --------------------------------------------------------------------------- */
.newsletter__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__input {
    flex: 1; min-width: 0;
    padding: .85rem 1.1rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__input:focus-visible { outline-color: var(--sea); background: rgba(255,255,255,.14); }
.newsletter__btn { white-space: nowrap; }
.newsletter__msg { font-size: .85rem; margin-top: .7rem; min-height: 1.1em; color: var(--amber); }
.newsletter__msg.is-ok { color: #7ef0d3; }

/* Generic form (contact page) */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
    padding: .9rem 1.1rem;
    border-radius: var(--r-md);
    border: 1.5px solid var(--line);
    background: var(--cream);
    color: var(--text);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }

/* Custom select, replace the inconsistent native control with a styled one */
.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 3rem;            /* room for the chevron */
    cursor: pointer;
    line-height: 1.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314857b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.05rem center;
    background-size: 18px;
}
.field select::-ms-expand { display: none; }   /* hide arrow in legacy Edge */
.field select option { color: var(--text); }
/* In forced-colors the CSS-bg chevron disappears, so restore the native arrow. */
@media (forced-colors: active) {
    .field select { appearance: auto; background-image: none; padding-right: 1.1rem; }
}

/* Required-field marker + accessible per-field error messaging */
.field .req { color: var(--coral); font-weight: 700; margin-left: .2rem; }
.field__error {
    font-size: .82rem;
    color: #8a3c22;
    font-weight: 600;
    min-height: 1em;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #b05434;
    box-shadow: 0 0 0 4px rgba(176,84,52,.14);
}
/* Visually-hidden honeypot field */
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(43,179,163,.16);
}
.form__msg { font-size: .92rem; color: var(--teal); min-height: 1.2em; font-weight: 600; }
.form__msg.is-ok { color: #0e6f66; }
.form__msg.is-error { color: #8a3c22; }


/* ---------------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------------- */
.footer {
    background: var(--forest-700);
    color: rgba(255,255,255,.78);
    padding-top: clamp(3rem, 6vw, 5rem);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 60% at 85% 0%, rgba(43,179,163,.18), transparent 60%),
        radial-gradient(40% 50% at 10% 100%, rgba(201,168,106,.10), transparent 60%);
    pointer-events: none;
}
/* Gradient accent line across the top of the footer */
.footer::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-sunset);
}
.footer__wrap {
    position: relative;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.2rem);
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.1fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
/* Footer paragraphs must stay light, override the global dark p colour */
.footer p { color: rgba(255, 255, 255, .78); }
.footer__brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: var(--font-display);
    font-size: 1.5rem; color: #fff; font-weight: 600;
    margin-bottom: 1rem;
}
.footer__tag { font-size: .94rem; line-height: 1.7; max-width: 38ch; }
.footer__head {
    color: #fff;
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer__links li { margin-bottom: .7rem; }
.footer__links a { font-size: .96rem; transition: color .25s var(--ease), padding .25s var(--ease); }
.footer__links a:hover { color: var(--gold-soft); padding-left: 5px; }

.footer__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__social-link {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.footer__social-link svg { width: 20px; height: 20px; fill: #fff; }
.footer__social-link:hover { transform: translateY(-4px); background: var(--coral); border-color: var(--coral); }

/* Get-in-touch column */
.footer__contact { display: grid; gap: .9rem; margin-bottom: 1.4rem; }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: .94rem; }
.footer__contact svg {
    width: 18px; height: 18px; flex: none; margin-top: 2px;
    fill: none; stroke: var(--gold-soft); stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.footer__contact a { transition: color .25s var(--ease); }
.footer__contact a:hover { color: var(--gold-soft); }
.footer__cta { margin-top: .2rem; }

.footer__bar {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem clamp(1.1rem, 4vw, 2.2rem);
    max-width: var(--container);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .86rem;
}
.footer__bar-links { display: flex; gap: .6rem; align-items: center; }
.footer__bar-links a:hover { color: var(--gold-soft); }


/* ---------------------------------------------------------------------------
   14. ARTICLE / BLOG-DETAIL LAYOUT
   --------------------------------------------------------------------------- */
/* Hero */
.article-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.article-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
    transform: scale(1.08);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
.article-hero::after {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(11,30,28,.35) 0%, rgba(11,30,28,.2) 40%, rgba(11,30,28,.85) 100%);
}
.article-hero__inner {
    max-width: var(--container);
    margin-inline: auto;
    width: 100%;
    padding: 0 clamp(1.1rem, 4vw, 2.2rem) clamp(2.5rem, 5vw, 4rem);
}
.article-hero__tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tag {
    padding: .4rem .9rem;
    border-radius: var(--r-pill);
    background: var(--grad-glass);
    border: 1px solid rgba(255,255,255,.4);
    backdrop-filter: blur(8px);
    font-size: .78rem; font-weight: 600;
}
.article-hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 6px 40px rgba(0,0,0,.35); }
.article-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.9rem;
}

/* Author byline, a glass card that reads clearly as the writer */
.author {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .45rem 1.15rem .45rem .45rem;
    background: var(--grad-glass);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--r-pill);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .55);
}
.author__ring {
    flex: none;
    width: 50px; height: 50px;
    padding: 2px;
    border-radius: 50%;
    background: var(--grad-sunset);
    display: grid;
    place-items: center;
}
.author__avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .9);
    display: block;
}
.author__text { display: flex; flex-direction: column; line-height: 1.25; }
.author__label {
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-soft);
    margin-bottom: 1px;
}
.author__name { font-weight: 700; color: #fff; font-size: 1rem; }
.author__role { font-size: .8rem; color: rgba(255, 255, 255, .8); }

/* Article facts, matching glass chips, visually distinct from the byline */
.article-hero__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}
.article-hero__facts .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--r-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.article-hero__facts .meta-pill svg { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2; flex: none; }

/* Body layout: prose + sticky sidebar */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* Table of contents (sticky) */
.toc {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    max-height: calc(100vh - var(--nav-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.toc::-webkit-scrollbar { width: 8px; }
.toc::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-pill); }
.toc__head {
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted-soft); font-weight: 700; margin-bottom: 1rem;
    font-family: var(--font-body);
}
.toc__list { display: flex; flex-direction: column; gap: .15rem; }
.toc__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border-radius: var(--r-sm);
    font-size: .92rem;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: all .25s var(--ease);
}
.toc__link:hover { background: rgba(43,179,163,.08); color: var(--forest); }
.toc__link.is-active {
    color: var(--forest);
    background: rgba(43,179,163,.12);
    border-left-color: var(--teal);
    font-weight: 700;
}

/* Prose typography */
.prose { max-width: 72ch; }
.prose > .article-intro {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.5;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 2.5rem;
}
.prose h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h2::before {
    content: "";
    display: block;
    width: 46px; height: 4px;
    background: var(--grad-sunset);
    border-radius: 3px;
    margin-bottom: 1rem;
}
.prose h3 { margin-top: 2rem; margin-bottom: .7rem; }
.prose p { margin-bottom: 1.25rem; }
.prose p + p { margin-top: 0; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* Lists inside prose (override the global list reset) */
.prose ol,
.prose ul { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: .55rem; padding-left: .3rem; }
.prose li::marker { color: var(--teal); font-weight: 700; }

/* Inline section figure, breaks up the prose with a captioned image */
.prose-figure { margin: 1.9rem 0 2.3rem; }
.prose-figure .frame {
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.prose-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .9s var(--ease);
}
.prose-figure:hover img { transform: scale(1.05); }
.prose-figure figcaption {
    margin-top: .75rem;
    font-size: .86rem;
    color: var(--muted-soft);
    display: flex;
    align-items: center;
    gap: .55rem;
    font-style: italic;
}
.prose-figure figcaption::before {
    content: "";
    width: 20px; height: 2px;
    background: var(--grad-sunset);
    border-radius: 2px;
    flex: none;
}

/* Highlighted callout / note inside prose */
.prose .note {
    background: linear-gradient(135deg, rgba(43,179,163,.12), rgba(201,168,106,.14));
    border-left: 4px solid var(--teal);
    border-radius: var(--r-md);
    padding: 1.05rem 1.3rem;
    margin: 1.6rem 0;
    font-size: 1rem;
}
.prose .note strong { color: var(--forest); }

/* Pull-out blocks reused across the article */
.block {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.4rem, 3vw, 2rem);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--nav-h) + 20px);
}
.block__title {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.3rem; margin-bottom: 1.1rem;
}
.block__title .ic {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--grad-brand);
    color: #fff; padding: 8px;
}
.block__title .ic svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tips list */
.tips-list { display: grid; gap: .85rem; }
.tips-list li {
    display: flex; gap: .8rem; align-items: flex-start;
    font-size: .98rem;
}
.tips-list li::before {
    content: "";
    width: 22px; height: 22px; flex: none; margin-top: 2px;
    border-radius: 50%;
    background: var(--grad-sunset);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Budget cards */
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.budget {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.3rem;
    background: var(--paper);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.budget:hover { transform: translateY(-5px); border-color: var(--teal); }
.budget__label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.budget__range { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin: .35rem 0 .5rem; }
.budget__note { font-size: .88rem; color: var(--muted); }

/* Best time table */
.season-grid { display: grid; gap: .7rem; }
.season {
    display: grid;
    grid-template-columns: minmax(90px, max-content) minmax(90px, max-content) 1fr;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
}
.season__period { font-weight: 700; color: var(--ink); }
.season__rating {
    justify-self: start;
    font-size: .78rem; font-weight: 700;
    padding: .25rem .7rem; border-radius: var(--r-pill);
    background: rgba(43,179,163,.14); color: #0e6f66;
}
/* Semantic rating variants keyed by data-rating so "Avoid" reads differently from "Iconic" */
.season__rating[data-rating="iconic"],
.season__rating[data-rating="best"]   { background: rgba(43,179,163,.16); color: #0c6b62; }
.season__rating[data-rating="good"]   { background: rgba(20,133,123,.14); color: #0e6f66; }
.season__rating[data-rating="mixed"]  { background: rgba(184,145,90,.18); color: #7a5a26; }
.season__rating[data-rating="avoid"]  { background: rgba(176,84,52,.16); color: #8a3c22; }
.season__note { font-size: .9rem; color: var(--muted); }

/* Things to do, mini cards */
.todo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.todo {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    min-height: 200px;
    display: flex; align-items: flex-end;
    color: #fff;
    isolation: isolate;
}
.todo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.todo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgba(11,30,28,.88)); }
.todo:hover img { transform: scale(1.08); }
.todo__body { padding: 1.1rem 1.2rem; }
.todo__title { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.todo__desc { font-size: .86rem; color: rgba(255,255,255,.85); margin-top: .25rem; }

/* Food + transport lists */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.6rem; }
.info-item { display: flex; gap: .85rem; padding: .4rem 0; }
.info-item .ic-round {
    width: 40px; height: 40px; flex: none;
    border-radius: 12px; display: grid; place-items: center;
    background: rgba(201,168,106,.16); color: #7a5a26;
    font-weight: 800; font-family: var(--font-display);
}
.info-item h4 { font-family: var(--font-body); font-size: 1rem; color: var(--ink); margin-bottom: .15rem; }
.info-item p { font-size: .9rem; color: var(--muted); }

/* Map placeholder */
.map-ph {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(14,58,55,.9), rgba(20,133,123,.85)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
    display: grid; place-items: center;
    color: #fff; text-align: center;
}
.map-ph__pin {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50% 50% 50% 0;
    background: var(--grad-sunset);
    transform: rotate(-45deg);
    box-shadow: var(--shadow-md);
    position: relative;
    animation: bob 2.4s var(--ease) infinite;
}
.map-ph__pin::after {
    content: ""; position: absolute; inset: 18px;
    background: #fff; border-radius: 50%;
}
.map-ph p { color: rgba(255,255,255,.9); font-size: .95rem; }
.map-ph h3 { color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery__item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
}
/* Box-shadow focus ring (overflow:hidden clips outline offsets) */
.gallery__item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--sea), 0 0 0 4px rgba(0,0,0,.4);
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item::after {
    content: "⤢";
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(11,30,28,.35);
    color: #fff; font-size: 1.6rem;
    opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }

/* Checklist */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.checklist label {
    display: flex; align-items: center; gap: .7rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    cursor: pointer;
    font-size: .95rem;
    transition: background .25s var(--ease), border-color .25s var(--ease);
    user-select: none;
}
.checklist label:hover { border-color: var(--teal); }
/* Input stays in flow and focusable (offscreen via opacity, not display:none),
   so keyboard users can toggle and we can render a visible focus ring on .box. */
.checklist input { position: absolute; opacity: 0; }
.checklist .box {
    width: 22px; height: 22px; flex: none;
    border: 2px solid var(--muted);
    border-radius: 7px;
    display: grid; place-items: center;
    transition: all .25s var(--ease);
}
.checklist .box::after {
    content: "✓"; color: #fff; font-size: .8rem; font-weight: 900;
    transform: scale(0); transition: transform .25s var(--ease);
}
.checklist input:checked + .box { background: var(--grad-brand); border-color: transparent; }
.checklist input:checked + .box::after { transform: scale(1); }
/* Visible focus ring for the offscreen checkbox, surfaced on the styled box */
.checklist input:focus-visible + .box {
    outline: 3px solid var(--sea);
    outline-offset: 2px;
}
/* Checked label text: var(--muted) keeps >=4.5:1 on the paper surface */
.checklist input:checked ~ .txt { text-decoration: line-through; color: var(--muted); }

/* FAQ accordion */
.faq { display: grid; gap: .8rem; }
.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    overflow: hidden;
    transition: box-shadow .3s var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-sm); }
.faq__q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-weight: 700; font-size: 1.02rem; color: var(--ink);
    text-align: left;
}
/* Inset box-shadow ring: the .faq__item parent has overflow:hidden which clips outlines */
.faq__q:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--sea);
}
.faq__q .chev {
    width: 26px; height: 26px; flex: none;
    border-radius: 50%;
    background: rgba(43,179,163,.14);
    display: grid; place-items: center;
    color: var(--teal);
    transition: transform .35s var(--ease), background .3s var(--ease);
    font-size: 1.1rem; line-height: 1;
}
.faq__item.is-open .chev { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}
/* Open state: the panel can actually expand. JS sets is-open + an inline max-height,
   and removes the [hidden] attribute so the answer enters the a11y tree. */
.faq__item.is-open .faq__a { max-height: none; }
.faq__a[hidden] { display: none; }
.faq__a-inner { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: .96rem; }

/* Author bio box */
.author-box {
    display: flex; gap: 1.2rem; align-items: center;
    background: var(--grad-brand);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 1.6rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); flex: none; }
.author-box h4 { color: #fff; font-family: var(--font-body); }
.author-box .role { color: var(--gold-soft); font-size: .85rem; font-weight: 600; }
.author-box p { color: rgba(255,255,255,.85); font-size: .94rem; margin-top: .35rem; }

/* Prev / next navigation */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.pager__item {
    display: flex; flex-direction: column; gap: .35rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--cream);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pager__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.pager__item--next { text-align: right; align-items: flex-end; }
.pager__label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.pager__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(8,20,18,.92);
    display: grid; place-items: center;
    padding: 4vw;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__close {
    position: absolute; top: 4vw; right: 4vw;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 1.6rem;
    display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--grad-sunset); }


/* ---------------------------------------------------------------------------
   Generic page hero (about / contact / listing pages)
   --------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,30,28,.55), rgba(11,30,28,.78)); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 1.1rem auto 0; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--gold-soft); justify-content: center; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; font-size: .88rem; color: rgba(255,255,255,.92); margin-top: 1.4rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* About story + values */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.value {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease);
}
.value:hover { transform: translateY(-6px); }
.value__ic {
    width: 52px; height: 52px;
    border-radius: 15px;
    background: var(--grad-brand);
    color: #fff; padding: 12px;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-glow);
}
.value__ic svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.member { text-align: center; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.member h4 { font-family: var(--font-body); }
.member span { color: var(--teal); font-size: .88rem; font-weight: 600; }

/* Contact info cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
    display: flex; gap: 1rem; align-items: center;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease);
}
.contact-card:hover { transform: translateX(6px); }
.contact-card .ic {
    width: 48px; height: 48px; flex: none;
    border-radius: 14px; padding: 11px;
    background: var(--grad-sunset); color: #3a1d0e;
}
.contact-card .ic svg { fill: none; stroke: #3a1d0e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--muted); margin-bottom: .15rem; }
.contact-card p { font-weight: 700; color: var(--ink); }
.contact-card p a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.form-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--shadow-md);
}

/* CTA banner */
.cta {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    isolation: isolate;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(14,58,55,.88), rgba(20,133,123,.7)); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 1rem auto 2rem; font-size: 1.1rem; }


/* ---------------------------------------------------------------------------
   15. BACK-TO-TOP
   --------------------------------------------------------------------------- */
.to-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 800;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-md);
    display: grid; place-items: center;
    opacity: 0; transform: translateY(20px) scale(.8);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-show { opacity: 1; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.05); }


/* ---------------------------------------------------------------------------
   16. SCROLL-REVEAL & KEYFRAMES
   --------------------------------------------------------------------------- */
/* Scroll-reveal: hidden state is gated behind .js (added to <html> by script.js).
   Without JS, content stays fully visible, so a failed observer can never hide it. */
.reveal {
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    will-change: opacity, transform;
}
.reveal.is-visible,
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Reveal variants (only translate while the .js hidden state is active) */
.js .reveal--left  { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal--zoom  { transform: scale(.92); }
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--zoom.is-visible { transform: none; }

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.2); } }
@keyframes auroraDrift {
    0%   { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(4%, -3%) rotate(8deg); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-22px); }
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(227,203,156,.6); }
    70%  { box-shadow: 0 0 0 12px rgba(227,203,156,0); }
    100% { box-shadow: 0 0 0 0 rgba(227,203,156,0); }
}
@keyframes wheel { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 18px; } }
@keyframes bob { 0%,100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(-8px); } }


/* ---------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------------------------- */

/* Large laptops */
@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .team  { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 920px) {
    :root { --nav-h: 68px; }

    /* Mobile nav drawer */
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed;
        top: 0; right: 0;
        height: 100dvh;
        width: min(82vw, 340px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: .3rem;
        padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
        background: rgba(250,246,239,.96);
        backdrop-filter: blur(18px);
        box-shadow: -20px 0 60px -20px rgba(11,30,28,.5);
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        z-index: 890;
        overflow-y: auto;
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__link { color: var(--ink); font-size: 1.1rem; padding: .9rem 1rem; border-radius: var(--r-md); }
    .nav__link::after { display: none; }
    .nav__link:hover, .nav__link.is-active { background: rgba(43,179,163,.1); color: var(--forest); }
    .nav__cta { margin: 1rem 0 0; justify-content: center; width: 100%; }
    .nav__backdrop.is-show { display: block; }

    .article-layout { grid-template-columns: 1fr; }
    .toc { position: static; order: -1; }

    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .stat + .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(odd) { border-left: none; }
}

/* Small tablet / large phone */
@media (max-width: 720px) {
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .dest-grid--mosaic .dest:nth-child(1) { grid-column: span 2; grid-row: auto; min-height: 300px; }
    .values { grid-template-columns: 1fr; }
    .budget-grid { grid-template-columns: 1fr; }
    .todo-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery__item:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
    .pager { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .footer__wrap { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}

/* Phones */
@media (max-width: 480px) {
    body { font-size: 1rem; }
    .cards { grid-template-columns: 1fr; }
    .dest-grid { grid-template-columns: 1fr; }
    .dest-grid--mosaic .dest:nth-child(1) { grid-column: span 1; }
    .team { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .stat + .stat { border-left: none; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.16); }
    .gallery { grid-template-columns: 1fr; }
    .gallery__item:nth-child(1) { aspect-ratio: 4/3; }
    .footer__wrap { grid-template-columns: 1fr; }
    .season { grid-template-columns: 90px 1fr; }
    .season__note { grid-column: 1 / -1; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .author-box { flex-direction: column; text-align: center; }
    .to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}


/* ---------------------------------------------------------------------------
   18. REDUCED MOTION & PRINT
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .js .reveal { opacity: 1; transform: none; }
    .reveal-line > span { transform: none; }
    .hero__badge, .hero__sub, .hero__actions, .hero__scroll { opacity: 1; }
    /* Suppress the destination hover-zoom and blurb slide for reduced-motion users */
    .dest img, .dest__blurb { transition: none; }
    .dest:hover img { transform: none; }
    .pop { animation: none; }
}

@media print {
    .nav, .footer, .to-top, .toc, .hero__scroll, .progress-bar, .nav__backdrop { display: none !important; }
    body { background: #fff; color: #000; }
    .article-layout { grid-template-columns: 1fr; }
    /* Force light surfaces + black text on the dark photo sections, hide bg images */
    .article-hero, .page-hero, .stats, .cta, .author-box, .hero {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        min-height: auto;
    }
    .article-hero img, .page-hero img, .stats::before, .cta img, .hero__bg, .hero__overlay { display: none !important; }
    .article-hero h1, .page-hero h1, .cta h2, .stats *, .author-box * { color: #000 !important; text-shadow: none !important; }
    /* Expose link URLs in printed prose */
    .prose a[href]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
}

/* ============================================================
   Visual QA polish (mobile/tablet/desktop) — appended overrides
   ============================================================ */
/* P1 honeypot: markup uses .form__hp (CSS hid .field--hp) */
.field--hp, .form__hp { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
/* P1 GDPR consent row */
.consent { display:flex; align-items:flex-start; gap:.6rem; line-height:1.5; }
.consent input { width:20px; height:20px; flex:0 0 auto; margin-top:.15rem; accent-color:var(--teal); }
/* P1 footer legal links wrap (no clip on tablet) */
.footer__bar-links { flex-wrap:wrap; }
/* P2 sticky header near-opaque so body text never ghosts through */
.nav.is-stuck { background:rgba(250,246,239,.96); }
/* P2 back-to-top FAB: shadow + clearance, never clip text */
.to-top { box-shadow:0 12px 30px -8px rgba(14,58,55,.5); }
@media (max-width:720px){ .to-top { bottom:1.25rem; right:1rem; } }
/* P2 guides grid auto-fill (desktop only) — no orphan card */
@media (min-width:921px){ .cards { grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); } }
/* P2 hero glass pills: fixed legible base regardless of photo */
.tag { background:rgba(20,40,38,.45); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#fff; border:1px solid rgba(255,255,255,.32); }
/* P2 hero scrim + text legibility over bright photos */
.hero__overlay { background:linear-gradient(180deg, rgba(11,30,28,.5) 0%, rgba(11,30,28,.32) 40%, rgba(11,30,28,.82) 100%), linear-gradient(to right, rgba(11,30,28,.5) 0%, rgba(11,30,28,0) 58%); }
.hero__sub, .breadcrumb { text-shadow:0 1px 3px rgba(0,0,0,.42); }
/* P2 stat suffix gap (11 min, not 11min) */
.stat__suffix { margin-left:.2em; }
/* P2 about story paragraph rhythm */
.split p + p { margin-top:1.05em; }
/* P2 legal prose centered measure (balanced whitespace) */
.prose { margin-inline:auto; }
