/* ==========================================================================
   Vimal Agro — design system
   Palette from the established brand: cream, deep maroon, golden yellow.
   ========================================================================== */

:root {
  --cream: #faf7f0;
  --cream-deep: #f2edE0;
  --ivory: #fffefb;
  --maroon: #6a1a1f;
  --maroon-dark: #521317;
  --maroon-ink: #3d0e11;
  --gold: #f5cb4b;
  --gold-soft: #f9dd85;
  --green: #388e3c;
  --green-ink: #2e7431;
  --ink: #190f06;
  --gray: #68584b;
  --gray-soft: #726559;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --line: #e3d9c2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 24px rgba(25, 15, 6, 0.08);
  --shadow-lift: 0 12px 40px rgba(25, 15, 6, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-dark); }

/* Browser surfaces — the parts we did not draw still carry the design */
::selection { background: var(--maroon); color: var(--gold); }
html {
  caret-color: var(--maroon);
  accent-color: var(--maroon);
  scrollbar-color: #b08a8c var(--cream);
}
::-webkit-scrollbar { width: 13px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: #b08a8c; border-radius: 8px; border: 3px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--maroon); }
ul, ol { padding-left: 1.2rem; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--maroon-ink); text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

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

section { padding: 72px 0; }
@media (max-width: 720px) { section { padding: 48px 0; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary { background: var(--maroon); color: var(--gold); }
.btn-primary:hover { background: var(--maroon-dark); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--maroon-ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--maroon-ink); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: var(--gold); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--maroon); }

/* --------------------------------------------------------------------------
   Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--maroon-ink); color: var(--cream);
  font-size: 0.82rem; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: var(--gold-soft); }
.topbar-contacts { display: flex; gap: 22px; }
.topbar-tag { opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
@media (max-width: 860px) { .topbar-tag { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; width: auto; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--maroon); line-height: 1.05; }
.logo-word small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: 0.93rem; color: var(--ink);
}
.nav a:hover { background: var(--cream); color: var(--maroon); }
.nav a.active { color: var(--maroon); }
.nav a.active::after { content: ""; display: block; height: 3px; margin-top: 2px; border-radius: 2px; background: var(--gold); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
/* .nav a's ink colour outranks .btn-primary — restate the button colours */
.nav a.btn-primary { color: var(--gold); }
.nav a.btn-primary:hover { background: var(--maroon-dark); color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--maroon); cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-lift);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--maroon-ink) 0%, var(--maroon) 55%, #8a2a30 100%);
  color: var(--cream); padding: 96px 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 88% 12%, rgba(245, 203, 75, 0.18), transparent 65%),
    radial-gradient(500px 300px at 8% 90%, rgba(245, 203, 75, 0.10), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { font-size: 1.12rem; max-width: 36em; margin: 22px 0 34px; color: rgba(246, 242, 228, 0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.on-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--maroon); }
.stat span { font-size: 0.88rem; color: var(--gray); }

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--gray); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.card { display: block; color: inherit; }

.cat-card { position: relative; }
.cat-card .cat-img { aspect-ratio: 4 / 3; background: var(--cream-deep); display: grid; place-items: center; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card .cat-body { padding: 20px 22px 24px; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card .count { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-soft); }
.cat-card p { color: var(--gray); font-size: 0.92rem; margin-top: 8px; }

.product-card .p-img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 24px; }
.product-card .p-img img { max-height: 82%; max-width: 76%; width: auto; object-fit: contain; margin: auto; }
.product-card .p-body { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.product-card h3 { font-size: 1.08rem; }
.product-card .packs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pack-chip {
  font-size: 0.74rem; font-weight: 600; color: var(--maroon);
  background: var(--cream); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.product-card p { color: var(--gray); font-size: 0.9rem; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Split sections / feature rows
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--maroon-ink); font-size: 0.85rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Dark band (maroon sections)
   -------------------------------------------------------------------------- */
.band { background: linear-gradient(120deg, var(--maroon-ink), var(--maroon)); color: var(--cream); }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(246, 242, 228, 0.85); }
.band a:not(.btn) { color: var(--gold); }

/* --------------------------------------------------------------------------
   Timeline (about page)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold), var(--maroon));
}
.tl-item { position: relative; padding: 0 0 42px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 12px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 4px solid var(--ivory); box-shadow: 0 0 0 2px var(--gold);
}
.tl-year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.tl-item h3 { margin: 4px 0 2px; }
.tl-item .tl-sub { font-weight: 600; color: var(--gray); font-size: 0.92rem; }
.tl-item p { color: var(--gray); margin-top: 10px; max-width: 60em; }

/* --------------------------------------------------------------------------
   Spec tables
   -------------------------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--ivory); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 200px; color: var(--maroon); font-weight: 700; background: rgba(245, 203, 75, 0.12); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* Pack size selector chips (product page) */
.pack-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.pack-pill {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 700; font-size: 0.92rem; color: var(--ink); background: var(--ivory);
}
.pack-pill.big { border-color: var(--gold); background: rgba(245, 203, 75, 0.15); }

/* --------------------------------------------------------------------------
   Accordion (FAQ) — native details/summary
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 700; color: var(--maroon-ink); position: relative; padding-right: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-weight: 800; color: var(--maroon);
}
.faq details[open] summary::after { content: "–"; background: var(--gold); }
.faq .faq-a { padding: 0 22px 20px; color: var(--gray); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote-card blockquote { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--maroon); }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; }

/* --------------------------------------------------------------------------
   Certificates & brand strips
   -------------------------------------------------------------------------- */
.cert-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .cert-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cert-strip { grid-template-columns: repeat(2, 1fr); } }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cert img { height: 64px; width: auto; object-fit: contain; }
.cert b { font-size: 0.82rem; color: var(--maroon-ink); line-height: 1.3; }
.cert small { font-size: 0.72rem; color: var(--gray-soft); }

.brand-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .brand-strip { grid-template-columns: repeat(2, 1fr); } }
.brand-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; place-items: center; }
.brand-tile img { max-height: 62px; width: auto; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--maroon-ink), var(--maroon));
  color: var(--cream); padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 90% 0%, rgba(245, 203, 75, 0.16), transparent 60%);
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 46em; margin-top: 14px; color: rgba(246, 242, 228, 0.85); }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(246, 242, 228, 0.7); position: relative; z-index: 1; }
.breadcrumbs a { color: var(--gold-soft); }
.breadcrumbs span::before { content: "›"; margin: 0 8px; opacity: 0.6; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  border-radius: var(--radius-lg); padding: 48px;
  background: linear-gradient(115deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(245, 203, 75, 0.14);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-banner p { color: rgba(246, 242, 228, 0.85); margin-top: 8px; max-width: 34em; }
.cta-banner .btn { position: relative; z-index: 1; flex: 0 0 auto; }
@media (max-width: 800px) { .cta-banner { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--maroon-ink); color: rgba(246, 242, 228, 0.8); padding: 64px 0 0; margin-top: 0; }
.site-footer a { color: rgba(246, 242, 228, 0.85); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--gold); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 0.93rem; }
.footer-about p { font-size: 0.93rem; margin-top: 14px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(246, 242, 228, 0.15); padding: 20px 0;
  font-size: 0.82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; }
.muted { color: var(--gray); }
.small { font-size: 0.88rem; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-ink); background: rgba(56, 142, 60, 0.1);
  border: 1px solid rgba(56, 142, 60, 0.25); padding: 3px 12px; border-radius: 999px;
}
.tag.veg::before { content: "●"; color: var(--green); margin-right: 6px; }

.card-pad { padding: 26px 28px; }

/* --------------------------------------------------------------------------
   Image placeholders — used until product / category photography is in place.
   Intentional brand tile: cream ground, gold ring, display-font monogram.
   -------------------------------------------------------------------------- */
.ph {
  width: 100%; height: 100%; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; text-align: center; position: relative;
  background: radial-gradient(120% 120% at 50% 0%, var(--ivory) 0%, var(--cream) 52%, var(--cream-deep) 100%);
}
.ph::after {
  content: ""; position: absolute; inset: 10px; border-radius: var(--radius);
  border: 1px solid rgba(245, 203, 75, 0.5); pointer-events: none;
}
.ph-mono {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(106, 26, 31, 0.10);
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1;
  letter-spacing: 0.04em; color: var(--maroon);
}
.ph-label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gray-soft);
}
.ph.lg { min-height: 380px; }
.ph.lg .ph-mono { width: 148px; height: 148px; font-size: 3.2rem; }
.ph.lg .ph-label { font-size: 0.74rem; }

/* Product pack shot inside a .split .frame — contain, never crop the label */
.frame.pack { background: #fff; }
.frame.pack img { object-fit: contain; padding: 36px; max-height: 440px; max-width: 78%; margin: 0 auto; }

/* Slim page hero (product pages carry their h1 in the split below) */
.page-hero.slim { padding: 26px 0 22px; }

/* Carton configuration lists */
.config-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.config-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px;
}
.config-list li:last-child { border-bottom: none; padding-bottom: 0; }
.config-list li::before { content: "▪"; color: var(--gold); font-size: 1.1rem; line-height: 1.2; }

/* Reveal on scroll (progressive enhancement; JS gates hiding via .reveal-ready
   and adds .in per element, with a timeout fallback) */
.reveal { transition: opacity 0.55s var(--ease-out-strong), transform 0.55s var(--ease-out-strong); }
html.reveal-ready .reveal { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ==========================================================================
   Round 2 — shared components (accent identities, packaging, forms, banners)
   ========================================================================== */

/* --- Press feedback --- */
.btn:active, .pack-pill:active, .chip:active, .nav-search-btn:active,
.back-pill:active, .thumb:active { transform: scale(0.97); transition-duration: 0.12s; }

/* --- Focus visibility (WCAG 2.4.7 / 1.4.11) --- */
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.topbar :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible,
.cat-hero :focus-visible, .hero :focus-visible, .cta-banner :focus-visible,
.btn-primary:focus-visible, .enq-send:focus-visible { outline-color: var(--gold); }

/* Per-category accent identity: set style="--accent:#..." on a wrapper.
   Components below fall back to brand maroon when no accent is set. */
.accent-eyebrow { color: var(--accent-ink, var(--accent, var(--maroon))); }
.accent-eyebrow::before { background: var(--accent, var(--gold)); }

/* --- Image hero / banner --- */
.hero-banner {
  position: relative; overflow: hidden; color: var(--cream);
  background: var(--maroon-ink);
}
.hero-banner .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.42;
}
.hero-banner .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(25,7,8,0.94) 25%, rgba(61,14,17,0.72) 55%, rgba(61,14,17,0.35) 100%);
}
.hero-banner .container { position: relative; z-index: 1; }

/* --- Interactive brand tiles --- */
.brand-tile { position: relative; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; overflow: hidden; }
.brand-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.brand-tile img { transition: transform 0.25s ease; }
.brand-tile:hover img { transform: scale(1.06); }
.brand-tile .brand-note {
  font-size: 0.8rem; color: var(--gray); text-align: center;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.brand-tile:hover .brand-note, .brand-tile:focus-within .brand-note { max-height: 90px; opacity: 1; margin-top: 8px; }
.brand-tile.featured {
  border: 2px solid var(--gold); background: linear-gradient(160deg, #fff 60%, rgba(245,203,75,0.18));
}
.brand-tile .flag {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--gold); color: var(--maroon-ink); border-radius: 999px; padding: 3px 10px;
}

/* --- Certification band (USP treatment) --- */
.cert-band { background: linear-gradient(120deg, var(--maroon-ink), var(--maroon)); }
.cert-lg {
  background: rgba(255, 253, 247, 0.06); border: 1px solid rgba(245, 203, 75, 0.35);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cert-lg:hover { transform: translateY(-4px); background: rgba(255, 253, 247, 0.12); border-color: var(--gold); }
.cert-lg img { height: 72px; width: auto; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.cert-lg b { color: #fff; font-size: 0.9rem; line-height: 1.3; }
.cert-lg small { color: rgba(246, 242, 228, 0.75); font-size: 0.75rem; }
.cert-lg .cert-note { font-size: 0.78rem; color: rgba(246, 242, 228, 0.85); }

/* --- Packaging capability showcase --- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pkg-card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent, var(--gold)); }
.pkg-card .pk-icon { color: var(--accent, var(--maroon)); }
.pkg-card b { font-size: 0.9rem; color: var(--ink); line-height: 1.25; }
.pkg-card .pkg-sizes {
  font-size: 0.78rem; font-weight: 700; color: var(--accent-ink, var(--accent, var(--maroon)));
  background: color-mix(in srgb, var(--accent, var(--gold)) 12%, transparent);
  border-radius: 999px; padding: 2px 12px;
}
.pkg-card small { font-size: 0.74rem; color: var(--gray-soft); }

/* --- Enquiry form --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--maroon-ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 203, 75, 0.25);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--gray-soft); }

/* --- Flagship (Mango Pulp) golden treatment --- */
.flagship-hero {
  background:
    radial-gradient(700px 380px at 85% 20%, rgba(232, 150, 30, 0.35), transparent 65%),
    linear-gradient(115deg, #3d1a06, #7a4a10 70%, #a86a1a);
}

/* --- Section divider flourish --- */
.flourish { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--gold); }
.flourish::before, .flourish::after { content: ""; height: 2px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* --- Round 3: skip link + nav search trigger --- */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--maroon-ink); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { inset-inline-start: 0; }
.nav-search-btn {
  border: 1.5px solid var(--line); background: var(--cream); color: var(--gray);
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.nav-search-btn:hover { border-color: var(--gold); color: var(--maroon); }

/* ==========================================================================
   Round 4 — ambient decor animation + 3D tilt foundation
   ========================================================================== */

/* Decor field: absolutely-positioned ingredient illustrations inside a
   position:relative section. Each .decor sets its own left/top/width and
   custom props via inline style: --dur (period), --delay, --drift (px). */
.decor-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.decor {
  position: absolute; width: 56px; height: auto; opacity: 0.9;
  animation: decor-float var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.decor.faint { opacity: 0.45; }
@keyframes decor-float {
  from { transform: translateY(0) rotate(var(--rot0, -6deg)); }
  to   { transform: translateY(var(--drift, -26px)) rotate(var(--rot1, 8deg)); }
}
/* Falling variant (flagship "mango rain"): travels down through the section */
.decor.fall {
  top: -12%;
  animation: decor-fall var(--dur, 13s) linear var(--delay, 0s) infinite;
}
@keyframes decor-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  100% { transform: translateY(130vh) rotate(160deg); opacity: 0; }
}
/* Gentle spin for round items (papad, lime) */
.decor.spin { animation: decor-spin var(--dur, 30s) linear infinite; }
@keyframes decor-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .decor, .decor.fall, .decor.spin { animation: none; opacity: 0.35; }
  .decor.fall { top: auto; }
}
@media (max-width: 720px) { .decor { width: 40px; } }

/* Story band (the "what is this" section on category pages) */
.story-band { position: relative; overflow: hidden; }
.story-band .story-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; text-align: center; }
.story-band .story-inner h2 { font-style: italic; }
.story-band .story-inner p { color: var(--gray); font-size: 1.06rem; margin-top: 16px; }

/* 3D tilt cards: JS sets --rx/--ry on pointermove (main.js). Layers can lift
   with .tilt-depth. Falls back to a flat card without JS. */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out, box-shadow 0.25s ease;
}
.tilt:hover { box-shadow: var(--shadow-lift); }
.tilt .tilt-depth { transform: translateZ(34px); }
.tilt .tilt-depth-2 { transform: translateZ(18px); }
@media (prefers-reduced-motion: reduce), (hover: none) {
  .tilt { transform: none !important; }
  .tilt .tilt-depth, .tilt .tilt-depth-2 { transform: none; }
}

/* --- Language switcher --- */
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: rgba(246, 242, 228, 0.75); padding: 2px 8px; border-radius: 6px;
}
.lang-switch a:hover { color: var(--gold); }
.lang-switch a.active { background: rgba(245, 203, 75, 0.2); color: var(--gold); }
/* RTL: keep decorative floats sane */
[dir="rtl"] .breadcrumbs span::before { content: "‹"; }

/* Photographic decor: grounded with a real shadow, slightly softened */
.decor-photo { filter: drop-shadow(0 12px 20px rgba(25, 15, 6, 0.28)); border-radius: 4px; }

/* --- Documentary video backgrounds (round 6) --- */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.92;
}
/* Film heroes: keep the footage bright — darkness lives only behind the
   text column, fading to almost-clear video on the right. */
.has-film .hero-scrim {
  background: linear-gradient(100deg,
    rgba(20, 6, 7, 0.90) 0%, rgba(20, 6, 7, 0.72) 34%,
    rgba(61, 14, 17, 0.34) 62%, rgba(61, 14, 17, 0.06) 100%);
}
.has-film::after { display: none; }
@media (max-width: 900px) {
  .has-film .hero-scrim {
    background: linear-gradient(100deg, rgba(20, 6, 7, 0.90) 0%, rgba(20, 6, 7, 0.6) 100%);
  }
}
@media (prefers-reduced-motion: reduce), (max-width: 720px) {
  .hero-video { display: none; }
}
.film-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.film-band video { display: block; width: 100%; height: auto; }
.film-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5);
  background: rgba(25, 15, 6, 0.55); color: #fff; font-size: 0.7rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.film-toggle:hover { background: rgba(25, 15, 6, 0.8); }
[dir="rtl"] .film-toggle { right: auto; left: 12px; }
@media (prefers-reduced-motion: reduce) { .film-toggle { display: none; } }
.claim-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.claim-chips span {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(245, 203, 75, 0.16); border: 1px solid rgba(245, 203, 75, 0.55);
  color: var(--gold); border-radius: 999px; padding: 7px 16px;
}

/* Mobile topbar: wrap instead of forcing horizontal page scroll */
@media (max-width: 640px) {
  .topbar .container { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .topbar-contacts { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
@media (max-width: 420px) {
  .topbar-contacts a:first-child { display: none; } /* email; phone + WhatsApp stay */
}

/* Back pill in breadcrumb rows */
.back-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 14px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(246, 242, 228, 0.35);
  color: var(--gold-soft) !important; font-weight: 700; font-size: 0.8rem;
}
.back-pill:hover { background: rgba(246, 242, 228, 0.12); }


/* RTL: mirror directional arrows */
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }

/* 18: pack chips without a photo look inert */
span.pack-pill { opacity: 0.6; border-style: dashed; }

/* 24: testimonial avatars (initials) so quote cards read finished */
.quote-card .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 25%, #fff);
  border: 2px solid var(--gold); color: var(--maroon-ink);
  font-family: var(--font-display); font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film-band video { display: none; }
}
/* Screen-reader-only text (table captions etc.) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Data numerals align in columns */
.spec-table td, .spec-table th, .stat b, .cat-card .count, .cat-tag,
.pack-pill, .pkg-sizes, .enq-count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Icon system — Phosphor Icons, regular weight (templates/_icons.html.j2)
   Every icon on the site is an inline SVG on a 256 viewBox, filled with
   currentColor, so icons take the colour of the text they sit beside.
   Appended block: nothing above is modified.
   ========================================================================== */
.icon { display: inline-block; vertical-align: -0.15em; flex: none; }

/* Icons inside flex controls (chips, pills, the enquiry FAB) take their spacing
   from the container's own `gap`; only these inline cases need nudging. */
.nav-search-btn .icon { margin-inline-end: 2px; }

/* Icon-only buttons centre their icon in the box; each keeps its aria-label. */
.nav-toggle .icon, .film-toggle .icon { vertical-align: middle; }

/* Directional arrows keep living inside <span class="arr">, so the existing
   `[dir="rtl"] .arr { transform: scaleX(-1) }` rule above still mirrors them. */

/* How-to-use steps: desktop only — they made mobile category pages too long */
@media (max-width: 720px) { .howto-section { display: none; } }

/* ---- Wide screens only (>=1600px): use the extra room; smaller screens
   are untouched — everything here is inside the media query. ---- */
@media (min-width: 1600px) {
  :root { --container: 1290px; }
  /* Dress the side margins: faint warm glows + a whisper of brand color so
     the edges read as designed breathing room, not unused space. */
  body {
    background:
      radial-gradient(46vw 60vh at -8vw 24vh, color-mix(in srgb, var(--gold) 7%, transparent), transparent 68%),
      radial-gradient(46vw 60vh at 108vw 72vh, color-mix(in srgb, var(--maroon) 5%, transparent), transparent 68%),
      var(--cream);
    background-attachment: fixed;
  }
  /* The airiest band on home: give the stat cards a soft tinted strip so the
     row stops floating on very wide displays. */
  .stats {
    position: relative; padding: 34px 26px; border-radius: var(--radius-lg);
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, var(--ivory)), var(--ivory));
    border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
    box-shadow: var(--shadow);
  }
}

/* Inline enquiry-form status */
.enq-status { margin-top: 14px; padding: 12px 18px; border-radius: var(--radius); font-size: .95rem; }
.enq-status.busy { background: var(--cream-deep); color: var(--gray); }
.enq-status.ok { background: color-mix(in srgb, #2e7d32 12%, var(--ivory)); color: #235c27; border: 1px solid color-mix(in srgb, #2e7d32 35%, var(--line)); }
.enq-status.err { background: color-mix(in srgb, var(--maroon) 10%, var(--ivory)); color: var(--maroon-ink); border: 1px solid color-mix(in srgb, var(--maroon) 30%, var(--line)); }

/* Enquiry form: dial-code + number pair */
.phone-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 10px; }
.phone-row select { min-width: 0; }
