/* ============================================================
   SVERGOLD — Import & Marketing LTD
   Design system: white/ivory/gold (light) · black/graphite/gold (dark)
   Trilingual HE (RTL) / EN / RU · logical properties for RTL safety
   ============================================================ */

/* ---------- Fonts ----------
   Apple-style type: SF Pro on Apple devices via -apple-system; Inter as the
   open-source SF substitute elsewhere (per Apple DESIGN.md). Heebo carries
   Hebrew, Golos Text carries Russian — both clean sans, on-system feel. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Golos+Text:wght@400;500;600;700&family=Heebo:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Gold — sampled from the Svergold mark */
  --gold-bright: #e7bd64;
  --gold:        #c9962e;
  --gold-deep:   #9a6e22;
  --gold-soft:   #e8d5a8;
  --gold-grad:   linear-gradient(135deg, #efc977 0%, #d2a23c 42%, #a4761f 100%);
  --gold-line:   linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-bright) 50%, var(--gold) 75%, transparent);

  /* Light palette (default) */
  --bg:        #fbf9f4;   /* warm ivory */
  --bg-alt:    #f4eee1;   /* champagne */
  --surface:   #ffffff;
  --surface-2: #fcfaf5;
  --text:      #211d16;   /* warm graphite */
  --text-soft: #6b6353;
  --text-faint:#9a9080;
  --border:    #e9e0cf;
  --border-strong: #d8c9a6;
  --shadow-sm: 0 2px 12px rgba(60, 45, 15, 0.04);
  --shadow-md: 0 16px 44px rgba(70, 52, 18, 0.07);
  --shadow-lg: 0 36px 90px rgba(70, 52, 18, 0.10);
  --ship-fill: rgba(201, 150, 46, 0.06);
  --hairline:  rgba(154, 110, 34, 0.18);

  /* Type — Apple language: one clean sans for display + body */
  --font-display: -apple-system, system-ui, 'Inter', 'SF Pro Display', sans-serif;
  --font-body:    -apple-system, system-ui, 'Inter', sans-serif;

  /* Layout */
  --maxw: 1280px;
  --maxw-text: 1080px;          /* Apple-style narrower measure for reading */
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 8px;                /* Apple: 8 utility */
  --radius-lg: 18px;            /* Apple: ~18 cards, softened corners */
  --radius-pill: 999px;         /* Apple: pill CTAs */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* the single soft shadow Apple reserves for imagery resting on a surface */
  --shadow-img: 0 18px 50px rgba(40, 30, 12, 0.16);
}

[data-theme="dark"] {
  --bg:        #0c0b09;   /* near-black */
  --bg-alt:    #131210;   /* graphite */
  --surface:   #16140f;
  --surface-2: #1c1a14;
  --text:      #f3ecdd;
  --text-soft: #c5b9a4;   /* raised for WCAG-AA body contrast on dark surfaces */
  --text-faint:#8c8470;
  --border:    #2a261d;
  --border-strong: #3c3527;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 18px 50px rgba(0,0,0,0.5);
  --shadow-lg: 0 36px 90px rgba(0,0,0,0.6);
  --ship-fill: rgba(231, 189, 100, 0.05);
  --hairline:  rgba(231, 189, 100, 0.20);
  --gold:      #d9a849;
  --gold-bright:#f0cd7e;
}

/* Per-language type stacks (clean sans across all three for the Apple feel) */
html[lang="ru"] {
  --font-display: -apple-system, system-ui, 'Inter', 'Golos Text', sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
}
html[lang="he"] {
  --font-display: 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;            /* Apple reading size (not 16) */
  line-height: 1.55;
  letter-spacing: -0.01em;    /* gentle Apple tightening (Latin) */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
/* never tighten Hebrew */
html[lang="he"] body { letter-spacing: normal; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.022em; }
.hero h1 { line-height: 1.2; }
/* Israeli UI design system: never letter-space Hebrew; give Hebrew headings a touch more line height */
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4 { letter-spacing: normal; line-height: 1.25; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4 { letter-spacing: 0; line-height: 1.18; }

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--gold-bright); }
html[lang="he"] .eyebrow { letter-spacing: 0.12em; }
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title { font-size: clamp(38px, 6vw, 72px); line-height: 1.08; }
html[lang="he"] .section-title { line-height: 1.15; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-soft); line-height: 1.62; font-weight: 400; letter-spacing: -0.01em; max-width: 58ch; }
html[lang="he"] .lede { letter-spacing: normal; }
html[lang="he"] .lede, html[lang="ru"] .lede { font-weight: 400; }

/* impeccable: no gradient text. Solid gold, emphasis carried by the display weight. */
.text-gold { color: var(--gold-deep); }
[data-theme="dark"] .text-gold { color: var(--gold-bright); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Apple rhythm: calm but efficient vertical air; the section is the pedestal */
.section { padding-block: clamp(60px, 7vw, 104px); position: relative; }
section[id], main [id] { scroll-margin-top: 80px; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 3.6vw, 52px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lede { margin-top: 16px; }

/* ---------- Buttons ---------- */
/* Apple pill grammar: capsule CTAs, calm weight, restrained elevation */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: normal;
  border-radius: var(--radius-pill);
  transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.96); }   /* Apple-style press feedback */
.btn-gold {
  background: var(--gold-grad); color: #1a1304;
  box-shadow: 0 6px 18px rgba(201,150,46,0.18);
}
.btn-gold:hover { box-shadow: 0 10px 26px rgba(201,150,46,0.26); }
.btn-outline {
  border: 1px solid var(--border-strong); color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
[data-theme="dark"] .btn-outline:hover { color: var(--gold-bright); }
.btn-ghost { color: var(--text-soft); padding-inline: 8px; }
.btn-ghost:hover { color: var(--gold-deep); }
[data-theme="dark"] .btn-ghost:hover { color: var(--gold-bright); }
.btn .arrow { transition: transform 0.4s var(--ease); }
html[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Reveal on scroll ---------- */
/* Visible by default — only the `.js` class (added once JS runs) opts into the
   hidden→reveal animation, so content can never be trapped invisible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.no-anim { transition: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
html.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* hairline separator */
.rule { height: 1px; background: var(--gold-line); opacity: 0.5; border: 0; }
