/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #fff; 
    overflow-x: hidden; /* Prevents side scrolling on mobile */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section { margin-bottom: 60px; }

/* Headings */
h1, h2, h3 { font-family: 'Merriweather', serif; color: #2c2c2c; }

.section-title { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 16px; 
    line-height: 1.3; 
}

.section-subtitle { 
    font-family: 'Inter', sans-serif; 
    font-size: 18px; 
    color: #1A1A1A; 
    margin-bottom: 32px; 
    font-weight: 400; 
    line-height: 1.5; 
}

/* =========================================
   2. HERO SECTION (The Image Fix)
   ========================================= */
.hero-section {
    /* This path assumes style.css is in a 'css' folder and hero.jpg is in 'images' */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero.jpg');
    background-size: cover;      /* Ensures image covers the whole area */
    background-position: center; /* Centers the image */
    color: white; 
    padding: 100px 0; 
    text-align: center; 
    margin-bottom: 80px;         /* Extra space for floating cards */
    min-height: 400px;           /* Ensures it's tall enough on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content { width: 100%; }

.hero-title { 
    font-size: 48px; 
    font-weight: 700; 
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Makes text pop over image */
}

.hero-subtitle { 
    font-size: 20px; 
    margin-bottom: 32px; 
    font-style: italic; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* =========================================
   3. NAVIGATION (Desktop & Mobile)
   ========================================= */
.header-nav { 
    background: white; 
    padding: 15px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-family: 'Merriweather', serif; 
    font-size: 24px; 
    font-weight: 700; 
    color: #A31621; 
    text-decoration: none;
}

/* Desktop Menu */
.nav-menu { 
    display: flex; 
    gap: 32px; 
    list-style: none; 
    align-items: center; 
}

.nav-item a { 
    font-family: 'Inter', sans-serif; 
    font-weight: 500; 
    color: #2c2c2c; 
    text-decoration: none; 
    font-size: 15px;
    transition: color 0.3s ease; 
}

.nav-item:hover a { color: #A31621; }

/* Mobile Menu Trigger (Hamburger) */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #2c2c2c;
}

/* Mobile Side Menu (Drawer) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none; /* Hidden by default */
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0; /* Slides from Left */
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1002;
    transform: translateX(-100%); /* Hidden off-screen left */
    transition: transform 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-sidebar.active {
    transform: translateX(0); /* Slide in */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: block;
}

/* =========================================
   4. COMPONENTS (Buttons & Cards)
   ========================================= */
/* Buttons */
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.button-primary, .button-beige, .button-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.button-primary { background-color: #A31621; color: white; border: none; }
.button-primary:hover { background-color: #7F111A; transform: translateY(-2px); }

.button-beige { background-color: #F5F0E1; color: #A31621; border: 2px solid #A31621; }
.button-beige:hover { background-color: white; transform: translateY(-2px); }

.button-secondary { background: transparent; color: #A31621; border: 2px solid #A31621; }

/* Grid Layouts */
.boxes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 24px; 
    margin-bottom: 40px; 
}

/* Floating Cards (Overlap Hero) */
.floating-cards { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
    margin: -80px 0 60px 0; 
    position: relative; 
    z-index: 10; 
}

.box, .floating-card { 
    background-color: #F5F0E1; 
    padding: 24px 16px; 
    border-radius: 12px; 
    border: 1px solid rgba(163, 22, 33, 0.1); 
    text-align: center; 
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box:hover, .floating-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.box-icon, .icon { font-size: 32px; margin-bottom: 10px; display: block; }
.box-title, .title { font-weight: 700; color: #2c2c2c; font-size: 15px; line-height: 1.3; }

/* Email Signup */
.email-signup { background: #F5F0E1; padding: 60px 0; text-align: center; margin: 60px 0; border-radius: 0; }
.email-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.email-input { padding: 12px; border-radius: 6px; border: 1px solid #ddd; min-width: 250px; }

/* Footer */
.footer-section { background: #F5F0E1; padding: 60px 0 20px; margin-top: 80px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: #333; }
.footer-bottom { border-top: 1px solid #ddd; padding-top: 20px; text-align: center; color: #666; font-size: 12px; }

/* =========================================
   5. MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
    /* Hide Desktop Menu */
    .nav-menu { display: none; }
    .nav-actions { display: none; } /* Hide search/newsletter desktop icons */
    
    /* Show Hamburger */
    .mobile-menu-btn { display: block; }

    /* Typography Adjustments */
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    .section-title { font-size: 26px; }

    /* Mobile Grids: 2 Columns Max */
    .boxes-grid { 
        grid-template-columns: 1fr 1fr; /* 2 items per row */
        gap: 12px;
    }

    .floating-cards {
        grid-template-columns: 1fr 1fr; /* 2 items per row */
        margin-top: -60px; /* Adjust overlap */
        gap: 12px;
    }
    /* Center the last item if odd number */
    .floating-cards .floating-card:last-child {
        grid-column: span 2; 
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }

    /* Adjust padding for mobile boxes */
    .box, .floating-card { padding: 20px 10px; }

    .email-form { flex-direction: column; }
    .email-input { width: 100%; }
    .button-primary { width: 100%; }
}