/* home-sections.css — Antologa homepage, dark immersive.
   Prefixes: hh- hero, home-section shared, wa- why, hiw- how, fd- destinations,
             pw- wonders, es- stories, ps- partners, faq- faq, fc- final cta
   Motion: .reveal (scroll-in), .hh-stagger (hero load), prefers-reduced-motion guard. */

/* ── Home-only: transparent NavBar + Footer (scoped to .home-page) ───── */
.home-page header.mud-appbar.nb,
.home-page header.mud-appbar.nb--dark {
    background-color: transparent !important;
    box-shadow: none !important;
}

.home-page .fex-footer,
.home-page .fex-footer--dark {
    background-color: transparent !important;
}

.home-page .nlb-section {
    background-color: transparent !important;
}

/* ── Dark page surface ──────────────────────────────────────────────── */
.home-page {
    --hp-bg:    #0e1316;   /* near-black base                  */
    --hp-bg2:   #121a1f;   /* alternating band                 */
    --hp-card:  #1b2227;   /* card surface                     */
    --hp-line:  rgba(255,255,255,0.10);
    --hp-text:  #e8eaec;
    --hp-muted: rgba(232,234,236,0.66);
    background: var(--hp-bg);
    color: var(--hp-text);
    overflow-x: hidden;
}

/* ── Shared section scaffolding ─────────────────────────────────────── */
.home-section { padding: 5rem 0; background: var(--hp-bg); }
.home-section--alt { background: var(--hp-bg2); }

.home-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.home-section__head--center { flex-direction: column; align-items: center; text-align: center; }

.home-section__eyebrow {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--antologa-contrast, #e1a951);
    display: block;
    margin-bottom: 0.5rem;
}

.home-section__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--hp-text);
    margin: 0;
}

.home-section__link { font-size: 0.85rem; font-weight: 600; color: var(--antologa-primary) !important; white-space: nowrap; }
.home-section__empty { color: var(--hp-muted); font-size: 0.9rem; }

/* ── 02 HERO (dark 60/40 split) ─────────────────────────────────────── */
.hh-section {
    position: relative;
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
    background: var(--hp-bg);
}

.hh-image { position: relative; overflow: hidden; }
.hh-image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    animation: parallaxZoom 22s ease-in-out infinite alternate;
    backface-visibility: hidden; will-change: transform;
}
.hh-image__veil {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14,19,22,0) 55%, rgba(14,19,22,0.95) 100%);
}

@keyframes parallaxZoom { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }

.hh-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hp-bg);
    padding: 6rem 3rem 3rem;
}

.hh-content { width: 100%; max-width: 30rem; }

.hh-eyebrow {
    display: inline-block;
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--antologa-contrast, #e1a951);
    margin-bottom: 1.25rem;
}

.hh-title {
    font-family: Inter, sans-serif;
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    font-weight: 800 !important;
    line-height: 1.06;
    color: #fff;
    margin: 0 0 1.1rem;
}
.hh-title-accent { color: var(--antologa-primary, #078282); }

.hh-body {
    font-family: Nunito, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hp-muted);
    margin: 0 0 1.75rem;
}

.hh-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hh-cta {
    text-transform: none !important; font-weight: 700 !important;
    border-radius: 0.6rem !important; padding: 0.7rem 1.5rem !important;
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, transform .15s ease;
}
.hh-cta--primary { background: var(--antologa-primary, #078282) !important; color: #fff !important; }
.hh-cta--primary:hover { background: var(--antologa-secondary, #004f71) !important; box-shadow: 0 8px 22px rgba(7,130,130,0.35); }
.hh-cta--ghost { border-color: rgba(255,255,255,0.4) !important; color: #fff !important; }
.hh-cta--ghost:hover { border-color: var(--antologa-primary, #078282) !important; color: var(--antologa-primary, #078282) !important; }

.hh-prereg { font-family: Nunito, sans-serif; font-size: 0.85rem; color: var(--hp-muted); display: flex; align-items: center; gap: 0.5rem; }
.hh-prereg-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--antologa-primary, #078282); box-shadow: 0 0 0 0 rgba(7,130,130,0.6); animation: hhPulse 2s ease-out infinite; }
.hh-prereg-status { color: var(--antologa-contrast, #e1a951); font-weight: 700; letter-spacing: 0.04em; }

@keyframes hhPulse {
    0%   { box-shadow: 0 0 0 0 rgba(7,130,130,0.55); }
    70%  { box-shadow: 0 0 0 0.5rem rgba(7,130,130,0); }
    100% { box-shadow: 0 0 0 0 rgba(7,130,130,0); }
}

/* ── 03 WHY ANTOLOGA ────────────────────────────────────────────────── */
.wa-lede { color: var(--hp-muted); max-width: 42rem; margin: 0.5rem auto 0; }
.wa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.wa-card {
    text-align: center; padding: 2.25rem 1.5rem;
    border-radius: 0.9rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.wa-card:hover { transform: translateY(-4px); border-color: rgba(7,130,130,0.5); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.wa-icon { color: var(--antologa-primary); font-size: 2.5rem !important; width: 2.5rem !important; height: 2.5rem !important; margin-bottom: 0.85rem; }
.wa-card__title { font-weight: 700; color: #fff; margin: 0 0 0.4rem; }
.wa-card__body { color: var(--hp-muted); margin: 0; }

/* ── 04 DESTINATIONS / FEATURED ─────────────────────────────────────── */
.fd-section { background: var(--hp-bg2); }
.fd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fd-cell { height: 100%; }

/* ── 05 PANAMA'S WONDERS ────────────────────────────────────────────── */
.pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pw-card {
    position: relative; display: block; height: 18rem;
    border-radius: 0.9rem; overflow: hidden; text-decoration: none; color: #fff;
}
.pw-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pw-card:hover .pw-card__img { transform: scale(1.07); }
.pw-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.8) 100%); }
.pw-card__type {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.65rem; border-radius: 999px;
    background: rgba(7,130,130,0.85); color: #fff;
}
.pw-card__body { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 2; }
.pw-card__name { color: #fff; font-weight: 700; margin: 0 0 0.2rem; }
.pw-card__province { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.pw-card__pin { font-size: 1rem !important; width: 1rem !important; height: 1rem !important; color: var(--antologa-contrast, #e1a951); }

/* ── 06 HOW IT WORKS ────────────────────────────────────────────────── */
.hiw-section { background: var(--hp-bg2); }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hiw-step { position: relative; text-align: center; padding: 2rem 1.5rem; }
.hiw-num { position: absolute; top: 0.25rem; left: 50%; transform: translateX(-50%); font-family: Inter, sans-serif; font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,0.05); line-height: 1; }
.hiw-icon { position: relative; color: var(--antologa-primary); font-size: 2.25rem !important; width: 2.25rem !important; height: 2.25rem !important; margin-bottom: 0.6rem; }
.hiw-step__title { font-weight: 700; color: #fff; margin: 0 0 0.35rem; }
.hiw-step__body { color: var(--hp-muted); margin: 0; }

/* ── 07 STORIES ─────────────────────────────────────────────────────── */
.es-section { background: var(--hp-bg2); }
.es-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.es-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border-radius: 0.75rem; overflow: hidden;
    background: var(--hp-card); border: 1px solid var(--hp-line);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.es-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.45); transform: translateY(-3px); border-color: rgba(7,130,130,0.45); }
.es-card__img-wrap { aspect-ratio: 16 / 10; overflow: hidden; }
.es-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.es-card:hover .es-card__img { transform: scale(1.06); }
.es-card__body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.es-card__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--antologa-contrast, #e1a951); }
.es-card__title { font-weight: 700; color: #fff; margin: 0; }
.es-card__meta { font-size: 0.75rem; color: var(--hp-muted); }

/* ── 08 PARTNERS / B2B ──────────────────────────────────────────────── */
.ps-section { padding: 5rem 0; background: var(--hp-bg); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ps-img { width: 100%; height: 24rem; object-fit: cover; border-radius: 1rem; display: block; }
.ps-eyebrow { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--antologa-contrast, #e1a951); display: block; margin-bottom: 0.4rem; }
.ps-title { font-weight: 800; color: #fff; margin: 0 0 0.75rem; }
.ps-body { color: var(--hp-muted); margin: 0 0 1.25rem; }
.ps-segments { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ps-segment { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.75rem; color: var(--hp-text); font-size: 0.92rem; line-height: 1.45; }
.ps-segment strong { color: #fff; }
.ps-seg-icon { color: var(--antologa-primary); font-size: 1.25rem !important; width: 1.25rem !important; height: 1.25rem !important; flex: 0 0 auto; margin-top: 0.1rem; }
.ps-cta {
    text-transform: none !important; font-weight: 700 !important;
    border-radius: 0.6rem !important; padding: 0.7rem 1.75rem !important;
    background: var(--antologa-primary, #078282) !important; color: #fff !important;
    transition: background .25s ease, box-shadow .25s ease;
}
.ps-cta:hover { background: var(--antologa-secondary, #004f71) !important; box-shadow: 0 8px 22px rgba(7,130,130,0.35); }

/* ── 09 FAQ ─────────────────────────────────────────────────────────── */
.faq-section { background: var(--hp-bg); }
.faq-panels { background: transparent !important; }
.faq-panel { margin-bottom: 0.75rem; background: var(--hp-card) !important; border: 1px solid var(--hp-line); border-radius: 0.6rem !important; color: var(--hp-text) !important; }
.faq-panel .mud-expand-panel-text, .faq-answer { color: var(--hp-muted) !important; }
.faq-panel .mud-expand-panel-header { color: #fff !important; }

/* ── 10 FINAL CTA ───────────────────────────────────────────────────── */
.fc-section { position: relative; padding: 6.5rem 1.5rem; overflow: hidden; text-align: center; }
.fc-bg { position: absolute; inset: 0; z-index: 0; }
.fc-img { width: 100%; height: 100%; object-fit: cover; }
.fc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,19,22,0.7), rgba(14,19,22,0.9)); }
.fc-content { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }
.fc-eyebrow { display: block; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--antologa-contrast, #e1a951); margin-bottom: 0.6rem; }
.fc-title { color: #fff; font-weight: 800; margin: 0 0 0.75rem; }
.fc-sub { color: rgba(255,255,255,0.85); margin: 0 0 1.5rem; }
.fc-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; margin: 0 0 1.75rem; }
.fc-stat { display: flex; flex-direction: column; }
.fc-val { font-family: Inter, sans-serif; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.fc-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 0.35rem; }
.fc-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.fc-cta { text-transform: none !important; font-weight: 700 !important; border-radius: 0.6rem !important; padding: 0.7rem 1.75rem !important; transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fc-cta--primary { background: var(--antologa-primary, #078282) !important; color: #fff !important; }
.fc-cta--primary:hover { background: var(--antologa-contrast, #e1a951) !important; box-shadow: 0 8px 22px rgba(225,169,81,0.35); }
.fc-cta--ghost { border-color: rgba(255,255,255,0.6) !important; color: #fff !important; }

/* ── Motion: scroll reveal + hero stagger ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

.hh-stagger { opacity: 0; transform: translateY(1rem); animation: hhIn .7s ease forwards; animation-delay: calc(var(--d, 0) * 120ms + 150ms); }
@keyframes hhIn { to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 75rem) {
    .fd-grid { grid-template-columns: repeat(3, 1fr); }
    .pw-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 61.25rem) {
    .hh-section { grid-template-columns: 1fr; min-height: auto; }
    .hh-image { position: absolute; inset: 0; }
    .hh-image__veil { background: linear-gradient(180deg, rgba(14,19,22,0.45), rgba(14,19,22,0.92)); }
    .hh-panel { position: relative; z-index: 2; min-height: 100vh; padding: 7rem 1.5rem 3rem; background: transparent; }
    .ps-grid { grid-template-columns: 1fr; }
    .ps-img { height: 18rem; }
    .fd-grid, .es-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-grid { grid-template-columns: repeat(2, 1fr); }
    .wa-grid, .hiw-grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
    .home-section, .ps-section { padding: 3.25rem 0; }
    .home-section__head { flex-direction: column; align-items: flex-start; }
    .fd-grid, .es-grid, .pw-grid { grid-template-columns: 1fr; }
    .fc-stats { gap: 1.75rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hh-stagger { opacity: 1 !important; transform: none !important; animation: none !important; }
    .hh-image img { animation: none !important; }
    .hh-prereg-dot { animation: none !important; }
    .pw-card__img, .es-card__img, .wa-card, .es-card { transition: none !important; }
}
