/* =========================================
   USDL - United States Domino League
   Global Styles
   ========================================= */

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

/* CSS Variables */
:root {
  --navy: #0A1628;
  --carbon: #2D3436;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --gold-light: #D4B86A;
  --gray-light: #F5F5F7;
  --gray-mid: #636E72;
  --gray-border: #DFE6E9;

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --max-width: 1200px;
  --header-height: 110px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--carbon);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

/* =========================================
   Header / Navigation
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.logo span {
  color: var(--gold);
}

.logo-svg {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: visible;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  margin-left: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-btn {
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

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

.section--carbon {
  background: var(--carbon);
  color: var(--white);
}

/* =========================================
   Typography
   ========================================= */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-mid);
  max-width: 700px;
  line-height: 1.8;
}

.section--dark .section-subtitle,
.section--carbon .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero--sub {
  min-height: 60vh;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: #0d1e38;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.4);
}

/* =========================================
   Cards / Grid
   ========================================= */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.card--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--gold);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.card--dark .card-text {
  color: rgba(255, 255, 255, 0.6);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link:hover {
  gap: 0.75rem;
}

/* Pillar cards on index */
.pillar-card {
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  background: var(--white);
  transition: all 0.3s;
  display: block;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.pillar-card .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.pillar-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* =========================================
   Timeline
   ========================================= */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(201, 168, 76, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--navy);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.timeline-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* =========================================
   Steps / Method
   ========================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
}

/* =========================================
   Stats
   ========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   Blockquote
   ========================================= */
.blockquote {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  position: relative;
  padding: 2rem 0;
}

.blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: -0.5rem;
  left: -1rem;
  font-style: normal;
  line-height: 1;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section .section-title {
  margin-bottom: 1rem;
}

.cta-section .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-email {
  margin-bottom: 1rem;
}

.footer-email a {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.footer-email a:hover {
  color: var(--gold-light);
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .section-title { font-size: 2rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .logo-svg {
    width: 60px;
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open { display: flex; }

  .lang-toggle { margin-left: 0; }

  .hero { min-height: 70vh; }
  .hero--sub { min-height: 50vh; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.05rem; }

  .section { padding: 4rem 0; }
  .section-title { font-size: 1.75rem; }

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

  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 1rem; }
  .timeline-dot { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 3rem;
  }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    text-align: left;
    margin: 0;
  }

  .blockquote {
    font-size: 1.35rem;
    padding: 1rem;
  }
  .blockquote::before {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 70px;
  }

  .logo-svg {
    width: 50px;
    height: 50px;
  }

  .logo {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .container { padding: 0 1.25rem; }
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.5rem; }
  .btn { padding: 0.875rem 1.5rem; font-size: 0.8rem; }
  .stats { grid-template-columns: 1fr; }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
