/* =========================================================
   SAR VEN LIMITED — sarvenlimited.com
   Design system: warm produce-market palette, editorial serif
   headings, clean sans body, restrained motion.
   ========================================================= */

:root {
  /* Palette */
  --green-900: #16341f;
  --green-800: #1e4a2b;
  --green-700: #275f38;
  --green-600: #2f7343;
  --green-100: #e4efe4;
  --green-50:  #f2f7f0;

  --gold-600: #b9781e;
  --gold-500: #d69a3b;
  --gold-100: #faecd2;

  --cream:    #fbf7ef;
  --paper:    #ffffff;
  --ink-900:  #1c2018;
  --ink-700:  #3c4436;
  --ink-500:  #666f5c;
  --line:     #e4ddcd;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(28,32,24,0.06), 0 1px 1px rgba(28,32,24,0.04);
  --shadow-md: 0 8px 24px rgba(22,52,31,0.10);
  --shadow-lg: 0 20px 48px rgba(22,52,31,0.16);

  --container: 1180px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-900);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }

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

.lede {
  font-size: 1.2rem;
  color: var(--ink-700);
  max-width: 60ch;
}

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

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--green {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: #eef4ea;
}
.section--green h2, .section--green h3 { color: #fff; }
.section--green p { color: #d7e5d2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold-500);
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--outline:hover { background: rgba(255,255,255,0.08); }

.section:not(.section--green) .btn--outline {
  border-color: var(--green-800);
  color: var(--green-800);
}
.section:not(.section--green) .btn--outline:hover { background: var(--green-50); }

.btn--light {
  background: #fff;
  color: var(--green-900);
}
.btn--light:hover { background: var(--gold-100); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,239,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--green-900);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--green-800); }
.nav__links a[aria-current="page"] { color: var(--green-800); font-weight: 700; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--green-900);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header__row .btn--primary { display: none; }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav--open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav--open .site-header__row .btn--primary {
    display: inline-flex;
    margin: 12px 24px 20px;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-900) 0%, var(--green-800) 46%, var(--green-700) 100%);
  color: #fff;
}
.hero__decor {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 76px;
}
.hero--simple .hero__grid { grid-template-columns: 1fr; padding: 64px 0 56px; text-align: left; }
.hero h1 { color: #fff; }
.hero .lede { color: #dbe8d5; font-size: 1.15rem; }
.hero__art { position: relative; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #f2f7ee;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
}
.badge svg { width: 15px; height: 15px; }

/* ---------------- 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); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  /* grid--4 (feature tiles, product cards) stays 2-up even on small phones —
     a full-width single column of square product photos runs unnecessarily
     long and isn't how mobile product grids are usually laid out. */
}
@media (max-width: 420px) {
  .product-card__body { padding: 12px 14px 16px; }
  .product-card__body h3 { font-size: 0.92rem; }
  .product-card__body p { font-size: 0.8rem; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-tile svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Product cards */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__art {
  aspect-ratio: 1/1;
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.product-card__art svg { width: 58%; height: 58%; display: block; margin: 21% auto; }
.product-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__body { padding: 18px 20px 22px; }
.product-card__body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.product-card__body p { font-size: 0.88rem; margin-bottom: 0; color: var(--ink-500); }

.photo-credit {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin-top: -8px;
}
.photo-credit a { color: inherit; text-decoration: underline; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------------- Steps / process ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-900);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------------- Split section ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split__art {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-700); }
.list-check svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-700); margin-top: 2px; }

/* ---------------- Notice / placeholder callouts ---------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid #ecd8ab;
  color: #6b4c14;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.notice strong { color: #4f3910; }

/* ---------------- CTA band ---------------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #dcebd6; margin-bottom: 0; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail svg { width: 22px; height: 22px; color: var(--green-700); flex-shrink: 0; margin-top: 2px; }
.contact-detail h3 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-detail p { margin-bottom: 0; font-size: 0.95rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink-900);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field small { color: var(--ink-500); }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-success { display: block; background: var(--green-100); color: var(--green-900); border: 1px solid #bcdcbc; }
.form-status.is-error { display: block; background: #fbe4e0; color: #7a2318; border: 1px solid #f0bdb2; }

/* ---------------- Breadcrumb / page header ---------------- */
.page-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cfe0c8;
  margin-bottom: 16px;
}
.page-kicker a { color: #cfe0c8; text-decoration: none; }
.page-kicker a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green-900);
  color: #cfe0c8;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #cfe0c8; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: #b6cbae; font-size: 0.92rem; max-width: 34ch; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9fb797;
}
.footer-bottom a { color: #9fb797; text-decoration: underline; }

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.max-w-content { max-width: 68ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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