/* ===================================================================
   KONKANAROMA — STYLESHEET
   Mobile-first. Every rule below is written for small screens first,
   then progressively enhanced at 600px / 900px / 1200px breakpoints.
   =================================================================== */

/* -------------------------------------------------------------
   1. FONTS
   Unbounded  -> display face (headlines, stamp, nav wordmark)
                 geometric + a little handmade-stamp character,
                 used sparingly so it stays a signature, not noise.
   Plus Jakarta Sans -> body/UI face, warm & highly readable.
   ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* -------------------------------------------------------------
   2. DESIGN TOKENS
   Palette pulled from the Konkan coast itself:
   laterite red soil, coconut-palm green, kokum fruit, rice cream.
   ------------------------------------------------------------- */
:root {
  /* Colour */
  --cream:        #FBF6ED;  /* base background, like washed rice flour */
  --cream-dark:   #F3ECDD;  /* alternate section background */
  --sand:         #E8DDC7;  /* dividers, card borders */
  --ink:          #22291F;  /* primary text, warm near-black */
  --ink-soft:     #52594B;  /* secondary text */
  --green-deep:   #2F4A34;  /* coconut palm, header/footer, dark sections */
  --green:        #3F6146;  /* mid green for links/accents on light bg */
  --terracotta:   #C1602B;  /* Konkan laterite soil — primary accent */
  --terracotta-dk:#A34E22;  /* hover/active state of terracotta */
  --kokum:        #7A2E2E;  /* kokum fruit maroon — rare, high-value accent */
  --white:        #FFFFFF;
  --whatsapp:     #25D366;  /* official WhatsApp green */
  --whatsapp-dk:  #1DA851;

  /* Type scale (fluid, mobile-first via clamp) */
  --fs-display: clamp(2.1rem, 7vw, 3.6rem);
  --fs-h2:      clamp(1.6rem, 5vw, 2.4rem);
  --fs-h3:      clamp(1.15rem, 3.6vw, 1.5rem);
  --fs-body:    clamp(1rem, 2.4vw, 1.05rem);
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta-dk);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: var(--green-deep);
  color: var(--cream);
}

.section-tint {
  background: var(--cream-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dk);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.section-dark .eyebrow { color: #E7B98C; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

h1, h2, h3, .display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.lede {
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-dark .lede { color: #D9E2D3; }

/* -------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dk); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--green-deep);
}
.section-dark .btn-outline { color: var(--cream); }
.btn-outline:hover { background: rgba(0,0,0,0.06); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dk); }

/* -------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deep);
}

.logo-img {
  width: 92px;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-tag {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.nav-links.open { max-height: 320px; }

.nav-links a {
  padding: 0.75rem 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--sand);
  color: var(--ink-soft);
}
.nav-links a.active,
.nav-links a:hover { color: var(--terracotta-dk); }
.nav-links a:last-child { border-bottom: none; }

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
}

.hero-copy h1 { margin-bottom: var(--space-sm); }
.hero-copy .lede { margin-bottom: var(--space-md); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------
   7. PURITY STAMP (signature element)
   A hand-stamped circular seal — the recurring motif of the brand.
   Reused in the hero, about page, and product cards.
   ------------------------------------------------------------- */
.purity-stamp {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  transform: rotate(-9deg);
  filter: drop-shadow(0 3px 4px rgba(34,41,31,0.15));
}
.purity-stamp .stamp-ring { fill: none; stroke: var(--kokum); stroke-width: 2; }
.purity-stamp .stamp-ring-outer { stroke-dasharray: 2 3; }
.purity-stamp text {
  font-family: 'Unbounded', sans-serif;
  fill: var(--kokum);
}
.purity-stamp .stamp-big { font-size: 15px; font-weight: 700; }
.purity-stamp .stamp-small { font-size: 6px; letter-spacing: 1.2px; font-weight: 600; }

.stamp-float {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
}

/* -------------------------------------------------------------
   8. "NO NASTIES" BADGES
   Always-legible chips (no hover-only content — mobile has no hover)
   ------------------------------------------------------------- */
.badge-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.badge-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.badge-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
}
.badge-icon svg { width: 20px; height: 20px; stroke: var(--green-deep); }

.badge-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.badge-card p { font-size: var(--fs-small); color: var(--ink-soft); }

/* -------------------------------------------------------------
   9. TRUST STRIP
   ------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.trust-item .num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--terracotta);
  display: block;
}
.trust-item .label {
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.section-dark .trust-item .label { color: #C9D4C1; }

/* -------------------------------------------------------------
   10. WAVE DIVIDER — coastline motif between sections
   ------------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* -------------------------------------------------------------
   11. FRESHNESS / PROCESS TIMELINE
   Genuinely sequential (harvest -> kitchen), so numbering here
   is meaningful rather than decorative.
   ------------------------------------------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding-bottom: var(--space-lg);
  position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 21px;
  width: 2px;
  height: calc(100% - 44px);
  background: repeating-linear-gradient(to bottom, var(--sand) 0 6px, transparent 6px 12px);
}

.timeline-content h3 { margin-bottom: 0.3rem; }
.timeline-content p { color: var(--ink-soft); }

/* -------------------------------------------------------------
   12. PRODUCT CARDS
   ------------------------------------------------------------- */

/* Category toggle — switches between the two product groups */
.category-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.category-btn {
  background: var(--white);
  border: 2px solid var(--sand);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.category-btn:hover { border-color: var(--terracotta); color: var(--terracotta-dk); }
.category-btn.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
}

/* Product grids are toggled by main.js adding/removing .is-hidden.
   Hidden with display:none so no empty gap is left in the layout,
   and content still exists in the DOM (no extra network requests
   needed when switching tabs). */
.product-grid.is-hidden { display: none; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.product-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.product-body h3 { color: var(--green-deep); }
.product-body p { color: var(--ink-soft); font-size: var(--fs-small); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--green-deep);
  border: 1px solid var(--sand);
}

/* -------------------------------------------------------------
   13. REVEAL ON SCROLL (progressive enhancement)
   Elements start hidden only if JS runs & motion is allowed;
   .js-ready class is added by main.js, so content is never
   trapped invisible if JS fails to load.
   ------------------------------------------------------------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(251,246,237,0.15);
}

.footer-brand .logo { color: var(--cream); }
.footer-logo-link {
  width: fit-content;
}
.footer-logo-img {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-brand p {
  margin-top: 0.75rem;
  color: #C9D4C1;
  max-width: 40ch;
  font-size: var(--fs-small);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.footer-col h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}
.footer-col a, .footer-col p {
  display: block;
  color: #C9D4C1;
  font-size: var(--fs-small);
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: var(--space-md);
  font-size: 0.78rem;
  color: #A9BBA1;
}

/* -------------------------------------------------------------
   15. FLOATING WHATSAPP BUTTON — present on every page
   ------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.8s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--whatsapp-dk); }

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-ring 2.8s ease-out infinite;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::before { animation: none; }
}

/* -------------------------------------------------------------
   16. REACH-US PAGE SPECIFICS
   ------------------------------------------------------------- */
.reach-hero {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}
.reach-hero .purity-stamp { margin: 0 auto var(--space-md); position: static; transform: rotate(-6deg); }

.wa-panel {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.wa-panel .wa-icon-lg {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
}
.wa-panel .wa-icon-lg svg { width: 32px; height: 32px; }
.wa-panel h2 { margin-bottom: 0.6rem; }
.wa-panel p { color: var(--ink-soft); margin-bottom: var(--space-md); }

.reassure-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 420px;
  margin: var(--space-lg) auto 0;
  text-align: left;
}
.reassure-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.reassure-list svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--green); margin-top: 2px; }

/* -------------------------------------------------------------
   17. ABOUT PAGE SPECIFICS
   ------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.value-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--sand);
}
.value-card .num {
  font-family: 'Unbounded', sans-serif;
  color: var(--sand);
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  aspect-ratio: 5/4;
  object-fit: cover;
}

/* -------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */
@media (max-width: 720px) {
  .logo-img { width: 72px; }
  .footer-logo-img { width: 118px; }
}

@media (min-width: 600px) {
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
  }
  .nav-links a { border-bottom: none; padding: 0.4rem 0; position: relative; }
  .nav-links a.active::after,
  .nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: var(--terracotta);
    border-radius: 2px;
  }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .footer-top { flex-direction: row; justify-content: space-between; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); flex-grow: 1; max-width: 560px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
}

@media (min-width: 1200px) {
  .container { padding: 0 2rem; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}
