/* =====================================================
   NAV + GOOGLE-STYLE MEGA MENU
   nav.css only
   ===================================================== */

/* NAV */
.navbar-comp{
  height:78px;
  background:#080909;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:10000;
}

.nav-inner{
  width:100%;
  max-width: 1320px;
  padding: 0 60px;
  box-sizing: border-box;
  height:78px;
  margin:0 auto;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.nav-left,
.nav-right{
  display:flex;
  align-items:center;
  gap:58px;
}

.nav-link-c{
  color:#fff;
  font-size:18px!important;
  letter-spacing:.04em;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  font:inherit;
  text-decoration: none;
}

.nav-link-c:hover{
  color:#d69b55;
}

.nav-dropdown-c{
  position:relative;
  display:flex;
  align-items:center;
}

.nav-dropdown-trigger{
  display:flex;
  align-items:center;
  gap:9px;
}

.nav-dropdown-trigger i{
  font-size:11px;
  transition:transform .18s ease;
}

.nav-dropdown-c.open .nav-dropdown-trigger{
  color:#d69b55;
}

.nav-dropdown-c.open .nav-dropdown-trigger i{
  transform:rotate(180deg);
}

.nav-submenu{
  position:absolute;
  z-index:1111112;
  top:calc(100% + 25px);
  left:-22px;
  width:245px;
  padding:10px;
  border:1px solid rgba(17,17,17,.08);
  background:#fffaf4;
  box-shadow:0 18px 38px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .18s ease, visibility .18s ease, transform .18s ease;
  pointer-events:none;
}

.nav-submenu::before{
  position:absolute;
  right:0;
  bottom:100%;
  left:0;
  height:23px;
  content:'';
}

.nav-dropdown-c.open .nav-submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.nav-submenu a{
  display:flex;
  min-height:45px;
  padding:10px 14px;
  color:#17251e;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  align-items:center;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible{
  background:#efe8dc;
  color:#a65a2f;
  outline:0;
}

.nav-btn{
  background:#a65a2f;
  color:#fff;
  text-transform:uppercase;
  font-size:12px;
  font-weight:900;
  border-radius:3px;
  padding:18px 30px;
}

.logo{
  position:absolute;
  left:50%;
  top:8px;
  transform:translateX(-50%);
  width:152px;
  height:152px;
  z-index:10001;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 14px 30px rgba(0,0,0,.55));
}

/* MOBILE NAV TOGGLE */
.mobile-menu-toggle{
  display:none;
}

/* =====================================================
   MEGA MENU
   ===================================================== */

.mega-panel{
  position:absolute;
  top:78px;
  left:0;
  right:0;
  z-index:1111111;
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease;
  pointer-events:none;
}

.mega-panel.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.mega-shell{
  width:min(1452px, calc(100% - 120px));
  margin:0 auto;
  background:#fffaf4;
  color:#111;
  border-radius:0 0 28px 28px;
  box-shadow:0 30px 70px rgba(0,0,0,.24);
  padding:46px 48px 52px;
  display:grid;
  grid-template-columns:170px 1fr 420px;
  gap:34px;
}

.mega-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #a65a2f;
  text-transform: uppercase;
  /* letter-spacing: .08em; */
  margin-bottom: 18px;
}

.mega-label-col{
  padding-top:4px;
}

/* service/product cards */
.mega-product-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.mega-product-card {
  background: rgb(255 255 255 / 63%);
  border-radius: 1em;
  overflow: hidden;
  color: #fffbfb;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mega-product-card:hover{
  transform:translateY(-4px);
  background:#fff;
  color:#111;
  box-shadow:0 16px 35px rgba(0,0,0,.12);
}

.mega-product-card{
  min-height:auto;
}

.mega-product-card img{
  width:100%;
  height:110px;        /* reduce/increase this */
  object-fit:cover;
  display:block;
  border-radius:1em 1em 0 0;
}

.mega-product-card strong{
  padding:10px 14px 12px;
}

.mega-card-img.formula{
  background-image:url("../img/ginger.webp");
}

/*
.mega-card-img.private-label{
  background-image:url("../img/private-label-card-sm.jpg");
}
*/
.mega-card-img.blending{
  background-image:url("../img/aleppo.webp");
}

.mega-card-img.copacking{
  background-image:url("../img/PXL_20250731_213635758.PORTRAIT.jpg");
}

.mega-product-card strong{
  display: block;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 14px 12px;
  color: rgb(29 28 28 / 80%);
}

.mega-pill-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:22px;
}

.mega-wide-pill{
  min-height:72px;
  background:#f2f5ee;
  border:0;
  border-radius:999px;
  color:#0a3f1f;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 26px;
  font-size:18px;
  font-weight:700;
  text-align:left;
  text-decoration: none;
}

.mega-wide-pill:hover{
  background:#e8ede0;
  color:#0a3f1f;
}

.mega-wide-pill i::before{
  font-size:1.35rem;
}

.mega-green-pill{
  background:#557729;
  color:#fff;
}

.mega-green-pill:hover{
  background:#486a20;
  color:#fff;
}
.offcanvas-backdrop{
  z-index:100001;
}

.project-drawer{
  z-index:100002 !important;
}
/* explore more rail */
.mega-resource-list{
  border-radius:22px;
  overflow:hidden;
  background:#f5f3f0;
}

.mega-resource-list a{
  min-height:88px;
  padding:0 30px;
  color:#111;
  font-weight: 500;
  display:flex;
  align-items:center;
  border-bottom:3px solid #fffaf4;
  transition:background .18s ease;
}

.mega-resource-list a:last-child{
  border-bottom:0;
}

.mega-resource-list a:hover{
  background:#ece8e1;
  color:#111;
}

.mega-resource-list strong{
  font-size:20px;
  line-height:1.2;
  font-weight:700;
}

.mega-discover-title{
  margin-top:34px;
}

.mega-discover-card{
  min-height:88px;
  border-radius:22px;
  background:#f5f3f0;
  color:#111;
  display:grid;
  grid-template-columns:1fr 72px;
  gap:18px;
  align-items:center;
  padding:18px 20px 18px 28px;
  margin: 0 0 25px 0;
}

.mega-discover-card:hover{
  background:#ece8e1;
  color:#111;
}

.mega-discover-card strong{
  display:block;
  font-size:19px;
  font-weight:700;
  margin-bottom:4px;
}

.mega-discover-card span{
  display:block;
  max-width:410px;
  font-size:14px;
  line-height:1.35;
  color:#4e514c;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mega-discover-card i{
  width:58px;
  height:58px;
  border-radius:50%;
  background:#e8ede0;
  color:#557729;
  display:grid;
  place-items:center;
}

/* process menu */
.mega-process-grid-rich{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.mega-process-grid-rich a{
  min-height:142px;
  border-radius:22px;
  background:#f4f1ec;
  color:#111;
  padding:22px;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mega-process-grid-rich a:hover{
  transform:translateY(-4px);
  background:#fff;
  color:#111;
  box-shadow:0 16px 35px rgba(0,0,0,.12);
}

.mega-process-grid-rich b{
  display:block;
  color:#a65a2f;
  font-size:13px;
  margin-bottom:14px;
}

.mega-process-grid-rich strong{
  display:block;
  font-size:20px;
  color:#111;
  line-height:1.1;
  margin-bottom:7px;
}

.mega-process-grid-rich span{
  display:block;
  color:#5f5a52;
  font-size:13px;
  line-height:1.4;
}

/* =====================================================
   MOBILE NAV
   ===================================================== */

.mobile-nav-drawer{
  background:#fffaf4;
}

.mobile-nav-drawer .offcanvas-header{
  padding:26px 26px 12px;
}

.mobile-nav-drawer h5{
  text-transform:uppercase;
  font-weight:900;
  margin:0;
}

.mobile-nav-drawer .offcanvas-body{
  padding:14px 26px 30px;
}

.mobile-nav-drawer .offcanvas-body a,
.mobile-nav-cta{
  display:flex;
  align-items:center;
  width:100%;
  min-height:50px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  color:#111;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.04em;
  font-size:14px;
  text-align:left;
}

.mobile-nav-group{
  width:100%;
}

.mobile-nav-drawer .offcanvas-body .mobile-submenu-link{
  min-height:42px;
  padding-left:22px;
  color:#a65a2f;
  font-size:13px;
}

.mobile-nav-drawer .offcanvas-body .mobile-submenu-link::before{
  width:12px;
  height:1px;
  margin-right:10px;
  background:currentColor;
  content:'';
}

.mobile-nav-cta{
  justify-content:center;
  margin-top:22px;
  border-bottom:0;
  border-radius:4px;
  background:#557729;
  color:#fff;
}

/* =====================================================
   RESPONSIVE NAV
   ===================================================== */

@media(max-width:1199px){
  .mega-panel{
    display:none;
  }

  .nav-inner{
    width:100%;
    padding:0 28px;
  }
}

@media(max-width:991px){
  .navbar-comp{
    height:74px;
  }

  .nav-inner{
    height:74px;
    justify-content:center;
  }

  .nav-left,
  .nav-right{
    display:none;
  }

  .mobile-menu-toggle{
    display:grid;
    place-items:center;
    position:absolute;
    right:24px;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border:0;
    border-radius:6px;
    background:rgba(255,255,255,.04);
    color:#fff;
  }

  .mobile-menu-toggle .bi::before{
    font-size:1.7rem;
  }

  .logo{
    width:124px;
    height:124px;
    top:7px;
  }

  .mobile-nav-drawer{
    width:360px !important;
  }
}

@media(max-width:767px){
  .navbar-comp{
    height:70px;
  }

  .nav-inner{
    height:70px;
    padding:0 20px;
  }

  .logo{
    width:108px;
    height:108px;
    top:7px;
  }

  .mobile-menu-toggle{
    right:18px;
    width:42px;
    height:42px;
  }

  .mobile-nav-drawer{
    width:100% !important;
  }
}
.offcanvas-backdrop{
  z-index:100001;
}

.project-drawer{
  z-index:100002 !important;
}
a.mega-green-pill,
a.mega-green-pill:hover,
a.mega-green-pill:focus,
a.mega-green-pill:active {
  text-decoration: none;
}

/* Mobile drawer: above its body-level Bootstrap backdrop and project tab. */
#mobileNav.mobile-nav-drawer{--bs-offcanvas-zindex:1111120;z-index:1111120!important;max-width:100vw}
#mobileNav .mobile-nav-heading{display:flex;align-items:center;min-height:50px;color:#111;font-family:inherit;font-size:14px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
#mobileNav .mobile-journal-posts{padding:6px 0 12px}
#mobileNav .mobile-journal-posts a{min-height:0;padding:12px 0 12px 18px;border-bottom:1px solid #ded6c9;color:#5b5146;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:0;text-transform:none;text-decoration:none}
#mobileNav .mobile-journal-posts a:hover,#mobileNav .mobile-journal-posts a:focus-visible{color:#a65a2f}
#mobileNav .offcanvas-body a.mobile-product-list{justify-content:space-between;gap:15px;margin:12px 0 8px;padding:15px 18px;border:0;border-radius:5px;background:#557729;color:#fff;font-weight:700;text-decoration:none}
#mobileNav .offcanvas-body a.mobile-product-list:hover,#mobileNav .offcanvas-body a.mobile-product-list:focus-visible{background:#405d1d;color:#fff}
/* Match the mega menu's 1200px breakpoint so Services remains usable on tablets. */
@media(min-width:992px) and (max-width:1199px){
  .nav-left,.nav-right{display:none}.nav-inner{justify-content:center}.mobile-menu-toggle{display:grid;place-items:center;position:absolute;right:24px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:6px;background:rgba(255,255,255,.04);color:#fff}
.mobile-menu-toggle .bi::before{font-size:1.7rem}}
#mobileNav {
  background: #173b2c;
  color: #fffaf4;
}

#mobileNav h5,
#mobileNav .mobile-nav-heading,
#mobileNav .offcanvas-body a {
  color: #fffaf4;
}

#mobileNav .offcanvas-body a {
  border-bottom-color: rgba(255, 250, 244, .2);
}

#mobileNav .offcanvas-body .mobile-submenu-link {
  color: #d9ad6c;
}

#mobileNav .offcanvas-body a.mobile-product-list {
  background: #fffaf4;
  color: #173b2c;
}

#mobileNav .offcanvas-body a.mobile-product-list:hover {
  background: #e8dfd0;
  color: #173b2c;
}

#mobileNav .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
@media (max-width: 1199px) {
  .navbar-comp {
    background: #102013;
    border-bottom: 0;
  }
}

/* Mobile menu title and primary heading sizes. */
#mobileNavLabel {
  font-size: 3rem;
}

#mobileNav .mobile-nav-heading,
#mobileNav .offcanvas-body > a:not(.mobile-product-list),
#mobileNav .mobile-nav-group > a:not(.mobile-submenu-link) {
  font-size: 18px;
}
@media (width: 280px) {
  #mobileNav .offcanvas-body a.mobile-product-list {
    padding: 15px 8px;
  }
}  

/* Services is already named in the main navigation, so the repeated
   in-panel heading is hidden and its grid column is removed. */
@media (min-width:1200px) {
  .mega-shell-services {
    grid-template-columns:minmax(0, 1fr) 420px;
  }

  .mega-shell-services .mega-label-col {
    display:none;
  }
}

/* Narrow desktops: preserve the two-column layout while tightening
   the shell and Journal rail. The mobile drawer takes over below 1200px. */
@media (min-width:1200px) and (max-width:1399.98px) {
  .mega-shell-services {
    width:calc(100% - 40px);
    padding:34px 36px 40px;
    grid-template-columns:minmax(0, 1fr) 400px;
    gap:28px;
  }

  .mega-shell-services .mega-main-col {
    min-width:0;
  }

  .mega-shell-services .mega-product-grid,
  .mega-shell-services .mega-pill-row {
    gap:12px;
  }

  .mega-shell-services .mega-pill-row {
    margin-top:18px;
  }

  .mega-shell-services .mega-wide-pill {
    min-height:66px;
    padding:0 22px;
    font-size:17px;
  }

  .mega-shell-services .mega-resource-list a {
    padding-right:24px;
    padding-left:24px;
  }
}
