/* =========================================================
   Tarkari Bazar Pvt Ltd — Design tokens
   Palette grounded in Nepal's terraced agriculture:
   deep pine-forest greens, turmeric gold, unbleached paper.
   ========================================================= */
:root {
  --forest-900: #10241a;
  --forest-700: #1c3b2a;
  --forest-600: #295139;
  --forest-500: #3c6e52;
  --forest-100: #e7ede7;

  --gold-700: #9c7112;
  --gold-600: #c4941b;
  --gold-400: #dcae3f;
  --gold-200: #f0dfae;

  --clay-600: #a85a2a;

  --paper-100: #fbfaf5;
  --paper-200: #f2efe3;
  --paper-300: #e8e3d2;
  --line: #d9d3bf;

  --ink-900: #1c2018;
  --ink-700: #333a2c;
  --ink-500: #5b6350;

  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-card: 0 1px 0 rgba(16, 36, 26, 0.06), 0 8px 24px rgba(16, 36, 26, 0.07);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-100);
  color: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-700); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-100);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--forest-900);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-700);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  color: var(--ink-700);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover { border-color: var(--gold-600); color: var(--forest-900); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--forest-700);
  color: var(--paper-100);
}
.btn-primary:hover { background: var(--forest-900); }

.btn-gold {
  background: var(--gold-600);
  color: var(--forest-900);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline {
  background: transparent;
  border-color: var(--forest-700);
  color: var(--forest-700);
}
.btn-outline:hover { background: var(--forest-100); }

.btn-ghost {
  background: transparent;
  color: var(--paper-100);
  border-color: rgba(251, 250, 245, 0.4);
}
.btn-ghost:hover { border-color: var(--paper-100); }

/* ---------- Hero ---------- */
.hero {
  background: var(--forest-900);
  color: var(--paper-100);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(196, 148, 27, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  padding: 96px 0 84px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-plain {
  color: var(--gold-400);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--paper-100);
  font-size: 48px;
  line-height: 1.12;
  max-width: 620px;
}

.hero p.lede {
  color: var(--paper-200, #e8e3d2);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(251, 250, 245, 0.05);
  border: 1px solid rgba(251, 250, 245, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
}

.hero-panel .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251, 250, 245, 0.12);
}
.hero-panel .stat-row:last-child { border-bottom: none; }

.hero-panel .stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-400);
}

.hero-panel .stat-label {
  font-size: 13px;
  color: var(--paper-200, #e8e3d2);
  max-width: 220px;
  text-align: right;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 { font-size: 34px; }

.section-tag {
  color: var(--gold-700);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ---------- Stakeholder flow (genuine sequence: farm to table) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-step {
  padding: 28px 24px 24px;
  background: var(--paper-100);
  border: 1px solid var(--line);
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--paper-100);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translate(50%, -50%) rotate(45deg);
  z-index: 2;
}

.flow-step .step-index {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-700);
  margin-bottom: 14px;
}

.flow-step h3 { font-size: 18px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--ink-500); margin-bottom: 0; }

/* ---------- About / mission split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  background: var(--forest-700);
  border-radius: var(--radius-md);
  min-height: 340px;
  padding: 36px;
  color: var(--paper-100);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.split-media .quote-mark {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--gold-400);
  line-height: 1;
}

.split-media blockquote {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 8px 0 14px;
  color: var(--paper-100);
}

.split-media cite {
  font-style: normal;
  font-size: 13px;
  color: var(--gold-200);
}

.mission-list { list-style: none; margin: 24px 0 0; padding: 0; }
.mission-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.mission-list li:last-child { border-bottom: 1px solid var(--line); }

.mission-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-600);
  margin-top: 8px;
  flex-shrink: 0;
}

.mission-list strong { display: block; color: var(--forest-900); margin-bottom: 2px; }
.mission-list span { color: var(--ink-500); font-size: 14px; }

/* ---------- Contact / office ---------- */
.office {
  background: var(--paper-200);
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.office-card {
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.office-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.office-row:last-child { border-bottom: none; }

.office-row .ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.office-row strong { display: block; color: var(--forest-900); font-size: 14px; }
.office-row span, .office-row a { color: var(--ink-500); font-size: 14px; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 360px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-900);
  color: var(--paper-200);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251, 250, 245, 0.12);
}

.footer-logo-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--paper-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 18px;
}
.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; }

.footer-grid h4 {
  color: var(--paper-100);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid a { color: var(--paper-200); font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-400); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(251, 250, 245, 0.55);
}

/* ---------- Forms (contact.php) ---------- */
.form-page-hero {
  background: var(--forest-900);
  color: var(--paper-100);
  padding: 64px 0 56px;
}
.form-page-hero h1 { color: var(--paper-100); font-size: 36px; }
.form-page-hero p { color: var(--paper-200, #e8e3d2); max-width: 560px; }

.form-shell {
  max-width: 720px;
  margin: -40px auto 0;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 44px;
  position: relative;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-900);
  margin-bottom: 8px;
}

.field .hint { font-size: 12px; color: var(--ink-500); margin-top: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  background: var(--paper-100);
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-600);
}

.field textarea { min-height: 140px; resize: vertical; }

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.radio-option:has(input:checked), .check-option:has(input:checked) {
  border-color: var(--gold-600);
  background: var(--gold-200);
}

.check-row { display: flex; gap: 14px; flex-wrap: wrap; }

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note {
  background: var(--forest-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 26px;
}

.error-box {
  background: #fbeae4;
  border: 1px solid var(--clay-600);
  color: var(--clay-600);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Honeypot — hidden from real visitors */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Success screen ---------- */
.success-shell {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 56px 44px;
}

.success-mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--gold-400);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-shell h1 { font-size: 26px; }
.success-shell p { color: var(--ink-500); }
.success-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
  text-align: left;
}
.success-meta div { padding: 4px 0; }

/* ---------- Chatbot widget ---------- */
#tb-chat-launcher {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--forest-700);
  color: var(--gold-400);
  border: none;
  box-shadow: 0 10px 30px rgba(16, 36, 26, 0.35);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
#tb-chat-launcher:hover { background: var(--forest-900); transform: translateY(-2px); }

#tb-chat-panel {
  position: fixed;
  right: 26px;
  bottom: 100px;
  z-index: 60;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 150px);
  background: var(--paper-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(16, 36, 26, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#tb-chat-panel.open { display: flex; }

.tb-chat-head {
  background: var(--forest-900);
  color: var(--paper-100);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-chat-head div strong { display: block; font-size: 14px; }
.tb-chat-head div span { font-size: 12px; color: var(--gold-400); }
.tb-chat-close { background: none; border: none; color: var(--paper-100); font-size: 20px; cursor: pointer; line-height: 1; }

.tb-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--paper-200);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.tb-msg.bot {
  background: var(--paper-100);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.tb-msg.user {
  background: var(--forest-700);
  color: var(--paper-100);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.tb-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: var(--paper-200);
}
.tb-quick-replies button {
  border: 1px solid var(--forest-500);
  color: var(--forest-700);
  background: var(--paper-100);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
}
.tb-quick-replies button:hover { background: var(--forest-100); }

.tb-chat-foot {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 8px;
  background: var(--paper-100);
}
.tb-chat-foot input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 13.5px;
  font-family: var(--font-body);
}
.tb-chat-foot input:focus { border-color: var(--gold-600); }
.tb-chat-foot button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gold-600);
  color: var(--forest-900);
  cursor: pointer;
  font-size: 16px;
}
.tb-chat-foot button:hover { background: var(--gold-400); }

.tb-chat-status {
  font-size: 11px;
  text-align: center;
  padding: 6px 0 0;
  color: var(--ink-500);
  background: var(--paper-100);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2)::after { display: none; }
  .split { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row-2, .radio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 34px; }
  .flow { grid-template-columns: 1fr; }
  .form-shell { padding: 28px 22px; margin-top: -24px; }
  #tb-chat-panel { right: 12px; left: 12px; width: auto; bottom: 92px; }
  #tb-chat-launcher { right: 16px; bottom: 16px; }
}
