/* ==========================================================================
   Kanwali Organics — styles.css  (EDITORIAL FIELD GUIDE)
   Neutral paper, deep forest green, high-contrast editorial serif headlines.
   Flat, hairline-ruled, photography-forward. Same class names as before —
   no HTML changes required.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --green:      #2f5036;   /* forest green (primary) */
  --green-2:    #3d6347;
  --green-deep: #1d2a20;   /* near-black green */
  --sage:       #7d9b6f;
  --sage-soft:  #9db38f;

  --ink:        #1c1f1a;   /* near-black text */
  --muted:      #696b62;   /* secondary text */
  --faint:      #8d8e84;

  --paper:      #f6f5f0;   /* neutral off-white page (not yellow) */
  --surface:    #ffffff;   /* cards / panels */
  --surface-2:  #efeee7;   /* alt section band */
  --line:       #e4e3da;   /* hairline */
  --line-strong:#d4d3c8;
  --cream:      #eee9db;   /* text on dark sections */

  --maxw: 1180px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --radius-lg: 5px;
  --shadow: 0 26px 50px -34px rgba(28, 31, 26, 0.4);
  --shadow-sm: 0 14px 30px -22px rgba(28, 31, 26, 0.35);

  --font-head: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-deva: "Tiro Devanagari Hindi", "Instrument Serif", serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Editorial type: big serif display for h1/h2, clean sans for sub-heads */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.04;
  color: var(--green-deep);
  margin: 0 0 0.4em;
  letter-spacing: -0.005em;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--green);
  display: inline-block;
}
.section-head { max-width: 680px; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn--light { background: var(--cream); color: var(--green-deep); }
.btn--light:hover { background: var(--surface); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(238,233,219,.5); }
.btn--outline-light:hover { background: rgba(238,233,219,.12); border-color: var(--cream); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.86);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 56px; width: auto; }
.brand .brand-fallback { font-family: var(--font-head); font-size: 1.5rem; color: var(--green); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--green);
  transition: width .22s ease;
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 1.5px;
  background: var(--green-deep);
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--cream);
  background: var(--green-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--green-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: 70% 30%;
  z-index: 0;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,26,18,.9) 0%, rgba(20,26,18,.72) 42%, rgba(20,26,18,.4) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.5rem, 12vw, 9rem);
  max-width: 740px;
}
.hero__kicker {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: 1.2rem;
}
.hero__deva {
  display: block;
  font-family: var(--font-deva);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: var(--sage-soft);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  letter-spacing: 0;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(3.2rem, 8.5vw, 6rem);
  line-height: 0.98;
  margin-bottom: 0.5rem;
}
.hero__sub {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: #ded3bb;
  margin-bottom: 1.5rem;
}
.hero__desc { font-size: 1.14rem; color: #e6ddca; max-width: 560px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }

.hero__glance {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(238,233,219,.22);
  border-radius: var(--radius);
  background: rgba(15, 20, 12, 0.4);
  backdrop-filter: blur(3px);
  overflow: hidden;
}
.hero__glance .g-item { padding: 1rem 1.6rem; line-height: 1.3; }
.hero__glance .g-item + .g-item { border-left: 1px solid rgba(238,233,219,.18); }
.hero__glance .g-label { display: block; font-size: 0.68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 2px; }
.hero__glance .g-value { font-family: var(--font-head); font-size: 1.3rem; color: var(--cream); }

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.pillar__body h3 { font-size: 1.4rem; }
.pillar__body p { color: var(--muted); font-size: 1rem; flex: 1; }
.pillar__price {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 1.45rem;
  margin: 0.5rem 0 1.2rem;
}
.pillar__price span { color: var(--muted); font-family: var(--font-body); font-size: 0.82rem; }

/* ==========================================================================
   Process diagram
   ========================================================================== */
.process {
  position: relative;
  background: var(--green-deep);
  color: var(--cream);
  overflow: hidden;
}
.process__bg {
  position: absolute; inset: 0;
  background-image: url("../images/soil-texture.jpg");
  background-size: cover; background-position: center;
  opacity: 0.1;
  z-index: 0;
}
.process .container { position: relative; z-index: 1; }
.process .eyebrow { color: var(--sage-soft); }
.process .eyebrow::before { background: var(--sage-soft); }
.process h2 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.process__intro { color: #cdc6b3; max-width: 640px; }

.process__flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(238,233,219,.2);
}
.step { position: relative; padding: 1.75rem 1.1rem 0; }
.step:not(:last-child) { border-right: 1px solid rgba(238,233,219,.14); }
.step__icon {
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
}
.step__icon svg { width: 34px; height: 34px; stroke: var(--sage-soft); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step__title { font-family: var(--font-body); font-weight: 600; font-size: 1.04rem; color: var(--cream); margin-bottom: 0.35rem; }
.step__cap { font-size: 0.86rem; color: #b9b1a0; line-height: 1.5; margin: 0; }

/* ==========================================================================
   Why compost matters
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.why-figure { border-radius: var(--radius); overflow: hidden; position: relative; }
.why-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.compare {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.compare__row:not(:last-child) { border-bottom: 1px solid var(--line); }
.compare__cell { padding: 1rem 1.25rem; font-size: 0.96rem; }
.compare__cell--head { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; }
.compare__cell--good { color: var(--green); }
.compare__cell--good.compare__cell--head { background: var(--green); color: var(--cream); }
.compare__cell--bad { color: var(--muted); }
.compare__cell--bad.compare__cell--head { background: var(--surface-2); color: var(--ink); }
.compare__cell--bad { border-left: 1px solid var(--line); }
.compare__cell strong { color: var(--green-deep); font-weight: 600; }

/* ==========================================================================
   Specifications table
   ========================================================================== */
.spec-wrap { background: var(--surface-2); }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.95rem;
}
.spec-table th, .spec-table td { text-align: left; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--green-deep); color: var(--cream); font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 500; color: var(--green-deep); }
.spec-table td:last-child { font-family: var(--font-head); font-size: 1.3rem; color: var(--green); }

.spec-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

/* ==========================================================================
   Why Kanwali (trust)
   ========================================================================== */
.trust { background: var(--green); color: var(--cream); }
.trust .eyebrow { color: var(--sage-soft); }
.trust .eyebrow::before { background: var(--sage-soft); }
.trust h2 { color: var(--cream); }
.trust__intro { color: #d6dccb; max-width: 640px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.75rem;
  border-top: 1px solid rgba(238,233,219,.2);
}
.trust-card {
  padding: 1.9rem 1.5rem 0;
}
.trust-card:not(:last-child) { border-right: 1px solid rgba(238,233,219,.14); }
.trust-card .t-icon { width: 34px; height: 34px; margin-bottom: 1.1rem; }
.trust-card .t-icon svg { width: 100%; height: 100%; stroke: var(--sage-soft); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.trust-card h3 { color: var(--cream); font-size: 1.18rem; margin-bottom: 0.45rem; }
.trust-card p { color: #cdd3c2; font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Coming soon teaser
   ========================================================================== */
.teaser {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.teaser__media { position: relative; min-height: 300px; }
.teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser__body { padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; }
.teaser__badge {
  align-self: flex-start;
  background: transparent;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.teaser__body h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.teaser__body p { color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-list .c-icon { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.contact-list .c-icon svg { width: 100%; height: 100%; stroke: var(--green); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-list .c-label { display: block; font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list .c-value { font-family: var(--font-head); font-size: 1.3rem; color: var(--green-deep); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.82rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47,80,54,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-deep); color: #c3c8b8; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.75rem); }
.footer-brand img { height: 70px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.95rem; max-width: 340px; line-height: 1.6; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-weight: 600; font-size: 0.76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-col a, .footer-col li { font-size: 0.95rem; color: #c3c8b8; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(238,233,219,.16);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.footer-pledge { font-family: var(--font-head); font-size: 1.15rem; color: var(--sage-soft); letter-spacing: .01em; text-align: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .process__flow { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3n) { border-right: none; }
  .step:nth-child(n+4) { border-top: 1px solid rgba(238,233,219,.14); }
  .why-grid { grid-template-columns: 1fr; }
  .why-figure { order: -1; max-width: 520px; }
  .why-figure img { aspect-ratio: 16 / 10; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-card:nth-child(2n) { border-right: none; }
  .trust-card:nth-child(n+3) { border-top: 1px solid rgba(238,233,219,.14); }
  .teaser { grid-template-columns: 1fr; }
  .teaser__media { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-pledge { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gap) 1.25rem;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta .btn--enquire-desktop { display: none; }
  .hero__glance .g-item { padding: 0.85rem 1.2rem; }
}

@media (max-width: 560px) {
  .process__flow { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3n) { border-right: 1px solid rgba(238,233,219,.14); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(n+3) { border-top: 1px solid rgba(238,233,219,.14); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { border-right: none !important; }
  .trust-card:not(:first-child) { border-top: 1px solid rgba(238,233,219,.14); }
  .compare__cell { padding: 0.85rem 0.9rem; font-size: 0.9rem; }
  .spec-table th, .spec-table td { padding: 0.85rem 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__glance { width: 100%; }
}

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