﻿/* Global Styles */
body {
    margin: 0;
    font-family: 'Saveur Sans', sans-serif;
    color: #151007;
    background: #f6F1E6;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background: #f6F1E6;
    position: fixed;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #ccc; /* light gray line */
    z-index: 1001;
}

    header .width-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 120px;
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-spacer{
    height:100px;
}


.logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #a6823a;
}

    .logo img {
        height: 100px; /* Adjust as needed */
        width: auto;
        display: block;
    }

.nav-links {
    display: flex;
    gap: 30px;
    color: #a6823a;
}

    .nav-links li {
        list-style: none;
    }

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #0f3e2a;
}
/**/
/* Mini Hero with Rotating Image */

.mini-hero {
    text-align: center;
    padding: 0px 0px 0px; /* Added top padding to avoid header overlap */
    width:100%;
    max-height:650px;
    overflow: hidden;
    background: #f6F1E6;
    min-height: auto;
    align-items: center;
    position:relative;
    justify-content:center;
    display: flex;
}
    
    .mini-hero img {
        max-height: none;
        width: 100%;
        height: auto;
        border-radius: 0px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: opacity 0.3s ease-in-out;
        position: relative;
        transform: none;
        /*transform:scale(0.6);*/
        transform-origin: center;
    }
.mini-hero-product-pages {
    text-align: center;
    padding: 0px 0px; /* Added top padding to avoid header overlap */
    width:100%;
    max-height:145px;
    overflow: hidden;
    background: #f6F1E6;
    min-height: auto;
    align-items: center;
    position:relative;
    justify-content:center;
    display: flex;
    margin-top: 10px;
}
    
    .mini-hero-product-pages img {
        max-height: none;
        width: 100%;
        height: auto;
        border-radius: 0px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: opacity 0.3s ease-in-out;
        position: relative;
        transform: none;
        /*transform:scale(0.6);*/
        transform-origin: center;
        overflow:none;
    }

    .mini-hero-info{
        position:absolute;
        background-color: #a6823a;
        color: white;
        padding: 20px;
        top:0;
        bottom:0;
        left:0px;
        width:50%;
        justify-content: center;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap:0px;
        object-fit: cover;
    }

    .mini-hero-info h3{
        color:white;
        font-size: 40px;
        margin-top: 10px;
    }
    .mini-hero-info p {
        margin-top:-20px;
        color:white;
    }

/*Width Container*/
.width-container {
    max-width: 1550px;
    margin: 0px auto;
    padding: 0px 200px; /*Set this value here - keep width container as the OUTSIDE container - all others can be within this now that position is relative?*/
    position:relative;
}
/*Policy / Simple paragraphs*/
.policy {
    padding: 0px 0px 0px;
    background: #f6F1E6;
    text-align: left;
}

    .policy h2 {
        font-size: 2.2rem;
        color: #a6823a;
        margin-bottom: 0px;
    }
    .policy p,li {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #151007;
    }
/* Products */
.products {
    padding: 100px 0px 0px;
    background: #f6F1E6;
    text-align: center;
}

    .products h2 {
        font-size: 2.2rem;
        color: #a6823a;
        margin-bottom: 40px;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top:20px;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}
.hover-image img {
    max-height: 300px;
    max-width: 80%;
    height: auto;
    display: block;
}

.product-card {
    background: white;
    padding: 0px;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}

    .product-card img {
        position: relative;
        border-radius: 0px;
        max-height: auto;
        max-width: auto;
        width:100%;
        height: 100%;
        display: block;
        transition: opacity 0.5s ease-in-out;
        object-fit:cover;
        margin:0;
        padding:0;
    }

    .product-card:hover .hover-image {
        opacity: 1;
        /*transform: translateY(-5px);*/
    }
    .product-card:hover .base-img {
        opacity: 1;
        transform: scale(1);
        
    }

    .product-card .base-img {
        transition: transform 0.5s ease-in-out;
        transform-origin: center center;
    }

    .product-card:hover .base-img,
    .product-card .product-info:hover ~ .image-container .base-img {
        transform: scale(1.10);
    }

.product-info {
    display: block;
    background-color: #a6823a; /* soft tan or almond milk tone */
    padding: 20px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-radius: 0 0 0px 0px;
    transition: background 0.3s ease;
    box-sizing: border-box;
    color:white;
}
.product-info:hover {
    background-color: #e4dcc7; /* slightly darker on hover */
}

.image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow:hidden;
    aspect-ratio: 1/.75;
}
/* Split Section */
.split-section {
    display: flex;
    flex-wrap: wrap;
    padding: 100px 0px;
    background: #f6F1E6;
    align-items: center;
    gap: 40px;
}

.split-section .width-container {
    display: flex;
    flex-direction: column; /* Mobile: stack vertically */
    gap: 2rem;
    align-items: center;
}

.split-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 45%;
}

    .split-image img {
        display: flex;
        justify-content:center;
        align-items: center;
        /*max-height:300px;*/
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
.split-map{
    display: flex;
    flex: 1 1 1%; 
    justify-content:center;
    align-items: center;
    /*max-height:300px;*/
    max-width: 100%;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);  
}
.split-text {
    flex: 1 1 45%;
}

    .split-text h2 {
        font-size: 2rem;
        color: #a6823a;
        margin-bottom: 20px;
    }

    .split-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #151007;
    }

/* Signup Section */
.signup-section {
    background: #f6F1E6 /*#EDE3CE*/;
    padding: 80px 20px;
    text-align: center;
}

    .signup-section h3 {
        font-size: 1.8rem;
        color: #a6823a;
        margin-bottom: 20px;
    }

.signup-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .signup-form input[type="email"] {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 30px;
        border: 1px solid #ccc;
        width: 300px;
        font-family: 'Saveur Sans', sans-serif;
    }

    .signup-form button {
        padding: 12px 25px;
        font-size: 1rem;
        background: #a6823a;
        color: white;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        font-family: 'Saveur Sans', sans-serif;
    }

        .signup-form button:hover {
            background: #C1A369;
        }


.button {
    background: #a6823a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Saveur Sans', sans-serif;
    width:100%;
    margin-top: 10px;
    }
    .button:hover {
    background: #C1A369;
    }
/* Footer */
footer {
    padding: 40px 20px;
    background: #a6823a;
    color: white;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

    .footer-links ul {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }

    .footer-links li a {
        color: white;
        font-size: 0.95rem;
    }


/*Product Split Section - Individual Products*/
.product-split-container {
    display: flex;
    flex-direction: row;
    max-width: auto;
    margin: auto;
    margin-top: 50px;
  }
  .image-gallery {
    top:0;
    flex: 1;
    display: flex;
    flex-direction: row;
    z-index: 100;
    background:#f6F1E6;
  }
  .main-image {
    width: 100%;
    max-width: 500px; 
    min-width: 250px;
    min-height:250px;
    max-height: 500px;
    height: auto;
    border-radius: 0px;
    transition: transform 0.5s ease-in-out;
    object-fit: contain;
    aspect-ratio: 1/1;
    z-index: 100;
    background:#f6F1E6;
  }
  .thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-right: 20px;
    z-index: 100;
    background:#f6F1E6;
  }
  .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s;
    z-index: 100;
  }
  .thumbnail.active {
    border-color: black;
  }
  .details {
    flex: 1;
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin-left: 35px;
     /* Hide scrollbar for Webkit browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  z-index: 1;
  }
  .details::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  .details h1{
    font-size: 50px;
  }
  .price {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 1.5rem;
  }

/*Nutrition Facts Styles*/
  .nutrition-facts {
    margin-top: 2rem;
    border-top: 2px solid black;
    padding-top: 1rem;
    font-size: 1.2rem;
  }
  
  .nf-header, .nf-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.5rem;
    padding: 2px 0;
  }
  
  .nf-row.bold, .nf-header.bold {
    font-weight: bold;
  }
  
  .nf-row.sub {
    align-items: center;
    font-size: 0.85rem;
  }
  
  .nf-divider {
    border-top: 1px solid #ccc;
    margin: 0.2rem 0;
  }
  
  .nf-divider.thick {
    border-top: 2px solid black;
  }
  
  .nf-footer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #666;
  }
  
  .calories{
    font-size: 22px;
  }
/*FAQ styles*/
.faq-item {
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 40px;
  }

  .faq-icon {
    font-size: 40px;
    transition: transform 0.3s ease;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    font-size: 18px;
    line-height: 1.5;
    margin-top: 0.5rem;
  }

  .faq-item.active .faq-answer {
    max-height: 500px; /* enough to show full content */
    opacity: 1;
  }

  .faq-item.active .faq-icon {
    transform: rotate(45deg);
  }

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-product {
    opacity: 1;
  }
.fade-out {
    opacity: 0;
  }

    .fade-in.show {
        opacity: 1;
    }

.nav-links {
    display: fixed;
    top:0;
    left:0;
    gap: 30px;
    color: #a6823a;
    list-style: none;
}

    /* Show nav when active */
    .nav-links.active {
        right: 0;
    }
.close-menu {
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #333;
    display:none;
}

/* Responsive */
/*Max-Width Section - Mobile changes*/
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Smaller logo for mobile */
    }
    .width-container {
        padding: 0 12px; /* or 10px, depending on how tight you want it */
    }
    header .width-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background:#f6F1E6;
        padding: 80px 0px 00px;
        margin:0;
        transition: left 0.3s ease-in-out;
        z-index: 1003;
    }

        .nav-links.active {
            left: 0px;
            display: flex;
        }
        .nav-links li {
            margin: 0px 20px;
        }

    /* Close (X) Button */
    .close-menu {
        display:block;
        position: absolute;
        top: 0px;
        left: 0px;
        height:60px;
        width: 100vw;
        font-size: 2rem;
        cursor: pointer;
        color: black;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        border-bottom: 1px solid #ccc; /* light gray line */
    }

    .header-inner {
        justify-content: flex-start;
    }

    .hamburger {
        display:block;      
        order: 0;
    }

    .logo {
        order: 1;
        margin-left: 16px;
    }

    .split-section {
        flex-direction: column;
    }
    nav ul.nav-links {
        display: flex;
    }
    nav {
        position: relative;
    }
    .mini-hero {
        max-height: 300px; /* or whatever height suits your design */
        padding: 0px 0;
    }

    .mini-hero-info h3{
        color:white;
        font-size: 30px;
        margin-top: 0px;
    }
    .mini-hero-info p {
        margin-top:-20px;
        color:white;
        font-size: 16px;
    }

    .product-split-container {
        display: flex;
        flex-direction: column;
        max-width: auto;
        margin: auto;
        margin-top: 50px;
      }
      .image-gallery {
        flex: 1;
        display: flex;
        min-width: 300px;
        flex-direction: column;
        align-items: center;
      }
      .main-image {
        width: 100%;
        max-width: 500px; 
        min-width: 300px;
        min-height:300px;
        height: auto;
        border-radius: 0px;
        transition: transform 0.5s ease-in-out;
      }
      .thumbnails {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-right: 20px;
        order:2;
      }
      .thumbnail {
        width: 30%px;
        height: 30%px;
        object-fit: cover;
        border-radius: 0px;
        border: 2px solid transparent;
        cursor: pointer;
        transition: border 0.2s;
      }
      .thumbnail.active {
        border-color: black;
      }
      .details {
        flex: 1;
        max-height: 500px;
        overflow-y: auto;
        padding-right: 1rem;
        margin-left: 35px;
      }
    /*#rotating-image {
        transform: scale(0.25); /* smaller image on mobile 
    }*/
}
/*Min-Width Section (Desktop only?)*/
@media (min-width: 768px) {
    .split-section .width-container {
        flex-direction: row; /* row = text left, image right */
        align-items: flex-start;
    }

    .split-text, .split-image {
        flex: 1;
    }
}
/*Fonts*/
@font-face {
    font-family: 'Saveur Sans';
    src: url('fonts/SaveurSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


/*Pop-up Button + overlay*/
.popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 300px;
    text-align: center;
  }

  .popup.show {
    opacity: 1;
    visibility: visible;
  }

  /* Optional overlay */
  .overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }
