/* =========================================================
   Base — reset, typography, document
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
body[dir="rtl"] { font-family: var(--font-ar); }

img, svg, video, canvas, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select, button { font: inherit; }

::selection { background: var(--amber); color: var(--navy-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* Skip link (a11y) */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  padding: 12px 18px; background: var(--amber); color: var(--navy-deep);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 0; }

.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;
}

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) { .container { padding: 0 1.25rem; } }

/* Section */
section { padding: 100px 2rem; position: relative; }
@media (max-width: 600px) { section { padding: 60px 1.25rem; } }

/* Section heading components */
.section-label {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--offwhite); margin-bottom: 1.5rem;
}
.section-title em { font-style: normal; color: var(--amber); }
.section-desc {
  font-size: 16px; font-weight: 300; color: var(--text-dim);
  max-width: 580px; line-height: 1.8;
}
[dir="rtl"] .section-title { letter-spacing: 0; }

/* Geometric grid background */
.geo-pattern {
  position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.geo-pattern::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

/* Print */
@media print {
  nav, footer, .mobile-nav, .consent-banner { display: none !important; }
  body { background: white; color: black; }
}
