/* css/style.css - GO2AFRICA INSPIRED PREMIUM THEME */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    /* YOUR STRICT COLOR PALETTE */
    --primary-orange: #FF8C00;
    --primary-yellow: #FFD700;
    --earth-brown: #3E2723;
    --warm-beige: #FFF8E1;
    --light-bg: #f9f9f9;
    --text-dark: #2c2c2c;
    --text-muted: #555555;
    --transition-speed: 0.4s;
}

/* STRICT MOBILE OVERFLOW FIX */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif; /* Tanzania Specialist Body Font */
    font-size: 16px;
    line-height: 1.8;
}

/* --- Typography (Jost for Headings) --- */
h1, h2, h3, h4 { 
    font-family: 'Jost', sans-serif; 
    font-weight: 600; 
    color: var(--earth-brown); 
    margin-bottom: 15px; 
}
h1 { font-size: 3.5rem; text-transform: uppercase; letter-spacing: 2px; }
h2 { font-size: 2.5rem; letter-spacing: 1px; }

/* --- Buttons (Go2Africa Sleek Style) --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-orange);
    color: white;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px; /* Squared off premium look */
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--primary-orange);
    cursor: pointer;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}
.btn:hover {
    background: transparent;
    color: var(--primary-orange);
}
.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}
.btn-outline:hover {
    background: white;
    color: var(--earth-brown);
}

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* --- Header & Custom Language Dropdown --- */
header { background: var(--earth-brown); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 0 20px; }
.logo img { height: 50px; }
.nav-links { display: flex; list-style: none; align-items: center; gap: 25px; margin: 0; padding: 0; }
.nav-links li a { color: var(--warm-beige); text-decoration: none; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links li a:hover { color: var(--primary-orange); }

/* Custom G2A-Style Language Selector */
.custom-lang { position: relative; cursor: pointer; color: var(--warm-beige); font-family: 'Jost', sans-serif; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.custom-lang:hover { color: var(--primary-orange); }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: white; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; width: 120px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.custom-lang:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li a { color: var(--earth-brown) !important; display: block; padding: 8px 20px; text-transform: none !important; font-size: 0.9rem !important; }
.lang-dropdown li a:hover { background: var(--warm-beige); color: var(--primary-orange) !important; }

/* --- Advanced Go2Africa Style Cards --- */
.g2a-card { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); cursor: pointer; height: 450px; }
.g2a-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.g2a-card:hover img { transform: scale(1.08); }
.g2a-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(62,39,35,0.95)); padding: 40px 30px 30px; transition: padding 0.4s ease; }
.g2a-card:hover .g2a-overlay { padding-bottom: 40px; }
.g2a-overlay h3 { color: white; margin: 0 0 10px 0; font-size: 1.8rem; }
.g2a-overlay p { color: var(--warm-beige); margin: 0; font-size: 0.9rem; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.g2a-card:hover .g2a-overlay p { opacity: 1; transform: translateY(0); }

/* --- Story Split Section (About Us) --- */
.split-section { display: flex; align-items: center; gap: 50px; }
.split-content { flex: 1; }
.split-image { flex: 1; height: 500px; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-reverse { flex-direction: row-reverse; }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: -100px; left: 0; width: 100%; background: var(--earth-brown); color: white; padding: 15px 20px; text-align: center; z-index: 9999; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); transition: bottom 0.5s ease; font-size: 0.9rem; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; box-sizing: border-box; }
.cookie-banner.show { bottom: 0; }
.cookie-btn { background: var(--primary-orange); border: none; padding: 8px 20px; color: white; cursor: pointer; border-radius: 4px; font-weight: bold; }

/* --- Animations --- */
.animate-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.animate-up.active { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsiveness (Fixed & Perfected) --- */
@media screen and (max-width: 992px) {
    .split-section { flex-direction: column; }
    .split-reverse { flex-direction: column; }
    .split-image { width: 100%; height: 400px; }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    
    .nav-links {
        position: fixed; top: 80px; right: -100%; height: calc(100vh - 80px);
        width: 100%; background: var(--earth-brown); flex-direction: column;
        align-items: center; padding-top: 40px; transition: right 0.4s ease;
    }
    .nav-links.nav-active { right: 0; }
    .burger { display: block; cursor: pointer; }
    .burger div { width: 25px; height: 3px; background: var(--primary-yellow); margin: 5px; transition: 0.3s; }
    
    .custom-lang { margin-top: 20px; }
    .lang-dropdown { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: transparent; text-align: center; }
    .lang-dropdown li a { color: var(--warm-beige) !important; }
}

/* Force WhatsApp Icon Size */
.float-whatsapp img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden !important; /* This strictly prevents horizontal scrolling */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all images never break out of their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Fix Safari Card Button Spacing */
.package-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Adds space at the bottom of the card */
}

.package-card .btn {
    margin-bottom: 10px; /* Pushes the button slightly up from the bottom edge */
    width: 90% !important; /* Gives the button a nice margin on the sides */
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Booking Form Fixes */
@media screen and (max-width: 768px) {
    /* Stack form inputs cleanly on mobile */
    form > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Make inputs larger for easier tapping on phones */
    input, select, textarea {
        padding: 18px 20px !important;
        font-size: 16px !important; /* Prevents auto-zoom on iPhone */
    }
}

/* --- Advanced Cards (Destinations & Packages) - FIXED EQUAL HEIGHTS --- */
.premium-card {
    background: white;
    border-radius: 8px; /* Slightly softer corners */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
    
    /* These 3 lines force the cards to be equal height in the grid */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-img-wrapper {
    width: 100%;
    height: 260px; /* STRICT HEIGHT: Forces all images to be the same size */
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Stops the image from squishing */
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Automatically crops images to fit the 260px height perfectly */
    transition: transform 0.6s ease;
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.08); /* Smooth zoom effect */
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Forces the content area to stretch and fill the rest of the card */
}

/* This targets the "Unique Experience" box and permanently pushes it to the bottom */
.card-content > div:last-child {
    margin-top: auto; 
}

/* --- FAQ Accordion Styles --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; }
.faq-question {
    width: 100%; text-align: left; padding: 20px 25px;
    background: white; border: none; font-size: 1.1rem;
    font-weight: 600; color: var(--earth-brown);
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.faq-question:hover { background: #fafafa; color: var(--primary-orange); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-orange); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 25px; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white; color: var(--text-muted); line-height: 1.8;
}
.faq-item.active .faq-answer { padding: 0 25px 20px 25px; max-height: 1000px; }
/* --- 1. Fix Package Card Buttons (Centered) --- */
.package-card .btn {
    width: fit-content !important; /* Stops it from stretching */
    min-width: 200px;
    padding: 12px 30px !important;
    margin: 20px auto !important; /* Centers it perfectly */
    display: block !important;
    text-align: center;
}

/* --- 2. Premium Responsive Booking Form --- */
.booking-wrapper {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    max-width: 850px;
    margin: -60px auto 50px auto; /* Pulls form up over the hero section */
    position: relative;
    z-index: 10;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns side-by-side */
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--earth-brown);
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    outline: none;
}

/* Mobile Fixes for the Form */
@media screen and (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr; /* Forces 1 column on mobile */
        gap: 15px;
    }
    .booking-wrapper {
        padding: 30px 20px;
        margin-top: -30px;
    }
}
/* --- Fix Package & Climbing Card Buttons (Centered) --- */
.premium-card .btn, .package-card .btn {
    width: fit-content !important; /* Stops it from stretching */
    min-width: 200px;
    padding: 12px 30px !important;
    margin: 20px auto !important; /* Centers it perfectly */
    display: block !important;
    text-align: center;
}

/* ==========================================
   MOBILE HOTFIXES (TEXT, COOKIES, LANGUAGE)
   ========================================== */

/* 1. Bulletproof Cookie Banner */
.cookie-banner { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: var(--earth-brown); 
    color: white; 
    padding: 15px 20px; 
    text-align: center; 
    z-index: 9999; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4); 
    /* Use transform instead of 'bottom' so it perfectly measures its own height */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); 
    transform: translateY(100%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    box-sizing: border-box; 
}
.cookie-banner.show { 
    transform: translateY(0); 
}

/* 2. Strict Mobile Typography & Alignment Fixes */
@media screen and (max-width: 768px) {
    /* Shrink the massive Hero Text */
    h1 { 
        font-size: 2.2rem !important; 
        line-height: 1.2 !important; 
    }
    
    /* Shrink the subheadings above the Hero text */
    h2 { 
        font-size: 1.1rem !important; 
        letter-spacing: 1.5px !important; 
    }
    
    /* Fix the Language Menu Alignment */
    .custom-lang {
        flex-direction: column !important;
        width: 100%;
    }
    .lang-dropdown {
        padding: 0 !important;
        margin-top: 15px !important;
    }
    .lang-dropdown li a {
        padding: 12px !important;
    }
    
    /* Stack Cookie Banner nicely on mobile */
    .cookie-banner {
        flex-direction: column;
        padding: 20px !important;
        font-size: 0.85rem;
    }
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==========================================
   STRICT RESPONSIVE HEADINGS (Home & About)
   ========================================== */

/* 1. Default Desktop Sizes (Laptops & Big Screens) */
h1, .hero-title {
    font-size: 4.5rem !important;
    line-height: 1.1 !important;
    color: white !important; /* Forces the text to be pure white */
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6) !important; /* Adds the dark shadow back so it pops against the video */
}


h2 { font-size: 2.5rem !important; }
h3 { font-size: 1.5rem !important; }

/* 2. Tablets & Small Laptops (Screens smaller than 992px) */
@media screen and (max-width: 992px) {
    h1, .hero-title {
        font-size: 3.5rem !important;
        line-height: 1.2 !important;
    }
    h2 { font-size: 2.2rem !important; }
}

/* 3. Standard Mobile Phones (Screens smaller than 768px) */
@media screen and (max-width: 768px) {
    h1, .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.3rem !important; }
}

/* 4. Small Mobile Phones (Screens smaller than 480px) */
@media screen and (max-width: 480px) {
    h1, .hero-title {
        font-size: 2rem !important; 
        line-height: 1.3 !important;
        word-wrap: break-word !important; /* Stops long words from breaking the screen width */
        padding: 0 10px !important;
    }
    h2 { font-size: 1.5rem !important; }
}

/* --- Bulletproof Cookie Banner --- */
.cookie-banner { 
    position: fixed; 
    bottom: -200px; /* Physically push it way off screen */
    left: 0; 
    width: 100%; 
    background: var(--earth-brown); 
    color: white; 
    padding: 15px 20px; 
    text-align: center; 
    z-index: 9999; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    box-sizing: border-box; 
    
    /* Animation settings */
    opacity: 0; 
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

/* When the javascript adds the "show" class */
.cookie-banner.show { 
    bottom: 0; 
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 20px !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important; /* iPhone fix */
        font-size: 0.85rem;
    }
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
}

/* --- Hero Buttons Container --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Perfect spacing between buttons */
    flex-wrap: wrap; /* Allows them to stack safely on small screens */
    margin-top: 30px;
}

/* Ensure the buttons inside don't have leftover margins */
.hero-buttons .btn, 
.hero-buttons .btn-outline {
    margin: 0 !important; 
}