/* Peiris Ceylon Spices: draft storefront styles */

:root {
  --cream: #f8f2e7;
  --cream-2: #f1e6d3;
  --sand: #e8d6b8;
  --bark: #7a4425;
  --bark-deep: #4a2a17;
  --cinnamon: #985128; /* darkened from #a65a2c: 4.8:1 on cream-2 (was 4.13) */
  --turmeric: #e0a83a;
  --turmeric-soft: #f3d79a;
  --green: #1f3a2e;
  --green-2: #2c4d3e;
  --ink: #2b1d14;
  --muted: #6c5848;
  --line: rgba(74, 42, 23, 0.14);
  --white: #fffdf9;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sinhala: "Noto Serif Sinhala", "Sinhala Sangam MN", "Iskoola Pota", serif;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(74, 42, 23, 0.06), 0 12px 32px -12px rgba(74, 42, 23, 0.25);
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--bark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; color: var(--bark-deep); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
/* turmeric ring only where the background is dark green or bark */
.uses :focus-visible, .site-footer :focus-visible, .why-lead :focus-visible, .draft-ribbon :focus-visible { outline-color: var(--turmeric); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.nowrap { white-space: nowrap; }
.why + .shop, .more + .contact { padding-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cinnamon); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.sinhala { font-family: var(--font-sinhala); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--bark); font-weight: 500; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; }
.section-lede { color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-2); }
.btn-primary:disabled { background: #9aa59f; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--green); border-color: rgba(31, 58, 46, 0.35); }
.btn-ghost:hover { border-color: var(--green); background: rgba(31, 58, 46, 0.05); }
.btn-gold { background: var(--turmeric); color: var(--ink); }
.btn-gold:hover { background: #e9b752; }
.btn-outline-light { color: var(--cream); border-color: rgba(248, 242, 231, 0.5); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; min-height: 44px; padding: 10px 0; font: 600 14px var(--font-body); color: var(--bark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Draft ribbon & header ---------- */
.draft-ribbon {
  background: var(--bark-deep); color: var(--turmeric-soft);
  text-align: center; font-size: 13px; letter-spacing: 0.04em; padding: 7px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 242, 231, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--bark-deep); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cinnamon); margin-top: 5px; font-weight: 700; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.main-nav a:hover { border-color: var(--turmeric); }
.icon-btn.menu-button { display: none; } /* .icon-btn sets display:grid later; match its specificity */
.cart-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--green);
  font: 600 15px var(--font-body); cursor: pointer;
}
.cart-button:hover { border-color: var(--green); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--green); color: var(--cream);
  display: inline-grid; place-items: center; font-size: 13px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); background: var(--turmeric); color: var(--ink); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); background: radial-gradient(1200px 600px at 85% 10%, var(--cream-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.04; margin-bottom: 24px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hallmarks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 34em; }
.hallmarks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--bark-deep); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px; line-height: 1.3; }
.hallmarks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--turmeric); }
.origin-mark { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.origin-mark img { display: block; width: auto; height: 22px; }
.origin-mark .flag { height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(74, 42, 23, 0.18); }
.origin-mark-header { margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
.origin-mark-hero { display: none; margin-bottom: 14px; }
.origin-mark-footer { margin-left: 10px; vertical-align: 2px; }
.origin-mark-footer .flag { box-shadow: 0 0 0 1px rgba(248, 242, 231, 0.3); }
.hero-facts { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-facts li { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.4; }
.hero-facts strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--bark-deep); margin-bottom: 4px; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-media::before {
  content: ""; position: absolute; inset: 28px -18px -18px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--turmeric-soft), var(--sand)); z-index: -1;
}
.hero-tag {
  position: absolute; left: -24px; bottom: 36px; background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.hero-tag-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cinnamon); font-weight: 700; }
.hero-tag-grades { font-family: var(--font-display); font-size: 22px; color: var(--bark-deep); }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-inner { display: flex; align-items: center; gap: 32px; }
.trust-badge { flex: none; width: 100px; height: 100px; }
.trust-list { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; }
.trust-list li { display: flex; flex-direction: column; line-height: 1.35; padding-left: 18px; border-left: 2px solid var(--turmeric); }
.trust-list strong { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--bark-deep); }
.trust-list span { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- Why Peiris ---------- */
.why { background: var(--cream); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; }
.why-card h3 { font-size: 26px; margin-bottom: 10px; }
.why-card p { color: var(--muted); margin: 0; }
.why-num { display: block; font-family: var(--font-display); font-size: 15px; color: var(--cinnamon); letter-spacing: 0.1em; margin-bottom: 14px; }
.why-lead { background: var(--green); border-color: var(--green); }
.why-lead h3 { color: var(--cream); font-size: 30px; }
.why-lead p { color: rgba(248, 242, 231, 0.85); }
.why-lead .why-num { color: var(--turmeric); }
.why-gmp { position: relative; }
.why-gmp img { position: absolute; top: 24px; right: 24px; width: 96px; height: 96px; }
.why-gmp h3, .why-gmp p { padding-right: 112px; }

.ceylon-vs-cassia { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 40px; }
.cvc-copy h3 { font-size: 30px; margin-bottom: 14px; }
.cvc-copy p:not([class]) { color: var(--muted); }
.cvc-copy .cvc-promise { color: var(--green); font-weight: 600; margin: 0; }
.cvc-figure { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 24px 26px; }
.cvc-figure figcaption { text-wrap: balance; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bark); margin-bottom: 18px; }
.cvc-bars { margin: 0; display: grid; gap: 16px; }
.cvc-row { position: relative; }
.cvc-row dt { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding-right: 150px; }
.cvc-row dd { margin: 0; }
.cvc-bar { position: relative; display: block; height: 14px; border-radius: 999px; background: rgba(74, 42, 23, 0.16); overflow: hidden; }
.cvc-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--from, 0%); width: calc(var(--w) - var(--from, 0%)); min-width: 6px; border-radius: 999px; }
.cvc-ceylon::after { background: var(--green); }
.cvc-other::after { background: var(--cinnamon); }
.cvc-val { position: absolute; top: -2px; right: 0; white-space: nowrap; font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--bark-deep); }
.cvc-sources { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* ---------- Story ---------- */
.story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.story-media { position: relative; padding-bottom: 18%; }
.story-media img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.story-img-a { width: 82%; aspect-ratio: 4 / 3.4; object-position: 80% 50%; }
.story-img-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--white); }
.story-copy h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.story-copy > p:not([class]) { color: var(--muted); }
.owner-quote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--turmeric); }
.owner-quote p { text-wrap: balance; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--bark-deep); margin-bottom: 10px; }
.owner-quote footer { font-size: 14px; color: var(--muted); }

/* ---------- Shop ---------- */
.shop { background: var(--cream); }
.draft-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0;
  font-size: 13px; font-weight: 600; color: var(--bark-deep);
  background: var(--turmeric-soft); border-radius: 999px; padding: 6px 14px;
}
.draft-pill span { color: var(--cinnamon); font-size: 10px; }
.grade-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 56px; }
.grade-guide-item { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.grade-guide-item p { margin: 0; color: var(--muted); }
.grade-guide-item strong { color: var(--ink); }
.grade-chip { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.grade-c, .grade-chip.grade-c { background: var(--turmeric-soft); color: var(--bark-deep); }
.grade-h, .grade-chip.grade-h { background: var(--bark); color: var(--cream); }
.grade-ground { background: var(--green); color: var(--cream); }

.group-title { font-size: 26px; margin: 0 0 24px; display: flex; align-items: center; gap: 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.product-grid { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid-two { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(74, 42, 23, 0.05); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; padding: 12px 12px 0; }
.media-frame {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--cream-2), var(--sand));
}
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
/* per-photo framing: trim table/floor edges that show at the frame edges */
.media-frame img[src$="number-1-cinnamon-powder.jpg"] { object-position: 50% 27%; }
.media-frame img[src$="machan-cut-cinnamon.jpg"] { object-position: 50% 20%; }
.media-frame video.fit-contain { object-fit: contain; }
.product-grid-two .media-frame { aspect-ratio: 5 / 4; }
.grade-badge {
  position: absolute; top: 24px; left: 24px; padding: 6px 12px 6px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px var(--font-body); letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
/* white pill so the grade reads over any photo; the dot carries the grade colour */
.product-media .grade-badge { background: var(--white); color: var(--bark-deep); }
.grade-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.grade-badge.grade-c::before { background: var(--turmeric); }
.grade-badge.grade-h::before { background: var(--bark); }
/* extra photos sit as small thumbs over the photo's bottom-left corner, so every card's photo-to-title spacing matches */
.media-thumbs { position: absolute; left: 22px; bottom: 10px; display: flex; gap: 8px; }
.media-thumbs:empty, .product-grid-two .media-thumbs { display: none; }
.thumb { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--white); background: var(--cream-2); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--green); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(31, 58, 46, 0.45); }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 22px; margin-bottom: 8px; }
.product-promise { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.h1-accent { color: var(--cinnamon); font-style: italic; white-space: nowrap; }
.product-blurb { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.product-meta { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 24px; color: var(--bark-deep); margin-right: 8px; }
.price-soon { display: block; font-size: 19px; font-style: italic; color: var(--cinnamon); margin-right: 0; }
.draft-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bark); background: var(--turmeric-soft); padding: 3px 8px; border-radius: 6px; vertical-align: 4px; }
.pack { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.btn-add { width: 100%; }
.product-grid-two .product-card { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.product-grid-two .product-media { padding: 12px; min-width: 0; }
.product-grid-two .media-frame { aspect-ratio: auto; height: 100%; min-height: 260px; }
.product-grid-two .product-body { padding: 24px 18px 24px 12px; justify-content: center; }
.product-grid-two .product-meta { margin-top: 4px; }
.noscript { padding: 20px; background: var(--white); border-radius: var(--radius); }

/* ---------- Uses & wholesale ---------- */
.uses { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.uses .eyebrow { color: var(--turmeric); }
.uses h2, .uses h3 { color: var(--cream); }
.uses .section-lede { color: rgba(248, 242, 231, 0.8); }
.uses-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.use-tile { grid-column: span 2; }
.use-tile.use-feature { grid-column: span 3; background: rgba(224, 168, 58, 0.12); border-color: rgba(224, 168, 58, 0.4); padding: 34px 28px; }
.use-tile.use-feature { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; column-gap: 16px; }
.use-tile.use-feature .use-icon { margin: 0; }
.use-tile.use-feature h3 { font-size: 30px; margin: 0; }
.use-tile.use-feature p { grid-column: 1 / -1; margin-top: 14px; }
.use-feature p { font-size: 16px; color: rgba(248, 242, 231, 0.88); }
.use-tile { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(248, 242, 231, 0.14); border-radius: var(--radius-lg); padding: 28px; }
.use-icon { width: 48px; height: 48px; color: var(--turmeric); margin-bottom: 20px; }
.use-tile h3 { font-size: 22px; margin-bottom: 10px; }
.use-tile p { font-size: 15px; color: rgba(248, 242, 231, 0.78); margin: 0; }
.wholesale {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--green-2); border: 1px solid rgba(224, 168, 58, 0.35); border-radius: var(--radius-lg); padding: 28px 32px;
}
.wholesale h3 { font-size: 26px; margin-bottom: 6px; }
.wholesale p { margin: 0; color: rgba(248, 242, 231, 0.8); }
.wholesale-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wholesale-email { color: var(--turmeric-soft); font-weight: 600; padding-block: 10px; }

/* ---------- Ordering ---------- */
.ordering { background: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--turmeric); color: var(--ink); font-family: var(--font-display); font-size: 20px; margin-bottom: 20px; }
.steps h3 { font-size: 23px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- More spices ---------- */
.more { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
/* zoomed in on the rolled ends: the photo is mostly blank paper below them, and a worker sits above them */
.more-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.more-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.more-copy h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 20px; }
.more-copy p:not([class]) { color: var(--muted); margin-bottom: 28px; }

/* ---------- Contact & footer ---------- */
.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-grid h2 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 16px; }
.contact-cards { display: grid; grid-auto-rows: 1fr; gap: 16px; }
.contact-card {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px 64px 24px 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: var(--bark); box-shadow: var(--shadow); }
/* chevron cue: drawn with borders so screen readers announce nothing extra */
.contact-card::after { content: ""; position: absolute; right: 30px; top: 50%; width: 11px; height: 11px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: translateY(-50%) rotate(45deg); transition: transform .2s; }
.contact-card:hover::after, .contact-card:focus-visible::after { transform: translate(4px, -50%) rotate(45deg); }
.contact-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cinnamon); }
.contact-value { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 30px); color: var(--bark-deep); }
.site-footer { background: var(--bark-deep); color: rgba(248, 242, 231, 0.78); padding: 56px 0 40px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 24px 48px; }
.footer-brand { font-family: var(--font-display); font-size: 26px; color: var(--cream); margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: -10px; }
.footer-links a, .footer-contact a { color: var(--cream); text-decoration: none; display: inline-block; padding: 10px 0; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact { margin: 0; display: grid; gap: 10px; align-content: start; }
.footer-contact dt { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--turmeric-soft); }
.footer-contact dd { margin: 0; }
.footer-contact dd { margin-top: -6px; }
.footer-small { grid-column: 1 / -1; border-top: 1px solid rgba(248, 242, 231, 0.15); padding-top: 20px; margin: 16px 0 0; font-size: 13px; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 20, 0.45); opacity: 0; transition: opacity .28s; }
.drawer-backdrop.open { opacity: 1; }
.cart-drawer {
  position: fixed; z-index: 70; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--cream); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(43, 29, 20, 0.25);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { color: var(--muted); }
.cart-empty-block .btn { margin-top: 4px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-line-info { min-width: 0; padding-right: 8px; }
.cart-line-name { font-family: var(--font-display); font-size: 18px; color: var(--bark-deep); margin: 0 0 2px; line-height: 1.2; }
.cart-line-price { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line-total, .subtotal-row, .checkout-summary li > span:last-child { font-family: var(--font-display); color: var(--bark-deep); font-variant-numeric: tabular-nums; }
.cart-line-total { font-size: 18px; line-height: 1.2; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; color: var(--green); cursor: pointer; border-radius: 50%; }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: 600 15px var(--font-body); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.subtotal-row { display: flex; justify-content: space-between; font-size: 22px; margin-bottom: 6px; }
.guarantee-note { font-size: 13px; color: var(--green); background: rgba(31, 58, 46, 0.07); border-radius: 10px; padding: 8px 12px; margin: 4px 0 8px; }
.prices-soon-note { font-family: var(--font-display); font-size: 17px; line-height: 1.35; color: var(--bark-deep); margin: 0 0 8px; }
.checkout-summary .summary-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.checkout-summary .summary-note > span:last-child { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.foot-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.checkout-summary { list-style: none; margin: 4px 0 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.checkout-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.checkout-summary li > span:last-child { font-size: 16px; }
.checkout-summary .summary-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 19px; color: var(--bark-deep); }
.checkout-summary .summary-total > span:last-child { font-size: 19px; }
.checkout-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.checkout-form h3 { font-size: 24px; margin: 18px 0 6px; }
.form-hint { font-size: 14px; color: var(--muted); max-width: none; text-wrap: wrap; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.checkout-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.checkout-form .optional { font-weight: 400; color: var(--muted); }
.checkout-form input, .checkout-form textarea {
  display: block; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(74, 42, 23, 0.55); background: var(--white); font: 16px var(--font-body); color: var(--ink);
}
/* one ring only: the border thickens on focus, green normally, red when the field has an error */
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.checkout-form [aria-invalid="true"] { border-color: #b3261e; }
.checkout-form [aria-invalid="true"]:focus { border-color: #b3261e; box-shadow: 0 0 0 1.5px #b3261e; }
.field-error { color: #9b1c15; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
/* the fields scroll; the send buttons sit below them, so they never cover a field */
.send-row { flex: none; display: grid; gap: 10px; padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }

.cart-bar { display: none; }
@media (max-width: 600px) {
  .cart-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(74, 42, 23, 0.35);
  }
  .cart-bar[hidden] { display: none; }
  .cart-bar-info { margin: 0; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .cart-bar-count { font-size: 13px; color: var(--muted); }
  .cart-bar-subtotal { font-family: var(--font-display); font-size: 20px; color: var(--bark-deep); font-variant-numeric: tabular-nums; }
  .cart-bar .btn { flex: none; padding-inline: 22px; }
  body.has-cart-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-cart-bar .toast:not(.toast-top) { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  background: var(--green); color: var(--cream); padding: 12px 20px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* while the cart drawer is open, messages show at the top so they never cover its buttons */
.toast.toast-top { bottom: auto; top: 16px; transform: translate(-50%, -20px); }
.toast.toast-top.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .use-tile, .use-tile.use-feature { grid-column: span 1; }
  .use-tile:last-child { grid-column: 1 / -1; }
}
/* the menu button takes over below 1180px, where the translated nav labels no longer fit on one row */
@media (max-width: 1180px) {
  .header-inner { position: relative; gap: 12px; }
  .main-nav { display: none; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px clamp(20px, 4vw, 40px) 16px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(74, 42, 23, 0.3);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .main-nav a:last-child { border-bottom: 0; }
  .icon-btn.menu-button { display: grid; margin-left: auto; }
  .cart-button { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero-grid, .story-grid, .more-grid, .contact-grid, .ceylon-vs-cassia { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .hero-media img { aspect-ratio: 5 / 4; }
  .hero-tag { left: 16px; bottom: -20px; }
  .product-grid-two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand-name { font-size: 22px; }
  .brand-mark svg { width: 32px; height: 32px; }
  .cart-label { display: none; }
  .hero-media::before { inset: 16px -8px -10px 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 20px 0 48px; }
  .hero-grid { gap: 36px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hallmarks { margin-top: 20px; }
  .hallmarks li { font-size: 13px; padding: 6px 12px 6px 10px; }
  .origin-mark-header { display: none; }
  .origin-mark-hero { display: flex; }
  .grade-guide { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .media-frame { aspect-ratio: 1; }
  .uses-grid { grid-template-columns: 1fr; gap: 14px; }
  .use-tile, .use-tile.use-feature { padding: 24px 22px; }
  .use-tile:not(.use-feature) { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 18px 20px; }
  .use-tile:not(.use-feature) .use-icon { width: 32px; height: 32px; margin: 0; grid-row: span 2; }
  .use-tile:not(.use-feature) h3 { font-size: 20px; margin-bottom: 4px; }
  .use-tile:last-child { grid-column: auto; }
  .trust { padding: 22px 0; }
  .trust-badge { display: none; } /* the full badge is in the GMP card under Why Peiris */
  .trust-list { grid-template-columns: 1fr; gap: 14px; }
  .trust-list li { padding-left: 12px; }
  .trust-list strong { font-size: 17px; }
  .trust-list span { font-size: 13px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 22px 20px; }
  .why-gmp img { top: 18px; right: 18px; width: 64px; height: 64px; }
  .why-gmp h3 { padding-right: 72px; }
  .why-gmp p { padding-right: 0; }
  .ceylon-vs-cassia { padding: 26px 22px; gap: 24px; }
  .cvc-copy h3 { font-size: 26px; }
  .cvc-figure { padding: 20px; }
  /* label on its own line; bar and value share the next, with a fixed value column so both bars keep the same scale */
  .cvc-row dt { padding-right: 0; }
  .cvc-row dd { display: grid; grid-template-columns: 1fr 7.6em; align-items: center; gap: 12px; }
  .cvc-val { position: static; text-align: right; font-size: 16px; }
  .product-grid-two .product-card { grid-template-columns: 1fr; }
  .product-grid-two .product-media { padding: 12px 12px 0; }
  .product-grid-two .media-frame { aspect-ratio: 1; height: auto; min-height: 0; }
  .media-frame img[src$="number-1-cinnamon-powder.jpg"] { object-position: 50% 32%; }
  .media-frame img[src$="machan-cut-cinnamon.jpg"] { object-position: 50% 26%; }
  .product-grid-two .product-body { padding: 18px 22px 22px; }
  .wholesale { padding: 24px; }
  .contact-card { padding: 20px 44px 20px 22px; }
  .contact-card::after { right: 22px; }
  .contact-value { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
  .wholesale-actions { flex: 1 1 100%; }
  .wholesale-actions .btn { flex: 1 1 100%; }
  .more-copy .btn { width: 100%; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .step-num { grid-row: span 2; margin: 0; }
  .steps h3 { align-self: center; }
  .story-media { padding-bottom: 22%; }
}
/* narrow phones: brand, menu, language and cart share one row */
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .brand-mark { display: none; }
  .brand-sub { font-size: 10px; letter-spacing: 0.16em; white-space: nowrap; }
  .cart-button { padding: 8px 10px; gap: 6px; }
}

/* Language picker */
.lang-picker { display: flex; align-items: center; }
.lang-picker select {
  appearance: none; -webkit-appearance: none; font: 600 15px/1 var(--font-body); color: var(--white);
  height: 44px; padding: 0 34px 0 40px; border: 0; border-radius: 999px; cursor: pointer;
  background-color: var(--green);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e0a83a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.8 3.9 5.8 3.9 9s-1.3 6.2-3.9 9c-2.6-2.8-3.9-5.8-3.9-9S9.400 5.800 12 3Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: left 14px center, right 14px center;
}
.lang-picker select option { color: var(--ink); background: var(--white); }
.lang-picker select:hover { background-color: var(--bark-deep); }
.lang-picker select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 900px) { .lang-picker select { padding-left: 36px; padding-right: 28px; font-size: 14px; background-position: left 12px center, right 11px center; } }
/* Sinhala: fonts with Sinhala glyphs, and more room between lines */
html[lang="si"] { --font-display: "Fraunces", "Noto Serif Sinhala", "Iskoola Pota", serif; --font-body: "Manrope", "Noto Sans Sinhala", "Iskoola Pota", -apple-system, sans-serif; }
html[lang="si"] body { line-height: 1.8; }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] h3 { line-height: 1.4; letter-spacing: 0; }
html[lang="si"] .eyebrow, html[lang="si"] .btn { letter-spacing: 0; }
html[lang="si"] .price-soon { font-style: normal; }
