/* =============================== CSS VARIABLES & BASE STYLES =============================== */
:root {
    /* Color Palette */
    --primary-color: #52603C;
    --primary-dark: #3a4530;
    --secondary-color: #4CAF50;
    --secondary-dark: #3d8b40;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #eee;
    --bg-light: #f4f4f4;
    --bg-dark: #222;
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --overlay-medium: rgba(0, 0, 0, 0.4);

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 64px;

    /* Shadow System */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    /* Transition Timings */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================== ELEMENT RESET =============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #e6e6e6;
}
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================== RESPONSIVE ADJUSTMENTS =============================== */
/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 16px;
        padding: var(--space-sm);
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}
/* Phones and Small Tablets (≤768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.2rem;
    }
}
/* Mobile Phones (≤480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        padding: var(--space-xs);
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    h3 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   HEADER STYLES (with Hamburger Menu)
   ========================================================================== */

.top-banner {
    background-color: var(--primary-color);
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 100;
    will-change: transform;
    display: flex;
    justify-content: center;
    padding: 0 var(--space-md);
    /* overflow: hidden; */
}

.main-nav {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-item {
    flex: 0 0 auto;
}

.nav-list a:not(.logo-item a) {
    color: var(--text-light);
    font-weight: 400;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    border: 1px solid transparent;
}

.nav-list a:not(.logo-item a):hover {
    color: white;
    border: 1px solid white;
    background-color: transparent;
}

.logo {
    height: 100px;
    object-fit: contain;
}

/* ==========================================================================
   HAMBURGER MENU STYLES
   ========================================================================== */

.hamburger {
    display: none; /* Hidden on desktop */
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger-box {
    width: 24px;
    height: 16px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    top: 6px;
}

/* ==========================================================================
   HAMBURGER ACTIVE STATE
   ========================================================================== */

.hamburger[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
    transform: rotate(-90deg) translateX(-6px);
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
    opacity: 0;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000; /* Higher than overlay (998) */
    padding-top: 100px;
    transition: left 0.3s ease;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-menu ul li a {
    font-size: 1.3rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    color: var(--text-light);
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   MENU OPEN STATES
   ========================================================================== */

.mobile-menu.active {
    left: 0 !important;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   HEADER FIXES
   ========================================================================== */

.top-banner {
    z-index: 1001; /* Higher than mobile menu (1000) */
}

.mobile-menu {
    top: 80px; /* Matches mobile header height */
    height: calc(100vh - 80px);
    padding-top: var(--space-md);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
    .nav-list a:not(.logo-item a) {
        font-size: 1rem;
    }

    .logo {
        height: 80px;
    }

    .top-banner {
        height: 80px;
    }

    .nav-list {
        height: 80px;
    }
}

/* Phones and Small Tablets (≤768px) */
@media (max-width: 1024px) {
    .hamburger {
        display: block; /* Show hamburger */
    }

    .nav-list li:not(.logo-item) {
        display: none; /* Hide regular nav items */
    }

    .logo-item {
        flex: 1;
    }

    .top-banner {
        height: 80px;
        padding: 0 var(--space-md);
    }

    .nav-list {
        justify-content: center;
    }
}

/* Phones (≤480px) */
@media (max-width: 480px) {
    .logo {
        height: 60px;
    }
}
/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

/* ========== Base Footer Styles ========== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-md) var(--space-sm);
}

/* ========== Footer Layout ========== */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

/* ========== Footer Contact Links ========== */
.footer-contact a {
    color: var(--text-light);
    transition: color var(--transition-fast);
    display: inline-block;
    margin-bottom: var(--space-xs);
}

.footer-contact a:hover {
    color: grey;
}

/* ========== Social Icons ========== */
.social-icons {
    display: flex;
    gap: 6px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-sm);
}

.social-icon.instagram:hover {
    background-color: #E1306C;
    color: white;
}

.social-icon.tiktok:hover {
    background-color: #000000;
    color: white;
}

/* ========== Footer Legal Notice ========== */
.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* ========== Tablets (≤1024px) ========== */
@media (max-width: 1024px) {
    .footer-content {
        gap: var(--space-lg);
    }

    .footer-legal {
        font-size: 0.85rem;
    }
}

/* ========== Phones and Small Tablets (≤768px) ========== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact a {
        margin-bottom: var(--space-xs);
    }

    .footer-legal {
        padding-top: var(--space-sm);
        font-size: 0.8rem;
    }
}

/* ========== Phones (≤480px) ========== */
@media (max-width: 480px) {
    .site-footer {
        padding: var(--space-sm) var(--space-xs);
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer-legal {
        font-size: 0.75rem;
    }
}
