/* ─── Prositive Base CSS ─── */

/* ─── Default Variables (overridden by style files) ─── */
:root {
  --primary:       #2563eb;
  --primary-hover: #1d4ed8;
  --dark:          #111827;
  --dark-alt:      #1f2937;
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --bg-muted:      #f1f5f9;
  --text:          #111827;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-pill:   50px;

  --font-body:    'Heebo', system-ui, sans-serif;
  --font-heading: 'Heebo', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,.12);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
  --transition: all .25s ease;

  --container: 1280px;
  --section-pad: clamp(3.5rem, 7vw, 6rem);
  --header-h: 70px;
}

/* ─── Fonts ─── */
@font-face {
  font-family: 'Heebo';
  src: url('fonts/heebo-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Heebo';
  src: url('fonts/heebo-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── 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-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  direction: rtl;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { max-width: 68ch; }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-pad);
}

.section--dark  { background: var(--dark);    color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark p  { color: rgba(255,255,255,.75); }

.section--soft  { background: var(--bg-soft); }
.section--muted { background: var(--bg-muted); }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Section header ─── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { color: var(--text-muted); margin-inline: auto; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Admin bar compensation ─── */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-overlay { top: calc(var(--header-h) + 32px); }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-overlay { top: calc(var(--header-h) + 46px); }
}

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
