/* ==========================================================
   Hulikadu Farmers Producer Company Ltd. - Olive green theme
   Mobile-first. Breakpoints: 640px, 900px, 1100px
   ========================================================== */

:root {
  --olive:        #556B2F;   /* primary */
  --olive-dark:   #3f5121;   /* hover / headings on light */
  --olive-deep:   #263015;   /* overlays, footer */
  --olive-light:  #8a9a5b;
  --olive-tint:   #eef1e1;   /* subtle fills */
  --gold:         #d9b44a;   /* small highlights on dark */
  --cream:        #fbfaf4;
  --white:        #ffffff;
  --text:         #2b2f22;
  --muted:        #5f6552;
  --border:       #dfe3cf;
  --whatsapp:     #25D366;
  --whatsapp-dk:  #1da851;
  --kharif:       #556B2F;   /* season colours on the harvest wheel */
  --rabi:         #b8891f;
  --summer:       #c0612f;

  --radius:       14px;
  --shadow:       0 6px 24px rgba(38, 48, 21, .10);
  --shadow-lg:    0 14px 38px rgba(38, 48, 21, .18);
  --header-h:     68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans Kannada', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-dark); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--olive-dark); }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font: 600 .95rem/1 'Poppins', sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: var(--white); color: var(--olive-dark); }
.btn-light:hover { background: var(--olive-tint); color: var(--olive-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dk); color: #fff; }
.btn-whatsapp i { font-size: 1.25rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--olive-dark); font-weight: 700; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.1rem; }
.brand-text small { font-size: .62rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.nav-toggle {
  background: none; border: 0; font-size: 1.5rem; color: var(--olive-dark); cursor: pointer; padding: .4rem .6rem;
}

.primary-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.primary-nav.open { max-height: 420px; }
.primary-nav ul { padding: .5rem 1rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.primary-nav a {
  display: block; padding: .7rem .9rem; border-radius: 10px;
  color: var(--text); font-weight: 500;
}
.primary-nav a:hover { background: var(--olive-tint); color: var(--olive-dark); }
.primary-nav a.nav-cta { background: var(--olive); color: #fff; text-align: center; margin-top: .3rem; }
.primary-nav a.nav-cta:hover { background: var(--olive-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  display: flex; align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(38, 48, 21, .92) 0%, rgba(63, 81, 33, .78) 55%, rgba(85, 107, 47, .55) 100%),
    url('../images/photo20.jpg') center / cover no-repeat;
}
.hero-inner { padding: 4rem 0 5rem; }
.hero-inner > * { max-width: 820px; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 7vw, 3.8rem); font-weight: 700; letter-spacing: -.01em; }
.tagline { font-size: clamp(1.05rem, 3vw, 1.4rem); font-weight: 300; max-width: 620px; color: #f1f3e4; }
.tagline span { color: var(--gold); margin: 0 .25em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.scroll-hint {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: .8; font-size: 1.3rem; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Stats ---------- */
.stats { background: var(--olive); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.8rem .8rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat-num { display: block; font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat-num small { font-size: .6em; font-weight: 600; }
.stat-label { display: block; margin-top: .35rem; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--olive-tint); }

.section-tag {
  display: inline-block; margin-bottom: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive);
}
.section-tag::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--olive); vertical-align: middle; margin-right: .6rem; }
.section-tag.light { color: var(--gold); }
.section-tag.light::before { background: var(--gold); }

h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 700; }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--olive-dark); }

.about-cards { display: grid; gap: 1rem; }
.about-cards li {
  display: flex; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--olive);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.about-cards i { font-size: 1.5rem; color: var(--olive); width: 2rem; text-align: center; }
.about-cards h3 { font-size: 1rem; margin: 0; }
.about-cards p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Cards (What we do) ---------- */
.card-grid { display: grid; gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--olive-light); }
.card h3 { font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem;
  border-radius: 16px; background: var(--olive-tint); color: var(--olive); font-size: 1.5rem;
  transition: background .25s, color .25s;
}
.card:hover .icon-badge { background: var(--olive); color: #fff; }

/* ---------- Products ---------- */
.product-grid { display: grid; gap: 1.4rem; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.4rem; background: var(--olive); color: #fff; }
.product-head i { font-size: 1.5rem; color: var(--gold); }
.product-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1.4rem; }
.chips li {
  padding: .4rem .95rem; border-radius: 999px; font-size: .9rem;
  background: var(--olive-tint); color: var(--olive-dark); border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.chips li:hover { background: var(--olive); color: #fff; border-color: var(--olive); }

/* ---------- Seasons wheel ---------- */
.seasons-grid { display: grid; gap: 2.5rem; align-items: center; }
.wheel-wrap { width: min(100%, 440px); margin-inline: auto; }
.wheel { width: 100%; height: auto; display: block; overflow: visible; }

.s-arc { fill: none; stroke-width: 10; stroke-linecap: round; opacity: .3; transition: opacity .3s; }
.s-arc.kharif { stroke: var(--kharif); }
.s-arc.rabi   { stroke: var(--rabi); }
.s-arc.summer { stroke: var(--summer); }
.wheel[data-season="kharif"] .s-arc.kharif,
.wheel[data-season="rabi"] .s-arc.rabi,
.wheel[data-season="summer"] .s-arc.summer { opacity: 1; }

.wm { cursor: pointer; outline: none; }
.wm path { fill: var(--white); stroke: var(--border); stroke-width: 1; transition: fill .2s; }
.wm:hover path { fill: #e3e8cc; }
.wm text {
  fill: var(--muted); font-size: 15px; font-weight: 500;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.wm.active text { fill: #fff; font-weight: 600; }
.wheel[data-season="kharif"] .wm.active path { fill: var(--kharif); }
.wheel[data-season="rabi"] .wm.active path   { fill: var(--rabi); }
.wheel[data-season="summer"] .wm.active path { fill: var(--summer); }
.wm:focus-visible path { stroke: var(--gold); stroke-width: 3; }

.hub { fill: var(--olive-deep); }
.wheel > text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.hub-name  { fill: var(--gold); font-size: 17px; font-weight: 600; }
.hub-kn    { fill: #fff; font-size: 22px; font-weight: 600; }
.hub-count { fill: #cfd5b8; font-size: 13px; }

.season-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; margin-top: 1.2rem; font-size: .85rem; }
.season-legend li { display: flex; align-items: center; gap: .35rem; }
.season-legend li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--kharif); }
.season-legend li.rabi::before   { background: var(--rabi); }
.season-legend li.summer::before { background: var(--summer); }
.season-legend small { color: var(--muted); }

.season-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: 1rem; }
.season-label span { letter-spacing: 0; margin-left: .3rem; }
.season-crops { display: grid; gap: .7rem; }
.season-crops li {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem;
  animation: cropIn .35s ease both;
}
.season-crops i {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 10px; background: var(--olive-tint); color: var(--olive); font-size: 1.1rem;
}
.season-crops span { display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; }
.season-crops small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.season-note { margin: 1rem 0 0; font-size: .82rem; font-style: italic; color: var(--muted); }
@keyframes cropIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- WhatsApp community ---------- */
.community { padding: 4.5rem 0; background: linear-gradient(135deg, #a9502a, var(--summer) 55%, #d98a4a); color: #fff; }
.community-grid { display: grid; gap: 2.5rem; align-items: center; }
.community h2 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.01em; }
.community-lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); max-width: 560px; margin-bottom: 1.8rem; }
.community .btn-light i { color: var(--whatsapp-dk); font-size: 1.3rem; }
.community-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 1.6rem 0 0; }
.community-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.community-links a:hover { color: var(--olive-deep); }

.wa-preview {
  width: min(100%, 360px); margin-inline: auto; border-radius: 18px; overflow: hidden;
  background: #efe7dc; box-shadow: var(--shadow-lg); color: var(--text);
}
.wa-preview-head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; background: #075e54; color: #fff; font-weight: 600; }
.wa-preview-head i { font-size: 1.3rem; }
.wa-bubble {
  position: relative; margin: 1.1rem; padding: .8rem 1rem 1.4rem; border-radius: 0 12px 12px 12px;
  background: #fff; font-size: .9rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.wa-bubble p { margin: 0 0 .4rem; }
.wa-bubble ul { list-style: disc; padding-left: 1.2rem; margin-bottom: .5rem; }
.wa-bubble time { position: absolute; right: .7rem; bottom: .35rem; font-size: .7rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: .7rem; }
.g-item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; background: var(--olive-light); box-shadow: var(--shadow);
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem;
  background: linear-gradient(to top, rgba(38, 48, 21, .9), transparent);
  color: #fff; font-size: .85rem; font-weight: 500;
}
.g-item.meal figcaption::before { content: '\f2e7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: .5rem; color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(20, 26, 10, .92); padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 960px; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: .8rem; font-weight: 500; }
.lb-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.lb-close:hover { background: var(--olive); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--olive-deep), var(--olive-dark) 60%, var(--olive)); color: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
.contact-lead { color: #e6ead3; max-width: 480px; margin-bottom: 1.6rem; }
.contact-card {
  font-style: normal; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.2rem;
}
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row i { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--olive-deep); }
.contact-row p { margin: 0; overflow-wrap: anywhere; }
.contact-row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-row a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-deep); color: #cfd5b8; padding: 2rem 0 5.5rem; text-align: center; font-size: .9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 600; margin-bottom: .5rem; }
.site-footer p { margin: 0 0 .3rem; }
.copy { opacity: .7; font-size: .8rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  display: flex; align-items: center; gap: .6rem;
  height: 60px; min-width: 60px; padding: 0 1rem; border-radius: 999px; justify-content: center;
  background: var(--whatsapp); color: #fff; font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  animation: pulse 2.2s infinite;
}
.wa-float:hover { background: var(--whatsapp-dk); color: #fff; }
.wa-tip { display: none; font-size: .9rem; font-weight: 600; }
@keyframes pulse {
  0%   { box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   >= 640px
   ========================================================= */
@media (min-width: 640px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
  .wa-tip { display: inline; }
  .season-crops { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   >= 900px
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .primary-nav { position: static; max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; }
  .primary-nav ul { flex-direction: row; align-items: center; padding: 0; gap: .2rem; }
  .primary-nav a.nav-cta { margin: 0 0 0 .6rem; padding: .6rem 1.3rem; border-radius: 999px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; }
  .stat:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, .15); }
  .stat:last-child { border-right: 0; }

  .about-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .seasons-grid { grid-template-columns: minmax(0, 440px) 1fr; gap: 4rem; }
  .community-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .community { padding: 6rem 0; }
  .section { padding: 6rem 0; }
}

/* =========================================================
   >= 1100px
   ========================================================= */
@media (min-width: 1100px) {
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-auto-rows: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
