/* Tithal Farmers Producer Company Limited — Design System */
:root {
  --green-deep: #1b4332;
  --green-leaf: #2d6a4f;
  --green-soft: #52b788;
  --beige: #f6f1e7;
  --beige-warm: #efe6d2;
  --earth: #8a6a3b;
  --ink: #1a1a1a;
  --muted: #5b5b5b;
  --line: #e6dfcf;
  --white: #ffffff;
  --shadow: 0 10px 30px -12px rgba(27,67,50,.25);
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--beige);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--green-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--green-leaf); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Top statutory bar */
.statbar { background: var(--green-deep); color: #e8f3ec; font-size: .82rem; }
.statbar .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; }
.statbar span { display: inline-flex; align-items: center; gap: .4rem; }
.statbar strong { color: #fff; letter-spacing: .3px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--green-deep); font-size: .98rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a { padding: .55rem .9rem; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--beige-warm); color: var(--green-deep); }
.nav a.active { background: var(--green-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: .75rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .site-header { position: relative; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s, background .2s; }
.btn-primary { background: var(--green-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-leaf); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-deep); border: 2px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: #fff; }

/* Hero */
.hero { position: relative; padding: 4.5rem 0 5rem; background:
  radial-gradient(ellipse at top right, rgba(82,183,136,.15), transparent 60%),
  linear-gradient(180deg, #fbf7ec 0%, var(--beige) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(45,106,79,.1); color: var(--green-deep); font-size: .8rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 1; border-radius: 24px; background: linear-gradient(135deg, var(--green-deep), var(--green-leaf)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 50%); }
.hero-visual img { width: 62%; height: auto; position: relative; border-radius: 50%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 320px; margin: 0 auto; } }

/* Sections */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { color: var(--green-leaf); font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head p { color: var(--muted); }

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(45,106,79,.35); }
.card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: rgba(45,106,79,.12); color: var(--green-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Stats */
.stats { background: var(--green-deep); color: #fff; }
.stats h2 { color: #fff; }
.stat { text-align: center; padding: 1rem; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--green-soft); font-weight: 700; }
.stat .label { font-size: .9rem; opacity: .85; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .85rem; font-weight: 500; }

/* Director cards */
.director { text-align: center; }
.director .avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--green-leaf), var(--green-soft)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; box-shadow: 0 8px 20px rgba(27,67,50,.2); }
.director h3 { margin-bottom: .2rem; }
.director .role { color: var(--green-leaf); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--green-deep); }
input, textarea, select { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green-leaf); box-shadow: 0 0 0 3px rgba(45,106,79,.15); }
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }
.form-panel { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Contact info */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(45,106,79,.12); color: var(--green-deep); display: inline-flex; align-items: center; justify-content: center; }
.info-list strong { display: block; color: var(--green-deep); }
.info-list span { color: var(--muted); font-size: .93rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* AI widgets */
.ai-panel { background: linear-gradient(135deg, #fff, #fbf7ec); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.ai-panel .ai-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ai-panel .ai-head .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green-deep); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ai-result { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius-sm); background: rgba(45,106,79,.08); border-left: 4px solid var(--green-leaf); }
.ai-result h4 { color: var(--green-deep); margin: 0 0 .5rem; }
.ai-result .metric { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed rgba(45,106,79,.2); }
.ai-result .metric:last-child { border-bottom: none; }
.ai-result .metric strong { color: var(--green-deep); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(27,67,50,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 2rem; max-width: 520px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .2s ease; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { float: right; background: none; border: none; cursor: pointer; color: var(--muted); }

/* Footer */
.site-footer { background: #12241c; color: #cfd8d2; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.site-footer a { color: #cfd8d2; }
.site-footer a:hover { color: var(--green-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: #8ea095; }
.footer-legal { font-size: .82rem; }
.footer-legal span { display: block; }

/* Alerts */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: rgba(82,183,136,.15); border: 1px solid var(--green-soft); color: var(--green-deep); }
.alert-error { background: rgba(200,60,60,.1); border: 1px solid #c83c3c; color: #8a1f1f; }

/* Page hero (subpages) */
.page-hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(180deg, #fbf7ec, var(--beige)); text-align: center; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Utility */
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Animations */
.fade-in { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
