/* ============================================================
   EarthGrit – style.css
   To change colours/fonts/layout: edit this file only
   Brand colours:
     Dark green:  #2d5a27
     Deep green:  #1a3617
     Gold:        #c9973a
     Cream bg:    #f7f3ec

     Light bg:    #f5efe6
     Border:      #e8e0d5
============================================================ */

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #f7f3ec;color: #1a1a1a; line-height: 1.6; }

/* ---------- Navigation ---------- */
nav { position: sticky; top: 0; z-index: 99; background: rgba(250,247,242,.96); backdrop-filter: blur(12px); border-bottom: 1px solid #e8e0d5; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { text-decoration: none; }
.lt { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #2d5a27; font-weight: 700; }
.nl { display: flex; gap: 28px; list-style: none; }
.nl a { text-decoration: none; color: #1a1a1a; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nl a:hover { color: #2d5a27; }

/* Cart button — must not shrink or overflow nav */
.cb { position: relative; z-index: 1; flex-shrink: 0; background: #2d5a27; color: #fff; border: none; border-radius: 50px; padding: 10px 22px; font-size: .9rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.cb:hover { background: #4a7c42; }
.cart-count { background: #c9973a; color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: .72rem; font-weight: 700; display: none; align-items: center; justify-content: center; position: absolute; top: -6px; right: -6px; z-index: 2; }
.cart-count.show { display: flex; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg,#1a3617 0%,#2d5a27 55%,#3d7a35 100%); color: #fff; padding: 100px 8% 80px; display: flex; align-items: center; gap: 60px; min-height: 75vh; position: relative; }
.hc { flex: 1; max-width: 680px; position: relative; z-index: 2; }
.hb { display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 6px 16px; font-size: .8rem; font-weight: 500; margin-bottom: 24px; }
.hc h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem,5vw,3.8rem); line-height: 1.15; margin-bottom: 20px; }
.hc h1 span { color: #f5c842; }
.hc p { font-size: 1.05rem; opacity: .88; margin-bottom: 32px; line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: 6px 14px; font-size: .8rem; }
.hbtns { display: flex; gap: 14px; }
.hv { flex: 0 0 auto; position: relative; z-index: 2; display:flex; align-items:center; justify-content:center; }
.hcircle { width: 270px; height: 270px; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 5rem; }

/* ---------- Buttons ---------- */
.btn-p { background: #c9973a; color: #fff; border: none; border-radius: 50px; padding: 14px 32px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-block; }
.btn-p:hover { background: #b8862e; transform: translateY(-2px); }
.btn-g { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); border-radius: 50px; padding: 14px 32px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-block; }
.btn-g:hover { border-color: #fff; background: rgba(255,255,255,.1); }
#reviews .btn-g { background: #2d5a27; color: #fff; border: 2px solid #2d5a27; }
#reviews .btn-g:hover { background: #4a7c42; border-color: #4a7c42; }
.btn-wa { background: #25d366; color: #fff; border: none; border-radius: 50px; padding: 14px 32px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn-wa:hover { background: #1fab4f; }

/* ---------- Trust Bar ---------- */
.tbar { background: #2d5a27; color: #fff; padding: 14px 5%; display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Section Shared Styles ---------- */
section { padding: 80px 5%; }
.sl { font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #2d5a27; margin-bottom: 10px; }
.st { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.6rem); margin-bottom: 10px; }
.ss { color: #6b6b6b; font-size: .97rem; max-width: 560px; margin-bottom: 48px; }
.why-s { background: #f5efe6; }

/* ---------- Products Grid ---------- */
#products { background: #fff; overflow: hidden; }
#pg { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 28px; }

/* Product Card — overflow:hidden traps the badge inside */
.pc { background: #f7f3ec;border-radius: 16px; border: 1px solid #e8e0d5; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; position: relative; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 4px 32px rgba(0,0,0,.1); }

/* Product image container — position:relative traps the absolute badge */
.pi { height: 180px; background: linear-gradient(135deg,#e8f5e2,#c8e6c0); display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }

/* Product badge — stays inside .pi because .pi is position:relative */
.pb { position: absolute; top: 12px; left: 12px; background: #c0392b; color: #fff; border-radius: 50px; padding: 4px 10px; font-size: .7rem; font-weight: 700; z-index: 1; }

.pb2 { padding: 22px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.pn { font-family: 'Playfair Display', serif; font-size: 1.22rem; font-weight: 700; margin-bottom: 6px; }
.pt { color: #6b6b6b; font-size: .875rem; margin-bottom: 14px; }
.pp { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pn2 { font-size: 1.5rem; font-weight: 700; color: #2d5a27; }
.pw { font-size: .9rem; color: #6b6b6b; text-decoration: line-through; }
.ppn { font-size: .78rem; color: #c9973a; font-weight: 600; margin-bottom: 14px; }
.pen { font-size: .8rem; font-weight: 700; color: #2d5a27; background: #e8f5e2; border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; display: inline-block; }

/* Product Accordion (Description / Ingredients / Nutrition) */
.pd { margin-bottom: 8px; }
.pd summary { cursor: pointer; font-size: .82rem; color: #2d5a27; font-weight: 600; list-style: none; padding: 8px 0; border-bottom: 1px solid #e8e0d5; }
.pd summary::after { content: ' ▾'; transition: transform .2s; }
.pd[open] summary::after { transform: rotate(-180deg); }
.pdd { padding: 10px 0; font-size: .82rem; color: #6b6b6b; line-height: 1.7; }
.pdd strong { color: #1a1a1a; display: block; margin-top: 8px; margin-bottom: 3px; }

/* Product Quantity & Add Button */
.pf { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.qr { display: flex; align-items: center; gap: 12px; }
.ql { font-size: .82rem; font-weight: 600; color: #6b6b6b; }
.qc { display: flex; border: 1.5px solid #e8e0d5; border-radius: 50px; overflow: hidden; }
.qb { background: none; border: none; width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: #2d5a27; }
.qb:hover { background: #f5efe6; }
.qi { width: 44px; height: 36px; text-align: center; border: none; font-size: .95rem; font-weight: 600; background: transparent; outline: none; -moz-appearance: textfield; }
.qi::-webkit-outer-spin-button, .qi::-webkit-inner-spin-button { -webkit-appearance: none; }
.acb { width: 100%; background: #2d5a27; color: #fff; border: none; border-radius: 50px; padding: 13px 20px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.acb:hover { background: #4a7c42; }

/* ---------- Why Us Section ---------- */
.wg { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 24px; }
.wc { background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; border: 1px solid #e8e0d5; transition: transform .2s; }
.wc:hover { transform: translateY(-3px); box-shadow: 0 4px 32px rgba(0,0,0,.1); }
.wi { font-size: 2.2rem; margin-bottom: 14px; }
.wc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #2d5a27; }
.wc p { font-size: .85rem; color: #6b6b6b; }

/* ---------- Reviews Section ---------- */
.rg { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; margin-bottom: 40px; }
.rc { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid #e8e0d5; }
.rs { color: #c9973a; font-size: 1.1rem; margin-bottom: 12px; }
.rt { font-size: .9rem; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.ra { font-size: .82rem; font-weight: 700; color: #2d5a27; }
.rlinks { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Contact Section ---------- */
.cg { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 24px; }
.ci2 { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid #e8e0d5; }
.ci2 h3 { margin-bottom: 8px; color: #2d5a27; }
.ci2 a { color: #c9973a; text-decoration: none; font-weight: 600; }
.ci2 a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: #2d5a27; color: #fff; padding: 24px 5%; text-align: center; }
.fl { font-size: .85rem; }
.fl a { color: #f5c842; text-decoration: none; }

/* ---------- Cart Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; }
.mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mh h2 { font-family: 'Playfair Display', serif; }
.mc { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b6b6b; padding: 4px 8px; }
.mc:hover { color: #1a1a1a; }
.ci { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #f7f3ec;border-radius: 8px; margin-bottom: 8px; }
.ci-name { flex: 1; }
.ci-name small { color: #6b6b6b; font-size: .85rem; }
.ci-right { display: flex; align-items: center; gap: 12px; }
.ci-right strong { color: #2d5a27; font-size: 1.1rem; }
.ci-right button { background: #c0392b; color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: .85rem; }
.ctotal { padding: 16px; text-align: right; font-size: 1.1rem; border-top: 2px solid #e8e0d5; margin-top: 8px; }
.delivery-info { background: #f5efe6; padding: 12px; border-radius: 8px; font-size: .85rem; margin: 16px 0; }
.delivery-info p { margin: 4px 0; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 12px 0 4px; }
input, textarea { width: 100%; padding: 10px; border: 1.5px solid #e8e0d5; border-radius: 8px; font-size: .95rem; font-family: 'Inter', sans-serif; }
textarea { min-height: 80px; resize: vertical; }
.ph { display: flex; gap: 4px; }
.ph span { background: #e8e0d5; padding: 10px; border: 1.5px solid #e8e0d5; border-radius: 8px 0 0 8px; font-weight: 600; }
.radio-g {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.radio-g label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  font-size: .95rem;
  color: #2c2c2c;
}

.radio-g input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #2d5a27;
  cursor: pointer;
  margin: 0;
}
.note { color: #c0392b; font-size: .82rem; margin-top: 12px; }
.mbtns { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

/* ============================================================
   MOBILE RESPONSIVE — screens 768px and below
============================================================ */
@media (max-width: 768px) {

  /* Nav */
  .nl { display: none; }
  nav { padding: 0 4%; height: 58px; }

  /* Hero — much tighter, less wasted space */
  .hero { flex-direction: column; padding: 36px 5% 32px; gap: 20px; min-height: auto; text-align: center; }
  .hv { display: flex; justify-content: center; }
  .hbtns { justify-content: center; flex-wrap: wrap; }
  .chips { justify-content: center; gap: 6px; margin-bottom: 24px; }
  .chip { font-size: .72rem; padding: 4px 10px; }
  .hc h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 12px; }
  .hc p { font-size: .92rem; margin-bottom: 20px; }
  .hb { margin-bottom: 14px; }

  /* Trust bar — single line, scroll if needed */
  .tbar { gap: 12px; font-size: .75rem; padding: 10px 4%; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-start; }

  /* Products — horizontal scroll instead of long vertical list */
	#products { padding: 36px 4%; }
	#pg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
      overflow-x: unset; scroll-snap-type: unset; padding-right: 0; padding-bottom: 0; }
	.pc { min-width: unset; scroll-snap-align: unset; flex-shrink: unset; }
	.pb2 { padding: 14px 12px 14px; }

  /* Sections — tighter padding */
  section { padding: 36px 4%; }
  .st { font-size: clamp(1.4rem, 5vw, 2rem); }
  .ss { margin-bottom: 28px; }

  /* Why Us — 2 columns instead of stacked */
  .wg { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wc { padding: 18px 14px; }
  .wi { font-size: 1.6rem; margin-bottom: 8px; }

  /* Reviews — single column stack on mobile */
  .rg { display: flex; flex-direction: column; overflow-x: unset;
        scroll-snap-type: unset; padding-bottom: 0; gap: 16px; }
  .rc { min-width: unset; scroll-snap-align: unset; flex-shrink: unset; width: 100%; }

  /* Cart modal */
  .modal { padding: 20px; }
  .modal-bg { padding: 10px; align-items: flex-end; }
  .modal { max-height: 95vh; border-radius: 16px 16px 0 0; }

  /* Buttons */
  .hbtns .btn-p, .hbtns .btn-g { padding: 11px 20px; font-size: .9rem; }
}

/* Extra small screens (iPhone SE etc.) */
@media (max-width: 400px) {
  .hc h1 { font-size: 1.8rem; }
  .cb { padding: 8px 14px; font-size: .82rem; }
  .wg { grid-template-columns: repeat(2, 1fr); }
}



/* Extra small screens (iPhone SE etc.) */
@media (max-width: 400px) {
  .hc h1 { font-size: 2rem; }
  .cb { padding: 8px 14px; font-size: .82rem; }
}

/* ---------- Hamburger Button ---------- */
.hbtn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
}
.hbtn span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #2d5a27;
  border-radius: 2px;
  transition: all .3s;
}

/* ---------- Mobile Full-Screen Menu ---------- */

.mmenu {
  position: fixed;
  inset: 0;
  background: #1a3617;
  z-index: 998;
  display: none;
  flex-direction: column;
  padding: 80px 10% 48px;
}
.mmenu.open {
  display: flex;
}



.mmenu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mmenu ul a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: #fff;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
}
.mmenu ul a:hover { color: #f5c842; }
.mmclose {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* Show hamburger on mobile, hide on desktop */
@media (max-width: 768px) {
  .hbtn { display: flex; }
  .pi { height: 260px; }
}
@media (min-width: 769px) {
  .mmenu { display: none !important; }
}



/* Free Delivery Progress Bar */
.dbar-wrap { background: #f5efe6; border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: .85rem; color: #1a1a1a; }
.dbar-done { background: #e8f5e2; color: #2d5a27; font-weight: 600; text-align: center; }
.dbar-msg { margin-bottom: 8px; }
.dbar-track { background: #e8e0d5; border-radius: 50px; height: 7px; overflow: hidden; }
.dbar-fill { background: #2d5a27; height: 100%; border-radius: 50px; transition: width .4s ease; }



/* Inline form errors */
.ferr { color: #c0392b; font-size: .8rem; margin-top: 4px; font-weight: 500; } 


/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
  position: relative;
  width: 420px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-dot.active { background: #fff; transform: scale(1.3); }
.hero-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #2d5a27;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media(max-width:768px){
  .hero-slideshow { width: 100%; height: 260px; border-radius: 16px; }
  .hv { display: flex !important; justify-content: center; width: 100%; margin-top: 8px; }
}

/* ---------- Founder Photo ---------- */
.founder-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f5efe6;
  border: 1px solid #e8e0d5;
  border-radius: 16px;
  padding: 32px 24px 28px;
  margin: 28px 0 0;
  max-width: 360px;
}

.founder-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid #2d5a27;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: block;
  margin-bottom: 16px;
}

.founder-photo-wrap strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #2d5a27;
  display: block;
  margin-bottom: 4px;
}

.founder-photo-wrap span {
  font-size: .85rem;
  color: #6b6b6b;
}

@media (max-width: 768px) {
  .founder-photo-wrap {
    max-width: 100%;
    padding: 24px 20px;
  }
  .founder-photo {
    width: 90px;
    height: 90px;
  }
}


/* ---------- Find In Store — Two Column Layout ---------- */
#find-us {
  background: #f5efe6;
}

#find-us .find-inner {
  display: flex;
  gap: 60px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

#find-us .find-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#find-us .find-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 768px) {
  #find-us .find-inner {
    flex-direction: column;
    gap: 28px;
  }
}