/* ============================================
   RACE GIFT PREPARING LLC — GLOBAL CSS
   Design System: Tokens, Reset, Typography
   ============================================ */

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

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Colors */
  --primary:        #4CC8E4; /* Cyan from logo */
  --primary-light:  #75D6ED;
  --primary-dark:   #2BA8C4;
  --primary-glow:   rgba(76, 200, 228, 0.25);
  --primary-subtle: rgba(76, 200, 228, 0.08);

  --accent:         #E3242B; /* Red from logo */
  --accent-light:   #F04B51;
  --accent-dark:    #C0191F;
  
  --bg-main:        #FAFAFA;
  --surface:        #FFFFFF;
  --surface-2:      #F0F2F5;
  --surface-3:      #E4E7EC;
  --border:         rgba(76, 200, 228, 0.25);
  --border-subtle:  rgba(0, 0, 0, 0.08);

  --text-primary:   #1A1D24;
  --text-secondary: #4A505C;
  --text-muted:     #7A808C;
  --white:          #FFFFFF;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #4CC8E4 0%, #2BA8C4 100%);
  --gradient-dark:      linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
  --gradient-hero:      linear-gradient(135deg, #FAFAFA 0%, #F5F7FA 60%, #E8EDF2 100%);
  --gradient-card:      linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-primary-fade: linear-gradient(180deg, rgba(76,200,228,0.15) 0%, transparent 100%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */
  --text-7xl:  4.5rem;    /* 72px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 24px rgba(76,200,228,0.2);
  --shadow-primary-lg: 0 8px 40px rgba(76,200,228,0.3);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-nav:     9000;
  --z-toast:   9999;

  /* Section sizing */
  --section-padding: clamp(5rem, 10vw, 8rem) 0;
  --container-max:   1280px;
  --container-pad:   clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

p {
  line-height: 1.75;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

/* Display Headings */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* UI / Body Text */
.text-lead {
  font-size: clamp(1.05rem, 2vw, var(--text-xl));
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
}

.text-body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Color Utilities */
.text-primary        { color: var(--primary); }
.text-primary     { color: var(--text-primary); }
.text-secondary   { color: var(--text-secondary); }
.text-muted       { color: var(--text-muted); }
.text-white       { color: var(--white); }

.text-gradient-gold {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-sm {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: var(--section-padding);
}

.section-main    { background: var(--bg-main); }
.section-surface { background: var(--surface); }
.section-surface2 { background: var(--surface-2); }

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

/* Flex */
.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-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ============================================
   SECTION HEADER COMPONENT
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--primary);
  opacity: 0.6;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.section-header p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-primary {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 200, 228, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(76, 200, 228, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SCROLL ANIMATION CLASSES
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   GOLD DIVIDER
   ============================================ */
.primary-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
}

.primary-divider-left {
  margin-left: 0;
}

/* ============================================
   BADGE / PILL COMPONENTS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(76,200,228,0.25);
}

.badge-dark {
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ============================================
   HORIZONTAL RULE
   ============================================ */
.hr-primary {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.3;
  margin: var(--space-8) 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  :root {
    --section-padding: clamp(3.5rem, 8vw, 5rem) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1.25rem;
  }
}
