/* =========================================
   COUNTRYSIDE SAFARI AGENCY - MASTER STYLES
   ========================================= */

/* --- BRAND DESIGN SYSTEM --- */
:root {
    --primary: #2D5A27;    /* Savannah Green */
    --accent: #E67E22;     /* Earthy Orange */
    --dark: #1F2937;       /* Charcoal */
    --light-bg: #FDFBF7;   /* Warm Paper */
    --white: #FFFFFF;
    --text-muted: #6B7280;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- BASE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-font { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.section { padding: 80px 0; }
.text-center { text-align: center; }

/* --- UI COMPONENTS (Buttons) --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #23471e; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* --- NAVIGATION HEADER --- */
header {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--primary); 
}
.logo img { height: 50px; width: auto; border-radius: 4px; }
.logo span { color: var(--accent); }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger .bar { width: 25px; height: 3px; background: var(--dark); border-radius: 2px; transition: 0.3s; }

/* --- HERO SECTIONS --- */
/* Homepage Hero */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
}
.hero-content { max-width: 700px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); margin-bottom: 20px; line-height: 1.1; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-cta { display: flex; gap: 15px; }

/* Services Page Hero */
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}
.page-hero h1 { font-size: 3rem; margin-bottom: 10px; }

/* --- GRIDS & CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Homepage Tour Cards */
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #f0f0f0; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.card-img { height: 220px; background-size: cover; background-position: center; }
.card-body { padding: 25px; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.card-title { margin-bottom: 12px; font-size: 1.3rem; }
.card-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Services Page Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 50px; }
.service-card { background: var(--white); padding: 40px; border-radius: 12px; border: 1px solid #eee; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.icon-box { width: 60px; height: 60px; background: var(--light-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; color: var(--primary); }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; color: var(--primary); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }
.service-card ul { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.service-card li { font-size: 0.85rem; color: var(--dark); margin-bottom: 8px; position: relative; padding-left: 20px; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* --- WHY US SECTION --- */
.why-section { background: var(--light-bg); }
.feature-item { text-align: left; padding: 20px; }
.feature-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }

/* --- FORMS & CONTACT --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: var(--transition); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1); }

/* Services Page Contact Banner */
.contact-cta { background: var(--primary); color: white; padding: 60px 0; text-align: center; border-radius: 12px; margin-top: 60px; }
.contact-cta h2 { margin-bottom: 20px; }
.contact-cta p { opacity: 0.9; margin-bottom: 30px; }

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px; font-weight: 600; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 999; }

/* --- FOOTER --- */
footer { background: #111; color: #aaa; padding: 60px 0 20px; font-size: 0.9rem; margin-top: 0; }
.services-page footer { margin-top: 80px; } 
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { color: white; font-size: 1.3rem; margin-bottom: 20px; font-weight: 700; }
.footer-title { color: white; margin-bottom: 20px; font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; margin-top: 20px;}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-menu { 
        display: none; position: absolute; top: 80px; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        border-top: 1px solid #eee;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { text-align: center; margin-bottom: 15px; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .contact-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-cta { flex-direction: column; }
    .section { padding: 60px 0; }

    /* --- SLIM PADDING FOR MOBILE PHONES --- */
    .modal-content {
        padding: 25px; /* Reduces excessive spacing on small touch screens */
    }
} /* Media query closes cleanly here */

/* ========================================================
   GLOBAL PRIVACY MODAL STYLES (Deloitte Enterprise Design)
   ======================================================== */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark solid focal backdrop */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 580px; /* Elegant, focused structural layout */
    border-radius: 0px; /* Authoritative corporate sharp edges */
    padding: 45px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    
    /* --- CRITICAL SAFE SCROLL RULES FOR MOBILE PHONES --- */
    max-height: 85vh;       /* Restricts container height to 85% of screen view */
    overflow-y: auto;       /* Implements smooth vertical scrolling inside the box */
    -webkit-overflow-scrolling: touch; /* Ensures fluid inertial scroll mechanics on iOS */
}

/* Structural Header Style */
.modal-content h2 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

/* Premium Corporate Accent Line */
.deloitte-divider {
    width: 40px;
    height: 4px;
    background-color: var(--primary); /* Built off Savannah Green variable */
    margin-bottom: 25px;
}

.modal-short-text {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.65;
}

.modal-short-text p {
    margin-bottom: 16px;
}

/* Premium Document Attachment Container */
.modal-pdf-link-container {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 15px 20px;
    margin: 25px 0;
}

.modal-pdf-link {
    color: #000000 !important;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-pdf-link svg {
    color: var(--primary); /* Attachment icon color matching theme */
}

.modal-pdf-link:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

.consent-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- THE STRICTLY GREEN CONFIRMATION BUTTON --- */
#continue-btn {
    background-color: var(--primary) !important; /* Locks theme color value */
    color: #ffffff !important;
    border: none;
    border-radius: 0px; /* Sharp corners matching container structure */
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#continue-btn:hover {
    background-color: #1a3617 !important; /* Transition to a deep premium green on hover */
}
