/* ═══════════════════════════════════════════════════
   Base Styles — Reset, Typography, Utilities
   ═══════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ─── Typography Scale ─── */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-3xl { font-size: var(--fs-3xl); }
.text-4xl { font-size: var(--fs-4xl); }
.text-5xl { font-size: var(--fs-5xl); }

.fw-light { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }
.fw-extrabold { font-weight: var(--fw-extrabold); }

.text-gold { color: var(--clr-gold); }
.text-white { color: var(--clr-text-white); }
.text-muted { color: var(--clr-text-muted); }
.text-green { color: var(--clr-green); }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--wide {
  max-width: var(--container-wide);
}

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

.section--dark {
  background-color: var(--clr-royal);
  color: var(--clr-text-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--clr-text-white);
}

.section--gray {
  background-color: var(--clr-gray);
}

.section--navy {
  background-color: var(--clr-navy);
  color: var(--clr-text-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--clr-text-white);
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
  background: rgba(212, 175, 55, 0.1);
  color: var(--clr-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.section--dark .section-badge,
.section--navy .section-badge {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.25);
}

.section-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.section-title .gold {
  color: var(--clr-gold);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin-inline: auto;
}

.section--dark .section-subtitle,
.section--navy .section-subtitle {
  color: var(--clr-text-on-dark);
}

/* ─── Accessibility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 2px;
}

/* ─── Selection ─── */
::selection {
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--clr-navy);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-royal-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-royal);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
