/* ============================================================
   VARIABLES & RESET
   Алик Березняков · Адвокат-нотариус
   ============================================================ */

:root {
  /* Palette */
  --color-navy:    #1e3a5f;
  --color-navy-dark: #0f2137;
  --color-cream:   #f8f6f2;
  --color-gold:    #c9b99a;
  --color-gold-dark: #a89070;
  --color-warm:    #eee8dc;
  --color-sage:    #f2f0eb;
  --color-text:    #5a5248;
  --color-text-light: #9a8e7e;
  --color-footer:  #0f2137;
  --color-white:   #ffffff;

  /* Typography */
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-sans:   -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Sizes */
  --container:   1140px;
  --container-sm: 760px;
  --radius:      10px;
  --radius-sm:   6px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:      0.18s;
  --t-med:       0.32s;
  --t-slow:      0.56s;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-md:   0 8px 32px rgba(30, 58, 95, 0.12);
  --shadow-lg:   0 20px 60px rgba(30, 58, 95, 0.16);

  /* Z-index */
  --z-nav:       100;
  --z-hero:      10;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, textarea, select {
  font: inherit;
}

/* ── Hebrew / RTL — override serif with system sans ────────── */
[dir="rtl"] {
  --font-serif: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .about__name,
[dir="rtl"] .nav__logo,
[dir="rtl"] .footer__logo {
  font-weight: 600;
  letter-spacing: 0;
}
