/* ============================================================
   Nestia Life — corporate design system (navy / gold / white)
   ============================================================ */
:root {
  /* Nestia Life — Pure Life · Healthy Life · Sustainable Life */
  --navy: #15613a;      /* primary deep green */
  --navy-2: #0d4527;    /* darker green */
  --navy-3: #1e7a49;    /* lighter green */
  --gold: #c9a227;
  --gold-2: #9a7d1f;
  --bg: #ffffff;
  --bg-alt: #f2f8f3;
  --ink: #1b2b21;
  --muted: #5b6e60;
  --line: #dfeae1;
  --white: #ffffff;
  --paddy: var(--navy); /* legacy alias used by inline styles */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  height: 3px;
  width: calc(var(--scroll, 0) * 100%);
  background: var(--gold);
}

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

/* ---------- header ---------- */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(17, 58, 93, 0.06);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 118px; }
nav { display: flex; gap: 30px; }
nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}
nav a:hover { color: var(--navy); }
nav a.active { color: var(--navy); border-bottom: 2px solid var(--gold); }

.header-action, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.header-action, .primary { background: var(--navy); color: #fff; }
.header-action:hover, .primary:hover { background: var(--navy-3); }
.secondary { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.button.small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button.dark { background: var(--navy); color: #fff; }
.button.ghost { border: 1.5px solid var(--line); color: var(--navy); background: var(--white); }
.button.ghost:hover { border-color: var(--navy); }

.cart-link { position: relative; }
.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1607;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { max-width: 18ch; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; }
h2 { max-width: 24ch; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
.lead, .catalogue-intro p, .drop-copy p {
  max-width: 640px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 150px max(24px, calc((100vw - 1200px) / 2)) 90px;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .secondary { border-color: var(--navy); color: var(--navy); }
.hero .secondary:hover { background: var(--navy); color: #fff; }

.quote-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(17, 58, 93, 0.12);
}
.board-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.board-top span + span { color: var(--gold); }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-grid article {
  min-height: 190px;
  padding: 18px;
  display: grid;
  justify-items: start;
  align-content: end;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.board-grid img {
  width: 90px;
  height: 108px;
  object-fit: contain;
  justify-self: center;
  margin-bottom: 10px;
}
.board-grid b { display: block; font-size: 16px; color: var(--navy); }
.board-grid span { color: var(--muted); font-size: 12.5px; }

/* ---------- category strip ---------- */
.grain-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  justify-content: center;
  padding: 20px max(24px, calc((100vw - 1200px) / 2));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.grain-strip span::before { content: "•"; color: var(--gold); margin-right: 10px; }

/* ---------- sections ---------- */
.catalogue {
  padding: 96px max(24px, calc((100vw - 1200px) / 2));
  background: var(--bg);
}
.catalogue-intro { max-width: 720px; }

.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 72px max(24px, calc((100vw - 1200px) / 2));
  background: var(--bg-alt);
}
.props article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  border-top: 3px solid var(--gold);
}
.props b { display: block; font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.props span { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* pillars (formerly animated drop wall) — corporate static grid */
.grade-drop {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 96px max(24px, calc((100vw - 1200px) / 2));
  background: var(--bg-alt);
  min-height: 0;
}
.drop-copy { position: static; }
.drop-stack {
  position: static;
  height: auto;
  display: grid;
  gap: 12px;
  counter-reset: pillar;
}
.drop-card {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 0;
  padding: 22px 24px 22px 74px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  transform: none;
  opacity: 1;
  counter-increment: pillar;
}
.drop-card::before {
  content: "0" counter(pillar);
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-2);
}
.drop-card b { display: block; font-size: 18px; font-weight: 800; color: var(--navy); }
.drop-card span { display: block; margin: 6px 0 8px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.drop-card em { color: var(--gold-2); font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* testimonials */
.quotes { padding: 96px max(24px, calc((100vw - 1200px) / 2)); background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.quote-grid blockquote {
  margin: 0;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14.5px;
}
.quote-grid cite { display: block; margin-top: 16px; font-style: normal; font-weight: 800; color: var(--navy); font-size: 13px; }

/* enquiry band */
.enquiry {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 96px max(24px, calc((100vw - 1200px) / 2));
  background: linear-gradient(120deg, var(--navy-2), var(--navy));
}
.enquiry h2 { color: #fff; }
.enquiry .eyebrow { color: var(--gold); }
.enquiry-copy p { color: rgba(255, 255, 255, 0.78); max-width: 560px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.contact-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.contact-panel a {
  display: block;
  padding: 16px 20px;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 800;
  font-size: 14.5px;
}
.contact-panel a:hover { background: var(--bg-alt); }

/* ---------- store ---------- */
.page-head {
  padding: 140px max(24px, calc((100vw - 1200px) / 2)) 52px;
  background: linear-gradient(180deg, var(--bg-alt), #ffffff);
  border-bottom: 1px solid var(--line);
}
.page-head p.lead { margin-top: 14px; }

.store { padding: 44px max(24px, calc((100vw - 1200px) / 2)) 110px; background: var(--bg); }
.store-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box {
  margin-left: auto;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 11px 16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.search-box:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

.p-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.p-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.p-card:hover {
  border-color: #bcd8c4;
  box-shadow: 0 18px 44px rgba(21, 97, 58, 0.14);
  transform: translateY(-3px);
}
.p-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #1d1607;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}
.p-media {
  display: grid;
  place-items: center;
  height: 210px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.p-media img { max-width: 60%; max-height: 176px; object-fit: contain; mix-blend-mode: multiply; }
.p-info { display: grid; gap: 5px; padding: 15px 16px 18px; align-content: start; }
.p-cat { color: var(--gold-2); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.p-name { font-size: 16.5px; font-weight: 800; color: var(--navy); }
.p-name:hover { text-decoration: underline; }
.p-short { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.p-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.p-price { font-weight: 800; font-size: 16.5px; color: var(--ink); }
.p-price s { color: #9aa7b2; font-weight: 500; font-size: 12.5px; margin-left: 6px; }

/* ---------- product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 44px max(24px, calc((100vw - 1200px) / 2)) 90px;
  background: var(--bg);
}
.pdp-media {
  display: grid;
  place-items: center;
  min-height: 440px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.pdp-media img { max-width: 58%; max-height: 400px; object-fit: contain; mix-blend-mode: multiply; }
.pdp-info h1 { max-width: none; }
.pdp-price { margin: 18px 0 4px; font-size: 30px; font-weight: 800; color: var(--ink); }
.pdp-price s { font-size: 16px; color: #9aa7b2; font-weight: 500; margin-left: 10px; }
.pdp-pack { color: var(--muted); font-weight: 600; font-size: 14px; }
.pdp-desc { margin: 18px 0; color: var(--muted); line-height: 1.75; max-width: 560px; }
.pdp-points { margin: 0 0 26px; padding-left: 18px; color: var(--muted); line-height: 1.85; font-size: 14.5px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.qty button {
  width: 42px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.qty button:hover { background: var(--bg-alt); }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }
.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.related { padding: 0 max(24px, calc((100vw - 1200px) / 2)) 110px; background: var(--bg); }

/* ---------- cart ---------- */
.cart-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
  padding: 44px max(24px, calc((100vw - 1200px) / 2)) 110px;
  background: var(--bg);
}
.cart-list, .summary, .form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.cart-thumb img { max-width: 68%; max-height: 66px; object-fit: contain; mix-blend-mode: multiply; }
.cart-row .t { font-weight: 800; color: var(--navy); }
.cart-row .m { color: var(--muted); font-size: 12.5px; margin: 2px 0 4px; }
.cart-row .line-price { font-weight: 800; }
.remove { background: none; border: 0; color: #b04434; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; font-family: inherit; }
.summary { padding: 22px; }
.summary h3 { margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-weight: 800; font-size: 18px; }
.form-panel { padding: 22px; margin-top: 24px; }
.form-panel h3 { margin: 0 0 6px; }
.form-panel .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; line-height: 1.6; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.order-done {
  padding: 44px 40px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.order-done h2 { max-width: none; }
.order-done .oid {
  display: inline-block;
  margin: 16px 0;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}

/* ---------- footer ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.8fr;
  gap: 32px;
  padding: 64px max(24px, calc((100vw - 1200px) / 2)) 44px;
  background: var(--navy-2);
  color: #fff;
}
.footer-grid img {
  width: 128px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
}
.footer-grid p { color: rgba(255, 255, 255, 0.66); font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-grid h4 { margin: 4px 0 14px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer-grid a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; }
.footer-grid a:hover { color: #fff; }
.footer-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.footer-base {
  padding: 18px max(24px, calc((100vw - 1200px) / 2)) 26px;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- toast & misc ---------- */
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(17, 58, 93, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .props { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header { height: 66px; }
  .brand img { width: 96px; }
  nav { display: none; }
  .header-action { min-height: 40px; padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 108px; gap: 36px; }
  .quote-board { min-width: 0; }
  .board-grid article { min-height: auto; }
  .grade-drop, .enquiry, .pdp, .cart-wrap { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .page-head { padding-top: 104px; }
  .search-box { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .p-media { height: 160px; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row .line-col { grid-column: 2; justify-self: start; }
}
@media (max-width: 430px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .p-grid, .props, .footer-grid { grid-template-columns: 1fr; }
}
