/* =========================================================
   NEELAMALAI FARMERS PRODUCER COMPANY LIMITED
   Global Stylesheet
   ========================================================= */

:root {
  --green-900: #14402e;
  --green-800: #1b5e3f;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f3dc;
  --gold: #cf9d33;
  --gold-dark: #b3841f;
  --cream: #faf8f3;
  --sand: #f2ece1;
  --ink: #1d2b25;
  --muted: #5c6b64;
  --line: #e3ddd0;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(20, 64, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 64, 46, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--green-900); }

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

.section { padding: 72px 0; }
.section--tint { background: var(--sand); }
.section--green { background: var(--green-900); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .22s ease;
}
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: #3a2c05; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--green-800); }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn--outline:hover { background: var(--green-700); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: .98rem; color: var(--green-900); letter-spacing: .01em; }
.brand__sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--ink);
}
.nav__links a:hover, .nav__links a.active { background: var(--green-100); color: var(--green-800); }
.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; height: 2.5px; width: 24px; background: var(--green-900); border-radius: 2px; transition: .3s; margin: 0 auto; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(20,64,46,.72), rgba(20,64,46,.62)),
    url("../img/hero-plantation.jpg") center/cover no-repeat;
  color: #fff;
  padding: 96px 0 104px;
}
.hero__inner { max-width: 720px; }
.hero .eyebrow { color: var(--green-100); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 18px; }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: 50px; font-size: .82rem; margin-bottom: 22px;
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.section--green .stat__label { color: rgba(255,255,255,.8); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Product cards ---------- */
.product { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product__media { height: 190px; display:grid; place-items:center; background: var(--green-100); overflow: hidden; }
.product__media svg { width: 84px; height: 84px; }
.product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__body { padding: 22px 24px 26px; }
.product__body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.product__body p { color: var(--muted); font-size: .95rem; }
.tag { display:inline-block; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; font-weight:600; color: var(--gold-dark); background: #fbf3dd; padding: 4px 10px; border-radius: 50px; margin-bottom: 12px; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split__media img, .split__media svg { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; margin-top: 18px; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-weight: 700;
  display: grid; place-items: center; font-size: .8rem;
}

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; padding: 62px 0; text-align: center;
}
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.breadcrumb { margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.85); }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose .updated { font-size: .9rem; color: var(--muted); font-style: italic; margin-bottom: 26px; }
.callout {
  background: var(--green-100); border-left: 4px solid var(--green-600);
  padding: 16px 20px; border-radius: var(--radius-sm); margin: 20px 0; color: var(--green-900);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.info-list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list h4 { font-size: 1rem; margin-bottom: 3px; }
.info-list p { color: var(--muted); font-size: .95rem; }

.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--cream); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green-500); border-color: transparent; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Contact form success (animated green tick) ---------- */
.form-success { text-align: center; padding: 14px 6px 6px; }
.tick { width: 88px; height: 88px; display: block; margin: 6px auto 18px; }
.tick.animate { animation: tick-pop .35s ease; }
.tick__circle { stroke: var(--green-600); stroke-width: 3; fill: var(--green-100); stroke-dasharray: 151; stroke-dashoffset: 151; }
.tick__check { stroke: var(--green-700); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.tick.animate .tick__circle { animation: tick-circle .5s ease forwards; }
.tick.animate .tick__check { animation: tick-check .35s .45s ease forwards; }
.form-success h3 { color: var(--green-800); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: .95rem; max-width: 360px; margin: 0 auto; }
.form-again { margin-top: 18px; background: none; border: none; color: var(--green-700); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.form-again:hover { color: var(--gold-dark); }
@keyframes tick-circle { to { stroke-dashoffset: 0; } }
@keyframes tick-check { to { stroke-dashoffset: 0; } }
@keyframes tick-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.map-embed { border-radius: var(--radius); overflow: hidden; border:1px solid var(--line); margin-top: 30px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Placeholder highlight ---------- */
.ph { background: #fff4d6; border-bottom: 1px dashed var(--gold-dark); padding: 0 3px; border-radius: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color:#fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { color:#fff; font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 26px; max-width: 560px; margin-left:auto; margin-right:auto; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255,255,255,.82); padding: 62px 0 0; font-size: .93rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer__brand { display:flex; align-items:center; gap: 12px; margin-bottom: 16px; }
.footer__brand .brand__name { color:#fff; }
.footer__about p { margin-bottom: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer__contact li { display:flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex:none; margin-top: 3px; color: var(--gold); }
.social { display:flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display:grid; place-items:center; }
.social a:hover { background: var(--gold); }
.social svg { width: 18px; height: 18px; }
.footer__cin {
  background: rgba(0,0,0,.22); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 18px;
  font-size: .82rem; line-height: 1.5;
}
.footer__cin strong { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .85rem;
}
.footer__bottom nav { display:flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Visible by default; only hidden when JS marks the document ready. */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(24px); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    gap: 2px; transform: translateY(-140%); transition: transform .32s ease; box-shadow: var(--shadow-md);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 13px 12px; border-radius: 8px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .cta-band, .form { padding: 28px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .brand__name { font-size: .86rem; }
}
