/* =========================================================
   JACO TRANSFERS
   TOURS PAGE - REPAIRED
   ========================================================= */

:root {
    --green-dark: #063d2b;
    --green-deep: #02291d;
    --green: #35b95e;
    --green-light: #57d879;
    --cream: #f5f8f5;
    --white: #ffffff;
    --text: #123f30;
    --muted: #66736b;
    --shadow: 0 20px 50px rgba(6, 61, 43, 0.10);
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   GENERAL
   ========================================================= */

.section-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    width: min(1250px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;
    padding: 10px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}


/* LOGO */

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link .logo {
    width: 105px;
    height: auto;
    max-width: 105px;
    object-fit: contain;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav > a {
    position: relative;

    font-size: 15px;
    font-weight: 600;

    color: var(--text);

    transition: color 0.25s ease;
}

.main-nav > a:hover {
    color: var(--green);
}

.main-nav > a.active {
    color: var(--green);
}

.main-nav > a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -10px;

    height: 2px;

    background: var(--green);

    border-radius: 10px;
}


/* QUOTE BUTTON */

.nav-quote {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    padding: 16px 25px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            var(--green),
            #28b957
        );

    color: white !important;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 12px 25px rgba(53, 185, 94, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-quote:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 30px rgba(53, 185, 94, 0.32);
}


/* MOBILE BUTTON */

.menu-toggle {
    display: none;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: #d9f3e1;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;

    border-radius: 3px;

    background: var(--green-dark);
}


/* =========================================================
   HERO
   ========================================================= */

.tours-hero {
    position: relative;

    min-height: 780px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(4, 58, 40, 0.48),
            rgba(4, 58, 40, 0.62)
        ),
        url("../images/parallax/arenal-banner.jpg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(4, 58, 40, 0.08) 30%,
            rgba(245, 248, 245, 1) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, 90%);

    padding-top: 70px;

    color: white;
}

.eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    color: #d7ffe3;

    font-size: 13px;

    letter-spacing: 3px;

    font-weight: 700;
}

.eyebrow span {
    color: var(--green-light);
}

.hero-content h1 {
    margin: 0;

    font-size: clamp(54px, 7vw, 92px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -4px;
}

.hero-content h1 span {
    display: block;
}

.hero-content p {
    width: min(700px, 100%);

    margin: 32px auto 36px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 18px;

    line-height: 1.7;
}

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 17px 26px;

    border-radius: 50px;

    background: var(--green);

    color: white;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-3px);

    background: var(--green-light);
}


/* =========================================================
   INTRO
   ========================================================= */

.tour-intro {
    padding: 95px 0 55px;

    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 60px;

    align-items: end;
}

.section-eyebrow {
    margin-bottom: 14px;

    color: var(--green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}

.intro-content h2,
.why-header h2 {
    margin: 0;

    color: var(--green-dark);

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.intro-content h2 span,
.why-header h2 span {
    display: block;

    color: var(--green);
}

.intro-content p {
    max-width: 700px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}


/* INTRO STATS */

.intro-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.intro-stats div {
    padding: 24px 14px;

    text-align: center;

    background: white;

    border-radius: 20px;

    box-shadow: var(--shadow);
}

.intro-stats strong {
    display: block;

    color: var(--green-dark);

    font-size: 27px;

    font-weight: 800;
}

.intro-stats span {
    display: block;

    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters-section {
    padding: 10px 0 40px;
}

.filters {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 21px;

    border: 1px solid #d7e2dc;

    border-radius: 50px;

    background: white;

    color: var(--green-dark);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--green);

    color: var(--green);
}

.filter-btn.active {
    background: var(--green-dark);

    color: white;

    border-color: var(--green-dark);

    box-shadow:
        0 10px 22px rgba(6, 61, 43, 0.18);
}


/* =========================================================
   TOURS GRID
   ========================================================= */

.tours-section {
    padding: 20px 0 100px;
}

.tours-grid {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   TOUR CARD
   ========================================================= */

.tour-card {
    position: relative;

    height: 400px;

    overflow: hidden;

    border-radius: 25px;

    background: var(--green-dark);

    box-shadow:
        0 18px 45px rgba(6, 61, 43, 0.12);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.tour-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(6, 61, 43, 0.20);
}


/* IMAGE */

.tour-image {
    position: absolute;

    inset: 0;

    z-index: 0;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    transition:
        transform 0.6s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.07);
}


/* OVERLAY */

.tour-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 30, 20, 0.03) 15%,
            rgba(0, 30, 20, 0.22) 42%,
            rgba(0, 30, 20, 0.96) 100%
        );
}


/* CONTENT */

.tour-content {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 24px;

    z-index: 2;

    color: white;
}

.tour-category {
    display: inline-block;

    padding: 7px 12px;

    margin-bottom: 12px;

    border-radius: 50px;

    background: var(--green);

    color: white;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.tour-content h3 {
    margin: 0 0 10px;

    color: white;

    font-size: 28px;

    line-height: 1.1;

    font-weight: 800;
}

.tour-content p {
    max-width: 350px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 13px;

    line-height: 1.6;
}

.tour-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: white;

    font-size: 13px;

    font-weight: 800;
}

.tour-link span {
    color: var(--green-light);

    font-size: 18px;

    transition:
        transform 0.25s ease;
}

.tour-card:hover .tour-link span {
    transform: translateX(5px);
}

.tour-card.hidden {
    display: none;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-section {
    padding: 0 0 100px;
}

.stats-grid {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.stat-card {
    min-height: 140px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow);
}

.stat-card strong {
    color: var(--green-dark);

    font-size: 38px;

    font-weight: 800;
}

.stat-card span {
    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   WHY SECTION
   ========================================================= */

.why-section {
    padding: 100px 0;

    background: white;
}

.why-header {
    max-width: 720px;

    margin-bottom: 55px;
}

.why-header p {
    margin-top: 20px;

    color: var(--muted);

    line-height: 1.8;
}

.why-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.why-card {
    padding: 32px 25px;

    background: var(--cream);

    border: 1px solid #e4ece7;

    border-radius: 25px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.why-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: var(--green);

    color: white;

    font-size: 22px;
}

.why-card h3 {
    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: 18px;
}

.why-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   CTA
   ========================================================= */

.tour-cta {
    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(3, 50, 35, 0.88),
            rgba(3, 50, 35, 0.92)
        ),
        url("../images/parallax/costa-rica-banner.jpg");

    background-size: cover;

    background-position: center;
}

.cta-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(53, 185, 94, 0.18),
            transparent 60%
        );
}

.cta-content {
    position: relative;

    z-index: 2;

    width: min(760px, 90%);

    color: white;
}

.cta-content .section-eyebrow {
    color: var(--green-light);
}

.cta-content h2 {
    margin: 0;

    font-size: clamp(38px, 5vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.cta-content h2 span {
    color: var(--green-light);
}

.cta-content p {
    max-width: 620px;

    margin: 22px auto 30px;

    color: rgba(255, 255, 255, 0.82);

    line-height: 1.8;
}

.cta-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 17px 28px;

    border-radius: 50px;

    background: var(--green);

    color: white;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-3px);

    background: var(--green-light);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--green-deep);

    color: white;

    padding: 70px 0 25px;
}

.footer-container {
    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.5fr repeat(3, 1fr);

    gap: 50px;
}

.footer-brand img {
    width: 105px;

    height: auto;

    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 330px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;

    line-height: 1.7;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 10px;

    color: var(--green-light);

    font-size: 14px;
}

.footer-column a,
.footer-column p {
    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    width: min(1180px, calc(100% - 48px));

    margin: 50px auto 0;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 20px;
    }

    .tours-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tour-intro {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        max-width: 650px;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .section-container {
        width: calc(100% - 32px);
    }


    /* HEADER */

    .site-header {
        top: 14px;
    }

    .header-inner {
        width: calc(100% - 28px);

        min-height: 70px;

        padding: 10px 16px;

        border-radius: 22px;
    }

    .logo-link .logo {
        width: 88px;

        max-width: 88px;

        height: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;

        top: calc(100% + 10px);

        left: 0;
        right: 0;

        width: 100%;

        padding: 18px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        background:
            rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(20px);

        border-radius: 22px;

        box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.12);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .main-nav > a {
        padding: 14px 16px;

        border-radius: 12px;
    }

    .main-nav > a:hover {
        background: #f0f7f2;
    }

    .main-nav > a.active::after {
        display: none;
    }

    .nav-quote {
        justify-content: center;

        margin-top: 8px;
    }


    /* HERO */

    .tours-hero {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-content h1 {
        font-size:
            clamp(45px, 13vw, 65px);

        letter-spacing: -2px;
    }

    .hero-content p {
        margin: 25px auto 30px;

        font-size: 15px;

        line-height: 1.7;
    }


    /* INTRO */

    .tour-intro {
        padding: 70px 0 35px;

        gap: 35px;
    }

    .intro-content h2,
    .why-header h2 {
        font-size: 38px;
    }

    .intro-stats {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .intro-stats div {
        padding: 18px;
    }


    /* FILTERS */

    .filters-section {
        padding:
            20px 16px 30px;
    }

    .filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 15px;

        font-size: 12px;
    }


    /* TOURS */

    .tours-section {
        padding:
            10px 0 70px;
    }

    .tours-grid {
        width:
            calc(100% - 32px);

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .tour-card {
        height: 390px;

        border-radius: 23px;
    }

    .tour-content {
        left: 22px;

        right: 22px;

        bottom: 22px;
    }

    .tour-content h3 {
        font-size: 26px;
    }


    /* STATS */

    .stats-section {
        padding-bottom: 70px;
    }

    .stats-grid {
        width:
            calc(100% - 32px);

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .stat-card {
        min-height: 120px;
    }


    /* WHY */

    .why-section {
        padding: 70px 0;
    }

    .why-header {
        margin-bottom: 35px;
    }

    .why-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .why-card {
        padding: 25px;
    }


    /* CTA */

    .tour-cta {
        min-height: 470px;
    }

    .cta-content h2 {
        font-size: 40px;
    }

    .cta-content p {
        font-size: 14px;
    }


    /* FOOTER */

    .site-footer {
        padding: 55px 0 25px;
    }

    .footer-container {
        width:
            calc(100% - 32px);

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        width:
            calc(100% - 32px);
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .tour-card {
        height: 370px;
    }

    .tour-content h3 {
        font-size: 24px;
    }

    .cta-content h2 {
        font-size: 35px;
    }

}