:root {
  --forest: #163328;
  --forest-deep: #0e211b;
  --saffron: #c45c1a;
  --saffron-hot: #a84812;
  --gold: #c9a227;
  --chili: #9b1c1c;
  --cream: #f6efe4;
  --paper: #fbf7f0;
  --sand: #e8dcc8;
  --ink: #1c1410;
  --muted: #5c534a;
  --line: rgba(28, 20, 16, 0.1);
  --white: #fffaf4;
  --shadow: 0 18px 40px rgba(14, 33, 27, 0.12);
  --radius: 18px;
  --max: 1180px;
  --header: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at top, rgba(196, 92, 26, 0.05), transparent 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

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

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

h1, h2, h3, .logo-word {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 80;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

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

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

.brand svg {
  width: 42px;
  height: 42px;
}

.logo-word {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.logo-word span {
  display: block;
  font-family: Figtree, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest);
}

nav a[aria-current="page"] {
  color: var(--saffron);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--forest);
  color: var(--white);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover,
.nav-cta:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--saffron);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--saffron-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-ghost:hover {
  background: var(--forest);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.cart-btn {
  position: relative;
  background: var(--cream);
  color: var(--forest);
  border: 1px solid var(--line);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--saffron);
  color: white;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 33, 27, 0.18) 0%, rgba(14, 33, 27, 0.72) 70%),
    linear-gradient(90deg, rgba(14, 33, 27, 0.55), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  max-width: 14ch;
  margin: 0 0 18px;
}

.hero p {
  max-width: 42ch;
  font-size: 1.12rem;
  color: rgba(255, 250, 244, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.hero-actions .btn-ghost:hover {
  background: #fff;
  color: var(--forest);
}

.tamil-line {
  font-family: Fraunces, serif;
  font-style: italic;
  opacity: 0.85;
  margin-top: 10px;
}

/* Marquee */
.marquee {
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 32s linear infinite;
  padding: 14px 0;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
}

.eyebrow {
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat b {
  display: block;
  font-family: Fraunces, serif;
  font-size: 1.7rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Cards */
.grid-3,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 33, 27, 0.05);
}

.product-card img,
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img,
.card:hover img {
  transform: scale(1.05);
}

.product-card h3,
.card h3 {
  margin: 10px 0 4px;
  font-size: 1.28rem;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-disclaimer {
  background: #f8ead0;
  border: 1.5px solid var(--saffron);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px 16px 18px;
  margin: 0 0 28px;
}

.price-disclaimer strong {
  display: block;
  font-family: Fraunces, serif;
  font-size: 1.12rem;
  color: var(--saffron-hot);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.price-disclaimer p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.price-disclaimer.compact {
  margin: 0 20px 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
}

.price-disclaimer.compact strong {
  font-size: 0.95rem;
}

.est-tag {
  display: block;
  font-family: Figtree, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron-hot);
  font-weight: 800;
}

.price small {
  font-family: Figtree, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.card-body,
.product-card .body {
  padding: 18px 18px 20px;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--forest);
  border-radius: 999px;
  padding: 4px 9px;
}

.origin {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  gap: 10px;
}

.price {
  font-family: Fraunces, serif;
  font-size: 1.25rem;
}

.local-names {
  color: var(--saffron-hot);
  font-size: 0.9rem;
  font-weight: 650;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filters button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filters button.active {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* Sourcing map */
.origins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.origin-card {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  color: white;
}

.origin-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(14, 33, 27, 0.86));
}

.origin-card .copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
}

/* Quote / values */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.value {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
}

.value h3 {
  margin-top: 0;
}

.banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
  color: white;
}

.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner .inner {
  position: relative;
  background: linear-gradient(90deg, rgba(14, 33, 27, 0.82), rgba(14, 33, 27, 0.2));
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  max-width: 640px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.86rem;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}

textarea { min-height: 130px; resize: vertical; }

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-list b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 33, 27, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

body.cart-open .drawer { transform: none; }
body.cart-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer header, .drawer footer {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-items {
  flex: 1;
  overflow: auto;
  padding: 0 20px 20px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: #efe6d6;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer a { color: #efe6d6; }
.site-footer a:hover { color: var(--gold); }

.fineprint {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.84rem;
  color: rgba(239, 230, 214, 0.7);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Page hero */
.page-hero {
  padding: 72px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 8px 0 12px;
}

.page-hero p {
  max-width: 62ch;
  color: var(--muted);
}

/* Empty / toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.error-page {
  padding: 48px 0 88px;
}

.error-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.error-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 8px 0 16px;
}

.error-page .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
}

.error-photo {
  margin: 0;
}

.error-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.error-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.error-clues {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 10px;
}

.error-clues li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.error-clues b {
  font-family: Fraunces, serif;
  font-size: 1.4rem;
  margin-right: 8px;
  color: var(--saffron-hot);
}

@media (max-width: 900px) {
  .error-grid { grid-template-columns: 1fr; }
  .error-photo img { height: 280px; }
  .split,
  .grid-3,
  .product-grid,
  .origins,
  .values,
  .contact-grid,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .split img { height: 320px; }

  nav {
    position: fixed;
    inset: var(--header) 16px auto 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-direction: column;
    padding: 18px;
    display: none;
    box-shadow: var(--shadow);
  }

  nav.open { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .section-head { flex-direction: column; align-items: start; }
  .hero .btn-ghost { color: #fff; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}
