:root {
  color-scheme: light dark;
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-2: #e3edf8;
  --border: #cfdcea;
  --control-border: #6b8096;
  --text: #12202f;
  --muted: #4d6075;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: rgb(15 118 110 / 0.1);
  --amber: #9a5200;
  --header-bg: rgb(238 244 251 / 0.85);
  --glow: rgb(111 167 181 / 0.25);
  --radius: 14px;
  --font-sans: "Inter", "Heebo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #111821;
    --surface-2: #16202b;
    --border: #223041;
    --control-border: #64788f;
    --text: #e6edf3;
    --muted: #93a1b0;
    --accent: #5eead4;
    --accent-ink: #042f2e;
    --accent-soft: rgb(94 234 212 / 0.1);
    --amber: #fbbf24;
    --header-bg: rgb(11 15 20 / 0.85);
    --glow: rgb(142 197 207 / 0.18);
  }
}

html[lang="he"] { --font-sans: "Heebo", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { border-radius: 7px; }

.cursor {
  color: var(--amber);
  /* Stops before 5 seconds, so it isn't a distraction (WCAG 2.2.2) */
  animation: blink 1.1s steps(1) 4;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.lang-select,
.menu-toggle {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 36px;
  cursor: pointer;
}

.lang-select:hover,
.menu-toggle:hover { border-color: var(--accent); }

.menu-toggle {
  display: none;
  padding: 6px 10px;
  line-height: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Hero */
.hero { padding: 96px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

h3 { font-size: 1.15rem; font-weight: 600; }

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 20px 0 0;
}

.lead-strong {
  margin-top: 14px;
  color: var(--text);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }

.btn-ghost { border-color: var(--control-border); color: var(--text); }

.btn-ghost:hover { border-color: var(--accent); }

/* Mascot */
.hero-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
}

.hero-art img {
  width: 88%;
  height: auto;
}

/* Sections */
.section { padding: 88px 0; }

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card p { color: var(--muted); margin: 10px 0 0; font-size: 0.97rem; }

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact */
.contact { text-align: center; }

.section-centered > .container > .eyebrow,
.section-centered h2 { text-align: center; }

.contact h2 { margin-bottom: 0; }

.contact .lead { margin-inline: auto; }

.contact-actions { justify-content: center; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin: 20px 0 0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.copy-btn:hover { border-color: var(--accent); }

.copy-status {
  color: var(--accent);
  font-weight: 600;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.btn-icon svg,
.float-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* WhatsApp green with dark text keeps 4.5:1 contrast in both themes */
.btn-whatsapp { background: #25d366; color: #052e16; }

/* Floating call + WhatsApp buttons, stacked in the bottom corner */
.float-actions {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px; /* left in Hebrew (RTL), right in English/Russian (LTR) */
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}

.float-btn svg { width: 26px; height: 26px; }

.float-btn:focus-visible { outline-offset: 4px; }

.float-call { background: var(--accent); color: var(--accent-ink); }

.float-wa { background: #25d366; color: #052e16; }

.float-wa svg { width: 28px; height: 28px; }

.prose .contact-list {
  list-style: none;
  padding: 0;
}

/* Footer */
.site-footer {
  padding: 28px 0 164px; /* room so the floating call/WhatsApp buttons never cover footer links */
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Accessibility statement */
.prose { max-width: 72ch; }

.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }

.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }

.prose p,
.prose li { color: var(--muted); }

.prose ul { padding-inline-start: 22px; }

.prose li { margin-bottom: 6px; }

.prose a { color: var(--accent); }

.prose .updated { font-size: 0.95rem; margin-top: 0; }

.placeholder {
  border: 2px dashed var(--control-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .nav { gap: 12px; }
  .menu-toggle { display: inline-block; margin-inline-start: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 4px;
    font-size: 1.05rem;
    color: var(--text);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn, .card { transition: none; }
}
