:root {
    /* Color Palette */
    --green: #173d2a;
    --green2: #245c3e;
    --gold: #d7a62a;
    --gold-light: #f4e8c7;
    --cream: #fbf8ef;
    --dark: #142018;
    --muted: #68736c;
    --white: #fff;
    --line: #e6e1d5;
    
    /* Functional Variables */
    --main: linear-gradient(90deg, #D4A017, #E6B422);
    --shadow: 0 18px 50px rgba(20, 40, 28, 0.12);
    --radius: 18px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* Hero Section */
.hero {
    min-height: 700px;
    position: relative;
    background: center / cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 29, 18, 0.85), rgba(10, 32, 20, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 90px 0;
}

.kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 1.05;
    margin: 16px 0 22px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 1.12rem;
    color: #edf2ec;
    max-width: 700px;
}

.actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 38px;
}

.hero-dots span {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.hero-dots span.active {
    background: var(--gold);
}

/* Sections & Headings */
.section {
    padding: 90px 0;
}

.section.cream {
    background: var(--cream);
}

.heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.heading .kicker {
    color: var(--green);
}

.heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 8px 0 12px;
}

.heading p {
    color: var(--muted);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-light);
    color: var(--green);
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.feature h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.feature p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Safari Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.safari-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safari-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.card-img {
    height: 235px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.safari-card:hover .card-img img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
}

.duration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    padding: 25px 15px 12px;
    font-size: 0.78rem;
}

.card-body {
    padding: 23px;
}

.card-body h3 {
    font-size: 1.35rem;
}

.stars {
    color: var(--gold);
    font-size: 0.75rem;
    margin: 8px 0;
}

.stars span {
    color: var(--muted);
    margin-left: 5px;
}

.card-body p {
    color: var(--muted);
    font-size: 0.9rem;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.checks span {
    font-size: 0.74rem;
    background: #f3f5f1;
    padding: 5px 8px;
    border-radius: 4px;
    color: var(--green2);
    font-weight: 500;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.price {
    font-weight: 900;
    color: var(--green);
}

.price small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.65rem;
}

.mini-btn {
    background: var(--green);
    color: var(--white);
    padding: 9px 13px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
}

.mini-btn:hover {
    background: var(--green2);
}

/* Split Section & Stats */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.split img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}

.split h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
    margin: 8px 0 18px;
}

.split p {
    color: var(--muted);
    margin-bottom: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.stat {
    padding: 18px;
    background: var(--cream);
    text-align: center;
    border-radius: 10px;
}

.stat strong {
    display: block;
    color: var(--green);
    font-size: 1.5rem;
}

.stat span {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery a {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery a:hover img {
    transform: scale(1.07);
}

/* Reviews & Testimonials */
.review {
    background: var(--green);
    color: var(--white);
}

.review .heading .kicker {
    color: var(--gold);
}

.review .heading h2 {
    color: var(--white);
}

.review p {
    color: #dbe7df;
}

.review-card {
    background: var(--white);
    color: var(--dark);
    max-width: 850px;
    margin: auto;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stars-big {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, var(--green), var(--green2));
    color: var(--white);
    text-align: center;
    padding: 75px 0;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta-section p {
    color: #dbe7df;
    margin: 10px 0 25px;
}

.page-hero {
    min-height: 390px;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden; /* Crucial: hides the fuzzy edges created by the blur */
}

/* Background Image with Blur */
.page-hero::before {
    content: "";
    position: absolute;
    inset: -10px; /* Extends slightly past the container to prevent edge bleeding */
    background: url("../images/maasai.jpeg") center / cover no-repeat;
    filter: blur(8px); /* Adjust this value (e.g., 5px to 12px) for more or less blur */
    z-index: 0;
}

/* Dark Green Tint Overlay (keeps text readable over the photo) */
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 44, 29, 0.6); /* Adjust opacity (0.6) as needed */
    z-index: 1;
}

/* Keeps your text and content safely on top of the blur and tint */
.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* Forms & Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-card {
    max-width: 850px;
    margin: auto;
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

label {
    font-size: 0.8rem;
    font-weight: 800;
    display: block;
    margin-bottom: 14px;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    border: 1px solid #d9ded8;
    border-radius: 7px;
    font: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
}

textarea {
    min-height: 150px;
}

.full {
    grid-column: 1 / -1;
}

.notice {
    padding: 15px;
    background: #fff8df;
    border-left: 4px solid var(--gold);
    margin-bottom: 25px;
    color: #625323;
    border-radius: 4px;
}

/* Back to Top & Utility Classes */
.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green);
    display: none;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.back-top:hover {
    transform: translateY(-3px);
}

.back-top.show {
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Responsive Queries */
@media (max-width: 950px) {
    .features, .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .split {
        gap: 35px;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 650px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .section {
        padding: 70px 0;
    }
    .features, .cards, .split, .form-grid {
        grid-template-columns: 1fr;
    }
    .split img {
        height: 350px;
    }
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
    .gallery a {
        height: 170px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}