/* Aangan Agro Mills — natural village mill storefront */

:root {
  --bg: #f6efdf;
  --paper: #fffaf0;
  --paper-strong: #fff5dd;
  --ink: #1f1b13;
  --muted: #655d4b;
  --line: #b99857;
  --green: #315b2f;
  --green-deep: #203d21;
  --mustard: #d7a62d;
  --rust: #8a4b1d;
  --shadow: 0 18px 45px rgba(74, 50, 20, 0.14);
  --max: 44rem;
  --hero-wash:
    linear-gradient(90deg, rgba(255, 249, 234, 0.97), rgba(255, 249, 234, 0.86) 55%, rgba(255, 249, 234, 0.64)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&w=2200&q=80") center / cover no-repeat;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 166, 45, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff9ea 0%, var(--bg) 48%, #efe2c7 100%);
}

/* Village field — soft overlay so text stays readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&w=1800&q=75")
    center / cover no-repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--rust);
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

.narrow {
  width: min(100% - 28px, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: min(100% - 32px, 66rem);
  margin-left: auto;
  margin-right: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(117, 89, 45, 0.22);
  box-shadow: 0 8px 28px rgba(58, 42, 18, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 1px solid rgba(185, 152, 87, 0.6);
  border-radius: 50%;
  background: #fff url("../assets/brand/logo-round-white.png") center / cover no-repeat;
  box-shadow: 0 7px 18px rgba(72, 50, 22, 0.14);
}

.brand-mark {
  display: none;
}

.brand-name {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--green-deep);
}

.brand-tag {
  font-size: 14px;
  color: var(--muted);
  font-family: Tahoma, Verdana, Segoe UI, sans-serif;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 14px;
}

.nav-link {
  padding: 7px 9px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  border-bottom: 0;
}

.nav-link:hover {
  background: rgba(215, 166, 45, 0.13);
  text-decoration: none;
}

.nav-link.active {
  font-weight: 700;
  background: rgba(49, 91, 47, 0.12);
  color: var(--green-deep);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(107, 91, 69, 0.5);
  border-radius: 999px;
  background: #fff5df;
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(71, 48, 18, 0.08);
}

.btn:hover {
  background: var(--paper);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  border-color: #2a4228;
  color: #fff;
}

.btn-primary:hover {
  background: #2f4a2c;
  color: #fff;
}

.btn-ghost {
  background: var(--paper);
}

.header-cta {
  display: none;
}

/* ——— Village band (home top) — mustard field ——— */
.village-hero {
  background: var(--hero-wash);
  border-bottom: 1px solid rgba(107, 91, 69, 0.26);
  padding: clamp(3rem, 7vw, 6rem) 0;
  min-height: 70vh;
  display: grid;
  align-items: center;
}

.village-hero h1 {
  margin: 0 0 0.75rem;
  max-width: 12ch;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  letter-spacing: 0;
  color: var(--green-deep);
}

.village-hero .lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 38rem;
}

.village-hero .actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ——— Home product list ——— */
.home-list {
  background: var(--paper);
  border: 1px solid rgba(107, 91, 69, 0.22);
  border-radius: 8px;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: var(--max);
  list-style: none;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-list li {
  border-bottom: 1px solid #ccc6b8;
}

.home-list li:last-child {
  border-bottom: 0;
}

.home-list a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}

.home-list a:hover {
  background: #f5f1e8;
  text-decoration: underline;
}

/* ——— Sections ——— */
.hero {
  padding: 0;
}

.section {
  padding: 2.75rem 0 3rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  color: var(--green-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  gap: 14px;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid rgba(107, 91, 69, 0.22);
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(69, 44, 18, 0.08);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-cta.left {
  justify-content: flex-start;
}

.page-hero {
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
  background: var(--hero-wash);
  border-bottom: 1px solid rgba(107, 91, 69, 0.22);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--green-deep);
}

.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.page-hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input,
.select {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 15px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}

.select {
  min-width: 160px;
}

.kv {
  margin-top: 10px;
}

.kv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #c4bdb0;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 15px;
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-key {
  color: var(--muted);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.list li {
  margin-bottom: 6px;
}

.story p {
  margin-top: 10px;
}

/* ——— Products ——— */
.product-grid {
  display: grid;
  gap: 20px;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: var(--paper);
  border: 1px solid rgba(107, 91, 69, 0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(72, 49, 20, 0.1);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ddd8cc;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media .fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.product-body {
  padding: 14px 14px 16px;
}

.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.product-title h3 {
  margin: 0;
  font-size: 1.15rem;
}

.badge {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  border: 1px solid rgba(107, 91, 69, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef3ea;
}

.product-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-highlights {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.product-highlights li {
  margin-bottom: 4px;
}

.product-photo-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #c4bdb0;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

.product-photo-note code {
  font-size: 12px;
  background: #eee9df;
  padding: 2px 5px;
  border: 1px solid #ccc6b8;
}

.empty-state {
  margin-top: 1rem;
  padding: 16px;
  background: var(--paper);
  border: 2px dashed var(--line);
  text-align: center;
  font-family: Tahoma, Verdana, sans-serif;
}

.empty-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hidden {
  display: none !important;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 2rem;
  padding: 16px 0;
  background: #fff4dc;
  border-top: 1px solid rgba(107, 91, 69, 0.24);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 22rem;
  font-family: Tahoma, Verdana, sans-serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ccc6b8;
  font-size: 13px;
  color: var(--muted);
  font-family: Tahoma, Verdana, sans-serif;
}

@media (max-width: 480px) {
  .kv-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-cta {
    display: inline-block;
  }
  .nav {
    width: 100%;
    order: 3;
  }
}

/* ——— Each product: own page, own field/crop photo behind title ——— */
.crop-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid rgba(107, 91, 69, 0.24);
  background: var(--hero-wash);
  background-color: var(--paper-strong);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.crop-hero--mustard {
  background: var(--hero-wash);
}

.crop-hero--wheat {
  background: var(--hero-wash);
}

.crop-hero--mixed-grain {
  background: var(--hero-wash);
}

.crop-hero--protein {
  background: var(--hero-wash);
}

.crop-hero--pulses {
  background: var(--hero-wash);
}

.crop-hero--millet {
  background: var(--hero-wash);
}

.crop-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--green-deep);
}

.eyebrow {
  margin: 0;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.aim-box {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 1rem;
  background: var(--paper);
  border: 1px solid rgba(107, 91, 69, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.aim-box h2 + p + h2 {
  margin-top: 1.15rem;
}

.aim-box p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.aim-box p:last-child {
  margin-bottom: 0;
}

.product-story {
  padding-top: 1.5rem;
}

.product-shot {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid rgba(107, 91, 69, 0.22);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}

.product-shot figcaption {
  padding: 10px 12px;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid #ccc6b8;
}

.product-shot code {
  font-size: 12px;
  background: #eee9df;
  padding: 2px 5px;
}

.back-link {
  margin-top: 1.5rem;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 15px;
}

.product-index-grid {
  display: grid;
  gap: 18px;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .product-index-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-index-card {
  overflow: hidden;
  padding: 0;
}

.product-index-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4d5b8;
}

.product-index-copy {
  padding: 16px;
}

.product-index-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.product-index-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.product-index-card h2 a:hover {
  text-decoration: underline;
}

.product-index-meta {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

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