/* ========================================================================
   Essentia — style.css   Design: Botanica Moderna
   ======================================================================== */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --ink:        #0D1F12;
  --ink-soft:   #3D5142;
  --ink-mute:   #7A8F7D;
  --paper:      #F8F4ED;
  --paper-mid:  #EDE9E0;
  --paper-dim:  #DED9CF;
  --gold:       #C9A96E;
  --gold-deep:  #9E7A45;
  --sage:       #6B9970;
  --white:      #FFFFFF;
  --r-xl:  24px;
  --r-lg:  16px;
  --r-md:  10px;
  --r-btn: 8px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --shadow-card:  0 4px 24px rgba(13,31,18,.08);
  --shadow-hover: 0 8px 40px rgba(13,31,18,.16);
  --trans: .22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px,5vw,56px); }
.section-padding { padding-block: clamp(64px,9vw,112px); }

/* ─── Typography helpers ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 14px;
}
.eyebrow--gold { color: var(--gold); }
.h-sec {
  font-family: var(--font-display);
  font-size: clamp(30px,5vw,54px);
  font-weight: 600;
  line-height: 1.13;
}
.h-sec em { font-style: italic; color: var(--gold); }
.section-header { margin-bottom: clamp(40px,6vw,64px); }
.section-header--center { text-align: center; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 600; transition: all var(--trans);
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-deep); color: var(--white); }
.btn--outline { border: 1.5px solid currentColor; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); }
.btn--submit { width: 100%; justify-content: center; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.28); }
.header-inner {
  display: flex; align-items: center;
  gap: 32px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.brand-name {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 600; color: var(--white); letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  padding: 7px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.76);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* lang switcher */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8);
  font-family: var(--font-mono);
  transition: background var(--trans), color var(--trans);
}
.lang-btn:hover, .lang[aria-expanded="true"] .lang-btn {
  background: rgba(255,255,255,.1); color: var(--white);
}
.lang-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.chev { transition: transform var(--trans); }
.lang[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 188px; background: var(--ink);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
  padding: 6px; display: none; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
}
.lang[aria-expanded="true"] .lang-menu { display: block; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78);
  transition: background var(--trans), color var(--trans);
}
.lang-menu button:hover, .lang-menu button.active {
  background: rgba(255,255,255,.1); color: var(--white);
}
.lang-menu .code { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }
.header-cta { flex-shrink: 0; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--trans); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto;
  width: min(300px,90vw); background: var(--ink);
  transform: translateX(100%); transition: transform var(--trans);
  z-index: 90; display: flex; flex-direction: column; gap: 4px;
  padding: 88px 20px 32px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  padding: 12px 16px; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,.8);
  transition: background var(--trans), color var(--trans);
}
.mobile-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.mobile-nav .btn { margin-top: 8px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { background: var(--paper); overflow: hidden; padding-block: clamp(56px,8vw,96px) clamp(48px,7vw,80px); }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,72px); align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px,5.5vw,68px);
  font-weight: 600; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(15px,1.8vw,18px); color: var(--ink-soft);
  max-width: 500px; margin-bottom: 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1.5px solid var(--paper-dim);
  border-radius: 100px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--white);
}
.hero-badge::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--sage); flex-shrink: 0;
}
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%; border-radius: var(--r-xl);
  aspect-ratio: 4/3; object-fit: cover;
}
.hero-float {
  position: absolute; bottom: 24px; left: -20px;
  background: var(--white); border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 14px;
}
.hero-float .big { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-float .small { font-size: 12px; color: var(--ink-soft); line-height: 1.5; max-width: 80px; }

/* ─── Marquee ────────────────────────────────────────────────────────────── */
.marquee-wrap { background: var(--gold); overflow: hidden; padding-block: 13px; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite; gap: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  padding-inline: 28px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; font-weight: 500;
}
.marquee-item::before { content: '✦'; font-size: 9px; opacity: .5; }

/* ─── Philosophy ─────────────────────────────────────────────────────────── */
.philosophy { background: var(--ink); color: var(--white); }
.philosophy .eyebrow { color: var(--gold); }
.philosophy .h-sec { color: var(--white); }
.phil-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.phil-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: clamp(22px,3vw,34px);
  transition: background var(--trans), border-color var(--trans);
}
.phil-card:hover { background: rgba(255,255,255,.1); border-color: rgba(201,169,110,.4); }
.phil-icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--gold); }
.phil-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--white); }
.phil-card p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.62); }

/* ─── Ingredients ────────────────────────────────────────────────────────── */
.ingredients { background: var(--paper-mid); }
.ing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.ing-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}
.ing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.ing-img-wrap { position: relative; }
.ing-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ing-origin {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--white); border-radius: 100px;
  padding: 4px 12px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.ing-body { padding: 24px; }
.ing-name {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 600; font-style: italic; color: var(--ink); margin-bottom: 10px;
}
.ing-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

/* ─── Products ───────────────────────────────────────────────────────────── */
.products { background: var(--ink); color: var(--white); }
.products .eyebrow { color: var(--gold); }
.products .h-sec { color: var(--white); }
.prod-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.prod-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
}
.prod-card:hover { border-color: rgba(201,169,110,.4); transform: translateY(-3px); }
.prod-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.prod-body { padding: clamp(18px,2.5vw,28px); }
.prod-num { font-family: var(--font-mono); font-size: 11px; color: var(--gold); opacity: .7; margin-bottom: 10px; }
.prod-body h3 {
  font-family: var(--font-display); font-size: 22px;
  font-style: italic; color: var(--white); margin-bottom: 10px;
}
.prod-body p { font-size: 14px; color: rgba(255,255,255,.62); line-height: 1.6; margin-bottom: 16px; }
.prod-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); transition: gap var(--trans);
}
.prod-link:hover { gap: 10px; }
.prod-link svg { width: 13px; height: 13px; }

/* ─── Process ────────────────────────────────────────────────────────────── */
.process { background: var(--paper); }
.proc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.proc-card {
  background: var(--white); border: 1px solid var(--paper-dim);
  border-radius: var(--r-lg); padding: clamp(22px,3vw,34px);
  box-shadow: var(--shadow-card); position: relative;
}
.proc-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 700;
  font-style: italic; line-height: 1; color: var(--paper-dim); margin-bottom: 14px;
}
.proc-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.proc-card p { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }

/* ─── Reviews ────────────────────────────────────────────────────────────── */
.reviews { background: var(--paper-mid); }
.reviews .h-sec { color: var(--ink); }
.rev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rev-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.rev-stars { display: flex; gap: 3px; }
.rev-star { color: var(--gold); font-size: 15px; }
.rev-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; line-height: 1.65; color: var(--ink-soft); flex: 1;
}
.rev-text::before { content: '"'; }
.rev-text::after  { content: '"'; }
.rev-who { display: flex; align-items: center; gap: 12px; }
.rev-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper-dim); }
.rev-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.rev-role { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-section { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px,6vw,88px); align-items: start; }
.contact-info .eyebrow { color: var(--gold); }
.contact-info .h-sec { color: var(--white); margin-bottom: 14px; }
.contact-sub { font-size: 16px; color: rgba(255,255,255,.68); line-height: 1.7; margin-bottom: 36px; }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: 18px 20px;
}
.info-icon { width: 36px; height: 36px; color: var(--gold); flex-shrink: 0; }
.info-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.info-val { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.6; }
.info-val a { color: rgba(255,255,255,.82); }
.info-val a:hover { color: var(--gold); }

/* form */
.form-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl); padding: clamp(26px,4vw,46px);
}
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.78); }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md); padding: 12px 14px;
  color: var(--white); font-size: 15px; outline: none;
  transition: border-color var(--trans), background var(--trans);
  -webkit-appearance: none;
}
.field select { color: var(--white); }
.field select option { color: var(--ink); background: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold); background: rgba(255,255,255,.1);
}
.field input.err, .field textarea.err, .field select.err { border-color: #e05c5c; }
.field textarea { resize: vertical; min-height: 108px; }
.field--chk { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.field--chk input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--gold); margin-top: 2px; }
.field--chk label { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; font-weight: 400; cursor: pointer; }
.btn--submit { background: var(--gold); color: var(--ink); padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: var(--r-btn); transition: background var(--trans), color var(--trans); }
.btn--submit:hover { background: var(--gold-deep); color: var(--white); }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.suc-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(107,153,112,.2); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--sage);
}
.suc-icon svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.form-success p { font-size: 15px; color: rgba(255,255,255,.68); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.08); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-block: clamp(48px,6vw,72px) clamp(36px,5vw,52px);
}
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 260px; margin-top: 14px; }
.footer-col h4 {
  font-size: 12px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col a, .footer-col .ftxt {
  display: block; font-size: 14px; margin-bottom: 9px;
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 18px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal-hero { padding-block: clamp(44px,6vw,80px) 32px; }
.legal-hero .h-sec { margin-top: 12px; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); margin-top: 14px; }
.legal-body { padding-bottom: clamp(64px,9vw,110px); max-width: 740px; }
.legal-body h2 { font-size: 22px; font-family: var(--font-display); margin: 40px 0 12px; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15px; }
.legal-body a { color: var(--gold-deep); text-decoration: underline; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft); margin-bottom: 6px;
  transition: gap var(--trans), color var(--trans);
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { gap: 11px; color: var(--ink); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .phil-grid { grid-template-columns: repeat(2,1fr); }
  .proc-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .nav-links, .header-cta { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .hero-float { left: 12px; bottom: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .ing-grid, .rev-grid, .phil-grid, .proc-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}
