/* ============================================================
   ELITE MARKETING — BASE CSS
   Design tokens, reset, typography, global utilities
   ============================================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --color-bg:          #080C14;
  --color-bg-2:        #0D1321;
  --color-bg-3:        #111827;
  --color-navy:        #0F2044;
  --color-navy-mid:    #1A3A6B;
  --color-gold:        #C9A84C;
  --color-gold-light:  #E2C47A;
  --color-gold-dim:    #8B6E2E;
  --color-gold-glow:   rgba(201, 168, 76, 0.12);
  --color-white:       #F5F7FA;
  --color-gray-1:      #A8B2C1;
  --color-gray-2:      #4A5568;
  --color-gray-3:      #2D3748;
  --color-error:       #FC8181;
  --color-success:     #68D391;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --text-display: clamp(3.2rem, 7vw, 6.5rem);
  --text-h1:      clamp(2.2rem, 4.5vw, 4rem);
  --text-h2:      clamp(1.6rem, 3vw, 2.6rem);
  --text-h3:      clamp(1.15rem, 1.8vw, 1.5rem);
  --text-body-lg: 1.125rem;
  --text-body:    1rem;
  --text-sm:      0.875rem;
  --text-xs:      0.75rem;

  /* Spacing (8px grid) */
  --space-1:   0.5rem;
  --space-2:   1rem;
  --space-3:   1.5rem;
  --space-4:   2rem;
  --space-6:   3rem;
  --space-8:   4rem;
  --space-12:  6rem;
  --space-16:  8rem;
  --space-20: 10rem;
  --space-24: 12rem;

  /* Layout */
  --grid-max:     1280px;
  --grid-padding: clamp(1.25rem, 5vw, 4rem);

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --border-subtle:  1px solid rgba(201, 168, 76, 0.08);
  --border-default: 1px solid rgba(201, 168, 76, 0.18);
  --border-active:  1px solid rgba(201, 168, 76, 0.5);
  --border-navy:    1px solid rgba(15, 32, 68, 0.8);

  /* Shadows */
  --shadow-gold:       0 0 30px rgba(201, 168, 76, 0.06);
  --shadow-gold-hover: 0 8px 48px rgba(201, 168, 76, 0.14);
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.4);

  /* Easings */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Durations */
  --dur-fast:   150ms;
  --dur-base:   300ms;
  --dur-slow:   600ms;
  --dur-slower: 900ms;
  --dur-scene:  1200ms;

  /* Nav */
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-gray-1);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }

p {
  color: var(--color-gray-1);
  line-height: 1.75;
}

strong {
  color: var(--color-white);
  font-weight: 600;
}

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

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--sm {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section--lg {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* ─── Section Labels ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--text-h2);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  max-width: 680px;
}

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

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-gray-1);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary:hover {
  color: var(--color-bg);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  border: 1px solid var(--color-gray-2);
  color: var(--color-white);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(245, 247, 250, 0.05);
}

.btn-ghost {
  color: var(--color-gold);
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn-ghost:hover {
  border-bottom-color: var(--color-gold);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out-expo);
  flex-shrink: 0;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ─── Gold accent text ─── */
.gold {
  color: var(--color-gold);
}

/* ─── Cards ─── */
.card {
  background: var(--color-bg-2);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border-default);
  border: none;
  margin: 0;
}

/* ─── Grid layouts ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ─── Text utilities ─── */
.text-center { text-align: center; }
.text-white   { color: var(--color-white); }
.text-gold    { color: var(--color-gold); }
.text-gray    { color: var(--color-gray-1); }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.text-lg      { font-size: var(--text-body-lg); }

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

/* ─── Focus styles (accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .section--lg {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    max-width: 100%;
  }

  .card {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 24px;
    font-size: 0.8125rem;
  }
}

/* ─── 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;
  }
}
