/* ==========================================================================
   AlterAura Travels — post-audit fixes
   --------------------------------------------------------------------------
   Loaded AFTER style.bundle.min.css. Nothing here duplicates an existing rule:
   every block either supplies something the stylesheets are missing, or
   corrects a value that failed WCAG AA on the rendered page.

   Keep this file small. Anything that belongs in the design system should be
   folded back into the bundle at the next rebuild and deleted from here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CONTRAST — text-only gold that passes AA
   --------------------------------------------------------------------------
   --gold (#c99524) is a FILL colour. As text on ivory it measures 2.35:1 and
   fails even the 3:1 large-text bar; --gold-dark (#96700f) reaches 4.18:1 and
   still fails 4.5:1 for small text. --gold-text is the text-safe value:
   5.06:1 on --bg and 4.69:1 on --bg-alt.
   -------------------------------------------------------------------------- */
:root {
    --gold-text: #8a6410;
    --muted-2: #6e6659;   /* was #948b7a = 3.37:1 on white; now 5.66:1 */
}
[data-theme="dark"] {
    --gold-text: #f0c463; /* dark surfaces: 11.6:1 */
}

/* Section headings: the italic second half is 43–50px, so it needs 3:1.
   At 2.35:1 it was below even that. */
.section-heading h2 span { color: var(--gold-text); }

/* Small gold text on light surfaces */
.eyebrow,
.badge-browse,
.founder-eyebrow,
.package-features i,
.pkg-facts i,
.breadcrumbs a,
.page-toc a:hover,
.modal-tab.active { color: var(--gold-text); }

/* Dark sections must keep the light gold, or the fix above makes them worse */
.faq-section .dest-tag,
.faq-section .eyebrow,
.testimonials-section .badge-browse,
.build-band .eyebrow,
.ts-stat strong,
.build-band h2 span,
.yatra-kicker { color: var(--gold-light); }

/* The FAQ answer link sits on a permanently dark section */
.faq-body a { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   2. The keyboard-operable package cover
   --------------------------------------------------------------------------
   The cover was a <div onclick>. It is now <a class="package-cover-link">
   wrapping the image, so the card can be opened with Enter, with a screen
   reader, and with middle-click. The link fills the cover so the whole photo
   stays clickable, and the badge/wishlist/duration sit above it.
   -------------------------------------------------------------------------- */
.package-cover-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
    border-radius: inherit;
}
.package-cover-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}
/* Keep the overlays above the link so the heart still works */
.package-cover .badge,
.package-cover .wishlist,
.package-cover .duration { z-index: 2; }
.package-cover .badge,
.package-cover .wishlist,
.package-cover .duration { position: absolute; }

/* --------------------------------------------------------------------------
   3. Mobile CTA bar no longer eats the last 47px of the page
   --------------------------------------------------------------------------
   style.bundle.min.css sets body{padding-bottom:0} inside the ≤760px block
   while .mobile-cta-bar is fixed to the bottom, so the footer's last line sat
   underneath it. Reserve the space on the footer instead of the body.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    footer { padding-bottom: calc(47px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   4. Mouse affordances that moved from JS to the anchor
   -------------------------------------------------------------------------- */
.package-cover { cursor: pointer; }
.package-cover-link:focus + .badge { outline: none; }

/* --------------------------------------------------------------------------
   5. The wishlist save indicator, confirmed
   --------------------------------------------------------------------------
   main.js toggles .saved and swaps the icon weight; style.css already styles
   it. This only guarantees the colour survives the icon-font swap.
   -------------------------------------------------------------------------- */
.wishlist.saved { color: var(--danger); }
.wishlist.saved i { font-weight: 900; }

/* --------------------------------------------------------------------------
   6. Reduced motion for the new cover link
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .package-cover-link:focus-visible { outline-offset: -3px; }
}

/* --------------------------------------------------------------------------
   7. Section eyebrow was stretching to full width
   --------------------------------------------------------------------------
   style.css has .section-heading .eyebrow { display: block }, which turned the
   pill into a full-width bar once the inline style (which zeroed the background
   and border) was removed from index.html. Restore the intrinsic pill.
   -------------------------------------------------------------------------- */
.section-heading .eyebrow {
    display: inline-flex;
    width: auto;
}

/* ==========================================================================
   8. BRAND LOCKUP — new logo artwork, sized for its slot
   --------------------------------------------------------------------------
   The new logo is a *stacked* lockup (mark above ALTERAURA), not a wide
   wordmark. A 366x94 source displayed at height:50px would render the
   wordmark at ~14px — unreadable — so every slot below sets WIDTH, not
   height, and lets the aspect ratio carry the rest.

   Measured navbar budget at 1440px: container 1240, menu 865, actions 140,
   gaps 52 → the brand keeps the same 183px it had before. Nothing moves.
   ========================================================================== */

/* 8a. Navbar — the real cause of the logo/menu collision
   --------------------------------------------------------------------------
   MEASURED, not guessed. With the small gold Font Awesome icon in front of
   every label, the desktop menu needs:

       brand 176 + menu 891 + actions 140 + gaps 60 + padding 72 = 1339 px

   A 1340 px laptop is *exactly* on that limit, and Windows renders text a few
   percent wider than the machine this was designed on. So on a normal laptop
   the menu is wider than the space available; because it is right-aligned it
   overflows LEFTWARD, and the "HOME" pill lands on top of the logo. That is
   the overlap in the screenshot.

   Feeding a bigger logo into that space can only make it worse, so the fix is
   to take width back out of the menu, and give the logo a guaranteed lane.

   Measured result: menu 891 px -> 635 px (icons hidden under 1500 px).
   Required viewport: 1339 px -> 1083 px. At 1340 px that is 250 px of slack.
   -------------------------------------------------------------------------- */

/* Icons in the top menu only appear when the screen is genuinely wide enough
   for them. Below that the labels stand alone — nothing is lost, they are
   already unambiguous, and the icons stay in the drawer and the dropdowns. */
@media (max-width: 1499px) {
    .navbar .nav-links a > i:first-child,
    .nav-inner .nav-links a > i:first-child,
    .navbar .nav-drop-toggle > i:first-child {
        display: none !important;
    }
}

/* A little narrower padding so the labels breathe without eating width */
.navbar .nav-links a,
.navbar .nav-drop-toggle {
    padding: 9px 9px;
}

/* Guaranteed clearance between the logo and the first item. This is the
   "space between HOME and the logo" that was asked for — it is enforced, not
   left to whatever the gap happens to compute to. */
.nav-inner > nav {
    padding-left: 24px;
}
.nav-inner {
    gap: 24px;
}

/* Brand hugs its own image; it can never be a fixed box the image escapes from */
.navbar .brand,
.nav-inner .brand {
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
}

.navbar .brand-logo-img {
    width: 176px;
    max-width: 176px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* The menu is allowed to shrink rather than overflow. If a future label is
   added and the row gets tight, spacing compresses instead of the menu
   sliding under the logo. */
.navbar .nav-links {
    flex-wrap: nowrap;
    min-width: 0;
}

/* Below 1240 px the words alone stop fitting comfortably, so the drawer takes
   over a little earlier than the old 1200 px switch. The real trigger is
   .mobile-menu-btn — swapping to the drawer without revealing it would leave
   the header with no navigation at all. */
@media (max-width: 1240px) {
    .nav-inner > nav { display: none; }
    .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
    .navbar .brand-logo-img { width: 156px; max-width: 156px; }
}
@media (max-width: 400px) {
    .navbar .brand-logo-img { width: 142px; max-width: 142px; }
}

/* 8b. Footer — full lockup with the tagline, but not enormous */
.footer-logo-img {
    width: 224px;
    height: auto;
    display: block;
    margin-bottom: 6px;
}
@media (max-width: 760px) {
    .footer-logo-img { width: 190px; }
}

/* 8c. Mobile drawer — stacked lockup on the night panel.
   The bundle hangs this on `.mobile-drawer-head .drawer-logo` (0,2,0), so the
   override has to carry the same parent selector or the 38px height wins. */
.mobile-drawer-head .drawer-logo {
    width: 150px !important;
    height: auto !important;   /* the old rule pinned height:38px */
    display: block;
    flex-shrink: 0;
}
.mobile-drawer-head {
    align-items: center;
    gap: 12px;
}
/* Keep the close button clear of the mark on narrow phones */
.mobile-drawer-close {
    margin-left: auto;
    flex-shrink: 0;
}

/* 8d. Print — the stylesheet swaps in *-ink variants via content:url().
      Those files are now real, and they are also stacked lockups, so the same
      width-based sizing applies, otherwise the print header gets a 56px sliver. */
@media print {
    .navbar .brand-logo-img {
        content: url("../assets/logo/alteraura-logo-compact-ink.png");
        width: 176px !important;
        max-width: 176px !important;
        height: auto !important;
    }
    .footer-grid .brand-logo-img,
    .footer-logo-img {
        content: url("../assets/logo/alteraura-logo-ink.png");
        width: 210px !important;
        height: auto !important;
    }
}

/* ==========================================================================
   9. FOUNDER — second trust chip (founding year) + spacing
   --------------------------------------------------------------------------
   The bundle styles .founder-education as an inline-flex pill with a bottom
   margin. Adding a second chip next to it needs a wrapper that holds both and
   owns the spacing, otherwise the two pills stack awkwardly on desktop.
   ========================================================================== */
.founder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 100%;
}
.founder-meta .founder-education,
.founder-tenure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: var(--gold-pale);
    border: 1px solid rgba(201, 149, 36, 0.24);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    margin-bottom: 0;            /* the wrapper owns the spacing now */
    line-height: 1.45;
    max-width: 100%;
    white-space: normal;         /* long credential wraps instead of overflowing */
}
.founder-tenure {
    color: var(--ink-soft);
    background: rgba(201, 149, 36, 0.07);
    border-color: rgba(201, 149, 36, 0.2);
}
.founder-tenure i { color: var(--gold-dark); }
.founder-meta .founder-education i,
.founder-tenure i {
    flex-shrink: 0;
}

/* Two bio paragraphs: keep the rhythm, drop the gap on the last one */
.founder-bio + .founder-bio {
    margin-top: 10px;
}
.founder-bio:last-of-type {
    margin-bottom: 0;
}

/* Centred column layout (bundle switches .founder-card to column at 860px) */
@media (max-width: 860px) {
    .founder-meta { justify-content: center; }
}

/* Dark theme: the chips sit on a dark surface, so lift the text */
[data-theme="dark"] .founder-meta .founder-education,
[data-theme="dark"] .founder-tenure {
    color: var(--gold-light);
    background: rgba(201, 149, 36, 0.13);
    border-color: rgba(201, 149, 36, 0.3);
}
[data-theme="dark"] .founder-tenure { color: #c9c3b4; }
[data-theme="dark"] .founder-tenure i { color: var(--gold-light); }

/* ==========================================================================
   10. FOUNDER PHOTO — new portrait needs a neutral frame
   --------------------------------------------------------------------------
   The bundle contains:

     .founder-avatar img{object-fit:cover;transform:scale(1.4);
                         transform-origin:60% 32%}

   That 1.4x zoom and off-centre origin were tuned for the previous photo,
   which was a casual shot needing a crop-in. The new portrait is a passport
   portrait that is already framed head-and-shoulders, so the same zoom would
   push the top of the head out of the circle and cut the chin.

   Reset both. The image is a pre-cropped square, so plain cover at 1x is exact.
   ========================================================================== */
.founder-avatar img {
    transform: none;
    transform-origin: 50% 50%;
    object-fit: cover;
    object-position: 50% 20%;   /* keep the head high in the circle, not cropped */
}

/* The gold ring around the avatar is designed for a dark surface. On the light
   theme the portrait's near-white background sits against a cream card, so the
   ring carries the separation — keep it crisp rather than faint. */
.founder-avatar {
    box-shadow: 0 0 0 7px var(--surface), 0 0 0 8px rgba(201, 149, 36, 0.42),
                0 18px 38px rgba(201, 149, 36, 0.24);
}

/* ==========================================================================
   11. BRAND BUTTONS — self-contained icons
   --------------------------------------------------------------------------
   The LinkedIn and WhatsApp marks are now inline SVG instead of Font Awesome
   glyphs. Reason: the footer LinkedIn link is an icon-only anchor, so if
   assets/fontawesome/ ever fails to load, the link collapses to an empty 0px
   box — an invisible, unclickable social link. An inline SVG cannot fail.
   ========================================================================== */
.founder-link-btn .brand-svg {
    flex-shrink: 0;
    display: block;
}

/* Official LinkedIn blue, applied subtly so it still sits inside the palette */
.founder-link-li { color: var(--ink); }
.founder-link-li:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

/* Keep the WhatsApp button's green treatment, now driven by currentColor */
.founder-link-wa .brand-svg { color: currentColor; }

/* Footer socials: the anchor is the click target, so give it a real box */
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.footer-socials .brand-svg { width: 16px; height: 16px; }

/* ==========================================================================
   12. CENTERED NAVIGATION BAR — center links cleanly between logo and actions
   ========================================================================== */
.nav-inner > nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center !important;
    padding-left: 0 !important;
    min-width: 0;
}

.navbar .nav-links {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center;
}

.navbar .nav-actions {
    flex: 0 0 auto;
    margin-left: 0;
}
