/* ==========================================================================
   Omninova International — v2 "Trading House" design system
   Dark, editorial, exchange-floor energy.
   Palette: near-black / amber-copper / rust / saffron crimson
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (ticker/spec)
   Signature: ticker-strip dividers + oversized numeral stats
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0D110E;
  --bg-2: #171D18;
  --bg-3: #1F261F;
  --ink: #F4EFE4;
  --muted: #97A398;
  --line: rgba(244,239,228,0.14);
  --amber: #E7A73A;
  --amber-deep: #B97A22;
  --rust: #C1663B;
  --saffron: #D5455C;
  --saffron-deep: #8C2035;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { max-width: 62ch; color: var(--muted); }
p.lead { font-size: 1.2rem; color: rgba(244,239,228,0.82); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: '◆'; font-size: 0.6em; }

/* ---------- Ticker (signature motif) ---------- */

.ticker {
  height: 1px;
  width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 26px);
}
.ticker-v { width: 1px; height: 100%; background-image: repeating-linear-gradient(180deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 20px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #16130A; border-color: var(--amber); }
.btn-primary:hover { background: #F2BC5C; }
.btn-ghost { border-color: rgba(244,239,228,0.3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,14,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }

.brand { display: flex; align-items: center; }
.logo-chip {
  background: #F4EFE4;
  border-radius: 8px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
}
.logo-chip img { height: 54px; width: auto; display: block; }
@media (max-width: 480px) { .logo-chip img { height: 42px; } .logo-chip { padding: 8px 12px; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  color: rgba(244,239,228,0.68);
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.current::after { transform: scaleX(1); }
.main-nav a.current { color: var(--amber); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 92px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 12px 32px 24px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 8px; }
  .nav-toggle { display: block; }
}

/* ---------- Photo hero ---------- */

.hero-photo {
  position: relative;
  height: 78vh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,17,14,0.96) 0%, rgba(13,17,14,0.55) 45%, rgba(13,17,14,0.15) 75%);
  z-index: 1;
}
.hero-photo .container { position: relative; z-index: 2; padding-bottom: 64px; max-width: 820px; }
.hero-photo h1 { margin: 18px 0 20px; }
.hero-photo p.lead { max-width: 58ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,17,14,0.97) 5%, rgba(13,17,14,0.45) 55%, rgba(13,17,14,0.1) 85%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; padding-bottom: 44px; max-width: 760px; }
.page-hero h1 { margin-top: 14px; }
.page-hero p.lead { margin-top: 14px; max-width: 56ch; }

/* ---------- Sections ---------- */

.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }
.section-tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* ---------- Stat row (replaces dossier) ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0;
}
@media (max-width: 780px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 24px 28px 24px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat:first-child { border-left: none; padding-left: 0; }
@media (max-width: 780px) {
  .stat:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 24px; }
  .stat:nth-child(n+3) { margin-top: 20px; }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  color: var(--amber);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Editorial split ---------- */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse .split-art { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
}
.split-art { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text p { margin-bottom: 18px; }
.split-text h2 { margin-bottom: 20px; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 28px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--amber); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 22px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .card-body { padding: 0 26px; }
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: 0.94rem; margin-bottom: 16px; }
.product-card .card-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
}

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 780px) { .form-grid { grid-template-columns: 1fr; } }
.form-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.form-tile h3 { font-size: 1.05rem; margin-bottom: 10px; }
.form-tile p { font-size: 0.92rem; margin: 0; }

/* ---------- Coming soon (saffron) ---------- */

.saffron-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--saffron); background: rgba(213,69,92,0.1); border: 1px solid rgba(213,69,92,0.35);
  padding: 8px 14px; border-radius: 999px;
}
.saffron-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

/* ---------- Footer ---------- */

.site-footer { background: #080A08; padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo-chip { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,239,228,0.8); margin-bottom: 16px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(244,239,228,0.4); }

/* ---------- Contact form ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: 14px; }
.contact-info p { margin-bottom: 24px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail .stat-label { margin-bottom: 6px; display:block; }
.contact-detail a { font-family: var(--font-mono); font-size: 0.95rem; color: var(--amber); }

.form-card { background: var(--bg-2); border: 1px solid var(--line); padding: 40px; border-radius: var(--radius); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 1px solid var(--amber); outline-offset: 1px; }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 16px; font-family: var(--font-mono); font-size: 0.85rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--amber); }
.form-status.err { color: var(--saffron); }

/* ---------- Legal page layout (sticky TOC + numbered sections) ---------- */

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }

.legal-nav {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 900px) {
  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
}
.legal-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
@media (max-width: 900px) { .legal-nav a { padding: 0; border-left: none; } }
.legal-nav a:hover { color: var(--ink); border-left-color: var(--amber); }

.legal-content { max-width: 680px; }
.legal-section { padding-top: 28px; margin-bottom: 20px; scroll-margin-top: 116px; }
.legal-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--amber);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 12px;
}
.legal-section h2 { margin-bottom: 16px; }
.legal-section p { margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }

.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 72px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
