



/*
 * The Sugared Sprig - Main Stylesheet
 * Version: Pastel Theme
 */

/* --- 1. Basic Setup & Variables --- */
:root {
    --color-primary: #a8d8c9;   /* Soft Sage Green */
    --color-accent: #f4cccc;   /* Soft Blush Pink */
    --color-text: #6b4f4f;     /* Warm Dark Brown */
    --color-bg: #fdfdfd;       /* Clean, soft white */
    --color-light-bg: #fff8f0; /* Very light Peach/Cream for accents */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- 2. Global Resets & Typography --- */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
}

*, *:before, *:after {
    box-sizing: inherit;
}

#main-logo {
    max-width: 10rem;
    border-radius: 10%;
}

/* todo: make sure I properlly size images */
img,
video {
    max-width: 100vw;
    /* max-height: 100vh; */
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--color-text);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: #777;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* --- 3. Header & Navigation --- */
.navbar {
    background: #ffffff;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}
.navbar-brand img {
    height: 64px;
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
}

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

/* Cart icon styles */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-count {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #8bbbab; /* Slightly darker sage */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-text);
}
.btn-secondary:hover {
    background-color: #e0b0b0; /* Slightly darker blush */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 5. Page Sections --- */

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60vh;
    min-height: 400px;
    background: url('/static/img/the-sugared-sprig-39-header.jpg') no-repeat center center/cover;
    color: #ffffff;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative; /* Sits on top of the overlay */
    max-width: 600px;
    padding: 1rem;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
}

.hero-content p.subtitle {
    color: #f4f4f4;
    font-size: 1.3rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}
.content-section p.leader {
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    font-weight: 300;
}

.gallery-section {
    padding: 4rem 0;
    background-color: var(--color-light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* .gallery-item img:hover {
    transform: scale(1.03);
} */

/* Call to Action Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--color-primary);
}

.cta-section h2 {
    color: #ffffff;
}

.cta-section p.subtitle {
    color: #f0f0f0;
    margin-bottom: 2rem;
}

/* --- 6. Footer --- */
.footer {
    padding: 2.5rem 0;
    background-color: #333;
    color: #aaa;
    text-align: center;
    font-size: 0.9rem;
}
.social-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}
.social-link {
    color: #f5f5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}
.social-link:hover {
    opacity: 0.8;
}
.footer p {
    margin: 0;
}

.footer .disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    border-top: 1px solid #444; /* Optional separator line */
    padding-top: 1rem; /* Optional spacing */
}

/* --- 7. Responsive for Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav for simplicity, or add a hamburger menu */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items on mobile */
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* --- 8. Mobile Navigation --- */

/* Style the hamburger button itself */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Make sure it's on top */
}

.hamburger {
    display: block;
    position: relative;
    width: 2em;
    height: 3px;
    background: var(--color-primary);
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* This is the @media query where the switch happens */
@media (max-width: 768px) {
    
    /* Hide the original desktop nav links */
    .nav-links {
        display: none;
    }
    
    /* Show the hamburger button */
    .nav-toggle {
        display: block;
    }

    /* Style the mobile menu 'drawer' */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(253, 253, 253, 0.98); /* Slightly transparent white */
        backdrop-filter: blur(5px);
        
        /* Hide it off-screen by default */
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        
        /* Center the links in the new drawer */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* This class is added by JavaScript when you click the button */
    .nav.is-open {
        transform: translateX(0);
    }
    
    /* Style the links for the new vertical menu */
    .nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        padding: 0;
    }
    
    .nav.is-open .nav-links li {
        margin: 0;
    }
    
    .nav.is-open .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-primary);
        padding: 1rem;
        display: block;
    }
}
