/* Gosnacks - Global Styles */
:root {
  --brand: #0f172a; color: #cbd5e1;
  --brand-dark: #cc6200;
  --accent: #2b2d42;
  --light: #ffffff;
  --muted: #f7f7f9;
  --text: #1f1f1f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--muted);
  line-height: 1.6;
}

/* Layout helpers */
.text-center { text-align: center; }
.py-md { padding-block: 3rem; }
.py-lg { padding-block: 4rem; }
.bot-pad { padding-bottom: 1.5rem; }
.bot-mgn { margin-bottom: 2rem; }
.grid-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.grid-reversed { direction: rtl; }
.grid-reversed > * { direction: ltr; }

/* Color blocks from HTML classes */
.bg-primary { background: var(--brand); color: var(--light); }
.bg-secondary { background: #ffd8b3; }
.bg-orange { background: #ffb266; }
.bg-orange-dark { background: #fff1e6; }
.bg-extra { background: #eceff4; }

/* Container helpers */
.box-a, .box-c, .box-d, .box-e, .box-f { width: 100%; }
.box-inner, .navbar-container, .footer-inner {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.box-text p { opacity: 0.9; }

/* Typography */
.heading-text { letter-spacing: 0.2px; }
.text-xl { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); margin: 0 0 0.5rem; }
.text-md { font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.5rem); margin: 0 0 0.5rem; }
.text-sm { font-size: 1rem; margin: 0; }
#text-dm {
  font-size: 20px;
  padding-left: 20px;
}
#text-ms{
  padding-left: 20px;
}

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.btn-dark-outline { color: var(--accent); border: 2px solid var(--accent); background: transparent; }
.btn-dark-outline:hover { background: var(--accent); color: var(--light); }
.btn-light-outline { color: var(--light); border: 2px solid var(--light); background: transparent; }
.btn-light-outline:hover { background: var(--light); color: var(--brand); }

/* Navbar */
header { position: sticky; top: 0; z-index: 10; background: var(--light); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.navbar { width: 100%; }
.navbar-container { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; }
.navbar-brand img { height: 64px; width: auto; object-fit: contain; }

.navbar-nav-left { list-style: none; display: flex; gap: 1rem; align-items: center; margin: 0; padding: 0; }
.navbar-nav-left > li { position: relative; }
.navbar a { color: var(--accent); text-decoration: none; font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 0.5rem; }
.navbar a:hover { background: var(--muted); }

/* Dropdown */
.navbar-nav-left li ul { position: absolute; top: 120%; left: 0; min-width: 220px; background: #fff; border: 1px solid #eee; border-radius: 0.5rem; padding: 0.5rem; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.navbar-nav-left li:hover > ul { display: block; }
.navbar-nav-left li ul li a { display: block; padding: 0.5rem 0.75rem; }

/* Mobile menu button */
.hamburger { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; border: none; cursor: pointer; color: var(--accent); }
/* Legacy span bars (kept for compatibility if present) */
.hamburger span { display: none; }
/* SVG icon sizes */
.hamburger .icon-menu, .hamburger .icon-close { width: 26px; height: 26px; display: block; }
.hamburger .icon-close { display: none; }
/* When expanded, show close icon */
.hamburger[aria-expanded="true"] .icon-menu { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu */
.mobile-menu { background: #fff; border-top: 1px solid #eee; box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.mobile-menu.hidden { display: none; }
.mobile-menu ul { list-style: none; padding: 1rem; margin: 0; }
.mobile-menu a { display: block; color: var(--accent); text-decoration: none; padding: 0.75rem 0.5rem; border-radius: 0.5rem; }
.mobile-menu a:hover { background: var(--muted); }

/* Hero/Slider blocks (basic visual polish for existing markup) */
.st-slider .images { background: linear-gradient(135deg, #fff7ef, #ffe6cc); }
.st-slider .images img { width: 350px; height: 500px;  }
.st-slider .box-text { padding: 2rem; }

/* Hero product image animation */
.product-hero {
  will-change: transform, opacity;
  animation: fadeInUp .8s ease both, floatY 5s ease-in-out infinite alternate;
  transform-origin: center;
}
.product-hero:hover {
  transform: translateY(-6px) scale(1.02);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .product-hero { animation: none; }
}

/* Services grid */
.services-grid {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service img { height: 150px; width: auto; object-fit: contain; }
.service h2 { margin: 0.5rem 0; }
.service p { margin: 0; opacity: 0.9; }

/* Partners logos */
.logo-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1.5rem; align-items: center; justify-items: center; }
.logo { max-height: 50px; width: auto; opacity: 0.8; filter: grayscale(30%); transition: opacity .2s ease, filter .2s ease; }
.logo:hover { opacity: 1; filter: none; }

/* Testimonial slider (manual radio version) */
.slideshow-container { background: #fff; padding: 3rem 0; }
.slider { width: min(900px, 92%); margin: 0 auto; position: relative; overflow: hidden; }
.slides { display: grid; position: relative; }
.slides input { display: none; }
.slide { width: 100%; padding: 1rem; }
.mySlidesContainer { background: #fff7ef; border: 1px solid #ffe6cc; padding: 2rem; border-radius: 1rem; text-align: center; }
.mySlidesContainer q { font-size: clamp(1.1rem, 1rem + .5vw, 1.5rem); font-style: italic; color: var(--accent); }
.author { margin-top: 1rem; font-weight: 600; color: var(--brand-dark); display: inline-flex; gap: 0.5rem; align-items: center; }
.author img { height: 20px; width: 20px; }

.navigation-manual { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.manual-btn { width: 12px; height: 12px; border: 2px solid var(--brand); border-radius: 999px; display: inline-block; cursor: pointer; transition: background .2s ease; }
.manual-btn:hover { background: var(--brand); }

/* Footer */
footer { background: #0f172a; color: #cbd5e1; }
.footer-inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; padding: 2.5rem 0; }
.footer-item img { filter: brightness(0) invert(1); }
.footer-item a { color: #e2e8f0; text-decoration: none; }
.footer-item a:hover { text-decoration: underline; }
.footer-button { display: inline-block; background: var(--brand); color: #fff; padding: 0.75rem 1rem; border-radius: 0.75rem; font-weight: 600; }
.footer-button:hover { background: var(--brand-dark); }
.txt-orange-dark { color: #ffcf99; }
.divider { height: 1px; background: rgba(0,0,0,.08); }

/* Images inside grid sections */
.box-c img, .box-d img, .box-e img, .box-f img { width: 100%; height: auto; border-radius: 1rem; }

/* Product image in order form */
#product-image { max-width: 360px; width: 100%; display: block; margin: 0 auto; }

/* Contact page: center the form in the middle of the screen */
#contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Centers vertically in viewport without depending on header/footer heights */
}
#contact-section .box-text { width: 100%; display: flex; flex-direction: column; align-items: center; }
#contact-form { margin: 0 auto; }

/* Responsive */
@media (max-width: 992px) {
  .grid-col-2 { grid-template-columns: 1fr; }
  .navbar-nav-left { display: none; }
  .hamburger { display: inline-grid; }
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 992px) {
  .navbar-nav-left { display: flex; }
  .hamburger { display: none; }
  /* Center contact form on desktop */
  #contact-form { margin: 0 auto; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .navbar-brand img { height: 52px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  /* Box E (A culture of Sustainability) tweaks */
  .box-e { padding: 1.5rem 0; }
  .box-e .box-text { text-align: center; }
  .box-e img { max-width: 85%; margin: 0 auto; display: block; border-radius: 12px; }
  /* Center product image in homepage slider on mobile */
  .st-slider .images img { width: min(85%, 360px); height: auto; display: block; margin: 0 auto; }
  .st-slider .box-text { text-align: center; }
}

@media (max-width: 480px) {
  .text-xl { font-size: 1.6rem; }
  .text-md { font-size: 1.05rem; }
  .text-sm { font-size: 0.95rem; }
}

/* Footer: mobile-first refinements */
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-item { text-align: center; }
  .footer-item img { height: 96px; width: auto; margin: 0 auto; display: block; }
  .footer-item ul { list-style: none; padding: 0; margin: 0; }
  .footer-item li a { display: inline-block; padding: 8px 0; }
  .footer-button { width: 100%; text-align: center; }
  /* Ensure text appears before image on mobile for box-e */
  .box-e { grid-template-areas: 'image' 'text'; }
  .box-e img { grid-area: image; }
  .box-e .box-text { grid-area: text; }
  .box-e.grid-reversed { direction: ltr; }
  .box-e .btn { width: auto; display: inline-block; margin: 0.5rem auto 0; }
}

/* Reviews (Splide) */
.reviews-section { background: #fff; padding: 3rem 0; }
#reviews-splide { width: min(900px, 92%); margin: 0 auto; }
.review-card { background: #fff7ef; border: 1px solid #ffe6cc; padding: 1.5rem; border-radius: 1rem; text-align: center; }
.review-quote { font-size: clamp(1.05rem, 1rem + .4vw, 1.4rem); font-style: italic; color: var(--accent); margin: 0; }
.review-card .author { margin-top: 1rem; font-weight: 600; color: var(--brand-dark); display: inline-flex; gap: 0.5rem; align-items: center; }
.review-card .author img { height: 20px; width: 20px; }

/* Splide pagination theme */
.splide__pagination { gap: 6px; }
.splide__pagination__page { background: transparent; border: 2px solid var(--brand); width: 10px; height: 10px; opacity: 1; }
.splide__pagination__page.is-active { background: var(--brand); transform: none; }

/* Forms */
.brand-form { width: 100%; max-width: 560px; }
.brand-form .form-row { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.brand-form label { font-weight: 600; font-size: 0.95rem; color: var(--accent); }
.brand-form input,
.brand-form select,
.brand-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #dde1e7; border-radius: 10px; background: #fff; color: #111827; font-family: inherit; font-size: 1rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.brand-form input:focus,
.brand-form select:focus,
.brand-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12); }
.brand-form .form-actions { margin-top: 0.75rem; }
.brand-form .btn { padding-inline: 1.25rem; }
