/* ===== Hero ===== */
.home-hero {
    container-type: inline-size;
    min-height: 88vh;
    flex-direction: column;
    padding-bottom: 3rem;
}

.home-hero {
    --hero-fade: var(--white);
}

.home-hero::after {
    background: linear-gradient(180deg, rgba(1, 1, 1, .2) 0%, rgba(1, 1, 1, .2) 85%, var(--hero-fade) 100%);
}

.home-hero .page-hero-inner {
    max-width: 1100px;
}

/* Company name is the headline: two stacked lines, "Panamá" in gold */
.home-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 15vw, 8.5rem);
    /* Scale to the hero box so "Élite Travel" always fits on one line */
    font-size: min(8.5rem, 16.5cqi);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.015em;
    line-height: 0.98;
    margin-bottom: 1.1rem;
}

.home-hero h1 span,
.home-hero h1 em {
    display: block;
}

.home-hero h1 em {
    font-style: italic;
    color: var(--golden-frog);
}

.home-hero .page-hero-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
    list-style: none;
    padding: 1.2rem 5%;
    font-weight: 700;
    color: var(--white);
    background: rgba(10, 31, 21, 0.6);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(244, 208, 63, 0.3);
}


/* ===== Welcome / Meet Isaac ===== */
.welcome-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.welcome-photo {
    position: relative;
    padding: 0 1.5rem 1.5rem 0;
}

.welcome-photo::before {
    content: "";
    position: absolute;
    inset: 1.5rem 0 0 1.5rem;
    border: 4px solid var(--golden-frog);
    border-radius: 24px;
}

.welcome-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.welcome-text-content {
    font-size: 1.25rem;
    line-height: 1.7;
}

.welcome-eyebrow {
    text-align: left;
}

.welcome-text-content .section-title {
    text-align: left;
    margin-bottom: 1.2rem;
}

.welcome-text-content .section-title::after {
    margin: 0.8rem 0 0;
}

.welcome-quote {
    margin: 1.75rem 0;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 5px solid var(--golden-frog);
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--forest-dark);
}

.welcome-signature {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 2.2rem;
    color: var(--forest-light);
    margin: 0.5rem 0 1.5rem;
}

/* Full-width row under the photo + bio, so the photo centers on the bio alone */
.welcome-features {
    max-width: 1100px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.25rem;
}

.welcome-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.welcome-cta .btn-primary {
    font-size: 1.35rem;
    padding: 1.15rem 3.25rem;
    border-radius: 40px;
}

.welcome-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(42, 101, 79, 0.12);
    box-shadow: 0 6px 16px rgba(18, 26, 22, 0.05);
    cursor: default;
    user-select: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.welcome-feature:hover {
    transform: translateY(-4px);
    border-color: var(--golden-frog);
    box-shadow: 0 14px 30px rgba(18, 26, 22, 0.12);
}

.welcome-feature-icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--golden-frog), #e0b93a);
    box-shadow: 0 4px 10px rgba(244, 208, 63, 0.4);
    transition: transform 0.35s ease;
}

.welcome-feature-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.welcome-feature:hover .welcome-feature-icon {
    transform: rotate(-8deg) scale(1.08);
}

.welcome-feature h3 {
    font-size: 1rem;
    color: var(--forest-dark);
    margin-bottom: 0.3rem;
}

.welcome-feature p {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #666;
}


/* ===== Featured tours (reuses tours.css cards) ===== */
.home-featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    grid-template-rows: repeat(2, 260px);
    grid-auto-rows: 260px;
}

.featured-more {
    text-align: center;
    margin-top: 3rem;
}


/* ===== Reviews ===== */
.reviews-section {
    background: var(--off-white);
}

.reviews-track {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 2.2rem 1.8rem 1.8rem;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: -0.6rem;
    right: 1.2rem;
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--golden-frog);
    opacity: 0.6;
}

.review-stars {
    color: var(--golden-dark);
    letter-spacing: 3px;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.review-card blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.2rem;
}

/* Pinned to the card bottom so names line up whatever the review length */
.review-card figcaption {
    margin-top: auto;
    color: var(--forest-light);
}


/* ===== Car rental teaser ===== */
.car-teaser {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    min-height: 420px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.car-teaser-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 1.2s ease;
}

.car-teaser::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 31, 21, 0.95) 0%, rgba(10, 31, 21, 0.75) 45%, rgba(10, 31, 21, 0) 80%);
}

.car-teaser:hover .car-teaser-img {
    transform: scale(1.06);
}

.car-teaser-body {
    max-width: 520px;
    padding: 3rem;
}

.car-teaser .eyebrow {
    text-align: left;
    color: var(--golden-frog);
}

.car-teaser h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.car-teaser p {
    font-size: 1.15rem;
    color: #DDD;
    margin-bottom: 1.2rem;
}

.car-teaser-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.car-teaser .tour-card-cta {
    max-height: none;
    opacity: 1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.car-teaser:hover .tour-card-cta {
    transform: translateX(6px);
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .home-featured {
        grid-template-rows: none;
    }

    /* Swipeable carousel: horizontal only, no visible scrollbar */
    .reviews-track {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Room for the quote mark and shadows, which overflow-y would otherwise clip */
        padding: 1rem 0.25rem 2rem;
    }

    .reviews-track::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 80vh;
    }

    .hero-strip {
        gap: 0.3rem 1.2rem;
        font-size: 0.9rem;
    }

    .welcome-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .welcome-photo {
        max-width: 320px;
        margin: 0 auto;
    }

    .welcome-eyebrow,
    .welcome-text-content .section-title {
        text-align: center;
    }

    .welcome-text-content .section-title::after {
        margin: 0.8rem auto 0;
    }

    .welcome-text-content .welcome-story-link {
        margin-inline: auto;
    }

    .welcome-feature {
        text-align: left;
    }

    .welcome-features {
        grid-template-columns: 1fr 1fr;
        margin-top: 1.25rem;
    }

    .car-teaser {
        align-items: flex-end;
        min-height: 480px;
    }

    .car-teaser::after {
        background: linear-gradient(180deg, rgba(10, 31, 21, 0) 20%, rgba(10, 31, 21, 0.95) 70%);
    }

    .car-teaser-body {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .welcome-features {
        grid-template-columns: 1fr;
    }

    .reviews-track {
        grid-auto-columns: 88%;
    }
}
.welcome-story-link {
    display: block;
    width: fit-content;
    margin: -0.8rem 0 0;
    font-weight: 800;
    color: var(--forest-light);
    border-bottom: 2px solid var(--golden-frog);
}

.welcome-story-link:hover {
    color: var(--forest-dark);
}


/* Hero destination cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(1100px, 92vw);
    margin: 2rem 0 0 50%;
    transform: translateX(-50%);
}

.hero-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 0;
    text-align: center;
    color: var(--white);
    background: linear-gradient(145deg, rgba(255, 244, 205, 0.2) 0%, rgba(255, 244, 205, 0.06) 45%, rgba(255, 244, 205, 0.12) 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 244, 205, 0.35);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 244, 205, 0.55),
        inset 0 -1px 0 rgba(255, 244, 205, 0.12),
        inset 0 0 30px rgba(255, 244, 205, 0.08);
    backdrop-filter: blur(8px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 1.1rem 1.3rem 1.2rem;
    container-type: inline-size;
}

.hero-card h2 {
    font-family: var(--font-heading);
    font-size: min(1.7rem, 8cqi);
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-card h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 0.45rem auto 0;
    border-radius: 3px;
    background: var(--golden-frog);
    transition: width 0.4s ease;
}

.hero-card p {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.hero-card-cta {
    align-self: center;
    margin-top: 0.3rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-dark);
    background: var(--golden-frog);
    transition: box-shadow 0.3s ease;
}

.hero-card-cta::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-card:hover,
.hero-card:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(255, 244, 205, 0.6);
    background: linear-gradient(145deg, rgba(255, 244, 205, 0.28) 0%, rgba(255, 244, 205, 0.1) 45%, rgba(255, 244, 205, 0.18) 100%);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 244, 205, 0.7),
        inset 0 -1px 0 rgba(255, 244, 205, 0.18),
        inset 0 0 36px rgba(255, 244, 205, 0.12);
}

.hero-card:hover h2::after,
.hero-card:focus-visible h2::after {
    width: 72px;
}

.hero-card:hover .hero-card-cta,
.hero-card:focus-visible .hero-card-cta {
    box-shadow: 0 0 0 4px rgba(244, 208, 63, 0.25);
}

.hero-card:hover .hero-card-cta::after,
.hero-card:focus-visible .hero-card-cta::after {
    transform: translateX(5px);
}

/* Mobile: compact one-line rows so all three fit on the first screen */
@media (max-width: 800px) {
    /* Fill exactly one phone screen below the sticky header */
    .home-hero {
        min-height: calc(100svh - var(--header-h, 66px));
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .home-hero h1 {
        margin-bottom: 0.7rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
        width: min(460px, 60%);
        gap: 0.7rem;
        margin-top: 1.75rem;
    }

    .hero-card {
        min-height: 0;
        text-align: left;
        border-radius: 16px;
    }

    .hero-card:hover,
    .hero-card:focus-visible {
        transform: none;
    }

    .hero-card-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.2rem;
        container-type: normal;
    }

    .hero-card h2 {
        font-size: 1.2rem;
    }

    .hero-card h2::after,
    .hero-card p {
        display: none;
    }

    /* Keep only the arrow, in a small gold circle */
    .hero-card-cta {
        position: relative;
        flex: none;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        font-size: 0;
        letter-spacing: 0;
    }

    .hero-card-cta::after {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        margin: 0;
        font-size: 1rem;
        line-height: 1;
    }
}
