/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  font-family: 'Cormorant Garamond', serif;
  /* background-image: url('images/bg.png'); */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  background-color: #fff;

}
body.lazy-bg {
  background-image: none;
}
/* Header Styling */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

.logo img {
    max-width: 220px;
    /* increase this as needed */
    height: auto;
}


/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    margin-top: 40px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #5C4A36;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: #805b32;
    border-bottom: 4px solid #825c30;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.dropdown-content a {
    padding: 10px 20px;
    text-align: left;
    font-size: 0.85rem;
    color: #5C4A36;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: rgba(88, 115, 68, 0.2);
    /* Very light transparent green */
    color: #805b32;
}


/* Show dropdown on hover (desktop) */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: 28px;
    color: #5C4A36;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Mobile Menu */
@media (max-width: 767px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
    }

    .dropdown-content.show {
        display: flex;
    }

    .dropdown-content a {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        color: #5C4A36;
        text-decoration: none;
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    .dropdown-content a:hover {
        background-color: rgba(88, 115, 68, 0.1);
        /* subtle green */
        color: #805b32;
    }

}

/* header section ends here */

/* header section ends here */
.products-section {
  text-align: center;
  padding:20px;
  margin-top: 5px;
  color: black;
}
.sub-heading {
  font-size: 20px;
  color: #5C4A36;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
}

/* Medium screens - tablets */
@media (max-width: 768px) {
  .sub-heading {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
}

/* Small screens - mobile */
@media (max-width: 480px) {
  .sub-heading {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
  }
}

.products-section {
  text-align: center;
  padding:20px;
  margin-top: 5px;
}.sub-heading {
  font-size: 20px;
  color:#5C4A36;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
}

/* Medium screens - tablets */
@media (max-width: 768px) {
  .sub-heading {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
}

/* Small screens - mobile */
@media (max-width: 480px) {
  .sub-heading {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
  }
}

/* Container for connection section (title & decorative lines) */
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 30px;
}

/* Left decorative line image */
.title-container .decor-line.left {
  width: 300px;
  height: auto;
  display: block;
  margin-right: -18px;
}

/* Right decorative line image */
.title-container .decor-line.right {
  width: 300px;
  height: auto;
  display: block;
  margin-left: -13px;
}

/* Main heading/title in the section */
.title-container .section-title {
  font-family: cinzel, serif;
  font-size: 52px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 2px;
  white-space: nowrap;
  padding: 0 4px;
  color:#5C4A36;
}

/* Responsive for screens <= 480px */
@media (max-width: 480px) {
  .title-container {
    flex-direction: column;
    
    margin: 10px 0 20px;
  }

  .title-container .decor-line.left,
  .title-container .decor-line.right {
   width: 100px;
  margin-right: -12px;
  }

  .title-container .section-title {
    font-size: 28px;
    letter-spacing: 1px;
    white-space: normal;
    padding: 0 8px;
  }
}

/* Responsive for screens <= 768px */
@media (max-width: 768px) {
  .title-container {
    margin: 10px 0 20px;
  }

  .title-container .section-title {
    font-size: 32px;
    padding: 0 3px;
  }

  .title-container .decor-line.left {
    width: 100px;
    margin-right: -10px;
  }

  .title-container .decor-line.right {
    width: 100px;
    margin-left: -12px;
  }
}

/* Product Description Styling */
.products-description {
  font-family: 'Perpetua', serif;
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto;
  color:  #5C4A36;
  line-height: 1.8;
  margin-bottom: 20px;
  padding: 0 10px;
  opacity: 0.95;
  text-align: center;
}
@media (max-width: 480px) {
  .products-description {
    font-size: 13px;
    padding: 0 20px;
    line-height: 1.6;
  }
}/* Container & Box Setup */
.brand-container {
  background-color: #ab8e76;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 40px;
  padding: 60px 40px;
  max-width: 1400px;  /* or any width you want */
  margin: 0 auto;     /* centers the whole container */
}

/* Base: Desktop - 3 per row */
.brand-box {
  background-color: transparent;
   width: calc(50% - 20px); /* 3 items per row with 40px gap */
  min-width: 280px;
  position: relative;
  padding: 10px 10px 120px; /* Room for product image */
  box-sizing: border-box;
  margin-bottom: 60px;
}

/* Light green content box */
.brand-content {
  background-color: #f1e6d8;
  padding: 20px;
  color:#5C4A36;
  text-align: left;
  min-height: 250px;
  display: flex;               /* 🔥 make it horizontal */
  align-items: center;         /* vertical centering */
  gap: 20px; 
  font-family: 'Perpetua', serif;
}

.brand-logo {
  max-width: 140px;
  margin-bottom: 10px;
  flex-shrink: 0; 
}

.brand-description {
  font-family: 'Perpetua', serif;
  font-size: 14.5px;
  line-height: 1.6;
   flex: 1; 
}

.brand-product {
  position: absolute;
  bottom: -81px;
  left: 50%;
  transform: translateX(-50%);
  height: 70%;
  width: 46%;
}

/* Center the last single item on Desktop (7th box) */
.brand-box:nth-child(7) {
  margin-left: auto;
  margin-right: auto;
}

/* Tablet & Mobile: 2 per row */
@media (max-width: 1024px) {
  .brand-box {
    width: calc(50% - 20px); /* 2 items per row with 40px gap */
  }

  /* Center last item when alone in final row */
  .brand-box:nth-child(7) {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile: Same as tablet (2 per row) */
@media (max-width: 768px) {
  .brand-container {
    gap: 13px; /* smaller gap on tablet */
  }

  .brand-box {
    width: calc(50% - 10px); /* 2 per row with 20px gap */
  }

  .brand-product {
    position: static;
    transform: none;
    margin-top: 20px;
    width: 100%;
    height: auto; /* Prevent squishing */
  }
  
  .brand-logo {
        margin-bottom: 0;
        margin-right: -1px;
        max-width: 80px;
        
    }
  .brand-description{
    font-size: 11px;
  }

}



 @media (max-width: 480px) {
  .brand-box {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .brand-content {
    display: flex;
    flex-direction: row; /* Use row to place logo and description side by side */
    align-items: center; /* Vertically align them */
    text-align: left;
  }

  .brand-logo {
    margin-bottom: 0; /* Remove bottom margin so it doesn't add space below logo */
    margin-right: 10px; /* Add space between logo and description */
    max-width: 80px;
  }

  .brand-description {
    font-size: 11px;
  }

  .brand-product {
    position: static;
    transform: none;
    margin-top: 20px;
    width: 100%;
    height: auto;
  }
  .brand-container{
    gap:0px;
  }
}




.brand-slider {
  position: absolute;
  bottom: -81px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 70%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: slideAnim 9s infinite ease-in-out;
}

.brand-slider img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes slideAnim {
  0%, 10% { transform: translateX(0%); }
  30%, 40% { transform: translateX(-100%); }
  60%, 70% { transform: translateX(-200%); }
  90%, 100% { transform: translateX(0%); }
}

/* Mobile fix */
@media (max-width: 768px) {
  .brand-slider {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }
}

.brand-slider {
  position: absolute;
  bottom: -213px; /* adjust spacing */
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 503px;     /* consistent height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-slider img {
  max-width: 100%;    /* won't overflow horizontally */
  max-height: 100%;   /* won't overflow vertically */
  position: absolute;
  object-fit: cover;     
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* center it */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.brand-slider img.active {
  opacity: 1;
  position: absolute; /* still centered */
}



@media (max-width: 768px) {
  .brand-slider {
    width: 350px;      /* smaller slider for tablet */
    height: 350px;
    bottom: -110px;    /* adjust spacing to fit layout */
  }
}

@media (max-width: 480px) {
  .brand-slider {
    width: 350px;      /* smaller slider for mobile */
    height: 350px;
    bottom: -115px;    /* adjust bottom spacing */
  }
}