/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #FAF9F6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #192A51;
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 2rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #192A51;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ===== GLOBAL NAVIGATION ===== */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #192A51;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #192A51;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #192A51;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #FAF9F6;
    padding-top: 80px; /* Account for fixed nav */
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero h2 {
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.3rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    color: #666666;
}

/* ===== KEY IMAGE SECTION ===== */
.key-image-section {
    padding: 4rem 0;
    background-color: #F8F8F8;
}

.key-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.key-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.key-image:hover {
    transform: scale(1.02);
}

/* ===== STOCKISTS SECTION ===== */
.stockists {
    background-color: #FAF9F6;
}

.stockists-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.stockist-link {
    color: #192A51;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(25, 42, 81, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.stockist-link:hover {
    color: #333333;
    border-bottom-color: #192A51;
    transform: translateX(8px);
}

/* ===== GALLERY HEADER ===== */
.gallery-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #FAF9F6;
    padding-top: 80px; /* Account for fixed nav */
}

.gallery-header h1 {
    margin-bottom: 1rem;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== GALLERY GRID ===== */
.gallery {
    padding: 4rem 0;
    background-color: #F8F8F8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* ===== GLOBAL FOOTER ===== */
.global-footer {
    background-color: #333333;
    color: #FAF9F6;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-link {
    color: #FAF9F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #B89F5D;
}

.footer-copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stockists-list {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

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

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== FOCUS STATES ===== */
.nav-link:focus,
.stockist-link:focus,
.footer-link:focus {
    outline: 2px solid #192A51;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.gallery-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-image.loaded {
    opacity: 1;
}
