/* ============================================
   CUPRA GANG — BASE STYLES & DESIGN TOKENS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Bebas+Neue&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Core Palette */
  --black:        #0a0a0b;
  --charcoal:     #111114;
  --charcoal-2:   #18181c;
  --charcoal-3:   #222228;
  --charcoal-4:   #2e2e36;
  --bronze:       #b87333;
  --bronze-light: #d4924a;
  --bronze-dark:  #8a5520;
  --bronze-glow:  rgba(184, 115, 51, 0.15);
  --bronze-glow-strong: rgba(184, 115, 51, 0.35);
  --white:        #f0ece4;
  --white-dim:    rgba(240, 236, 228, 0.7);
  --white-faint:  rgba(240, 236, 228, 0.25);
  --white-ghost:  rgba(240, 236, 228, 0.08);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-sharp:  cubic-bezier(0.19, 1, 0.22, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:   150ms;
  --t-base:   300ms;
  --t-slow:   600ms;
  --t-xslow:  1200ms;

  /* Shadows */
  --shadow-bronze: 0 0 40px rgba(184, 115, 51, 0.2);
  --shadow-deep:   0 20px 60px rgba(0, 0, 0, 0.8);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--bronze-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

/* ---- SELECTION ---- */
::selection { background: var(--bronze-glow-strong); color: var(--white); }

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
}
.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.heading-md {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.heading-sm {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
}
.body-lg { font-size: 1.1rem; font-weight: 300; line-height: 1.8; }
.body-md { font-size: 0.95rem; font-weight: 300; line-height: 1.7; }
.body-sm { font-size: 0.8rem; line-height: 1.6; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-bronze  { color: var(--bronze); }
.text-white   { color: var(--white); }
.text-dim     { color: var(--white-dim); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-sm); }
}

.section-pad {
  padding: var(--space-xl) 0;
}
@media (max-width: 768px) {
  .section-pad { padding: var(--space-lg) 0; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   DIVIDERS & DECORATIVES
   ============================================ */
.bronze-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  margin: var(--space-sm) 0;
}
.bronze-line--center {
  margin: var(--space-sm) auto;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  width: 100px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-sm);
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--bronze);
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ============================================
   HIDDEN / REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-sharp), transform 0.8s var(--ease-sharp);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Arabic RTL */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .bronze-line { background: linear-gradient(270deg, var(--bronze), transparent); }
[dir="rtl"] .section-label { flex-direction: row-reverse; }
[dir="rtl"] .section-label::before { background: linear-gradient(270deg, var(--bronze), transparent); transform: none; }
