/* ============================================================
   menedio marketing site — travel-magazine inspired
   ============================================================ */

:root {
    --accent: #E0533F;          /* warm terracotta — replaces flat GYG red */
    --accent-hover: #C7432F;
    --ink: #1B1F2A;             /* deep ink, not corporate navy */
    --ink-soft: #3A3F4D;
    --muted: #6B7280;
    --paper: #FBF7F1;           /* warm off-white background */
    --paper-darker: #F2EBDF;
    --border: #E5DFD3;
    --surface: #FFFFFF;
    --shadow-soft: 0 10px 30px -12px rgba(28, 24, 18, 0.18);
    --shadow-card: 0 20px 50px -20px rgba(28, 24, 18, 0.22);

    --nav-height: 72px;
    --max-width: 1180px;
    --radius: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 0.6rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; }

p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

a { color: var(--ink); text-decoration: none; transition: color 0.18s ease; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    border: 1px solid transparent;
    line-height: 1;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.ghost-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn.ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn.large { padding: 16px 30px; font-size: 1.05rem; }
.btn.block { display: flex; width: 100%; margin-bottom: 0.6rem; }

/* ---------- Navbar ---------- */
.navbar {
    height: var(--nav-height);
    background: rgba(251, 247, 241, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-logo { color: #fff; }
.nav-links { display: none; }
.hamburger { background: none; border: none; cursor: pointer; color: var(--ink); padding: 8px; }
.nav-cta { margin-left: 8px; }

@media (max-width: 767px) {
    .nav-links {
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 12px 16px;
        font-weight: 500;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; margin-top: 0.8rem; text-align: center; }
}
@media (min-width: 768px) {
    .hamburger { display: none; }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-links a { font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
    .nav-links a:hover, .nav-links a.active { color: var(--accent); }
    .nav-cta { color: #fff !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 620px;
    height: 78vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink);
    overflow: hidden;
    color: #fff;
}
.hero-bg {
    position: absolute; inset: 0;
    z-index: 1;
    background: var(--ink);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(27, 31, 42, 0.35) 0%, rgba(27, 31, 42, 0.78) 100%);
    z-index: 3;
    pointer-events: none;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    z-index: 1;
    will-change: opacity, transform;
}
.hero-slideshow .hero-slide {
    /* --hero-cycle and --hero-delay are set inline per slide from home.html
       so the slideshow scales to any number of slides. */
    animation: heroFade var(--hero-cycle, 15s) infinite ease-in-out,
               heroPan  var(--hero-cycle, 15s) infinite linear;
    animation-delay: var(--hero-delay, 0s), var(--hero-delay, 0s);
}
.hero-slide-fallback {
    opacity: 1;
    background-image: url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?auto=format&fit=crop&w=2000&q=80');
}
@keyframes heroFade {
    0%   { opacity: 0; }
    7%   { opacity: 1; }   /* fade-in done */
    27%  { opacity: 1; }   /* visible for ~3s of the 15s cycle */
    40%  { opacity: 0; }   /* fade-out done */
    100% { opacity: 0; }
}
@keyframes heroPan {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slideshow .hero-slide { animation: none; opacity: 1; transform: none; }
    .hero-slideshow .hero-slide ~ .hero-slide { display: none; }
}
.hero-partners .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1521295121783-8a321d551ad2?auto=format&fit=crop&w=2000&q=80');
    background-size: cover; background-position: center;
}
.hero-partners .hero-bg {
    background-image: url('https://images.unsplash.com/photo-1521295121783-8a321d551ad2?auto=format&fit=crop&w=2000&q=80');
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 0 1.5rem;
}
.hero-content .eyebrow { color: #FFD8B5; }
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub { color: rgba(255,255,255,0.92); font-size: 1.18rem; margin-bottom: 2rem; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-meta { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 1.2rem; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section-padding { padding: 64px 0; }
.bg-light { background: var(--paper-darker); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-cta { text-align: center; margin-top: 40px; }

.grid-3 {
    display: grid; gap: 32px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* How-it-works steps */
.step-card { background: var(--surface); padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.step-number {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: 'Fraunces', serif;
    margin-bottom: 18px;
}

/* Value cards */
.value-card { text-align: center; padding: 24px; }
.value-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--paper-darker);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 26px;
}

/* Partner cards (guides / hotels) — alternating image+text rows */
.partner-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    margin-top: 32px;
}
.partner-card:first-of-type { margin-top: 16px; }
.partner-card-visual {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-darker);
    aspect-ratio: 3 / 4;
}
.partner-card-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.partner-card-body .eyebrow { margin-bottom: 0.4rem; }
.partner-card-body h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    margin-bottom: 14px;
}
.partner-card-body p { margin-bottom: 0.8rem; }
.partner-howto-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 18px 0 10px;
}
.partner-footnote {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
}
@media (min-width: 900px) {
    .partner-card {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 48px;
        padding: 36px;
    }
    .partner-card.reverse .partner-card-visual { order: 2; }
}

/* Split section */
.split-section {
    display: grid; gap: 56px; align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .split-section { grid-template-columns: 1fr 1fr; }
    .split-section.reverse .split-text { order: -1; }
}
.split-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); }

.about-story { max-width: 720px; }
.about-story h2 { margin-bottom: 1.2rem; }
.about-story p { font-size: 1.1rem; margin-bottom: 1rem; }

.bullet-list { list-style: none; margin-top: 18px; }
.bullet-list li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
    color: var(--ink-soft); font-size: 1.05rem;
}
.bullet-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--accent); font-weight: 700;
}

/* CTA banner */
.cta-banner {
    background: var(--ink); color: #fff;
    text-align: center;
    border-radius: var(--radius);
    padding: 64px 24px;
    margin: 56px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-bottom: 28px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.72);
    padding: 72px 0 32px;
}
.footer-logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.65); }
.footer-grid {
    display: grid; gap: 40px; margin-bottom: 48px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-links h4 { font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.65); margin-bottom: 10px; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px; text-align: center;
    color: rgba(255,255,255,0.5); font-size: 0.85rem;
}

/* ---------- Page headers (about/tours/legal) ---------- */
.page-header {
    background: var(--paper-darker);
    padding: 88px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Tour cards (catalog + featured) ---------- */
.tour-grid {
    display: grid; gap: 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }

.tour-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--ink);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tour-card-img {
    width: 100%; aspect-ratio: 16 / 10;
    background-color: var(--paper-darker);
    background-size: cover; background-position: center;
}
.tour-card-img.placeholder { background: linear-gradient(135deg, var(--paper-darker), var(--border)); }
.tour-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.tour-card-city {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); font-weight: 600;
    margin-bottom: 0;
}
.tour-card-body h3 { margin-bottom: 0; }
.tour-card-summary {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tour-card-meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: 0.85rem; color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
}

/* ---------- Tours index ---------- */
.city-block { margin-bottom: 72px; }
.city-block:last-child { margin-bottom: 0; }
.city-block-header { margin-bottom: 28px; }
.city-block-header h2 { margin-bottom: 4px; }
.empty-state { text-align: center; padding: 80px 20px; }

/* ---------- Tour detail ---------- */
.tour-hero {
    position: relative;
    min-height: 480px;
    background: var(--ink);
    background-size: cover; background-position: center;
    color: #fff;
    padding: 120px 0 80px;
}
.tour-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(27, 31, 42, 0.45) 0%, rgba(27, 31, 42, 0.85) 100%);
}
.tour-hero-content { position: relative; z-index: 2; max-width: 760px; }
.tour-hero-content .eyebrow { color: #FFD8B5; }
.tour-hero-content h1 { color: #fff; margin-bottom: 14px; }
.tour-hero-content .hero-sub { color: rgba(255,255,255,0.88); text-align: left; margin: 0 0 24px 0; }
.tour-hero-facts {
    display: flex; flex-wrap: wrap; gap: 32px;
    margin: 24px 0 28px;
}
.tour-hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.tour-hero-facts strong {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem; font-weight: 700; color: #fff;
}
.tour-hero-facts span {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}
.tour-hero .hero-ctas { justify-content: flex-start; }

.tour-detail-grid {
    display: grid; gap: 48px;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) { .tour-detail-grid { grid-template-columns: 2fr 1fr; } }

.tour-detail-main h2 { margin: 32px 0 16px; }
.tour-detail-main h2:first-child { margin-top: 0; }

.poi-list { list-style: none; counter-reset: poi; }
.poi-list li {
    display: flex; gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.poi-list li:last-child { border-bottom: none; }
.poi-list-number {
    flex: 0 0 36px; width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--paper-darker);
    color: var(--accent); font-weight: 700;
    font-family: 'Fraunces', serif;
    display: flex; align-items: center; justify-content: center;
}
.poi-list-body h3 { margin-bottom: 4px; }
.poi-list-body p { margin-bottom: 4px; }

.tour-detail-side { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; }
.tour-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}
.tour-detail-card hr { border: none; border-top: 1px solid var(--border); margin: 24px 0 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 0.92rem; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid; gap: 28px;
    grid-template-columns: 1fr;
    max-width: 860px; margin: 0 auto;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}
.contact-icon { font-size: 38px; margin-bottom: 16px; }
.contact-card .btn { margin-top: 8px; }

/* ---------- Legal pages ---------- */
.legal-prose { max-width: 760px; margin: 0 auto; }
.legal-prose h3 { margin: 28px 0 8px; font-family: 'Inter', sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.legal-prose p { color: var(--ink-soft); }

.legal-page { max-width: 820px; margin: 0 auto; }
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px;
    background: var(--paper-darker);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}
.legal-nav a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background 0.15s ease, color 0.15s ease;
}
.legal-nav a:hover { color: var(--ink); }
.legal-nav a.active { background: var(--ink); color: #fff; }
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
    box-shadow: var(--shadow-soft);
}
.legal-updated {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 24px;
}
.legal-block { padding: 22px 0; border-top: 1px solid var(--border); }
.legal-block:first-of-type { border-top: 0; padding-top: 0; }
.legal-block h3 {
    margin: 0 0 10px;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.legal-block p { color: var(--ink-soft); margin-bottom: 0.5rem; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal-block a:hover { color: var(--accent-hover); }
@media (max-width: 600px) {
    .legal-card { padding: 28px 22px; }
    .legal-nav { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .legal-nav a { white-space: nowrap; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 22px 22px 18px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: cookieBannerIn 0.35s ease;
}
.cookie-banner.hidden { display: none; }
.cookie-banner-title {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.cookie-banner-body {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}
.cookie-banner-body a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-body a:hover { color: var(--accent); }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-btn { padding: 9px 18px; font-size: 0.9rem; }
.cookie-banner .btn.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.cookie-banner .btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}
@keyframes cookieBannerIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; width: auto; }
    .cookie-banner-actions { flex-direction: column-reverse; }
    .cookie-btn { width: 100%; }
}
/* Lift sticky-demo above the cookie banner while it's visible (desktop). */
body.has-cookie-banner .sticky-demo { bottom: 24px; }
@media (max-width: 600px) {
    body.has-cookie-banner .sticky-demo { display: none; }
}

/* ---------- Sticky demo CTA ---------- */
.sticky-demo {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: var(--ink); color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.95rem; font-weight: 600;
    z-index: 900;
    transition: transform 0.2s ease, background 0.18s ease;
}
.sticky-demo:hover { background: var(--accent); color: #fff; transform: translateX(-50%) translateY(-2px); }
.sticky-demo-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (max-width: 480px) {
    .sticky-demo { font-size: 0.85rem; padding: 10px 16px; bottom: 14px; }
    .sticky-demo-text { white-space: nowrap; }
}

/* ---------- Pillars (4-up) ---------- */
.grid-4 {
    display: grid; gap: 28px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.pillar-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--paper-darker);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { font-size: 0.98rem; margin: 0; }

/* ---------- Language dropdown ---------- */
.lang-menu { position: relative; }
.lang-menu > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    user-select: none;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { color: var(--ink); border-color: var(--ink); }
.lang-menu[open] > summary { color: var(--ink); border-color: var(--ink); }
.lang-menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: var(--shadow-card);
    z-index: 1100;
}
.lang-menu-panel a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--ink);
}
.lang-menu-panel a:hover { background: var(--paper-darker); }
.lang-menu-panel a.active { background: var(--paper-darker); color: var(--accent); font-weight: 600; }
.lang-menu-panel .muted { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 767px) {
    .lang-menu { width: 100%; }
    .lang-menu > summary { justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 8px; }
    .lang-menu-panel { position: static; box-shadow: none; border: none; padding: 4px 0 8px 8px; }
}

/* ---------- City picker ---------- */
.city-picker {
    display: flex; flex-direction: column; gap: 16px;
    align-items: center;
    margin-bottom: 48px;
}
.city-locate {
    align-self: center;
}
.city-chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
}
.city-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}
.city-chip:hover { border-color: var(--ink); }
.city-chip.is-active {
    background: var(--ink); color: #fff; border-color: var(--ink);
}
.city-chip.is-active .muted { color: rgba(255,255,255,0.6); }
.city-chip .muted { font-size: 0.78rem; margin-left: 6px; }
.city-picker-msg {
    color: var(--muted); font-size: 0.92rem;
    text-align: center; margin: 0;
}

.city-walks-block { display: none; }
.city-walks-block.is-active { display: block; }

/* ---------- Audio demo bar (tour detail) ---------- */
.audio-demo-bar {
    background:
        radial-gradient(ellipse at top left, rgba(224, 83, 63, 0.08), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(27, 31, 42, 0.06), transparent 60%),
        var(--paper-darker);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}
.audio-demo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px 26px;
    display: flex; flex-direction: column;
    gap: 20px;
}
.audio-demo-top {
    display: flex; align-items: center; gap: 18px;
}
.audio-demo-cover {
    flex: 0 0 auto;
    width: 72px; height: 72px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: var(--paper-darker);
    box-shadow: 0 6px 18px -8px rgba(28, 24, 18, 0.35);
    position: relative;
    overflow: hidden;
}
.audio-demo-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(224, 83, 63, 0.0), rgba(27, 31, 42, 0.18));
}
.audio-demo-label {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0;
}
.audio-demo-label-top {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.audio-demo-label strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.25;
}
.audio-demo-badge {
    display: inline-block;
    background: var(--accent); color: #fff;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Custom audio player */
.audio-player {
    display: flex; align-items: center; gap: 16px;
    width: 100%;
}
.audio-player [data-audio-el] { display: none; }
.audio-player-play {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px -10px rgba(224, 83, 63, 0.6);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.audio-player-play:hover { background: var(--accent-hover); transform: translateY(-1px); }
.audio-player-play:active { transform: translateY(0); }
.audio-player-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.audio-player-icon { width: 24px; height: 24px; display: block; }
.audio-player-icon.icon-pause { display: none; }
.audio-player.is-playing .audio-player-icon.icon-play { display: none; }
.audio-player.is-playing .audio-player-icon.icon-pause { display: block; }
.audio-player-track {
    position: relative;
    flex: 1; min-width: 0;
    height: 8px;
    background: var(--paper-darker);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}
.audio-player-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 999px;
    transition: width 0.08s linear;
}
.audio-player-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-size: 0.88rem;
    color: var(--muted);
    display: inline-flex; align-items: center; gap: 4px;
}
.audio-player-time-sep { opacity: 0.5; }

@media (max-width: 640px) {
    .audio-demo { padding: 18px; gap: 16px; }
    .audio-demo-cover { width: 60px; height: 60px; border-radius: 12px; }
    .audio-demo-label strong { font-size: 1.05rem; }
    .audio-player { gap: 12px; }
    .audio-player-play { width: 52px; height: 52px; }
    .audio-player-icon { width: 22px; height: 22px; }
    .audio-player-time { font-size: 0.78rem; }
}

/* ---------- Editorial feature rows ("explore like a local") ---------- */
.editorial {
    padding-top: 72px;
    padding-bottom: 48px;
}
.editorial .section-title { margin-bottom: 40px; }
.editorial .section-title .display {
    font-size: clamp(3rem, 8vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
}

.feature-row {
    display: grid;
    gap: 56px;
    align-items: center;
    grid-template-columns: 1fr;
    padding: 40px 1.5rem;
}
@media (min-width: 992px) {
    .feature-row { grid-template-columns: 1fr 1fr; gap: 80px; padding-left: 1.5rem; padding-right: 1.5rem; }
    .feature-row.reverse .feature-text { order: -1; }
}
.feature-text .eyebrow.accent {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.feature-text h2 { margin-bottom: 18px; }
.feature-text .lede { font-size: 1.18rem; margin-bottom: 20px; }
.feature-text .bullet-list { margin-top: 8px; }
.feature-cta { margin-top: 24px; }

/* Audio walks row keeps phone next to text at every viewport. */
#pillar-audio {
    grid-template-columns: minmax(140px, 36%) 1fr;
    gap: 24px;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}
#pillar-audio .feature-visual {
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 768px) {
    #pillar-audio { grid-template-columns: minmax(220px, 40%) 1fr; gap: 48px; }
}
@media (min-width: 992px) {
    #pillar-audio {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

/* Phone-copy stack: three slides occupy the same grid cell so the
   container height = tallest slide, no layout jumps when rotating. */
.phone-copy {
    display: grid;
    grid-template-columns: 1fr;
}
.phone-copy-slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.phone-copy-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.phone-copy-slide > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
    .phone-copy-slide { transition: opacity 0.2s linear; transform: none; }
}

.editorial-close {
    text-align: center;
    margin-top: 64px;
}
.editorial-tagline {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
    color: var(--ink);
    max-width: 640px;
    margin: 0 auto 28px;
}
.editorial-tagline em {
    font-style: italic;
    color: var(--accent);
}

/* ---------- Phone frame mockup ---------- */
.feature-visual {
    display: flex; align-items: center; justify-content: center;
}
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9 / 19;
    background: #0d1117;
    border-radius: 38px;
    padding: 12px;
    box-shadow:
      0 30px 60px -20px rgba(28,24,18,0.4),
      0 0 0 2px rgba(255,255,255,0.04),
      inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone-notch {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    width: 70px; height: 18px;
    background: #000;
    border-radius: 999px;
    z-index: 3;
}
.phone-screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    background: #0d1117;
}
.phone-carousel {
    position: absolute; inset: 0;
}
.phone-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.phone-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.phone-dots {
    display: flex; justify-content: center; gap: 10px;
    margin-top: 4px;
}
.phone-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(28, 24, 18, 0.22);
    border: none;
    padding: 0; cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.phone-dot:hover { background: rgba(28, 24, 18, 0.4); }
.phone-dot.is-active {
    width: 28px;
    border-radius: 5px;
    background: var(--accent);
}

/* Prev/next arrows poking out of the phone bezel. */
.phone-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: var(--ink);
    border: none;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition: background 0.15s ease, transform 0.15s ease;
    user-select: none;
}
.phone-arrow:hover { background: #fff; }
.phone-arrow:active { transform: translateY(-50%) scale(0.94); }
.phone-arrow-prev { left: -18px; padding-right: 3px; }
.phone-arrow-next { right: -18px; padding-left: 3px; }
@media (max-width: 767px) {
    .phone-arrow { width: 32px; height: 32px; font-size: 1.35rem; }
    .phone-arrow-prev { left: -14px; }
    .phone-arrow-next { right: -14px; }
}
/* ---------- Chat preview (AI pillar) ---------- */
.chat-preview {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 14px;
    border: 1px solid var(--border);
}
.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 86%;
}
.chat-msg p {
    background: var(--paper-darker);
    color: var(--ink);
    padding: 12px 16px;
    border-radius: 18px;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.45;
}
.chat-msg.user {
    align-self: flex-end;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.chat-msg.user p {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-photo {
    width: 130px; height: 85px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    border: 2px solid #fff;
    box-shadow: var(--shadow-soft);
}
.chat-msg.ai {
    align-self: flex-start;
}
.chat-msg.ai p {
    background: var(--paper-darker);
    border-bottom-left-radius: 4px;
}
.chat-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 32px;
    background: var(--ink);
    margin-top: 2px;
}
.chat-msg.typing p { background: var(--paper-darker); color: var(--muted); }
.chat-msg .dot {
    display: inline-block;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--muted);
    margin: 0 1px;
    animation: chatDot 1.2s infinite ease-in-out;
}
.chat-msg .dot:nth-child(2) { animation-delay: 0.15s; }
.chat-msg .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Generic feature image (food / events) ---------- */
.feature-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background-size: cover; background-position: center;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
/* AI image is near-square — fit it whole with plain white whitespace top/bottom. */
#pillar-ai .feature-img {
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
}
.feature-tag {
    position: absolute;
    top: 18px; left: 18px;
    background: rgba(255,255,255,0.92);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.feature-tag.live {
    background: var(--accent);
    color: #fff;
}
.feature-tag.live::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    margin-right: 6px; vertical-align: middle;
    animation: livePulse 1.6s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- Recap grid: four pillars at a glance ---------- */
.recap-block {
    margin-top: -16px;
    margin-bottom: 32px;
}
.recap-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.recap-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 10px 0 16px;
}
.recap-sub {
    font-size: 1.18rem;
    color: var(--ink-soft);
    margin: 0;
}

/* When the editorial section title is immediately followed by the recap,
   tighten the gap so the two blocks read as one introduction. */
.editorial .section-title + .recap-block { margin-top: -32px; }

.recap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 640px) {
    .recap-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1024px) {
    .recap-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

.recap-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.recap-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -20px rgba(28,24,18,0.32);
}
.recap-tile:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.recap-tile-shade {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 17, 14, 0.92) 0%,
        rgba(20, 17, 14, 0.62) 38%,
        rgba(20, 17, 14, 0.18) 72%,
        rgba(20, 17, 14, 0.04) 100%
    );
}
.recap-tile-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 22px 24px;
    color: #fff;
}
.recap-tile-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #FF8A5F;
    margin: 0 0 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.recap-tile-slogan {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.35rem, 1.7vw, 1.55rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.recap-tile-body {
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
    margin: 0;
}

/* Anchor scrolling: offset the sticky nav so scrolled-to rows
   are not hidden behind the navbar. */
.feature-row[id] { scroll-margin-top: calc(var(--nav-height) + 24px); }
