/* =====================================================================
   SHARED COMPONENTS — loaded on every page, after style.css
   Only things used by two or more pages belong here.
   Design tokens all come from style.css (:root). Do not redefine them.
   ===================================================================== */

/* ---------------------------------------------------------------
   Accessibility
   --------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--forest);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    font-size: 14px;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--marigold);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Top bar — phone + WhatsApp, above the nav
   --------------------------------------------------------------- */
.topbar {
    background: var(--forest-deep);
    color: rgba(245, 241, 232, 0.9);
    font-size: 13px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}
.topbar-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}
.topbar-tag i { color: var(--marigold); font-size: 12px; }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar-actions a {
    color: rgba(245, 241, 232, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    padding: 0;
    transition: color 0.2s ease;
}
.topbar-actions a:hover { color: var(--marigold); }
.topbar-actions .topbar-wa { color: #6ee7a0; }
.topbar-actions .topbar-wa:hover { color: #8ff5bd; }

/* The home hero sits under an absolutely positioned header, so the
   topbar needs its own solid ground there too. */
.site-wrapper:not(#innerPages) .topbar { background: rgba(19, 36, 25, 0.92); }
.header-content.scrolled .topbar { display: none; }

/* ---------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------- */
.jnm-breadcrumb {
    background: var(--cream-deep);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    font-size: 13px;
}
.jnm-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.jnm-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.jnm-breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--border);
}
.jnm-breadcrumb a {
    color: var(--text-secondary);
    padding: 0;
    transition: color 0.2s ease;
}
.jnm-breadcrumb a:hover { color: var(--marigold); }
.jnm-breadcrumb span[aria-current] { color: var(--forest); font-weight: 600; }

/* ---------------------------------------------------------------
   Page hero — shared by every inner page
   --------------------------------------------------------------- */
.page-hero {
    padding: 56px 0 52px;
    background: var(--cream-deep);
    border-bottom: 1px solid var(--border-light);
}
.page-hero__inner { max-width: 780px; }
.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--marigold-deep);
    margin-bottom: 14px;
}
.page-hero__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(30px, 4.4vw, 47px);
    line-height: 1.12;
    font-weight: 700;
    color: var(--forest);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}
.page-hero__title em {
    font-style: italic;
    color: var(--marigold-deep);
}
.page-hero__lede {
    font-size: 17px;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 66ch;
    margin: 0;
}
.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ---------------------------------------------------------------
   Prose — rich text coming out of the admin editor
   --------------------------------------------------------------- */
.prose { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2,
.prose h3,
.prose h4 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--forest);
    line-height: 1.25;
    margin: 32px 0 12px;
    font-weight: 700;
}
.prose h2 { font-size: 25px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--marigold); }
.prose strong { color: var(--forest); font-weight: 600; }
.prose a { color: var(--marigold-deep); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 20px 0; }
.prose figure { margin: 20px 0; max-width: 100%; }
.prose blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--marigold);
    font-style: italic;
    color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th,
.prose td { padding: 10px 12px; border: 1px solid var(--border-light); text-align: left; }
.prose th { background: var(--cream-deep); color: var(--forest); font-weight: 600; }

/* ---------------------------------------------------------------
   Chips / pills used across pages
   --------------------------------------------------------------- */
.fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.fact-chip i { color: var(--marigold-deep); font-size: 12px; }
.fact-chip.on-forest {
    background: rgba(245, 241, 232, 0.1);
    border-color: rgba(245, 241, 232, 0.2);
    color: rgba(245, 241, 232, 0.92);
}
.fact-chip.on-forest i { color: var(--marigold); }

/* ---------------------------------------------------------------
   Shared FAQ accordion
   --------------------------------------------------------------- */
.jnm-faq { display: flex; flex-direction: column; gap: 10px; }
.jnm-faq__item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jnm-faq__item:has(> button[aria-expanded="true"]) {
    border-color: var(--marigold);
    box-shadow: var(--shadow-sm);
}
.jnm-faq__q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 20px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.5;
}
.jnm-faq__q-label { flex: 1; }
.jnm-faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--marigold-deep);
    font-size: 11px;
    transition: transform 0.25s ease;
    margin-top: 1px;
}
.jnm-faq__q[aria-expanded="true"] .jnm-faq__icon { transform: rotate(180deg); }
.jnm-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.jnm-faq__a-inner {
    padding: 0 20px 18px 58px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}
.jnm-faq__a-inner p { margin: 0 0 10px; }
.jnm-faq__a-inner p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Section header — reused label + heading + subheading block
   --------------------------------------------------------------- */
.section-header--center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-header--left { max-width: 720px; margin: 0 0 36px; }

/* ---------------------------------------------------------------
   Footer additions
   --------------------------------------------------------------- */
.footer-col--brand { max-width: 320px; }
.footer-logo { width: 160px; height: auto; margin-bottom: 16px; }
.footer-blurb {
    color: rgba(245, 241, 232, 0.62);
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 18px;
}
.sub-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
.sub-footer-note {
    color: rgba(245, 241, 232, 0.4) !important;
    font-size: 12px !important;
    line-height: 1.65;
    max-width: 74ch;
}

/* ---------------------------------------------------------------
   Mobile drawer CTA block
   --------------------------------------------------------------- */
.sidebar-cta {
    margin-top: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-light);
}
.sidebar-cta .globalBtn { width: 100%; text-align: center; justify-content: center; }
.sidebar-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--whatsapp);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
}
.sidebar-wa:hover { background: var(--whatsapp-dark); }

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

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

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
    .topbar-tag { display: none; }
    .topbar-inner { justify-content: center; }
}
@media (max-width: 768px) {
    .page-hero { padding: 38px 0 34px; }
    .jnm-faq__a-inner { padding-left: 20px; }
    .jnm-breadcrumb { font-size: 12px; }
    .footer-col--brand { max-width: none; }
    .footer-logo { margin-inline: auto; }
    .sub-footer { align-items: center; text-align: center; }
    .sub-footer-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   SITE HEADER — inner pages
   Deliberately identical to the home page header: one row, no
   dark strip above it, links pushed right, phone then button.
   A visitor moving from the home page to a package page should
   not notice the header change at all.
   ═══════════════════════════════════════════════════════════ */
.siteHead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 242, 232, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
/* Set by site.js once the page scrolls, so the bar only gains an
   edge when there is content behind it */
.siteHead.is-stuck {
    border-bottom-color: var(--border-light);
    box-shadow: 0 2px 20px rgba(20, 38, 27, .06);
}

.siteHead__bar {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.siteHead__logo { padding: 0; flex-shrink: 0; }
.siteHead__logo img { height: 38px; width: auto; display: block; }

/* ---- Links ---- */
.siteHead__links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}
.siteHead__links a {
    position: relative;
    padding: 6px 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .2s ease;
}
/* The underline grows from the left rather than fading in — same
   movement as the home page */
.siteHead__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1.5px;
    background: var(--marigold);
    transition: right .25s ease;
}
.siteHead__links a:hover { color: var(--forest); }
.siteHead__links a:hover::after { right: 0; }

/* Current page keeps the underline permanently */
.siteHead__links a.active { color: var(--forest); font-weight: 600; }
.siteHead__links a.active::after { right: 0; }

/* ---- Phone and button ---- */
.siteHead__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.siteHead__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--forest);
    white-space: nowrap;
}
.siteHead__phone i { color: var(--marigold-deep); font-size: 12px; }
.siteHead__phone:hover { color: var(--marigold-deep); }

.siteHead__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: var(--marigold);
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.siteHead__btn:hover { background: var(--marigold-deep); transform: translateY(-1px); }

/* ---- Burger ---- */
.siteHead__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
}
.siteHead__burger span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--forest);
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .siteHead__bar { gap: 20px; }
    .siteHead__links { gap: 18px; }
    .siteHead__phone span { display: none; }
}
@media (max-width: 900px) {
    .siteHead__links,
    .siteHead__cta { display: none; }
    .siteHead__burger { display: flex; }
    .siteHead__bar { min-height: 66px; }
    .siteHead__logo img { height: 34px; }
}

/* Page title blocks — a heading and a line, not the tall hero band that
   used to sit here. Bottom padding is trimmed so the content that follows
   reads as part of the same thought. */
.pr-intro,
.gl-intro { padding: 56px 0 8px; }
@media (max-width: 768px) {
    .pr-intro,
    .gl-intro { padding: 38px 0 4px; }
}
