/* ==========================================================================
   Global Rules, Variables & Basic Setup
   ========================================================================== */

:root {
    --primary-color: #8e7754;
    --dark-bg-color: #403d38;
    --dark-text-color: #303030;
    --light-text-color: #686868;
    --white-color: #fff;
    --gray-bg-color: #f8f8f8;
    --footer-text-color: #969696;
    --heading-font: 'Alegreya', serif;
    --body-font: 'Alegreya Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--light-text-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--gray-bg-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--dark-text-color);
    font-weight: 400;
}

h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

h3 {
    font-size: 30px;
    margin-bottom: 25px;
}

p {
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-center {
    text-align: center;
}


/* ==========================================================================
   Header & Fixed Navigation Bar
   ========================================================================== */

header {
    height: 100vh;
    background-image: url(../images/bg-home.jpg);
    background-size: cover;
    background-position: center center;
    color: var(--white-color);
    position: relative;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: var(--dark-bg-color);
    padding: 10px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#navbar .logo a {
    font-family: var(--heading-font); 
    font-size: 26px;                  
    font-weight: 700;                
    color: var(--white-color);       
    text-decoration: none;           
    letter-spacing: 1px;              
}

#navbar .nav-links li {
    display: inline-block;
    margin: 0 15px;
}

#navbar .nav-links a {
    color: var(--white-color);
    font-size: 18px;
    transition: color 0.3s;
}

#navbar .nav-links a:hover {
    color: var(--primary-color);
}

header .caption {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
}

header .caption span {
    font-size: 22px;
}

header .caption h1 {
    font-size: 76px;
    color: var(--white-color);
    margin: 10px 0;
}

.btn {
    padding: 15px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--white-color);
    border-color: var(--white-color);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: #000;
}

.caption-buttons {
    margin-top: 30px;
}

.caption-buttons .btn {
    margin: 0 5px;
}


/* ==========================================================================
   Main Content Sections
   ========================================================================== */

/* Reusable Two-Column Layout (About, Location, Contact) */
.two-columns {
    display: flex;
    align-items: center;
    gap: 50px;
}

.two-columns > div {
    flex: 1;
}

.column-image img,
.column-map iframe {
    width: 100%;
    display: block;
    border-radius: 5px;
}

.icon-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 17px;
}

.icon-list img {
    width: 24px;
    margin-right: 15px;
}

/* Baking Section */
.products-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.product {
    flex: 1;
}

.product img {
    width: 100%;
    border-radius: 5px;
}

.product h4 {
    margin-top: 25px;
}

.product p {
    font-size: 16px;
    margin-bottom: 0;
}


/* ==========================================================================
   Footer Section
   ========================================================================== */

footer {
    color: var(--footer-text-color);
}

.footer-top {
    background-color: var(--dark-bg-color);
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget h4 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-size: 18px;
}

.arrow-list li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    background-color: #353330;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 24px;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.7;
}


/* ==========================================================================
   Responsive Design & Hamburger Menu
   ========================================================================== */

/* Hamburger Menu Button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Tablet & Mobile Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    #navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    #navbar .nav-links li {
        margin: 20px 0;
    }

    /* JavaScript class to open menu */
    #navbar.nav-open .nav-links {
        right: 0;
    }

    #navbar.nav-open .menu-toggle .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #navbar.nav-open .menu-toggle .line:nth-child(2) {
        opacity: 0;
    }
    #navbar.nav-open .menu-toggle .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Stack multi-column layouts */
    .two-columns,
    .products-container {
        flex-direction: column;
        text-align: center;
    }

    /* Reverse order for location section on mobile */
    #location .two-columns .column-text {
        order: 2;
    }
    #location .two-columns .column-image {
        order: 1;
    }


    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile-Only Styles */
@media (max-width: 768px) {
    header .caption h1 {
        font-size: 48px;
    }

    .caption-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .icon-list li {
        justify-content: center;
    }
}