/* Home hero section styles.
   Moved out of index.php's inline <style> block into this external file so the
   styles load reliably through the same stylesheet pipeline as app.css. (The
   inline <style> block was not reaching the live output; markup shipped without
   its CSS, leaving the hero form and rotating headers unstyled.) */

/* Plain CSS, not Tailwind responsive classes: md:/lg: text-size
   variants beyond what's already used elsewhere (text-6xl, text-7xl)
   aren't in the pre-built assets/css/app.css, so they'd silently do
   nothing in the browser - see the same issue documented in plan.php. */
.hero-title { font-size: 2.5rem; transition: opacity 0.5s ease; }
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6rem; } }
.hero-title.is-swapping { opacity: 0; }
.hero-summary {
    font-size: 0.875rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.25rem;
    border-top: 2px solid #A0522D;
    transition: opacity 0.5s ease;
}
@media (min-width: 768px) { .hero-summary { font-size: 1.25rem; } }
.hero-summary.is-swapping { opacity: 0; }

/* animate-fade-in / delay-200 / delay-300 / animate-slide-up were
   never defined anywhere (tailwind.config.js only has "fade-in-up",
   not "fade-in", and no slide-up at all) - pre-existing dead classes,
   not something introduced here. Replaced with a real animation. */
@keyframes heroFadeInUp { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
.hero-fade-in { animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.hero-fade-in--delay-1 { animation-delay: 0.15s; }
.hero-fade-in--delay-2 { animation-delay: 0.3s; }
.hero-slide-up { animation: heroFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.hero-leading-tight { line-height: 1.1; }
.hero-px { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .hero-px { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .hero-px { padding-left: 6rem; padding-right: 6rem; } }
.hero-pb { padding-bottom: 5rem; }
@media (min-width: 768px) { .hero-pb { padding-bottom: 6rem; } }
/* #main-header is position:fixed (out of document flow), so without
   this the hero content starts underneath it instead of below it -
   the transparent header's nav links then visually overlap the
   rotating title and the plan card. --header-height is measured
   and kept in sync by JS (header height differs between the
   scrolled/transparent states and by viewport); this fallback
   value only matters for the instant before that JS runs. */
.hero-pt { padding-top: calc(var(--header-height, 128px) + 24px); }
.hero-white-90 { color: rgba(255,255,255,0.9); }
/* hover:bg-white isn't in the compiled CSS either (pre-existing). */
.hero-btn-hover:hover { background-color: #fff; }

/* Split hero layout: rotating content on the left, a "Plan My Trip"
   quick-capture card on the right (stacked on mobile, side-by-side
   from desktop up) - same tanzania-specialist.com-style layout as
   plan.php's sidebar, in our own brand colours (maroon/gold) rather
   than theirs. */
.hero-split-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-split-grid { grid-template-columns: 1.1fr 400px; gap: 56px; } }
.hero-split-content { text-align: center; }
@media (min-width: 1024px) { .hero-split-content { text-align: left; } }
.hero-split-content .hero-summary { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero-split-content .hero-summary { margin-left: 0; } }

.hero-plan-card {
    background: #701E26;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.4);
}
.hero-plan-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #A0522D; margin-bottom: 10px; }
.hero-plan-heading { font-size: 22px; line-height: 1.25; color: #fff; margin: 0 0 20px; }
.hero-plan-form { display: flex; flex-direction: column; gap: 16px; }
.hero-plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-plan-field { display: flex; flex-direction: column; gap: 6px; }
.hero-plan-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #A0522D; }
.hero-plan-stepper {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-radius: 8px; padding: 10px 12px;
}
.hero-plan-stepper input {
    border: none; background: transparent; width: 100%; text-align: center;
    font-size: 16px; font-weight: 700; color: #701E26; -moz-appearance: textfield;
}
.hero-plan-stepper input::-webkit-outer-spin-button,
.hero-plan-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hero-plan-stepper-btn {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px;
    border: 1px solid rgba(112,30,38,0.3); background: #fff; color: #701E26;
    font-size: 16px; line-height: 1; cursor: pointer; transition: background-color 0.2s ease;
}
.hero-plan-stepper-btn:hover { background-color: #f5f0eb; }
.hero-plan-date {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-radius: 8px; padding: 10px 12px;
}
.hero-plan-date input { border: none; background: transparent; width: 100%; font-size: 14px; font-weight: 600; color: #701E26; }
.hero-plan-date i { color: #701E26; flex-shrink: 0; }
.hero-plan-submit {
    width: 100%; background: #A0522D; color: #fff; border: none; border-radius: 8px;
    padding: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; cursor: pointer; transition: background-color 0.2s ease;
}
.hero-plan-submit:hover { background-color: #8a4526; }
.hero-plan-note { font-size: 11px; color: rgba(255,255,255,0.6); text-align: center; margin: 0; line-height: 1.5; }
/* min-h-[100svh], md:h-[95vh], and the from-black/15|to-black/60|
   from-black/30 gradient color-stops aren't in the compiled CSS
   either (arbitrary-value / opacity-suffix classes never used
   elsewhere in the codebase - pre-existing). */
.hero-section { min-height: 100svh; }
@media (min-width: 768px) { .hero-section { height: 95vh; min-height: 0; } }
.hero-gradient-vertical { background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent, rgba(0,0,0,0.6)); }
.hero-gradient-horizontal { background: linear-gradient(to right, rgba(0,0,0,0.3), transparent, transparent); }
.hero-gold-hover:hover { background-color: #A0522D; }
.hero-gold-group-hover { transition-property: background-color, color; }
.hero-gold-group-hover-target:hover .hero-gold-group-hover,
.hero-gold-group-hover-target:focus-within .hero-gold-group-hover { background-color: #A0522D; color: #fff; }
.hero-text-9 { font-size: 9px; }
.hero-text-10 { font-size: 10px; }

.vt-year-tab { background: #fff; color: #1C2321; border: 1px solid #e5e0d8; }
.vt-year-tab.is-active { background: #1C2321; color: #fff; border-color: #1C2321; }
.vt-month-pill { background: #fff; color: #b8b2a7; border: 1px solid #e5e0d8; cursor: not-allowed; }
.vt-month-pill.has-departures { color: #1C2321; cursor: pointer; }
.vt-month-pill.has-departures:hover { border-color: #A0522D; color: #A0522D; }
.vt-month-pill.is-active { background: #A0522D; color: #fff; border-color: #A0522D; }
.vt-type-pill { background: #fff; color: #1C2321; border: 1px solid #e5e0d8; cursor: pointer; }
.vt-type-pill:hover { border-color: #A0522D; color: #A0522D; }
.vt-type-pill.is-active { background: #1C2321; color: #fff; border-color: #1C2321; }

/* Featured packages spotlight: a heading, then a horizontally sliding row of
   package cards (up to 5). Scroll-snap gives a tidy swipe on touch devices;
   the prev/next arrows drive the same scroll on desktop. One card centres;
   two or more fill the track and scroll. */
.featured-slider { position: relative; }

/* Heading above the banner (on the dark section), swapped per package by the
   carousel JS as the banners rotate. */
.featured-head { margin-bottom: 28px; text-align: center; }
.featured-head-title { color: #fff; font-style: italic; font-weight: 300; line-height: 1.15; margin: 0; font-size: 32px; }
@media (min-width: 768px) { .featured-head-title { font-size: 44px; } }
@media (min-width: 1024px) { .featured-head-title { font-size: 52px; } }
.featured-head-sub { color: rgba(255,255,255,0.7); font-weight: 300; margin-top: 10px; font-size: 15px; }
@media (min-width: 768px) { .featured-head-sub { font-size: 17px; } }

.featured-slider { border-radius: 20px; overflow: hidden; }
.featured-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
}
.featured-track::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

/* One full-width banner per view; they sit side by side and the carousel
   JS scrolls between them. */
.featured-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
}

.featured-card-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #1C2321;
}
.featured-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-slider:hover .featured-card-img { transform: scale(1.04); }
/* Banner shape: a comfortable height that doesn't grow unbounded on wide
   screens. On phones it's a tall-ish 16:10; from tablet up it's a fixed height
   so a very wide desktop doesn't stretch the banner into a huge empty strip. */
.featured-card-link > div { aspect-ratio: 16 / 10; }
@media (min-width: 640px) { .featured-card-link > div { aspect-ratio: auto; height: 420px; } }
@media (min-width: 1024px) { .featured-card-link > div { height: 480px; } }
.featured-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 100%);
}
.featured-card-body {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px;
    color: #fff;
}
.featured-card-badge {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    background: #c9a24b; color: #1C2321;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.featured-card-eyebrow {
    display: block;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
    color: #c9a24b; margin-bottom: 6px;
}
.featured-card-title {
    font-size: 28px; line-height: 1.15; color: #fff; margin: 0 0 14px;
    font-style: italic; font-weight: 300; max-width: 640px;
}
@media (min-width: 768px) { .featured-card-title { font-size: 40px; } }
@media (min-width: 1024px) { .featured-card-title { font-size: 52px; } }
.featured-card-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 16px;
}
.featured-card-date {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500;
}
.featured-card-price { display: inline-flex; align-items: baseline; gap: 7px; }
.featured-card-price-was { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: line-through; }
.featured-card-price-now { font-family: inherit; font-size: 20px; font-weight: 600; color: #fff; }
.featured-card-price-unit { color: rgba(255,255,255,0.6); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.featured-card-cta {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    background: #A0522D; color: #fff;
    padding: 11px 22px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    transition: background-color 0.2s ease;
}
.featured-card-cta:hover { background: #c9a24b; color: #1C2321; }

.featured-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.92); color: #1C2321; border: none;
    cursor: pointer; z-index: 5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
}
.featured-nav:hover { background: #c9a24b; }
.featured-nav--prev { left: 14px; }
.featured-nav--next { right: 14px; }

/* Dots row along the bottom of the banner. */
.featured-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.featured-dot {
    width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
    cursor: pointer; background: rgba(255,255,255,0.5);
    transition: width 0.3s ease, background 0.3s ease;
}

/* ------- Phone tuning (<= 640px) -------
   On a narrow screen the banner is taller (16:10), so give the content room:
   smaller arrows tucked in the lower corners (clear of the text), a tighter
   type scale, and the dots lifted above the Book Now button. */
@media (max-width: 640px) {
    .featured-slider { border-radius: 14px; }

    /* Arrows: smaller, and moved to the bottom corners so they don't sit on
       top of the title in the middle of the banner. */
    .featured-nav {
        width: 38px; height: 38px;
        top: auto; bottom: 16px; transform: none;
        background: rgba(255,255,255,0.9);
    }
    .featured-nav--prev { left: 12px; }
    .featured-nav--next { right: 12px; }

    .featured-card-body { padding: 18px 18px 22px; }
    .featured-card-badge { font-size: 9px; padding: 4px 9px; margin-bottom: 10px; }
    .featured-card-eyebrow { font-size: 9px; letter-spacing: 0.15em; margin-bottom: 5px; }
    .featured-card-title { font-size: 24px; margin-bottom: 10px; }
    .featured-card-meta { gap: 6px 14px; margin-bottom: 14px; }
    .featured-card-date { font-size: 12px; }
    .featured-card-price-now { font-size: 18px; }
    .featured-card-cta { padding: 10px 18px; font-size: 10px; }

    /* Lift the dots so they sit between the content and the arrow row,
       and centre them clear of the corner arrows. */
    .featured-dots { bottom: 24px; }

    /* The whole-image hover zoom is a desktop affordance; skip it on touch. */
    .featured-slider:hover .featured-card-img { transform: none; }
}

/* Very small phones: pull the title down one more step so a long package
   name doesn't crowd the badge/price. */
@media (max-width: 380px) {
    .featured-card-title { font-size: 21px; }
    .featured-card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}
