/* =========================================================
   NAYRA — Traditional Wisdom. Modern Wellness.
   Brand tokens: see BRAND_GUIDELINES.md
   ========================================================= */
/* ---------- Fonts (self-hosted, OFL licensed) ---------- */
@font-face { font-family: "Gilda Display"; src: url("../fonts/gilda-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --terracotta: #A95636;
  --terracotta-dark: #8C4329;
  --maroon: #4A1410;
  --cream: #FBF6EC;
  --sand: #F5E7D2;
  --sand-light: #F8EEE0;
  --blush: #F3DED2;
  --line: #E7D6C4;
  --text: #3B2A24;
  --muted: #6E5D55;
  --white: #FFFDF9;
  --whatsapp: #17763F;

  /* Type */
  --font-display: "Gilda Display", "Times New Roman", serif;
  --font-accent: "Lora", Georgia, serif;
  --font-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 7vw, 92px);
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(74, 20, 16, .06), 0 2px 8px rgba(74, 20, 16, .05);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--maroon); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section { padding: var(--section-y) 0; position: relative; overflow: hidden; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 680px; }
.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: 12px; top: -48px; z-index: 100; background: var(--terracotta); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Decorative leaves */
.decor { position: absolute; pointer-events: none; user-select: none; z-index: 0; opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font-ui); letter-spacing: .01em;
  padding: 1em 1.75em; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px -6px rgba(169, 86, 54, .55); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-sm { padding: .8em 1.4em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: transparent; color: var(--whatsapp); border: 1.5px solid currentColor; margin-top: 28px; padding: .85em 1.4em; }
.btn-whatsapp:hover { background: var(--whatsapp); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 246, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(74, 20, 16, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 230px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav ul a {
  font: 500 .9rem/1 var(--font-ui); color: var(--text); text-decoration: none; padding: 8px 0; position: relative;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--terracotta); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(680px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  background: linear-gradient(100deg, #FBF4E8 0%, #F8EBD8 100%);
}
.hero-media { position: absolute; inset: 0 0 0 auto; width: 60%; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.1rem); margin-bottom: .45em; }
.hero-product { font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--font-body); color: var(--terracotta); margin-bottom: .4em; }
.hero-lede { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text); max-width: 440px; margin-bottom: 1.8em; }
.hero-badges { display: flex; margin-top: clamp(36px, 5vw, 56px); }
.hero-badges li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 0 clamp(14px, 2.4vw, 28px);
  font: 600 .68rem/1.35 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text);
}
.hero-badges li:first-child { padding-left: 0; }
.hero-badges li + li { border-left: 1px solid var(--line); }
.hero-badges img { width: 48px; height: 48px; object-fit: contain; }
.decor-hero-l { width: 150px; left: -60px; top: -50px; transform: rotate(160deg); opacity: .3; filter: blur(1.5px); }

/* ---------- Our Story ---------- */
.story { background: var(--sand-light); }
.story-media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
.story-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.story-copy { max-width: 600px; }
.story-copy h2 { font-size: clamp(2.4rem, 4.4vw, 3.4rem); margin-bottom: .3em; }
.story-copy .accent {
  font: italic 500 clamp(1.2rem, 1.8vw, 1.45rem)/1.4 var(--font-accent); color: var(--terracotta); margin-bottom: 1.1em;
}

/* ---------- Ingredients ---------- */
.ingredients { background: var(--cream); }
.hero-ingredients { display: grid; grid-template-columns: repeat(3, 1fr); }
.ingredient { text-align: center; padding: 0 clamp(16px, 3vw, 40px); }
.ingredient + .ingredient { border-left: 1px solid var(--line); }
.ingredient img { height: 170px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 20px; transition: transform .5s ease; }
.ingredient:hover img { transform: translateY(-4px) scale(1.02); }
.ingredient h3 { font: 600 1.1rem/1.3 var(--font-body); color: var(--maroon); margin-bottom: .5em; }
.ingredient h3 span { white-space: nowrap; }
.ingredient p { color: var(--muted); font-size: .95rem; max-width: 300px; margin: 0 auto; }

.blend {
  margin-top: clamp(40px, 5vw, 64px); text-align: center;
  background: linear-gradient(180deg, #F6E8D3, #F3E2CB);
  border: 1px solid #E8D3B8; border-radius: 14px;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 48px);
}
.blend h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .25em; }
.blend-intro { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 0 auto 22px; }
.chips li {
  font: 500 .85rem/1 var(--font-body); color: var(--text);
  background: var(--white); border: 1px solid #E3CDB3; border-radius: var(--radius-pill); padding: .65em 1.15em;
}
.blend-note { margin: 0; color: var(--text); }

.decor-ing-l { width: 150px; left: -40px; top: 60px; }
.decor-ing-r { width: 120px; right: -20px; top: 110px; transform: scaleX(-1); opacity: .7; }
.decor-ing-r2 { width: 130px; right: -30px; bottom: 20px; transform: scaleX(-1) rotate(20deg); opacity: .7; }

/* ---------- Benefits ---------- */
.benefits { background: var(--white); }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit { text-align: center; padding: 0 clamp(10px, 1.6vw, 22px); }
.benefit + .benefit { border-left: 1px solid var(--line); }
.benefit img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 16px; }
.benefit h3 { font: 600 1rem/1.3 var(--font-body); color: var(--maroon); margin-bottom: .5em; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- FAQs ---------- */
.faqs { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; max-width: 1000px; margin: 0 auto; align-items: start; }
.faq-col { display: grid; gap: 14px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); transition: border-color .2s ease; }
.faq[open] { border-color: #DDBFA6; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font: 500 .98rem/1.4 var(--font-body); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--maroon); border-bottom: 1.5px solid var(--maroon);
  transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--terracotta); }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq-body p { margin: 0; }
.decor-faq-l { width: 130px; left: -30px; top: 40%; transform: rotate(-10deg); opacity: .65; }
.decor-faq-r { width: 140px; right: -30px; top: 55%; transform: scaleX(-1); opacity: .65; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--cream), var(--sand-light)); }
.contact .section-head h2 { margin-bottom: .2em; }
.contact .sub { font: 500 1.2rem/1.4 var(--font-body); color: var(--maroon); margin-bottom: .6em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; max-width: 1000px; margin: 0 auto; }
.contact-direct { padding-right: clamp(24px, 5vw, 64px); border-right: 1px solid var(--line); }
.contact-grid h3 { font: 600 1.15rem/1.3 var(--font-body); color: var(--maroon); margin-bottom: 22px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.contact-list img { width: 26px; height: 26px; object-fit: contain; margin-top: 2px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--terracotta); text-decoration: underline; }

.enquiry { padding-left: clamp(24px, 5vw, 64px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 .8rem/1.2 var(--font-body); color: var(--muted); }
.field label span { color: var(--terracotta); }
.field input, .field select, .field textarea {
  font: 400 .95rem/1.4 var(--font-body); color: var(--text);
  background: var(--white); border: 1px solid #DCC8B5; border-radius: 6px; padding: 11px 12px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A1410' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(169, 86, 54, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3261E; }
.field .error { font-size: .78rem; color: #B3261E; }
.hp { position: absolute; left: -9999px; }
.form-alt { text-align: center; font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--whatsapp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-status { margin: 12px 0 0; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--whatsapp); }
.form-status.err { color: #B3261E; }
.decor-contact-l { width: 170px; left: -40px; bottom: -20px; transform: rotate(-25deg); opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #F3EADD; border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand img { width: 200px; }
.site-footer ul { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer ul a { font: 500 .85rem/1 var(--font-ui); color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--terracotta); }
.copyright { margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .site-nav ul { gap: 20px; }
  .brand img { width: 200px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .benefit:nth-child(4) { border-left: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { width: 180px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: 0 16px 24px -16px rgba(74, 20, 16, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { margin-top: 18px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; width: 100%; order: 2; aspect-ratio: 1 / 1.05; }
  .hero-media img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%); object-position: 50% 60%; }
  .hero-inner { padding-bottom: 8px; }
  .hero-badges { margin-top: 32px; }

  .story { padding-bottom: 0; }
  .story-media { position: relative; width: 100%; height: 340px; margin-top: 24px; }
  .story-media img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%); mask-image: linear-gradient(180deg, transparent 0%, #000 25%); }
  .story > .container { order: -1; }
  .story { display: flex; flex-direction: column; }

  .hero-ingredients { grid-template-columns: 1fr; gap: 40px; }
  .ingredient + .ingredient { border-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }

  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-direct { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 36px; }
  .enquiry { padding-left: 0; }

  .decor-ing-r, .decor-ing-r2, .decor-faq-l { display: none; }
  .decor-ing-l { width: 100px; left: -40px; top: 20px; opacity: .5; }
  .decor-faq-r { width: 90px; top: 10px; right: -30px; opacity: .45; }
}

@media (max-width: 600px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .benefit:nth-child(odd) { border-left: 0; }
  .benefit:nth-child(4) { border-left: 1px solid var(--line); }
  .benefit:last-child { grid-column: 1 / -1; border-left: 0; max-width: 280px; margin: 0 auto; }
  .hero-badges li { padding: 0 10px; font-size: .6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .site-footer ul { justify-content: center; gap: 10px 16px; }
}
