/* ============================================
   LARIKA INGREDIENTS PVT. LTD. — Website Styles
   Brand palette derived from company profile deck
   ============================================ */

:root {
  --green-deep: #4a6f30;
  --green-primary: #5d873d;
  --green-lime: #86b032;
  --green-light: #95be3c;
  --green-pale: #eef4e4;
  --orange: #f08900;
  --orange-dark: #d97600;
  --maroon: #7b160c;
  --ink: #1e2318;
  --ink-soft: #4a5245;
  --paper: #ffffff;
  --line: #e3e8da;

  --serif: "Lora", "Cambria", Georgia, serif;
  --sans: "Mulish", Arial, Helvetica, sans-serif;

  --container: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(74, 111, 48, 0.08);
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--green-lime);
  margin-bottom: 10px;
}

.section {
  padding: 84px 0;
  position: relative;
}
.section--tight { padding: 56px 0; }
.section--pale { background: var(--green-pale); }
.section--dark {
  background: linear-gradient(135deg, var(--green-deep), var(--green-primary));
  color: #fff;
}
.section--dark h2, .section--dark p, .section--dark .eyebrow { color: #fff; }
.section--dark .eyebrow { color: var(--green-light); opacity: 0.95; }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Signature leaf-corner motif ---------- */
.leaf-corner {
  position: absolute;
  width: 260px;
  height: 260px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}
.leaf-corner--tr { top: 0; right: 0; }
.leaf-corner--br { bottom: 0; right: 0; transform: scaleY(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a.active {
  color: var(--green-primary);
  border-color: var(--green-lime);
}
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 999px;
  border: none !important;
}
.nav-cta:hover { background: var(--orange-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green-primary);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: var(--paper);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.hero h1 span { color: var(--green-primary); }
.hero-lede { font-size: 1.08rem; max-width: 520px; }
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}
.hero-pillars li {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.hero-pillars li:not(:last-child)::after {
  content: "•";
  margin-left: 22px;
  color: var(--green-lime);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 4/3.4;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--green-pale), #fff 60%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { background: transparent; border-color: var(--green-primary); color: var(--green-primary); }
.btn--outline:hover { background: var(--green-primary); color: #fff; }
.btn--light { background: #fff; color: var(--green-deep); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.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: 26px 26px;
  position: relative;
}
.card--segment {
  padding-left: 26px;
  border-left: 4px solid var(--green-lime);
}
.card--segment h3 { color: var(--green-deep); margin-bottom: 6px; }
.card--segment p { margin: 0; font-size: 0.94rem; }

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-primary);
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-lime);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-primary);
}
.stat .label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- Product tabs (products page) ---------- */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.tabbar button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.tabbar button.active,
.tabbar button:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
.pill-list li {
  font-size: 0.94rem;
  color: var(--ink);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--green-lime);
  border-radius: 50%;
}

.product-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 34px;
  margin-bottom: 24px;
}
.product-block h3 { color: var(--green-deep); margin-bottom: 18px; }

/* ---------- Partner table ---------- */
.partner-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.partner-table th, .partner-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.partner-table th {
  background: var(--green-deep);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
}
.partner-table tr:last-child td { border-bottom: none; }
.partner-table td:first-child { font-weight: 700; color: var(--green-deep); }

/* ---------- Map section ---------- */
.map-figure { text-align: center; }
.map-figure img { max-width: 320px; margin: 0 auto; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--green-deep);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .info-row {
  display: flex;
  gap: 14px;
  margin: 18px 0;
  font-size: 0.95rem;
}
.contact-info-card .info-row b { display: block; color: var(--green-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfbf9;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-lime);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

#form-status {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}
#form-status.success { display: block; background: #eaf5e4; color: var(--green-deep); }
#form-status.error { display: block; background: #fbe9e7; color: var(--maroon); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cdd4c4;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--green-light); }
.footer-brand img {
  height: 44px;
  margin-bottom: 14px;
  opacity: 0.92;
}

.footer-brand p { color: #a9b09c; font-size: 0.9rem; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8b927e;
}

/* ---------- Self-hosted Chat Widget ---------- */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.chat-launcher:hover { background: var(--orange-dark); transform: translateY(-2px); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-close-icon { display: none; }
.chat-launcher.open .chat-open-icon { display: none; }
.chat-launcher.open .chat-close-icon { display: block; }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 999;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chat-panel-header {
  background: var(--green-deep);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-panel-header img { height: 30px; width: 30px; border-radius: 50%; background: #fff; padding: 3px; }
.chat-panel-header div strong { display: block; font-size: 0.95rem; }
.chat-panel-header div span { font-size: 0.76rem; color: var(--green-light); display: flex; align-items: center; gap: 5px; }
.chat-panel-header div span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #6fdc6f; display: inline-block;
}

.chat-panel-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  background: #f7f8f4;
}
.chat-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink);
  max-width: 88%;
  margin-bottom: 14px;
}

.chat-panel-form {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-panel-form .field { margin-bottom: 10px; }
.chat-panel-form label { font-size: 0.78rem; }
.chat-panel-form input, .chat-panel-form textarea {
  padding: 9px 11px;
  font-size: 0.88rem;
}
.chat-panel-form textarea { min-height: 70px; }
.chat-panel-form button {
  width: 100%;
  justify-content: center;
  padding: 11px;
}
#chat-status {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  display: none;
}
#chat-status.success { display: block; background: #eaf5e4; color: var(--green-deep); }
#chat-status.error { display: block; background: #fbe9e7; color: var(--maroon); }

@media (max-width: 480px) {
  .chat-panel { right: 12px; bottom: 90px; width: calc(100vw - 24px); }
  .chat-launcher { right: 14px; bottom: 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 6px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 0; }
  .menu-toggle { display: block; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .pill-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  section.hero { padding: 50px 0 60px; }
  .section { padding: 56px 0; }
}

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
