/* ===================================
   1. Reset and Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* This helps with smooth scrolling if desired */
    scroll-behavior: smooth;
    /* When using position: sticky for the navbar, 
       offset scroll anchoring so sections don't hide behind navbar */
    scroll-padding-top: 64px; /* same as navbar height */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* If using a fixed navbar, you can optionally add top padding here:
       padding-top: 64px; 
       This ensures body content never goes under the navbar.
    */
}

/* ===================================
   2. Navigation
   =================================== */
/* Use position: sticky for modern “sticky” behavior. 
   Change to position: fixed if you want it to stay at the top 
   even when scrolling up and down quickly. */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    /* Give it a fixed height if you like, e.g.: 
       height: 64px; 
       This helps maintain consistent layout. */
}

.nav-container {
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    text-decoration: none;
    color: #333;
    font-family: 'Didot', 'Playfair Display', 'Garamond', serif;
}

.nav-links {
    display: none;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

.cart-icon {
    cursor: pointer;
}

/* ===================================
   3. Mobile Menu
   =================================== */
.mobile-menu {
    display: none;
    /* If using position: fixed for the navbar, 
       you can also fix the mobile menu at the top: 
       position: fixed; */
    position: absolute;
    top: 64px; /* or the navbar's height */
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* ===================================
   4. Hero Section
   =================================== */
/* No need for extra top margin if using scroll-padding-top 
   or body padding-top for a fixed navbar. */

.hero-image {
    position: relative;
    /* Adjust the height as needed */
    height: calc(100vh - 64px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

/* ===================================
   5. Featured Collections
   =================================== */
.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.collection-item {
    position: relative;
    overflow: hidden;
}

.collection-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.collection-info h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.discover-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.discover-btn:hover {
    background: white;
    color: #333;
}

/* ===================================
   6. Footer
   =================================== */
footer {
    background: #f8f8f8;
    padding: 4rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.footer-section a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section p {
    color: #666;
    font-size: 0.9rem;
}

/* ===================================
   7. Legal Pages
   =================================== */
.legal-content {
    max-width: 800px;
    margin: 20px auto 4rem; /* Leaves space at the top */
    padding: 0 2rem;
    /* If you're using position: sticky for the navbar and scroll-padding-top, 
       you can reduce this margin-top if you like. 
       For a fixed navbar, 120px ensures no overlap. */
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #666;
    margin-bottom: 1rem;
}

/* ===================================
   8. Responsive Media Queries
   =================================== */

/* Tablet Styles (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    /* If you'd like to show nav links on tablet without toggle, uncomment:
       .nav-links {
           display: flex;
           gap: 1.5rem;
       }
    */

    /* 2-column grid for collections */
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Slightly larger hero title for tablet */
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Desktop Styles (768px and above) */
@media (min-width: 768px) {
    /* Hide mobile toggle on desktop */
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    /* 3-column grid for collections */
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Larger hero title on desktop */
    .hero-content h1 {
        font-size: 4rem;
    }
}
