/* =====================================================================
   CHAJARAT MARIAM WHOLESALE · chajaratmariam-wholesale.com
   Art direction: antique herbarium / illuminated manuscript.
   Warm sand and gold, IM Fell English display + Lora body, Amiri for the
   Arabic accent. Mirrored nav (links left, wordmark right), a centre
   diamond ornament under each title, and an ornamental colophon footer.
   Hand-coded, unique to this site. See CLAUDE.md for the shared rules.
   ===================================================================== */

/* -------------------- Design tokens (mandated) -------------------- */
:root {
  --bg: #F5E6C0;
  --text: #2A1A06;
  --accent: #8B6914;
  --accent-light: #E0C878;
  --font-display: 'IM Fell English', serif;
  --font-body: 'Lora', serif;

  /* Supplementary tokens (all colours defined here, never inline) */
  --arabic: 'Amiri', serif;                     /* decorative script only */
  --surface: #FBF3DF;                           /* cards */
  --surface-alt: #EEDCB0;                        /* alt sections */
  --dark: #2A1A06;                              /* dark section + footer */
  --on-dark: #F5E6C0;
  --border: rgba(42, 26, 6, 0.16);
  --border-dark: rgba(245, 230, 192, 0.20);
  --accent-soft: rgba(139, 105, 20, 0.10);      /* focus rings */
  --accent-panel: rgba(139, 105, 20, 0.15);     /* image placeholders @ 15% */
  --leaf: #4A6741;                              /* secondary, used sparingly */
  --danger: #9A2B2B;

  /* Typography scale */
  --fs-h1: clamp(2.7rem, 6.6vw, 4.8rem);
  --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(84px, 8vw, 124px);
  --maxw: 1140px;
  --radius: 3px;
  --shadow: 0 20px 46px -30px rgba(42, 26, 6, 0.5);
}

/* -------------------- 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.68;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
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.08; margin: 0; font-weight: 400; }
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: 740px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-sub { font-size: 1.12rem; opacity: 0.82; margin-top: 1rem; }
.section-dark .section-sub { color: var(--on-dark); opacity: 0.85; }

/* Section kicker: small-caps with a tiny diamond ornament */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-kicker::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.section-dark .section-kicker { color: var(--accent-light); }

/* -------------------- Signature flourish: centre-diamond title rule ----- */
/* An ornamental gold rule with a centred diamond sits under each title.
   Visible without JS; on .section-head reveal it draws in from the centre. */
.h-orn { position: relative; display: block; padding-bottom: 1.5rem; }
.h-orn::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.55rem;
  width: 150px; height: 1px;
  background: var(--accent);
  transform-origin: center;
}
.h-orn::before {
  content: "";
  position: absolute;
  left: 75px; bottom: calc(0.55rem - 3px);
  width: 8px; height: 8px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
.h-orn-center { text-align: center; }
.h-orn-center::after { left: 50%; transform: translateX(-50%); }
.h-orn-center::before { left: 50%; }
.section-dark .h-orn::after { background: var(--accent-light); }
.section-dark .h-orn::before { background: var(--dark); border-color: var(--accent-light); }

/* -------------------- Image placeholder system -------------------- */
.img-frame {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-panel);
  border: 1px solid var(--border);
}
.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-panel);
  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 (mirrored: links left, wordmark right) ------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 230, 192, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 3px double var(--accent);   /* ornamental double rule */
  transition: box-shadow 0.3s ease;
}
#nav.is-scrolled { box-shadow: 0 12px 30px -22px rgba(42, 26, 6, 0.6); }
/* single diamond ornament centred ON the double rule */
#nav::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 10px; height: 10px;
  background: var(--bg);
  border: 1px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: min(100% - 3rem, var(--maxw));
  margin-inline: auto;
  padding: 0.7rem 0;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  border: 1px solid var(--accent);
  padding: 0.32rem 1rem;
  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); }

/* Brand lockup, left aligned, two-line with a small Arabic accent */
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-decoration: none; }
.brand-name { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-arabic { font-family: var(--arabic); font-size: 1rem; color: var(--accent); margin-left: 0.35rem; }
.brand-sub { font-family: var(--font-body); font-variant: small-caps; letter-spacing: 0.22em; font-size: 0.66rem; color: var(--accent); margin-top: 0.25rem; }

.lang-toggle {
  font-family: var(--font-body);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-panel); transform: translateY(-1px); }
.lang-toggle span { transition: opacity 0.25s ease, color 0.25s ease; }
.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: 700; color: var(--accent); }
html[lang="fr"] .lt-fr { font-weight: 700; color: var(--accent); }
html[lang="en"] .lt-fr, html[lang="fr"] .lt-en { opacity: 0.5; }

.nav-toggle { display: none; order: 0; 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 (antique, small radius, serif) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  padding: 0.62rem 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(--text); box-shadow: 0 16px 30px -14px rgba(42, 26, 6, 0.6); }
.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(42, 26, 6, 0.5); }
.btn-block { width: 100%; border: none; font-size: 1.28rem; }
.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.4rem, 8vw, 6.5rem); }
.hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.hero-text { max-width: 640px; }
.eyebrow { font-family: var(--font-body); font-variant: small-caps; letter-spacing: 0.16em; font-size: 0.86rem; color: var(--accent); margin-bottom: 0.8rem; }
.hero-arabic { font-family: var(--arabic); font-size: 1.9rem; color: var(--accent); margin: 0 0 0.5rem; line-height: 1; }
#hero h1 { letter-spacing: 0.01em; margin-bottom: 1.3rem; }
.hero-lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 44ch; opacity: 0.9; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.hero-ship { margin: 0 0 1.7rem; font-family: var(--font-body); font-variant: small-caps; letter-spacing: 0.1em; font-weight: 600; font-size: 0.98rem; color: var(--accent); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-badges li { position: relative; padding-left: 1.2rem; opacity: 0.85; font-size: 0.98rem; }
.hero-badges li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.42rem; height: 0.42rem; background: var(--accent); transform: rotate(45deg); }
.hero-media { aspect-ratio: 3 / 4; }

/* -------------------- Showcase (image + text rows) -------------------- */
.showcase {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.4rem);
  align-items: center;
}
.showcase-solo { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center; }
.showcase-solo .showcase-specs { justify-content: center; }
.showcase + .showcase { margin-top: clamp(3rem, 6vw, 5rem); }
.showcase-reverse .showcase-media { order: 2; }
.showcase-media { max-width: 520px; }
.showcase-text h2 { margin-bottom: 0; }
.showcase-lead { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.2rem; }
.showcase-note { opacity: 0.82; margin-bottom: 1.4rem; }
.showcase-specs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.showcase-specs li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  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 58px -30px rgba(42, 26, 6, 0.55); border-color: var(--accent); }
.card .img-frame { margin-bottom: 1.2rem; }
.card h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }

/* -------------------- Uses grid (3 items, text only) -------------------- */
.uses-intro { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.uses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: clamp(3rem, 6vw, 4.6rem); }
.use-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.use-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.use-item h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.5rem; margin-bottom: 0.5rem; }
.use-item h3::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--accent-light); border: 1px solid var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.use-item p { margin: 0; opacity: 0.85; font-size: 0.98rem; }
.use-item [lang="ar"] { font-family: var(--arabic); }

/* -------------------- Why us -------------------- */
.why-head { max-width: 740px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap) clamp(2rem, 4vw, 3.4rem); }
.why-item { padding-top: 1.1rem; border-top: 1px solid var(--border); transition: transform 0.3s ease; }
.why-item h3 { font-size: 1.55rem; margin-bottom: 0.4rem; transition: color 0.2s ease; }
.why-item p { margin: 0; opacity: 0.85; }
.why-item:hover { transform: translateY(-4px); }
.why-item:hover h3 { color: var(--accent); }

/* -------------------- Process -------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { padding-top: 0.5rem; transition: transform 0.3s ease; }
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.step p { margin: 0; opacity: 0.85; }
.step:hover { transform: translateY(-3px); }
.step:hover .step-num { opacity: 1; transform: translateY(-3px); }

/* -------------------- OEM -------------------- */
.oem-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.oem-inner .section-kicker { justify-content: center; }
.oem-inner h2 { margin-bottom: 1.3rem; }
.oem-lead { font-size: 1.28rem; margin-bottom: 1rem; opacity: 0.92; }
.oem-note { opacity: 0.78; margin-bottom: 2rem; }
.oem-media { max-width: 480px; margin: 0 auto 2rem; }

/* -------------------- In-content links -------------------- */
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.faq-body a:hover { color: var(--text); }

/* -------------------- FAQ --------------------
   Illuminated manuscript: antique double-rule dividers, Roman-numeral
   question numbers set in the display serif, and a gold diamond ornament
   toggle that fills in on open (hollow lozenge to solid). */
.faq-list { border-top: 3px double var(--border); counter-reset: faq; }
.faq-item { counter-increment: faq; border-bottom: 3px double var(--border); transition: background-color 0.3s ease; }
.faq-item[open] { background: var(--accent-soft); }
.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.32rem; font-weight: 400; transition: color 0.2s ease; }
.faq-q::before { content: counter(faq, upper-roman) "."; font-family: var(--font-display); font-weight: 400; color: var(--accent); margin-right: 0.7rem; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-item[open] .faq-q { color: var(--accent); }
.faq-item summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.55rem; width: 0.6rem; height: 0.6rem; box-sizing: border-box; border: 1.5px solid var(--accent); background: transparent; transform: rotate(45deg); transition: background-color 0.3s ease, transform 0.3s ease; }
.faq-item[open] summary::after { background: var(--accent); transform: rotate(45deg) scale(1.18); }
.faq-body { padding: 0 0 1.4rem; overflow: hidden; transition: height 0.28s ease; }
.faq-body p { margin: 0; opacity: 0.86; }

/* -------------------- 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.12rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.72rem 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); font-weight: 600; }
.form-status.is-error { color: var(--danger); }

/* -------------------- Footer (ornamental colophon) -------------------- */
#footer { background: var(--dark); color: var(--on-dark); padding: clamp(3.4rem, 6vw, 4.8rem) 0 2rem; text-align: center; }
.footer-colophon { max-width: 620px; }
.colophon-orn { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.colophon-orn::before, .colophon-orn::after { content: ""; width: 64px; height: 1px; background: var(--accent-light); }
.colophon-orn span { width: 9px; height: 9px; background: var(--accent); border: 1px solid var(--accent-light); transform: rotate(45deg); display: block; }
.footer-arabic { font-family: var(--arabic); font-size: 1.9rem; color: var(--accent-light); margin: 0 0 0.6rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 0.7rem; }
.footer-tagline { max-width: 46ch; margin: 0 auto 1.8rem; opacity: 0.82; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin-bottom: 1.8rem; }
.footer-nav a { color: var(--on-dark); text-decoration: none; font-variant: small-caps; letter-spacing: 0.08em; font-size: 0.92rem; opacity: 0.82; transition: opacity 0.15s, color 0.15s; }
.footer-nav a:hover { opacity: 1; color: var(--accent-light); }
.footer-ship { font-weight: 500; opacity: 0.9; margin: 0 0 0.7rem; font-size: 0.95rem; }
.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; }

/* Stagger siblings within a grid */
.uses-grid .reveal:nth-child(2), .why-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .hero-text > .reveal:nth-child(2) { transition-delay: 0.09s; }
.uses-grid .reveal:nth-child(3), .why-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .hero-text > .reveal:nth-child(3) { transition-delay: 0.18s; }
.why-grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .hero-text > .reveal:nth-child(4) { transition-delay: 0.27s; }
.why-grid .reveal:nth-child(5), .hero-text > .reveal:nth-child(5) { transition-delay: 0.36s; }
.why-grid .reveal:nth-child(6), .hero-text > .reveal:nth-child(6) { transition-delay: 0.45s; }

/* Signature flourish draws in from the centre with the section head */
.section-head.reveal .h-orn::after { transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.section-head.reveal.is-visible .h-orn::after { transform: scaleX(1); }
.h-orn-center.reveal::after { transform: translateX(-50%) scaleX(0); transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.h-orn-center.reveal.is-visible::after { transform: translateX(-50%) scaleX(1); }
.h-orn-center.reveal::before { opacity: 0; transition: opacity 0.5s ease 0.45s; }
.h-orn-center.reveal.is-visible::before { opacity: 1; }
.section-head.reveal .h-orn::before { opacity: 0; transition: opacity 0.5s ease 0.45s; }
.section-head.reveal.is-visible .h-orn::before { opacity: 1; }

/* -------------------- Motion: hover accents -------------------- */
.img-frame .img-real { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .img-real,
.showcase-media:hover .img-real,
.oem-media:hover .img-real,
.hero-media:hover .img-real { transform: scale(1.05); }

/* Nav: animated underline (skips CTA + toggle) */
.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); }

/* -------------------- Floating "Request a quote" CTA -------------------- */
/* Antique gold button matching .btn-primary. Hidden at top of page, slides up
   once the hero CTA scrolls out of view, hides again over #contact. */
.floating-cta {
  position: fixed; left: 0; right: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  margin-inline: auto; width: fit-content; max-width: calc(100% - 2rem); z-index: 70;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--on-dark);
  padding: 0.68rem 1.7rem;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px -12px rgba(42, 26, 6, 0.55);
  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(--text); }
.floating-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .uses-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
}
@media (max-width: 860px) {
  .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(-130%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { transform: translateY(0); }
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-media { aspect-ratio: 16 / 9; margin-top: 1.5rem; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { order: 1 !important; max-width: 480px; margin-inline: auto; }
  .uses-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pack-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@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; }
  .btn:hover,
  .lang-toggle:hover,
  .card:hover,
  .use-item:hover,
  .why-item:hover,
  .step:hover,
  .step:hover .step-num,
  .card:hover .img-real,
  .showcase-media:hover .img-real,
  .oem-media:hover .img-real,
  .hero-media:hover .img-real { transform: none !important; }
  .floating-cta { transition: none; }
  .nav-links a:not(.nav-cta):not(.lang-toggle)::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;
}
