/* --- CSS VARIABLES --- */
:root {
    --bg-white: #ffffff;
    --bg-light-gray: #f9f9f9;
    --text-black: #1a1a1a;
    --text-gray: #555555;
    --accent-navy: #34495e; 
    --accent-navy-hover: #2c3e50;
}

/* --- GLOBAL RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVIGATION BAR --- */
header {
    background-color: var(--bg-white);
    padding: 0 5%;
    height: 90px; /* Fixed height for stability */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Branding */
.branding {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001; /* Ensure branding stays above mobile menu */
    max-width: 80%; /* Prevent it from overlapping hamburger on small screens */
}

.logo-img {
    height: 60px; /* STRICTLY CONTROL LOGO HEIGHT */
    width: auto;  /* Maintain aspect ratio */
    object-fit: contain;
}

.logo-text {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-black);
    letter-spacing: 1px;
    white-space: nowrap; 
}

/* Nav Menu (Desktop Default) */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-black);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-navy);
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-black);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: url('images/insidethestore.jpg');
    background-position: center;
    background-size: cover;
    filter: blur(2px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: #1a1a1a 1px 1px 4px;
    color: var(--bg-white);
}

.hero p {
    font-size: 1.4rem;
    color: var(--bg-white);
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: #1a1a1a 1px 1px 4px;
}

.btn {
    background-color: var(--accent-navy);
    color: var(--bg-white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: background 0.3s;
    box-shadow: #1a1a1a 1px 1px 4px;
}

.btn:hover {
    background-color: var(--accent-navy-hover);
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-navy);
    text-shadow: #494949 1px 1px 2px;
}

/* --- ABOUT US --- */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image-placeholder {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-size: cover;
    background-image: url('images/editedshop.png');
    background-color: #ddd;
}

/* --- PRODUCT GALLERY --- */
#products {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.gallery-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 5%;
    max-width: 100vw;
    margin: 0 auto;
    padding-bottom: 20px;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--accent-navy);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    height: 400px;
    scroll-snap-align: start;
    background-color: var(--bg-light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    display: block;
}

.product-caption {
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    color: var(--text-black);
    font-size: 1.1rem;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- CONTACT SECTION --- */
#contact {
    background-color: var(--bg-light-gray);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-hours {
    flex: 1;
    min-width: 250px;
}

.contact-info h3, .contact-hours h3 {
    margin-bottom: 1rem;
    color: var(--accent-navy);
}

.contact-item {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-black);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    /* Branding Tweaks */
    .logo-text {
        font-size: 1.2rem; /* Slightly smaller text on mobile to prevent wrapping */
    }
    
    .logo-img {
        height: 50px; /* Smaller logo on mobile */
        width: auto;
    }

    /* Hamburger Visible */
    .hamburger {
        display: block;
        z-index: 1001; /* Above the menu */
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav Menu (Hidden by default) */
    .nav-menu {
        position: fixed;
        left: -100%; /* Move off-screen to the left */
        top: 90px; /* Push down below the header */
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - 90px); /* Fill rest of screen */
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #ddd;
    }

    .nav-menu.active {
        left: 0; /* Slide in */
    }

    .nav-menu ul {
        flex-direction: column;
        padding-top: 2rem;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu a {
        font-size: 1.5rem; /* Larger text for mobile touch */
    }

    /* Other Mobile Adjustments */
    .hero h1 { font-size: 2rem; }
    .gallery-item { width: 250px; }
}