/* =========================================================
   SANA TRADERS — Stylesheet
   Mobile-first, responsive, soft animations.
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --green-900: #1f4d2b;
  --green-700: #2e7d4f;
  --green-600: #3a9a63;
  --green-500: #4caf75;
  --green-100: #e8f5ec;
  --gold-600: #c9982a;
  --gold-500: #e0b13a;
  --gold-100: #fff5d6;
  --earth-900: #3a2e1f;
  --earth-700: #6b5a40;
  --earth-100: #f6efe1;
  --bg: #fbfaf6;
  --bg-alt: #f4f1ea;
  --text: #2a2a2a;
  --text-muted: #5b6760;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(31, 77, 43, 0.06), 0 1px 2px rgba(31, 77, 43, 0.04);
  --shadow-md: 0 6px 18px rgba(31, 77, 43, 0.08);
  --shadow-lg: 0 14px 30px rgba(31, 77, 43, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1180px;
  --header-h: 70px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-900); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--green-900); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
p { margin: 0 0 1em; color: black; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow.gold { color: var(--gold-600); }
.eyebrow.light { color: var(--gold-500); }

.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head .section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn img { width: 18px; height: 18px; }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-700);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-100);
  color: var(--green-900);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
}
.brand:hover { color: var(--green-900); }
.brand-logo, .brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green-900);
}
.brand-text small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav { position: relative; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--green-700); background: var(--green-100); }
.main-nav a.active { color: var(--green-700); }
.main-nav .nav-cta {
  background: var(--green-700);
  color: var(--white);
  padding: 10px 18px;
  margin-left: 8px;
}
.main-nav .nav-cta:hover {
  background: var(--green-900);
  color: var(--white);
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO CAROUSEL ---------- */
.hero {
  position: relative;
}
.carousel {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 70vh, 640px);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 77, 43, 0.78) 0%, rgba(31, 77, 43, 0.35) 60%, rgba(31, 77, 43, 0.15) 100%);
}
.slide-content {
  position: relative;
  color: var(--white);
  max-width: 720px;
  padding: 0 20px;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}
.slide-content h1 {
  color: var(--white);
  margin-bottom: 14px;
}
.slide-content h1 span {
  color: var(--gold-500);
}
.slide-content p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-900);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 3;
}
.carousel-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 3;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dots button.active {
  width: 26px;
  border-radius: 999px;
  background: var(--white);
}

/* ---------- INTRO ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.intro-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 79, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.info-icon img { width: 28px; height: 28px; }
.info-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.info-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- DOUBLE CHABI ---------- */
.double-chabi {
  background: linear-gradient(180deg, var(--earth-100) 0%, var(--bg) 100%);
}
.dc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.dc-image {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 152, 42, 0.18);
}
.dc-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
}
.dc-content h2 em {
  font-style: italic;
  color: var(--gold-600);
}
.dc-points {
  margin: 16px 0 24px;
  display: grid;
  gap: 10px;
}
.dc-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.dc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-100);
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
  color: var(--white);
  padding: 56px 0;
}
.cta-strip h2 { color: var(--white); margin-bottom: 6px; }
.cta-strip p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  text-align: center;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 77, 43, 0.85) 0%, rgba(31, 77, 43, 0.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  animation: fadeUp 0.8s ease both;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 8px; }
.page-hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin: 0;
  max-width: 620px;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- VALUES ---------- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 79, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--green-100);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.value-icon img { width: 32px; height: 32px; }
.value-card p { color: var(--text-muted); margin: 0; }

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 79, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.product-tag.gold { background: var(--gold-600); }
.product-tag.bulk { background: var(--earth-700); }
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-body h3 { margin: 0; font-size: 1.15rem; }
.product-body p { color: var(--text-muted); margin: 0; flex: 1; }

/* ---------- BULK ---------- */
.bulk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.bulk-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- CERTIFICATIONS ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 79, 0.08);
  transition: transform var(--transition);
}
.cert-card:hover { transform: translateY(-4px); }
.cert-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 0.78rem;
}
.cert-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cert-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 79, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card.highlight {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  border-color: transparent;
}
.contact-card.highlight h3, .contact-card.highlight p, .contact-card.highlight a { color: var(--white); }
.contact-card.highlight .contact-icon { background: rgba(255, 255, 255, 0.18); }
.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--green-100);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.contact-icon img { width: 32px; height: 32px; }
.contact-card p { margin: 0 0 14px; }
.contact-card a { color: inherit; }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 50px;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gold-500); }
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: rgba(255, 255, 255, 0.6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-grid ul { display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ---------- FLOATING WHATSAPP ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}
.float-whatsapp:hover { transform: scale(1.06); }
.float-whatsapp img { width: 30px; height: 30px; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 880px) {
  .hamburger { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    border-top: 1px solid rgba(46, 125, 79, 0.08);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
  }
  .main-nav a {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
  }
  .main-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (min-width: 640px) {
  .intro-cards { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { grid-template-columns: 1fr auto; text-align: left; }
}

@media (min-width: 880px) {
  .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .intro-cards { grid-template-columns: 1fr; }
  .dc-grid { grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .bulk-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 90px 0; }
  .page-hero { min-height: 380px; }
}

@media (min-width: 1080px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
