/* ========================================
   EMERSON TOURS & SAFARIS - GLOBAL STYLES
   ======================================== */

/* ============= ROOT VARIABLES ============= */
:root {
    /* Primary Brand Colors from Logo */
    --primary-green: #4CAF50;
    --primary-orange: #FF9800;
    --primary-blue: #03A9F4;
    --primary-yellow: #FFC107;

    /* Secondary Colors */
    --dark-green: #2E7D32;
    --light-green: #81C784;
    --dark-orange: #F57C00;
    --light-orange: #FFB74D;

    /* Neutral Colors */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #E0E0E0;
    --bg-gray: #F5F5F5;
    --white: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 15px;

    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

/* ============= GLOBAL RESETS ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-gray);
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============= NAVIGATION ============= */
.navbar {
    padding: 15px 0;
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-brand .logo {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-green);
    color: var(--white);
}

/* ============= FOOTER STYLES ============= */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    margin-top: 80px;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-logo {
    width: 150px;
    height: auto;
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-orange);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1.1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--gradient-secondary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.newsletter-title i {
    color: var(--primary-orange);
    margin-right: 10px;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    font-size: 0.95rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-orange);
}

.btn-newsletter {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-newsletter:hover {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-orange);
}

/* ============= BACK TO TOP BUTTON ============= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* ============= UTILITY CLASSES ============= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.text-primary-green {
    color: var(--primary-green);
}

.text-primary-orange {
    color: var(--primary-orange);
}

.bg-primary-green {
    background-color: var(--primary-green);
}

.bg-primary-orange {
    background-color: var(--primary-orange);
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

/* ============= BUTTONS ============= */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-primary-custom:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary-custom {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-secondary-custom:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-outline-custom:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ============= CARDS ============= */
.card-custom {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img-overlay-custom {
    background: var(--gradient-overlay);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ============= FORMS ============= */
.form-control-custom {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 20px;
    transition: var(--transition-fast);
}

.form-control-custom:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* ============= BADGES ============= */
.badge-custom-green {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-custom-orange {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .footer-top {
        padding: 40px 0 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .navbar-brand .logo {
        height: 50px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-newsletter {
        padding: 30px 0;
    }

    .newsletter-title {
        font-size: 1.2rem;
    }

    .newsletter-form .form-control,
    .btn-newsletter {
        border-radius: 8px;
        width: 100%;
    }

    .btn-newsletter {
        margin-top: 10px;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============= PRELOADER (Optional) ============= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
