/* ============================================================
   VanaMitra — shared stylesheet
   Palette: forest green, leaf green, light wood, warm off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --bg: #F8F6F0;          /* warm off-white page background */
  --surface: #FFFFFF;
  --ink: #26301F;          /* deep green-black text */
  --muted: #5C6653;
  --forest: #2F5D3A;       /* primary green */
  --forest-dark: #234A2D;
  --leaf: #7FA36B;         /* soft leaf green */
  --leaf-tint: #EAF0E4;
  --wood: #C9A87C;         /* light wood */
  --wood-dark: #A9885C;
  --wood-tint: #F1E7D6;
  --line: #E3DECF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(38, 48, 31, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.topbar {
  height: 6px;
  background: linear-gradient(90deg, var(--forest) 0 25%, var(--leaf) 25% 50%, var(--wood) 50% 75%, var(--wood-tint) 75% 100%);
}

header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--forest-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand svg { flex-shrink: 0; }

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--leaf);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--leaf-tint);
  border-radius: 999px;
  padding: 7px 16px !important;
  border-bottom: none !important;
}
.cart-link:hover { background: var(--wood-tint); }
.cart-count {
  background: var(--forest);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--forest-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #EFF3E8 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 24px 150px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--wood);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-dark);
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.13rem;
  color: var(--muted);
}
.hero-hills {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }
.btn-wood { background: var(--wood); color: var(--ink); }
.btn-wood:hover { background: var(--wood-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--leaf-tint); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 12px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--forest-dark);
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--leaf-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--forest);
  border-radius: var(--radius);
  padding: 40px 30px;
  color: #fff;
  text-align: center;
}
.stats .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wood-tint);
}
.stats .label { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #EFF3E8, var(--bg));
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 620px; margin: 10px auto 0; color: var(--muted); }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-img {
  height: 190px;
  background: linear-gradient(135deg, var(--leaf-tint), var(--wood-tint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  align-self: flex-start;
  background: var(--wood-tint);
  color: var(--wood-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.product-body p.desc { color: var(--muted); font-size: 0.93rem; flex: 1; }
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--forest-dark); }
.add-btn {
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  cursor: pointer;
}
.add-btn:hover { background: var(--forest-dark); }
.add-btn.added { background: var(--wood-dark); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.cart-items, .checkout-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb {
  width: 54px; height: 54px;
  border-radius: 10px;
  background: var(--leaf-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-row .info { flex: 1; }
.cart-row .info strong { display: block; }
.cart-row .info span { color: var(--muted); font-size: 0.88rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 1rem;
  cursor: pointer;
}
.qty-controls button:hover { background: var(--leaf-tint); }
.remove-btn {
  background: none; border: none;
  color: #A0522D; cursor: pointer;
  font-size: 0.85rem; font-weight: 700;
  font-family: var(--font-body);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  padding-top: 18px;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--leaf);
  border-color: var(--leaf);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* Website forms (js/forms.js) */
.form-card form[hidden], .form-card .form-thanks[hidden], .form-error[hidden] { display: none !important; }
.form-card { scroll-margin-top: 90px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #FBEDEA;
  border: 1px solid #E6B8AE;
  color: #8A2E1F;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.form-thanks {
  text-align: center;
  padding: 34px 22px;
  background: var(--leaf-tint);
  border: 1px solid var(--leaf);
  border-radius: var(--radius);
  outline: none;
  animation: form-thanks-in 0.35s ease;
}
.form-thanks-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.form-thanks h3 { margin-bottom: 10px; }
.form-thanks p { color: var(--muted); margin-bottom: 10px; }
.form-thanks .btn { margin-top: 12px; }
@keyframes form-thanks-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-thanks { animation: none; } }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--forest-dark);
  color: #E9EFE4;
  margin-top: 72px;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--wood-tint);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-grid a {
  display: block;
  color: #C9D5C0;
  text-decoration: none;
  margin-bottom: 9px;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.95rem; color: #C9D5C0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #A8B8A0;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--forest-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Misc ---------- */
.wood-divider {
  height: 4px;
  width: 70px;
  margin: 0 auto 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wood), var(--leaf));
}
.checklist { list-style: none; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .footer-grid, .field-row { grid-template-columns: 1fr; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-inner { padding: 56px 24px 110px; }
}
