/* ============================================================
   TOKENS
============================================================ */
:root {
  --brand:#b89b5e; --brand-dark:#8a6f38; --brand-light:#d4b87a;
  --ink:#1a1a1a; --muted:#5a6070;
  --surface:#faf7f2; --surface-card:#ffffff;
  --border:color-mix(in oklab,var(--brand) 22%, transparent);
  --border-strong:color-mix(in oklab,var(--brand) 32%, transparent);
  --ring:0 0 0 3px color-mix(in oklab,var(--brand) 35%, transparent);
  --radius:14px; --radius-sm:10px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ============================================================
   SCROLL PROGRESS
============================================================ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light));
  z-index: 200;
}

/* ============================================================
   NAVBAR
============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
/* Once the page scrolls, the header firms up and lifts off the content */
.topbar.scrolled {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 6px 24px rgba(138,111,56,.10);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
  transition: min-height .25s ease;
}
.topbar.scrolled .nav { min-height: 62px; }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: clamp(16px, 2.3vw, 20px);
  letter-spacing: -0.01em;
  color: var(--ink); flex-shrink: 0;
}
.brand img { width: auto; height: 42px; transition: height .25s ease; }
.topbar.scrolled .brand img { height: 34px; }

.menu { display: flex; gap: 2px; align-items: center; }
.menu a {
  position: relative;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .2s;
}
/* Gold underline grows in on hover and marks the section in view */
.menu a:not(.cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transition: transform .25s ease;
}
.menu a:not(.cta):hover { color: var(--brand-dark); }
.menu a:not(.cta):hover::after,
.menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu a[aria-current="true"] { color: var(--brand-dark); }
.menu a:focus-visible { outline: none; box-shadow: var(--ring); }

.menu .cta {
  margin-left: 10px;
  background: var(--brand-dark); color: #fff;
  border-radius: 999px; padding: 10px 22px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(138,111,56,.28);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.menu .cta:hover {
  background: color-mix(in oklab, var(--brand-dark) 85%, #000);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(138,111,56,.34);
}

/* Hamburger: three bars that fold into an X when the menu is open */
.menu-toggle {
  display: none; position: relative; flex-shrink: 0;
  width: 44px; height: 44px; cursor: pointer;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-card);
  transition: background .2s;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  border-radius: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19.5px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }
.menu-toggle:hover { background: color-mix(in oklab, var(--brand) 10%, var(--surface-card)); }
.menu-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

/* Mobile nav: a panel that drops down under the header */
@media (max-width: 720px) {
  .nav, .topbar.scrolled .nav { min-height: 64px; }
  .brand img, .topbar.scrolled .brand img { height: 36px; }
  .menu-toggle { display: inline-block; }
  .menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1.5px solid var(--border-strong);
    padding: 8px 20px 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 99;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 15px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .menu a:not(.cta)::after { display: none; }
  .menu a[aria-current="true"] { font-weight: 600; }
  .menu .cta { margin: 18px 0 0; padding: 14px; text-align: center; border-radius: 999px; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .nav, .brand img, .menu, .menu a::after, .menu-toggle span { transition: none; }
}
/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative; color: #fff;
  min-height: clamp(420px, 70vh, 600px);
  display: flex; align-items: center;
  background:
    linear-gradient(160deg,
      rgba(26,18,8,.52) 0%,
      rgba(50,32,10,.35) 50%,
      rgba(184,155,94,.15) 100%),
    url('../hero-rice.jpg') center/cover no-repeat;
}
@supports (background: image-set(url('x.webp') type('image/webp'))) {
  .hero {
    background:
      linear-gradient(160deg,
        rgba(26,18,8,.32) 0%,
        rgba(50,32,10,.18) 50%,
        rgba(184,155,94,.08) 100%),
      image-set(
        url('../hero-rice.webp') type('image/webp'),
        url('../hero-rice.jpg') type('image/jpeg')
      ) center/cover no-repeat;
  }
}
@media (max-width: 640px) {
  .hero {
    min-height: clamp(380px, 75vh, 520px);
    background:
      linear-gradient(160deg,
        rgba(26,18,8,.35) 0%,
        rgba(50,32,10,.2) 55%,
        rgba(184,155,94,.08) 100%),
      url('../hero-rice.jpg') center/cover no-repeat;
    background:
      linear-gradient(160deg,
        rgba(26,18,8,.35) 0%,
        rgba(50,32,10,.2) 55%,
        rgba(184,155,94,.08) 100%),
      image-set(
        url('../hero-rice.webp') type('image/webp'),
        url('../hero-rice.jpg') type('image/jpeg')
      ) center/cover no-repeat;
  }
}
.hero .container { padding-block: clamp(48px,8vw,88px); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  text-align: left;
  text-shadow: 0 2px 18px rgba(26,18,8,.45), 0 1px 2px rgba(26,18,8,.3);
}
/* Two set lines on wider screens; on phones the words wrap naturally */
.hero h1 span { display: block; white-space: nowrap; }
@media (max-width: 640px) {
  .hero h1 { text-wrap: balance; }
  .hero h1 span { display: inline; white-space: normal; }
}
/* Intro set off by a light-gold rule, in a regular weight that holds up over the photo */
.hero p {
  max-width: 46ch;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--brand-light);
  text-align: left;
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(26,18,8,.5);
}
/* Intro on two set lines on wider screens; it wraps naturally below that */
@media (min-width: 761px) {
  .hero p { max-width: none; }
  .hero p span { display: block; white-space: nowrap; }
}
.hero { color: #fff; }
/* Soft shade behind the text side only, so the copy reads over the bright wheat */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26,18,8,.15) 0%, rgba(26,18,8,.07) 40%, rgba(26,18,8,0) 70%);
}
.hero .container { position: relative; }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(26,18,8,.04) 0%, rgba(26,18,8,.12) 100%); }
}
.chip {
  background: rgba(255,255,255,.14); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.32);
  padding: 7px 14px; border-radius: 999px;
  font-size: clamp(12px,1.5vw,14px); white-space: nowrap;
}

/* ============================================================
   SECTIONS
============================================================ */
section { padding: clamp(40px,6vw,72px) 0; background: var(--surface); }
section:nth-of-type(even) { background: var(--surface); }

h2 {
  color: var(--brand);
  font-size: clamp(20px, 3.2vw, 28px);
  margin-bottom: 16px; line-height: 1.2;
}
.lead { color: var(--muted); max-width: 70ch; font-size: clamp(14px,1.8vw,16px); }

/* ============================================================
   ABOUT
============================================================ */
#about p {
  color: var(--muted); font-size: clamp(14px,1.8vw,16px);
  line-height: 1.8; margin-bottom: 14px;
}
#about p:last-child { margin-bottom: 0; }

/* Product Category Box */
.product-category-box {
  background: color-mix(in oklab, var(--brand) 6%, #fff);
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 4px 24px rgba(184,155,94,.08);
}
.product-category-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin-block: 24px;
}

/* ============================================================
   PRODUCT TABS
============================================================ */
.category-tabs-modern {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px; justify-content: center;
}
.category-tab-btn {
  padding: 10px 18px;
  border: 2px solid var(--border-strong);
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600;
  font-size: clamp(12px,1.5vw,14px);
  transition: all .25s ease; color: var(--ink);
  white-space: nowrap;
  font-family: inherit;
  /* Touch-friendly tap target */
  min-height: 44px;
}
.category-tab-btn:hover {
  border-color: var(--brand);
  background: color-mix(in oklab,var(--brand) 8%, transparent);
  transform: translateY(-2px);
}
.category-tab-btn.active {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(184,155,94,.3);
}
.category-tab-btn:focus-visible { outline: var(--ring); }

/* Scrollable tabs on very small screens */
@media (max-width: 480px) {
  .category-tabs-modern {
    flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs-modern::-webkit-scrollbar { display: none; }
  .category-tab-btn { flex-shrink: 0; }
}

.tab-panels { position: relative; min-height: 200px; }
.tab-panel { display: none; animation: fadeInPanel .35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeInPanel {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ============================================================
   BRAND CARDS
============================================================ */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}
.brands-grid .brand-card {
  flex: 0 1 180px;
  min-width: 150px;
}
@media (max-width: 400px) {
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.brand-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 2px 6px rgba(184,155,94,.06);
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(184,155,94,.15);
  border-color: var(--brand);
}
.brand-image {
  width: 100%; height: clamp(120px,18vw,180px);
  object-fit: cover; background: var(--surface);
}
.brand-card h4 {
  padding: 12px 14px 4px;
  font-size: clamp(14px,1.8vw,17px);
  color: var(--ink); line-height: 1.3;
}
.brand-card p {
  padding: 0 14px 14px;
  font-size: clamp(11px,1.4vw,13px);
  color: var(--muted);
}

/* ============================================================
   DISTRIBUTION
============================================================ */
.strip {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; align-items: start;
}
@media (min-width: 880px) { .strip { grid-template-columns: 1.2fr 1fr; } }

#distribution p { color: var(--muted); font-size: clamp(14px,1.8vw,16px); line-height: 1.8; }
#distribution ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
#distribution li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: clamp(14px,1.8vw,15px); color: var(--ink);
}
#distribution li::before {
  content: ''; display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand);
  margin-top: 8px; flex-shrink: 0;
}

/* ============================================================
   CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr));
  gap: 16px;
}
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  padding: clamp(16px,3vw,24px);
  background: var(--surface-card);
  box-shadow: 0 2px 8px rgba(184,155,94,.05);
}
.panel h3 {
  font-size: clamp(16px,2vw,18px);
  margin-bottom: 10px; color: var(--ink);
}
.panel address { font-style: normal; color: var(--muted); font-size: clamp(13px,1.6vw,15px); line-height: 1.8; }
.panel p { color: var(--muted); font-size: clamp(13px,1.6vw,15px); line-height: 1.7; margin-bottom: 6px; }
.panel p:last-child { margin-bottom: 0; }
.panel a { color: var(--brand); }
/* Make phone/email tappable on touch devices */
.panel a[href^="tel"],
.panel a[href^="mailto"] { display: inline-block; padding: 2px 0; }

.btn {
  display: inline-block; background: var(--brand);
  color: #fff !important; font-weight: 600;
  text-decoration: none; padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 14px; margin-top: 12px;
  transition: box-shadow .25s, filter .25s;
  /* Touch-friendly */
  min-height: 44px; display: inline-flex; align-items: center;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(184,155,94,.35); }
.btn:focus-visible { outline: var(--ring); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
}
.footer-inner {
  padding-block: 20px;
  display: flex; align-items: center; justify-content: center;
}
.footer-copy {
  font-size: 13px; color: var(--muted);
  letter-spacing: .02em; text-align: center;
}

/* ============================================================
   ANIMATIONS
============================================================ */
.progress { position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--brand),color-mix(in oklab,var(--brand) 75%,#000 0%));z-index:90 }
.js .reveal { opacity:0; transform:translateY(14px); filter:blur(4px); }
.js .reveal.in { opacity:1; transform:none; filter:none; transition:opacity .35s ease, transform .35s ease, filter .35s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity:1; transform:none; filter:none; }
  .js .reveal.in { transition:none; }
}

/* ============================================================
   TABLET TWEAKS (768px – 1024px)
============================================================ */
@media (min-width:721px) and (max-width:1024px) {
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .category-tab-btn { padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
   LARGE DESKTOP (1280px+)
============================================================ */
@media (min-width:1280px) {
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
}

/* ============================================================
   WHATSAPP
============================================================ */
.btn-whatsapp { gap: 8px; background: #128c7e; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(18,140,126,.35); }

.wa-float {
  position: fixed; z-index: 150;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0,0,0,.26); }
.wa-float:focus-visible { outline: none; box-shadow: var(--ring), 0 6px 20px rgba(0,0,0,.2); }
/* Keep the floating button from covering the footer text on phones */
@media (max-width: 720px) { .footer-inner { padding-bottom: 88px; } }
