/* =============================================================
   DIRMAK USA — Design System
   Industrial bakery mixing equipment. Premium B2B.
   ============================================================= */

/* ---------- Design Tokens (OKLCH) — brand: navy + Dirmak red ---------- */
:root {
  /* Semantic surfaces & ink — cool-tinted neutrals toward the navy hue (265) */
  --paper: oklch(98.8% 0.003 265);
  --surface: oklch(96.6% 0.006 265);
  --ink: oklch(23% 0.02 270);
  --ink-soft: oklch(45% 0.02 270);
  --ink-faint: oklch(62% 0.015 270);
  --line: oklch(90% 0.008 265);

  /* Brand navy for dark sections (hero / spotlight / footer) */
  --navy: oklch(28% 0.09 273);
  --navy-2: oklch(34% 0.10 273);
  --navy-deep: oklch(22% 0.08 273);
  --graphite: var(--navy);
  --graphite-2: var(--navy-2);

  /* Brand accent — Dirmak red */
  --accent: oklch(57% 0.21 27);
  --accent-dk: oklch(49% 0.19 27);
  --accent-tint: oklch(95% 0.03 27);
  --gold: oklch(80% 0.11 78);

  /* Backward-compat aliases (existing component CSS) */
  --graphite-900: var(--navy-deep);
  --graphite-800: var(--navy);
  --graphite-700: var(--navy-2);
  --graphite-600: oklch(40% 0.10 273);
  --steel-500: var(--ink-soft);
  --steel-600: var(--ink-soft);
  --steel-400: var(--ink-faint);
  --steel-300: oklch(74% 0.012 265);
  --steel-200: oklch(85% 0.008 265);
  --steel-100: var(--line);
  --white: oklch(99.6% 0.002 265);
  --accent-dark: var(--accent-dk);
  --accent-soft: var(--accent-tint);

  /* Typography */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing & shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px oklch(22% 0.012 40 / .08);
  --shadow: 0 8px 30px oklch(22% 0.012 40 / .10);
  --shadow-lg: 0 24px 60px oklch(22% 0.012 40 / .18);
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion — strong custom curves (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: .16s var(--ease-out);
  --t: .26s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--graphite-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .6rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--steel-500); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  border: 2px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--graphite-800); color: #fff; }
.btn--dark:hover { background: var(--graphite-900); }
.btn--ghost { border-color: currentColor; color: var(--graphite-800); }
.btn--ghost:hover { background: var(--graphite-800); color: #fff; border-color: var(--graphite-800); }
.btn--light { background: #fff; color: var(--graphite-900); }
.btn--light:hover { background: var(--steel-100); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--graphite-900); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand .usa { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--graphite-700);
  padding: .55rem .85rem; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--graphite-800); margin: 5px 0; transition: var(--t-fast); }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--steel-100);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .6rem; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--t-fast);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: .65rem .8rem; border-radius: var(--radius-sm); }
.dropdown a span { font-size: .8rem; color: var(--steel-400); font-weight: 500; }
.dropdown a strong { font-weight: 700; color: var(--graphite-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, var(--graphite-700), var(--graphite-900) 60%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39.5h40M39.5 0v40' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 10vw, 130px); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
.hero h1 .hl { color: var(--accent); }
.hero p { color: var(--steel-200); font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-top: 1.4rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-display); font-size: 2rem; display: block; }
.hero-stats .stat span { color: var(--steel-300); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--graphite-600), var(--graphite-800));
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .ph-label { color: var(--steel-300); font-size: .85rem; text-align: center; padding: 1rem; }
.hero-badge {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: var(--graphite-900);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem;
}
.hero-badge .tag { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: .3rem .55rem; border-radius: 4px; text-transform: uppercase; }
.hero-badge strong { display: block; font-family: var(--font-display); }
.hero-badge span { color: var(--steel-300); font-size: .82rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--graphite-900); color: var(--steel-300); border-top: 1px solid rgba(255,255,255,.06); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; padding-block: 1.1rem; font-size: .85rem; }
.trustbar .item { display: flex; align-items: center; gap: .5rem; }
.trustbar svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Cards / products ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--steel-100);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--steel-200); }
.card-media { aspect-ratio: 4/3; background: linear-gradient(160deg, var(--steel-100), var(--steel-200)); position: relative; display: grid; place-items: center; color: var(--steel-400); font-size: .8rem; }
.card-media .badge { position: absolute; top: 12px; left: 12px; background: var(--graphite-900); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 4px; }
.card-media .badge--hero { background: var(--accent); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.35rem; }
.card-cap { font-size: .85rem; color: var(--accent); font-weight: 700; font-family: var(--font-display); letter-spacing: .03em; }
.card-body p { color: var(--steel-500); font-size: .95rem; }
.card-specs { display: flex; gap: 1.2rem; margin-top: .4rem; flex-wrap: wrap; }
.card-specs li { font-size: .82rem; color: var(--steel-500); }
.card-specs li strong { display: block; color: var(--graphite-800); font-family: var(--font-display); font-size: 1.05rem; }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.card-link { font-weight: 700; color: var(--accent); font-family: var(--font-display); font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; }
.card:hover .card-link svg { transform: translateX(3px); }
.card-link svg { width: 16px; height: 16px; transition: var(--t-fast); }

/* feature category cards (split) */
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; padding: 2rem; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,20,.15), rgba(13,16,20,.85)); z-index: 1; }
.cat-card .cat-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--graphite-600), var(--graphite-900)); }
.cat-card .cat-content { position: relative; z-index: 2; }
.cat-card h3 { font-size: 1.7rem; }
.cat-card p { color: var(--steel-200); margin: .5rem 0 1rem; max-width: 38ch; }

/* ---------- Feature / value props ---------- */
.feature { display: flex; gap: 1.1rem; }
.feature .ico { flex: none; width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--steel-500); font-size: .95rem; margin-top: .3rem; }

/* ---------- Hero product spotlight ---------- */
.spotlight { background: var(--graphite-900); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; }
.spotlight-media { background: linear-gradient(160deg, var(--graphite-600), var(--graphite-800)); min-height: 440px; display: grid; place-items: center; color: var(--steel-300); position: relative; }
.spotlight-body { padding: clamp(2rem, 4vw, 3.5rem); }
.spotlight-body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.spotlight-body .lead { color: var(--steel-200); }
.spec-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0; }
.spec-pill { background: var(--graphite-700); border: 1px solid var(--graphite-600); border-radius: 999px; padding: .45rem .95rem; font-size: .85rem; }
.spec-pill strong { color: var(--gold); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--steel-100); }
.spec-table th { font-family: var(--font-display); width: 42%; color: var(--graphite-800); font-weight: 700; }
.spec-table td { color: var(--steel-500); }
.spec-table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--steel-100); border-radius: var(--radius); overflow: hidden; }

/* comparison table */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: .9rem 1rem; border-bottom: 1px solid var(--steel-100); text-align: center; font-size: .92rem; }
.compare thead th { background: var(--graphite-900); color: #fff; font-family: var(--font-display); }
.compare tbody th { text-align: left; font-family: var(--font-display); background: var(--paper); }
.compare tbody tr:hover td { background: var(--accent-soft); }
.compare .model-link { color: var(--accent); font-weight: 700; }

/* ---------- Product page hero ---------- */
.product-hero { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--steel-100); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--steel-100), var(--steel-200)); display: grid; place-items: center; color: var(--steel-400); position: relative; overflow: hidden; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: .7rem; margin-top: .7rem; }
.gallery-thumbs .thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); background: var(--steel-100); display: grid; place-items: center; color: var(--steel-400); font-size: .7rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--steel-400); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.product-title { font-size: clamp(2rem, 4vw, 3rem); }
.product-sub { color: var(--steel-500); font-size: 1.1rem; margin-top: .6rem; }
.keyfacts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.8rem 0; }
.keyfact { background: var(--paper); border: 1px solid var(--steel-100); border-radius: var(--radius); padding: 1rem; }
.keyfact span { font-size: .78rem; color: var(--steel-400); text-transform: uppercase; letter-spacing: .07em; }
.keyfact strong { display: block; font-family: var(--font-display); font-size: 1.4rem; margin-top: .25rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .4rem 0; color: var(--steel-600); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ---------- Forms ---------- */
.quote { background: var(--paper); }
.form-card { background: #fff; border: 1px solid var(--steel-100); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.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; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--steel-400); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: .8rem auto 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-900); color: var(--steel-300); padding-block: clamp(48px, 7vw, 80px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: var(--steel-300); transition: color var(--t-fast); font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--steel-400); }

/* ---------- Lead-capture chatbot widget ---------- */
.cbot-launch {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 200;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: .8rem 1.15rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-lg); transition: transform var(--t-fast), background var(--t-fast);
}
.cbot-launch:hover { transform: translateY(-2px); background: var(--accent-dk); }
.cbot-launch svg { width: 20px; height: 20px; }
.cbot-launch.is-hidden { display: none; }

.cbot {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 201;
  width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 40px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cbot.is-open { display: flex; animation: cbot-in .3s var(--ease-out); }
@keyframes cbot-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.cbot-head { background: var(--navy); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.cbot-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #46d17f; box-shadow: 0 0 0 3px rgba(70,209,127,.25); }
.cbot-head strong { font-family: var(--font-display); font-size: 1rem; }
.cbot-head span { color: var(--steel-300); font-size: .8rem; }
.cbot-head .cbot-close { margin-left: auto; background: none; border: 0; color: #fff; opacity: .8; padding: .2rem; }
.cbot-head .cbot-close:hover { opacity: 1; }
.cbot-head .cbot-close svg { width: 20px; height: 20px; }
.cbot-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.cbot-msg { max-width: 84%; padding: .65rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; white-space: pre-line; }
.cbot-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cbot-msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cbot-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem .6rem; }
.cbot-quick button { background: #fff; border: 1px solid var(--steel-200); color: var(--accent); border-radius: 999px; padding: .45rem .85rem; font-weight: 600; font-size: .85rem; transition: background var(--t-fast), color var(--t-fast); }
.cbot-quick button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cbot-foot { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: #fff; }
.cbot-foot input { flex: 1; font: inherit; padding: .65rem .8rem; border: 1px solid var(--steel-200); border-radius: var(--radius-sm); }
.cbot-foot input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.cbot-foot button { background: var(--accent); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 0 .9rem; font-weight: 700; }
.cbot-foot button:disabled { opacity: .5; }
.cbot-cta { display: flex; flex-direction: column; gap: .5rem; padding: 0 1.1rem .9rem; }
.cbot-cta a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.cbot-cta .wa { background: #25D366; color: #06351a; }
.cbot-cta .em { background: var(--navy); color: #fff; }
.cbot-cta a svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .cbot.is-open { animation: none; } }

/* Honeypot spam field — visually removed but present for bots to fill */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Social links (footer) */
.social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); color: var(--steel-300); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Real images in media slots ---------- */
/* Product shots are cutouts on white: contain them on a clean surface. */
.card-media, .gallery-main, .gallery-thumbs .thumb, .spotlight-media { background: var(--white); }
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery-main .media-img { padding: 6%; }
.card-media .media-img { padding: 10%; }
/* Hero: framed light panel holding the product over the navy hero */
.hero-visual { background: var(--white); padding: 0; }
.hero-visual .media-img { object-fit: contain; padding: 7%; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header logo + language switch ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo img { height: 38px; width: auto; display: block; }
.lang-switch { position: relative; }
.lang-switch > button {
  display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .5rem .7rem; font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: border-color var(--t-fast);
}
.lang-switch > button:hover { border-color: var(--steel-300); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; min-width: 150px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: var(--t-fast);
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--accent-tint); color: var(--accent); }

/* ---------- Trust badges strip ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: center; }
.badge-mark {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700;
  font-size: .9rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem;
}
.badge-mark .ce { font-size: 1.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }
.badge-mark--pending { border-style: dashed; color: var(--accent); border-color: color-mix(in oklch, var(--accent), white 55%); }

/* ---------- Fairs strip (continuous, paused on hover) ---------- */
.fairs-track { display: flex; gap: 2.6rem; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fairs-track ul { display: flex; gap: 2.6rem; align-items: center; flex: none; animation: fairs-marquee 32s linear infinite; }
.fairs-track:hover ul { animation-play-state: paused; }
.fairs-track li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; gap: .6rem; }
.fairs-track li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
@keyframes fairs-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fairs-track ul { animation: none; flex-wrap: wrap; } .fairs-track { overflow: hidden; -webkit-mask-image: none; mask-image: none; } }

/* ---------- Exports band ---------- */
.exports { background: var(--navy-deep); color: #fff; }
.exports .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,56px); align-items: center; }
.exports h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.exports p { color: var(--steel-300); margin-top: .8rem; }
.export-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 2rem; }
.export-stats .stat strong { font-family: var(--font-display); font-size: 2.2rem; display: block; color: var(--gold); }
.export-stats .stat span { color: var(--steel-300); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.export-visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; display: grid; place-items: center; }

@media (max-width: 760px) { .exports .wrap { grid-template-columns: 1fr; } }

/* Category card product photo (white cutout floated on navy) */
.cat-card .cat-photo { position: absolute; right: -4%; bottom: -2%; width: 58%; height: 92%; object-fit: contain; object-position: bottom right; z-index: 1; filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.cat-card .cat-content { max-width: 60%; }
@media (max-width: 600px) { .cat-card .cat-photo { opacity: .35; width: 70%; } .cat-card .cat-content { max-width: 100%; } }

/* Since-badge in trust strip */
.badge-mark--since { border: none; color: var(--ink-faint); }

/* Neutralize false hover-transforms on touch devices */
@media (hover: none) {
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- 3D interactive product visuals ---------- */
/* Scenes establish perspective; the product image is the 3D object the
   pointer drives (JS sets the transform every frame — no CSS transition on it
   so tracking stays 1:1). A cursor-following accent glow adds depth. */
.scene-3d { position: relative; perspective: 1200px; }
.scene-3d .media-img,
.scene-3d .cat-photo {
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}
/* soft brand glow that tracks the cursor, behind the product */
.hero-visual.scene-3d::before,
.gallery-main.scene-3d::before,
.card-media.scene-3d::before,
.spotlight-media.scene-3d::before {
  content: ""; position: absolute; inset: -12%;
  z-index: 0; pointer-events: none;
  background: radial-gradient(42% 42% at var(--mx, 50%) var(--my, 42%),
              color-mix(in oklch, var(--accent), transparent 74%), transparent 72%);
  opacity: var(--active, 0);
  transition: opacity .45s var(--ease-out);
  mix-blend-mode: multiply;
}
/* on dark panels the glow should add light, not multiply it away */
.spotlight-media.scene-3d::before { mix-blend-mode: screen; background: radial-gradient(42% 42% at var(--mx,50%) var(--my,42%), color-mix(in oklch, var(--accent), transparent 60%), transparent 72%); }
.scene-3d .hero-badge, .scene-3d .badge { z-index: 2; }

@media (hover: none) {
  .scene-3d .media-img, .scene-3d .cat-photo { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-3d .media-img, .scene-3d .cat-photo { transform: none !important; }
  .scene-3d::before { display: none !important; }
}

/* ---------- Rotating headline word (progressive enhancement) ---------- */
/* JS swaps the seeded word for this rotator only after Motion loads; without
   JS the static word stays, so the H1 reads normally for SEO + a11y. */
.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; }
.hero h1 .rotator { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; color: var(--accent); }
.hero h1 .rotator .rot-word { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .spotlight-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 460px; }
}
@media (max-width: 760px) {
  /* Hide the header quote button + nav links on mobile; the hamburger menu
     and the hero CTA cover those actions. Prevents the header from
     overflowing the viewport (which caused horizontal scroll site-wide). */
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--steel-100); padding: 1rem var(--gutter); gap: .2rem;
  }
  .nav-links.open a { padding: .8rem 0; }
  .grid--2, .grid--3, .grid--4, .form-grid, .keyfacts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(3,1fr); }
}

/* ============================================================
   Farm-to-cake journey (IBT 300-DC CR)
   Default: a static stacked list (no-JS / reduced-motion fallback).
   .journey--pinned (added by JS): a sticky scene whose steps crossfade
   as you scroll, with a red progress rail. NOTE: do NOT put overflow
   clip/hidden on .journey — it would break the sticky stage.
   ============================================================ */
.journey { position: relative; background: linear-gradient(180deg, var(--paper), var(--surface)); padding-block: clamp(56px, 9vw, 120px); }
.journey-head { max-width: 760px; }
.journey-head .lead { margin-top: .8rem; }

/* progress rail (pinned only) */
.journey-rail { list-style: none; position: relative; display: none; align-items: center; justify-content: space-between; max-width: 720px; margin: 2.8rem auto 2.6rem; padding: 0; }
.journey--pinned .journey-rail { display: flex; }
.jy-rail-track, .jy-rail-fill { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); z-index: 0; }
.jy-rail-track { left: 17px; right: 17px; background: var(--line); }
.jy-rail-fill { left: 17px; width: 0; background: var(--accent); transition: width .25s var(--ease-out); }
.jy-node { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--ink-faint); transition: transform .3s var(--ease-out), border-color .3s, color .3s, background .3s, box-shadow .3s; }
.jy-node.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.jy-node.is-active { border-color: var(--accent); color: var(--accent); transform: scale(1.14); box-shadow: 0 0 0 6px var(--accent-tint); }

/* steps */
.journey-screen { position: relative; }
.jy-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-block: clamp(40px, 6vw, 72px); }
.jy-step:nth-child(even) .jy-art { order: 2; }
.jy-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.jy-art svg { width: min(100%, 360px); height: auto; overflow: visible; }
.jy-num { font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-size: .82rem; }
.jy-copy h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); margin: .4rem 0 .7rem; }
.jy-copy p { color: var(--ink-soft); max-width: 44ch; font-size: 1.05rem; }

/* pinned: one sticky screen, crossfading steps */
.journey--pinned .journey-stage { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 5vh, 60px); }
.journey--pinned .journey-screen { min-height: 48vh; }
.journey--pinned .jy-step { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); pointer-events: none; }
.journey--pinned .jy-step:nth-child(even) .jy-art { order: 0; }
.journey--pinned .jy-step.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* mix step: rotating ring behind the real product photo */
.jy-mix .jy-ring { position: absolute; width: min(96%, 380px); aspect-ratio: 1; z-index: 0; opacity: .8; }
.jy-mix-photo { position: relative; z-index: 1; width: 78%; aspect-ratio: 1; }
.jy-mix-photo .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.journey--pinned .jy-step.is-active .jy-ring { animation: jy-spin 9s linear infinite; }

/* micro-motions — gentle, looping (kept subtle per design review) */
.jy-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: jy-sway 4.6s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * -1.4s); }
@keyframes jy-sway { 0%, 100% { transform: rotate(-3.2deg); } 50% { transform: rotate(3.2deg); } }
.jy-sun { transform-box: fill-box; transform-origin: center; animation: jy-pulse 5s var(--ease-in-out) infinite; }
@keyframes jy-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .72; } }
.jy-fall ellipse { animation: jy-fall 2.6s var(--ease-in-out) infinite; }
.jy-fall ellipse:nth-child(2) { animation-delay: -.9s; }
.jy-fall ellipse:nth-child(3) { animation-delay: -1.7s; }
@keyframes jy-fall { 0% { transform: translateY(0); opacity: 0; } 14% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(96px); opacity: 0; } }
.jy-dust circle { animation: jy-dust 3.4s var(--ease-out) infinite; }
.jy-dust circle:nth-child(2) { animation-delay: -.7s; }
.jy-dust circle:nth-child(3) { animation-delay: -1.5s; }
.jy-dust circle:nth-child(4) { animation-delay: -2.2s; }
@keyframes jy-dust { 0% { transform: translateY(8px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-18px); opacity: 0; } }
.jy-steam path { animation: jy-steam 3s var(--ease-in-out) infinite; }
.jy-steam path:nth-child(2) { animation-delay: -1s; }
.jy-steam path:nth-child(3) { animation-delay: -2s; }
@keyframes jy-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes jy-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .jy-step, .journey--pinned .jy-step { grid-template-columns: 1fr; text-align: center; }
  .jy-step .jy-art, .jy-step:nth-child(even) .jy-art { order: 0; }
  .jy-copy p { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .jy-sway, .jy-sun, .jy-fall ellipse, .jy-dust circle, .jy-steam path, .jy-ring { animation: none !important; }
}

/* ---------- Farm-to-cake: photographic stages (Nano Banana Pro) ---------- */
.jy-art { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.jy-art .jy-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jy-art.jy-mix { background: linear-gradient(160deg, var(--surface), #fff); }
.jy-art.jy-mix .jy-photo-img { object-fit: contain; padding: 7%; }
.jy-step.in .jy-art .kb { animation: jy-kenburns 9s ease-out both; }
@keyframes jy-kenburns { from { transform: scale(1.001); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .jy-art .kb { animation: none !important; } }

/* reCAPTCHA v3 badge hidden — attribution shown in the form text instead */
.grecaptcha-badge { visibility: hidden; }
