/* ============================================================
   PalmTrack — marketing site styles
   Shared by index.html (English) and te.html (Telugu).
   Design: earthy oil-palm greens + warm soil browns, bright
   CTA accent, generous white space. Mobile-first.
   ============================================================ */

/* ---------- Anek Telugu (self-hosted, Telugu page) ---------- */
@font-face {
  font-family: "Anek Telugu"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anek-telugu-400.ttf") format("truetype");
}
@font-face {
  font-family: "Anek Telugu"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/anek-telugu-500.ttf") format("truetype");
}
@font-face {
  font-family: "Anek Telugu"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/anek-telugu-700.ttf") format("truetype");
}
@font-face {
  font-family: "Anek Telugu"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/anek-telugu-800.ttf") format("truetype");
}

:root {
  /* Palette */
  --palm-900: #17321f;   /* deepest palm green — text on light */
  --palm-800: #1f4a2c;   /* dark green — headers, footer */
  --palm-700: #2b6b3f;   /* primary green */
  --palm-600: #37884f;
  --palm-100: #e6f1e8;   /* pale green wash */
  --palm-50:  #f2f8f3;

  --soil-800: #4a3524;   /* warm soil brown — accents */
  --soil-500: #8a6a4a;
  --soil-100: #efe6dc;

  --accent:      #f2a900; /* bright CTA amber — "join the pilot" energy */
  --accent-dark: #d99400;

  --whatsapp:      #25d366;
  --whatsapp-dark: #1da851;

  --ink:      #1a1a17;    /* body text */
  --ink-soft: #4b4f49;    /* secondary text */
  --line:     #dfe4de;    /* hairlines */
  --white:    #ffffff;
  --cream:    #faf8f3;    /* page background */

  /* health map colors */
  --h-healthy: #37884f;
  --h-watch:   #e8b23a;
  --h-sick:    #d9663a;
  --h-dead:    #7a3b2e;

  /* Type + rhythm */
  --font: "Segoe UI", "Noto Sans", "Noto Sans Telugu", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(23, 50, 31, .08);
  --shadow-md: 0 10px 30px rgba(23, 50, 31, .12);
  --shadow-lg: 0 24px 60px rgba(23, 50, 31, .18);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* nothing may be wider than the screen */
img, svg, video, .phone, .map-grid { max-width: 100%; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; color: var(--palm-900); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
p  { margin: 0 0 1rem; }
h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }
/* Telugu: Anek Telugu font, longer words, no negative tracking, allow wrapping */
.lang-te, .lang-te body { font-family: "Anek Telugu", "Noto Sans Telugu", var(--font); }
.lang-te { letter-spacing: normal; }
.lang-te h1, .lang-te h2, .lang-te h3 { font-family: "Anek Telugu", "Noto Sans Telugu", var(--font); letter-spacing: 0; line-height: 1.3; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--palm-50); }
.section--soil { background: var(--soil-100); }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--palm-700); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 52px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--call { background: var(--palm-700); color: #fff; }
.btn--call:hover { background: var(--palm-800); }
.btn--email { background: #fff; color: var(--palm-800); border-color: var(--line); }
.btn--email:hover { border-color: var(--palm-600); }
.btn--accent { background: var(--accent); color: #3a2a00; }
.btn--accent:hover { background: var(--accent-dark); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.center .cta-group { justify-content: center; }
.cta-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
  /* readable from the very top: subtle dark palm backdrop under white text */
  background: rgba(15, 40, 22, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  color: var(--palm-900);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__divider { width: 1px; height: 24px; background: currentColor; opacity: .3; flex: none; }
.brand__sub { font-size: .7rem; line-height: 1.2; opacity: .85; max-width: 88px; font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* language toggle */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .9rem; font-weight: 700; }
.lang-switch a {
  text-decoration: none; padding: 6px 10px; border-radius: 999px; opacity: .8;
  transition: background .15s, opacity .15s; color: inherit;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: rgba(255,255,255,.18); opacity: 1; }
.scrolled .lang-switch a[aria-current="true"] { background: var(--palm-100); color: var(--palm-800); }
.lang-switch .sep { opacity: .4; }

.header-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; background: var(--whatsapp);
  color: #fff; text-decoration: none; box-shadow: var(--shadow-sm);
}
.header-wa svg { width: 22px; height: 22px; }
.header-cta { padding: 10px 16px; min-height: 44px; white-space: nowrap; }

/* --- responsive header: shed non-essentials so it never overflows --- */
@media (max-width: 560px) {
  .brand__divider, .brand__sub { display: none; }   /* keep logo + name only */
  .header-cta { display: none; }                     /* WhatsApp icon carries the CTA here */
  .lang-switch a { padding: 6px 8px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 1.05rem; }
  .header-actions { gap: 6px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff;
  /* real oil-palm plantation photo behind a dark green wash so text stays readable */
  background:
    linear-gradient(180deg, rgba(15,40,22,.72), rgba(15,40,22,.86)),
    url("img/andhra-palm-plantation.jpg") center/cover no-repeat,
    radial-gradient(120% 90% at 80% 10%, #2f6b3f 0%, #17321f 70%);
  background-attachment: scroll;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding: clamp(90px, 16vh, 150px) 0 clamp(56px, 9vw, 90px);
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.hero .cta-note { color: rgba(255,255,255,.75); }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ============================================================
   PHONE MOCKUP (CSS/SVG, no images required)
   ============================================================ */
.phone {
  width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 300 / 620;
  background: #0d0f0d; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0d0f0d; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: var(--palm-50); display: flex; flex-direction: column;
}
.phone__bar {
  background: var(--palm-800); color: #fff; padding: 26px 14px 12px;
  font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px;
}
.phone__body { padding: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }

/* generic mini-card used inside mockups */
.mini-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 10px 12px; }
.mini-photo {
  height: 74px; border-radius: 10px;
  background: url("img/plantation-aerial.jpg") center/cover no-repeat, linear-gradient(135deg, #3f7a4a, #7aa060);
}
.mini-row { display: flex; align-items: center; gap: 8px; }
.pill { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; }
.pill--healthy { background: var(--h-healthy); }
.pill--watch { background: var(--h-watch); color: #4a3a00; }
.pill--sick { background: var(--h-sick); }
.pill--dead { background: var(--h-dead); }
.mini-line { height: 8px; border-radius: 6px; background: #e4e9e3; }
.mini-line.short { width: 55%; }
.mini-meta { font-size: .72rem; color: var(--ink-soft); }

/* health-map grid mockup */
.map-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.map-grid span { aspect-ratio: 1; border-radius: 4px; background: var(--h-healthy); }
.map-grid span.w { background: var(--h-watch); }
.map-grid span.s { background: var(--h-sick); }
.map-grid span.d { background: var(--h-dead); }

/* whatsapp-style chat mockup */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: .82rem; line-height: 1.4; }
.bubble--in  { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.bubble--out { background: #d8f5d0; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .who { display: block; font-size: .66rem; font-weight: 700; color: var(--palm-700); margin-bottom: 2px; }

/* per-tree vertical timeline mockup */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.tl-item { position: relative; margin-bottom: 16px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-dot.healthy { background: var(--h-healthy); }
.tl-dot.watch   { background: var(--h-watch); }
.tl-dot.sick    { background: var(--h-sick); }
.tl-date { font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.tl-title { font-weight: 700; color: var(--palm-900); font-size: .92rem; margin: 1px 0 2px; }
.tl-note { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* fertigation schedule mockup */
.sched-row { display: flex; align-items: center; gap: 10px; }
.sched-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.sched-dot.done { background: var(--h-healthy); }

/* ============================================================
   PROBLEM cards
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--palm-100); color: var(--palm-700); margin-bottom: 14px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--accent { background: #fdf1d6; color: var(--accent-dark); }

/* ---------- how it works (numbered steps) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--palm-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}

/* ---------- feature alternating rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  padding: 26px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feature-row.reverse .feature-row__media { order: 2; }
}
.feature-row__media {
  background: linear-gradient(135deg, var(--palm-100), var(--soil-100));
  border-radius: var(--radius-lg); min-height: 220px; padding: 22px;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* real photo backdrop for the map/health feature */
.feature-row__media.photo {
  background: url("img/plantation-aerial.jpg") center/cover no-repeat;
  position: relative;
}
.feature-row__media.photo::before {
  content: ""; position: absolute; inset: 0; background: rgba(15,40,22,.35);
}
.feature-row__media.photo > * { position: relative; z-index: 1; }
.feature-row h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--palm-600);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/70% no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/70% no-repeat;
}

/* ---------- fertigation section ---------- */
.fert {
  background: linear-gradient(160deg, var(--palm-800), var(--palm-900));
  color: #fff;
}
.fert h2, .fert h3 { color: #fff; }
.fert .eyebrow { color: #cfe8d5; }
.fert .lead { color: rgba(255,255,255,.88); }
.fert .card {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff;
  box-shadow: none;
}
.fert .card p { color: rgba(255,255,255,.85); }
.fert .icon-badge { background: rgba(255,255,255,.12); color: #ffe3a3; }
/* the phone mockup here is a WHITE card inside the dark section — its text must be dark */
.fert .phone .mini-card,
.fert .phone .mini-card strong { color: var(--palm-900); }
.fert .phone .mini-card .mini-meta { color: var(--ink-soft); }

/* ---------- advice loop callout ---------- */
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--palm-600);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.callout .big { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; color: var(--palm-900); }

/* ---------- who it's for ---------- */
.audience {
  background: linear-gradient(135deg, var(--soil-100), var(--palm-100));
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); text-align: center;
}

/* ---------- final CTA ---------- */
.final-cta {
  background: radial-gradient(120% 120% at 50% 0%, var(--palm-700), var(--palm-900));
  color: #fff; text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lead { color: rgba(255,255,255,.9); }

/* ---------- waitlist form (final CTA) ---------- */
.waitlist {
  max-width: 460px; margin: 30px auto 0; text-align: left;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(4px);
}
.waitlist .field { margin-bottom: 12px; }
.waitlist label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.waitlist input {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.95); color: var(--ink);
}
.waitlist input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.waitlist .btn { width: 100%; margin-top: 4px; }
/* honeypot — hidden from humans, catches bots */
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 700; font-size: .95rem; min-height: 1.2em; color: #fff; }
.form-status.ok  { color: #b7f2c0; }
.form-status.err { color: #ffd7c2; }
.form-or { margin: 22px 0 0; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- footer ---------- */
.site-footer { background: var(--palm-900); color: rgba(255,255,255,.82); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand__name { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-attr { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-attr a { font-weight: 700; color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem; color: rgba(255,255,255,.6);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------- floating whatsapp ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); text-decoration: none;
  transform: translateY(90px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.fab.show { transform: translateY(0); opacity: 1; }
.fab:hover { background: var(--whatsapp-dark); }
.fab svg { width: 30px; height: 30px; }

/* ---------- misc ---------- */
.placeholder-note {
  /* clearly-marked spot for swapping in real photos later */
  font-size: .72rem; color: var(--ink-soft); opacity: .7; margin-top: 8px; font-style: italic;
}
.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;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
