/* =========================================================
   BASE — Reset, Typography, Global Elements
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--teal-deep); }

/* ── Headings ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.25;
  margin: 0 0 var(--sp-sm);
}
h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--sp-sm); }
p.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

ul, ol { padding-right: 1.4em; padding-left: 0; margin: 0 0 var(--sp-sm); }
li { margin-bottom: 0.4em; }

/* ── Focus visibility (accessibility) ────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Container ────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp-lg); }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: var(--sp-xl) 0; }
.section--sm { padding: var(--sp-lg) 0; }
.section--pale { background: var(--teal-pale); }
.section--dark {
  background: var(--teal-deep);
  color: rgba(255,255,255,.92);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p.lead { color: rgba(255,255,255,.78); }

.section-head { max-width: 720px; margin: 0 0 var(--sp-lg); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ── Eyebrow label ────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-tiny);
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-pale);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: var(--sp-sm);
}
.section--dark .eyebrow {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: var(--gold);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--teal-deep); box-shadow: var(--shadow-gold); }
.btn--gold:hover { background: #c78f3c; color: var(--teal-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal-pale); color: var(--teal-deep); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #1ebe5d; color: var(--white); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 36px; font-size: 1.1rem; }
.btn--sm { padding: 9px 20px; font-size: .9rem; }

/* ── Cards ────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ── Utility ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute; right: -9999px; top: 0;
  background: var(--teal-deep); color: #fff;
  padding: 12px 20px; z-index: 10000; border-radius: 0 0 8px 8px;
}
.skip-link:focus { right: 0; }
