:root {
    /* Backgrounds */
    --bg-color: #FCFAF8; /* A creamy vintage off-white */
    --bg-light: #F5EFEB; /* A very soft blush-beige for the gallery background */
    
    /* Typography */
    --text-color: #1A1A1A; /* Deep charcoal from the silhouette */
    --text-muted: #5C5C5C;
    
    /* Primary Accent (The Tassels & Banner) */
    --accent: #D77977; /* Vintage Coral */
    --accent-hover: #C26563;
    
    /* Secondary Accent (The Bird Tattoo) */
    --accent-teal: #428F8A; 
    --accent-teal-hover: #357571;

    /* Base Variables */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito', sans-serif;
    --radius: 8px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Navigation Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Slightly increased vertical padding */
}

/* Restored Logo Proportions */
.logo img {
    height: 145px; /* Increased height for the vertical aspect ratio */
    width: auto;  /* Let the width scale naturally */
    border-radius: 0; /* Remove the circle crop */
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-btn.etsy-btn {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid var(--accent);
}

.nav-btn.etsy-btn:hover {
    background: transparent;
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/images/wedding.webp'); /* Serves as a great elegant backdrop */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 44, 44, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
    margin-top: 120px; /* Pushes the text down so the taller header doesn't cover it */
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.primary-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.secondary-btn {
    background: var(--accent-teal);
    color: white;
    border: 2px solid var(--accent-teal);
}

.secondary-btn:hover {
    background: var(--accent-teal-hover);
    border-color: var(--accent-teal-hover);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Gallery Section */
.cookie-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: zoom-in;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Contact Form */
.form-container {
    max-width: 700px;
}

#order-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 30px 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    /* Scale the logo down for mobile while keeping your 145px size on desktop */
    .logo img {
        height: 100px; 
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Forces the menu to open exactly below the header, regardless of logo height */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
