/* =====================================================================
   MISWAK WHOLESALE ·miswak-wholesale.com
   Art direction: Ottoman apothecary / botanical manuscript
   Hand-coded, unique to this site. See CLAUDE.md for the shared rules.
   ===================================================================== */

/* -------------------- Design tokens (mandated) -------------------- */
:root {
  --bg: #E8F0DC;
  --text: #1A2E10;
  --accent: #3A6B20;
  --accent-light: #C8DDB8;
  --font-display: 'Cormorant Upright', serif;
  --font-body: 'Jost', sans-serif;

  /* Supplementary tokens (all colours defined here, never inline) */
  --accent-soft: rgba(58, 107, 32, 0.15);   /* accent @ 15% ·placeholders */
  --surface: #F3F6EA;                        /* cards */
  --surface-alt: #DCE7C9;                    /* alt sections */
  --border: rgba(26, 46, 16, 0.16);
  --dark: #24471A;                           /* dark section */
  --on-dark: #F3F6EA;
  --gold: #A9873E;
  --arabic: 'Amiri', serif;                  /* decorative script only */

  /* Typography scale */
  --fs-h1: clamp(2.8rem, 7vw, 5rem);
  --fs-h2: clamp(1.9rem, 4vw, 2.9rem);
  --fs-h3: 1.4rem;
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;

  /* Rhythm */
  --gap: 24px;
  --section-pad: clamp(80px, 8vw, 120px);
  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 18px 44px -28px rgba(26, 46, 16, 0.45);
}

/* -------------------- Reset -------------------- */
::selection { background: var(--accent); color: var(--bg); }
::-moz-selection { background: var(--accent); color: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* -------------------- Layout -------------------- */
.section-inner { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.container-narrow { max-width: 760px; }
section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-index {
  display: inline-block;
  font-family: var(--arabic);
  font-size: var(--fs-small);
  letter-spacing: 0.35em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 1rem;
}
.section-index-light { color: var(--accent-light); border-color: var(--accent-light); }
.section-sub { font-size: 1.1rem; color: var(--text); opacity: 0.8; margin-top: 0.75rem; }
.section-dark .section-sub { color: var(--on-dark); opacity: 0.85; }

/* -------------------- Grids (consistent gap) -------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Products: 3 cards. Centered flex keeps any trailing row centered so a
   last card never orphan-aligns left. */
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.product-grid .product-card { flex: 1 1 300px; max-width: calc((100% - 2 * var(--gap)) / 3); }

/* -------------------- Image placeholder system -------------------- */
/* <img> covers a fallback panel. onerror adds .img-missing to the frame:
   the img hides and the .img-placeholder (filename + dims) shows. Drop real
   photos into /images with the exact filenames from images/README.txt. */
.img-frame {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}
.img-frame.ratio-16x9 { aspect-ratio: 16 / 9; }
.img-frame.ratio-4x3  { aspect-ratio: 4 / 3; }
.img-real { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: monospace;
  font-size: 12px;
}
.img-frame.img-missing .img-real { display: none; }
.img-frame.img-missing .img-placeholder { display: flex; }
.section-dark .img-placeholder { color: var(--accent-light); }

/* -------------------- Nav -------------------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 240, 220, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
  padding: 0.7rem 0;
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; }
.brand-mark { font-family: var(--arabic); font-size: 1.7rem; color: var(--accent); line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-size: 1rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); padding: 0.35rem 0.95rem; border-radius: var(--radius); color: var(--accent); transition: background 0.25s ease, color 0.25s ease; }
.nav-links a.nav-cta:hover { background: var(--accent); color: var(--on-dark); }

.lang-toggle {
  font-family: var(--font-body);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-small);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}
.lang-toggle span { transition: opacity 0.25s ease, color 0.25s ease; }
/* on hover, wake up the dimmed target language so it reads as clickable */
.lang-toggle:hover .lt-en,
.lang-toggle:hover .lt-fr { opacity: 1; }
.lt-sep { opacity: 0.4; margin: 0 3px; }
html[lang="en"] .lt-en { font-weight: 600; color: var(--accent); }
html[lang="fr"] .lt-fr { font-weight: 600; color: var(--accent); }
html[lang="en"] .lt-fr, html[lang="fr"] .lt-en { opacity: 0.5; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--dark); box-shadow: 0 16px 30px -14px rgba(36, 71, 26, 0.7); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); box-shadow: 0 16px 30px -16px rgba(26, 46, 16, 0.55); }
.btn-block { width: 100%; border: none; font-size: 1.25rem; }
.section-dark .btn-primary { background: var(--accent-light); color: var(--dark); }
.section-dark .btn-primary:hover { background: var(--on-dark); }

/* -------------------- Hero -------------------- */
#hero { overflow: hidden; padding-top: clamp(3.5rem, 9vw, 7rem); }
.hero-filigrane {
  position: absolute;         /* decorative ·absolute, never fixed */
  top: 4%;
  right: -4%;
  font-family: var(--arabic);
  font-size: 42vw;
  line-height: 0.7;
  color: var(--text);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  direction: rtl;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;   /* 60% text / 40% image */
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-text { max-width: 640px; }
.eyebrow { font-family: var(--arabic); letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.2rem; }
.hero h1, #hero h1 { letter-spacing: 0.01em; margin-bottom: 1.4rem; }
.hero-lead { font-size: clamp(1.2rem, 3vw, 1.6rem); max-width: 42ch; opacity: 0.9; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.hero-ship { margin: 0 0 1.8rem; font-weight: 500; font-size: 1rem; color: var(--accent); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.hero-badges li { position: relative; padding-left: 1.3rem; opacity: 0.85; }
.hero-badges li::before { content: "\276E"; position: absolute; left: 0; color: var(--gold); }
.hero-media { aspect-ratio: 4 / 5; }   /* portrait, suits the narrower right column */

/* -------------------- Cards (shared internal structure) -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card .img-frame { margin-bottom: 1.2rem; }
.card h3 { font-size: 1.7rem; margin-bottom: 0.15rem; }

.product-species { font-family: var(--arabic); font-size: var(--fs-small); letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.8rem; }
.product-desc { opacity: 0.88; }
.flavour-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--border); }
.flavour-tag { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 500; padding: 0.28rem 0.75rem; border-radius: 999px; background: var(--accent-light); color: var(--accent); transition: transform 0.25s ease, background 0.25s ease; }
.product-card:hover .flavour-tag { transform: translateY(-2px); }
.product-formats { margin: 0; padding-top: 0.9rem; border-top: 1px dashed var(--border); font-size: 0.98rem; color: var(--dark); }
.pack-card p { margin: 0; opacity: 0.85; }
.pack-note-global { text-align: center; margin: 2.8rem auto 0; color: var(--accent); font-weight: 500; font-size: 1.05rem; }

/* ---- Two-axis packaging as an apothecary "composition" ---- */
/* Axis header: a gold script eyebrow flanked by short rules, then a display title */
.pack-axis-head { text-align: center; margin-bottom: 1.9rem; }
.pack-axis-eyebrow {
  display: inline-block;
  font-family: var(--arabic);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.pack-axis-eyebrow::before,
.pack-axis-eyebrow::after {
  content: ""; display: inline-block; width: 26px; height: 1px;
  vertical-align: middle; margin: 0 0.85em; background: var(--gold); opacity: 0.55;
}
.pack-axis-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.15rem); color: var(--text); line-height: 1.1; margin-top: 0.55rem; }
.pack-axis-sub { text-align: center; opacity: 0.78; font-size: 1rem; max-width: 560px; margin: 0.7rem auto 0; }
/* Wider container for the packaging section */
#packaging .section-inner { width: min(100% - 3rem, 1280px); }
/* Four formats on a single row */
.pack-axis .packaging-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 900px) { .pack-axis .packaging-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pack-axis .packaging-grid { grid-template-columns: 1fr; } }

/* Format cards: compact, image sits flush (no frame) */
.pack-card { padding: 1rem; }
.pack-card .img-frame { margin-bottom: 1rem; }

/* Space between the two axes now that the seal has moved to the hero */
.pack-axis + .pack-axis { margin-top: 3.4rem; }

/* Signature: apothecary vacuum-seal medallion, stamped in the hero image corner */
.seal { width: 130px; height: 130px; transform: rotate(-5deg); filter: drop-shadow(0 6px 14px rgba(26, 46, 16, 0.18)); }
.seal svg { width: 100%; height: 100%; display: block; }
.seal-ring-outer { fill: var(--surface); stroke: var(--gold); stroke-width: 1.6; }
.seal-ring-inner { fill: none; stroke: var(--gold); stroke-width: 0.8; opacity: 0.65; }
.seal-arc { font-family: var(--font-body); font-size: 8.4px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; fill: var(--accent); }
.seal-word { font-family: var(--arabic); font-size: 27px; fill: var(--gold); }
.seal-latin { font-family: var(--font-body); font-size: 6.5px; letter-spacing: 3px; text-transform: uppercase; fill: var(--accent); opacity: 0.85; }
.seal-mark { fill: var(--gold); }
/* Hero placement: stamped inside the bottom-left corner of the hero image */
.hero-seal { position: absolute; left: 20px; bottom: 20px; width: 116px; height: 116px; margin: 0; z-index: 2; transform: rotate(-8deg); }

/* Per-stick case: light horizontal PNG cut-outs on a soft ground, refined caption */
.etui-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 4rem; margin-top: 2rem; }
.etui-item { width: 400px; max-width: 100%; margin: 0; text-align: center; }
.etui-figure { position: relative; aspect-ratio: 7 / 2; background: none; border-radius: 0; }
.etui-figure::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -2px; height: 10px;
  background: radial-gradient(ellipse at center, rgba(26, 46, 16, 0.2), transparent 72%);
  opacity: 0; transition: opacity 0.4s ease;
}
.etui-item:hover .etui-figure::after { opacity: 1; }
.etui-figure .img-real { position: relative; object-fit: contain; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.etui-item:hover .etui-figure .img-real { transform: translateY(-5px) scale(1.02); }
.etui-caption { margin-top: 0.85rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.15; }
.etui-caption span { display: block; margin-top: 0.2rem; font-family: var(--arabic); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.pack-combo-note { text-align: center; max-width: 640px; margin: 2rem auto 0; opacity: 0.82; font-size: 1rem; }

/* -------------------- Why us -------------------- */
.why-item { padding-top: 1.1rem; border-top: 2px solid var(--accent); }
.why-item h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.why-item p { margin: 0; opacity: 0.85; }

/* -------------------- OEM -------------------- */
.oem-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.oem-inner h2 { margin-bottom: 1.2rem; }
.oem-lead { font-size: 1.3rem; margin-bottom: 1rem; }
.oem-note { opacity: 0.7; margin-bottom: 2rem; }
.oem-media { max-width: 520px; margin: 0 auto 2rem; }

/* -------------------- Process -------------------- */
.process-steps { counter-reset: step; }
.step { padding-top: 1rem; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); opacity: 0.5; display: block; margin-bottom: 0.4rem; }
.step h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.step p { margin: 0; opacity: 0.85; }

/* -------------------- Related -------------------- */
.related-copy { font-size: 1.15rem; opacity: 0.85; }

/* -------------------- FAQ -------------------- */
.faq-list { border-top: 1px solid var(--border); counter-reset: faq; }
.faq-item { border-bottom: 1px solid var(--border); counter-increment: faq; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: inline; font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.2s ease, border-color 0.3s ease; }
.faq-q::before { content: counter(faq, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; color: var(--accent); margin-right: 0.7rem; opacity: 0.8; }
.faq-item[open] .faq-q { border-bottom-color: var(--accent-soft); }
.faq-item summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1rem; font-size: 1.8rem; line-height: 1; color: var(--accent); transform-origin: center; }
.faq-item[open] summary::after { transform: rotate(45deg); }
/* height is animated in JS (see main.js §5); this keeps the reveal smooth */
.faq-body { padding: 0 0 1.4rem; overflow: hidden; transition: height 0.28s ease; }
.faq-body p { margin: 0; opacity: 0.88; }

/* -------------------- Contact form -------------------- */
#contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

/* Required / optional field markers */
#contact-form::before {
  content: "Fields marked * are required.";
  display: block;
  font-size: 0.82rem;
  opacity: 0.68;
  margin-bottom: 0.2rem;
}
html[lang="fr"] #contact-form::before { content: "Les champs marqués * sont obligatoires."; }
.field label:has(+ input:required)::after,
.field label:has(+ select:required)::after,
.field label:has(+ textarea:required)::after {
  content: " *";
  color: var(--accent);
  font-weight: 700;
}
.field label:has(+ input:not([required]))::after {
  content: " (optional)";
  font-weight: 400;
  opacity: 0.6;
}
html[lang="fr"] .field label:has(+ input:not([required]))::after { content: " (facultatif)"; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-size: 1.1rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.form-status { text-align: center; min-height: 1.4rem; margin: 0.4rem 0 0; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #9B2C2C; }

/* -------------------- Footer -------------------- */
#footer { background: var(--dark); color: var(--on-dark); padding: 3.5rem 0 1.75rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2.5rem; }
.footer-brand { max-width: 420px; }
.footer-brand .brand-mark { font-size: 2rem; color: var(--accent-light); }
.footer-brand p { margin-top: 0.6rem; opacity: 0.8; line-height: 1.6; }
.footer-nav { display: grid; gap: 0.65rem; align-content: start; }
.footer-nav a { color: var(--on-dark); text-decoration: none; opacity: 0.75; font-size: var(--fs-small); transition: opacity 0.15s, color 0.15s; }
.footer-nav a:hover { opacity: 1; color: var(--accent-light); }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-ship { font-weight: 500; opacity: 0.9; margin: 0; }
.footer-copy { font-size: var(--fs-small); opacity: 0.6; margin: 0; }

/* -------------------- Motion: scroll reveal -------------------- */
/* Elements get .reveal from JS only (progressive enhancement): no JS or
   reduced-motion means the class is never added and content stays visible. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Row / column stagger: siblings in a group cascade in sequence */
.hero-text > .reveal:nth-child(2),
.product-grid .reveal:nth-child(2),
.packaging-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2),
.process-steps .reveal:nth-child(2) { transition-delay: 0.09s; }
.hero-text > .reveal:nth-child(3),
.product-grid .reveal:nth-child(3),
.packaging-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3),
.process-steps .reveal:nth-child(3) { transition-delay: 0.18s; }
.hero-text > .reveal:nth-child(4),
.product-grid .reveal:nth-child(4),
.packaging-grid .reveal:nth-child(4),
.why-grid .reveal:nth-child(4),
.process-steps .reveal:nth-child(4) { transition-delay: 0.27s; }
.etui-cards .reveal:nth-child(2) { transition-delay: 0.09s; }
.hero-text > .reveal:nth-child(5),
.product-grid .reveal:nth-child(5),
.why-grid .reveal:nth-child(5) { transition-delay: 0.36s; }
.hero-text > .reveal:nth-child(6),
.why-grid .reveal:nth-child(6) { transition-delay: 0.45s; }

/* -------------------- Motion: hover -------------------- */
/* Card lift + border accent */
.card { transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(26, 46, 16, 0.55);
  border-color: var(--accent);
}

/* Image zoom (only real <img> scales; missing-image placeholders never do) */
.img-frame .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .img-real,
.oem-media:hover .img-real,
.hero-media:hover .img-real { transform: scale(1.05); }

/* Why-us item */
.why-item { transition: transform 0.3s ease; }
.why-item h3 { transition: color 0.2s ease; }
.why-item:hover { transform: translateY(-4px); }
.why-item:hover h3 { color: var(--accent); }

/* Process step */
.step-num { transition: opacity 0.3s ease, transform 0.3s ease; }
.step:hover .step-num { opacity: 1; transform: translateY(-3px); }

/* FAQ row */
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-item summary::after { transition: color 0.2s ease, transform 0.25s ease; }
.faq-item summary:hover::after { color: var(--dark); }

/* Nav: animated underline + elevation once scrolled */
#nav { transition: box-shadow 0.3s ease; }
#nav.is-scrolled { box-shadow: 0 12px 30px -20px rgba(26, 46, 16, 0.6); }
.nav-links a:not(.nav-cta):not(.lang-toggle) { position: relative; }
.nav-links a:not(.nav-cta):not(.lang-toggle)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-links a:not(.nav-cta):not(.lang-toggle):hover::after { transform: scaleX(1); }

/* Related inline links */
.related-links a { transition: color 0.2s ease; }
.related-links a:hover { color: var(--accent); }

/* -------------------- Motion: signature flourishes -------------------- */
/* Ink-drawn rule under each section title. Visible without JS; when the
   reveal system is active it draws in from the left as the head appears. */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 0.4rem; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2.6rem; height: 2px;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-head.reveal h2::after { transform: scaleX(0); }
.section-head.reveal.is-visible h2::after { transform: scaleX(1); }
.section-dark .section-head h2::after { background: var(--accent-light); }

/* The decorative Arabic filigrane breathes slowly behind the hero */
@keyframes filigrane-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.6%) rotate(-1.2deg); }
}
.hero-filigrane { animation: filigrane-drift 16s ease-in-out infinite; }

/* Species label leans in and greens up when its product card is hovered */
.product-species { transition: color 0.25s ease, transform 0.25s ease, letter-spacing 0.25s ease; }
.product-card:hover .product-species { color: var(--accent); transform: translateX(4px); letter-spacing: 0.12em; }

/* Whole process step lifts with its number */
.step { transition: transform 0.3s ease; }
.step:hover { transform: translateY(-3px); }

/* -------------------- Floating "Request a quote" CTA -------------------- */
/* Fixed bottom-center pill; JS slides it up once the hero CTA scrolls out of
   view and hides it again over #contact. Matches .btn-primary look. */
.floating-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  width: fit-content;
  z-index: 70;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  background: var(--accent);
  color: var(--on-dark);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.45);
  text-decoration: none;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease, background 0.2s ease;
}
.floating-cta:hover { background: var(--dark); }
.floating-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid .product-card { max-width: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding-block: 0.5rem; }   /* larger tap target in the mobile dropdown */
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-media { aspect-ratio: 16 / 9; margin-top: 1.5rem; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-grid .product-card { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero-filigrane { font-size: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .floating-cta { transition: none; }
  .btn:hover,
  .lang-toggle:hover,
  .card:hover,
  .why-item:hover,
  .step:hover,
  .step:hover .step-num,
  .card:hover .img-real,
  .oem-media:hover .img-real,
  .hero-media:hover .img-real,
  .product-card:hover .product-species,
  .product-card:hover .flavour-tag,
  .etui-item:hover .etui-figure .img-real { transform: none !important; }
  .hero-filigrane { animation: none !important; }
  .nav-links a:not(.nav-cta)::after { display: none; }
}

/* ============ 404 error page ============ */
.error-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
}
.error-page { text-align: center; padding: 40px 24px; max-width: 560px; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 160px);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}
.error-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 40px);
  margin: 0.25rem 0 1rem;
}
.error-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}
