/* ===================================
   V3: Vibrant Hub Design System
   Inspired by telhi.org
   =================================== */

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  /* Multi-Color System */
  --color-red: #D93744;
  --color-orange: #F5921F;
  --color-yellow: #FDB913;
  --color-green: #8CC63F;
  --color-teal: #00AEEF;
  --color-purple: #8B5A9F;

  /* Neutrals */
  --color-charcoal: #333333;
  --color-gray: #666666;
  --color-light-gray: #F5F5F5;
  --color-light-blue: #E6F4F9;
  --color-white: #FFFFFF;

  /* Typography */
  --font-primary: Arial, Helvetica, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

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

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --container-wide: 1400px;
  --header-height: 80px;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===================================
   Grid System
   =================================== */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

@media (min-width: 768px) {
  .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(6, 1fr);
  }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-red);
}

.nav-menu {
  display: none;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-red);
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--color-charcoal);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-light-gray);
}

/* ===================================
   Circular Badges (Signature Element)
   =================================== */
.circle-badge-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  justify-items: center;
  padding: var(--space-2xl) 0;
}

@media (min-width: 640px) {
  .circle-badge-container {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.circle-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  padding: var(--space-md);
  cursor: pointer;
  transition: transform var(--transition-medium);
  font-size: var(--text-sm);
  line-height: 1.2;
}

.circle-badge:hover {
  transform: scale(1.1);
}

.circle-badge-red { background: var(--color-red); }
.circle-badge-orange { background: var(--color-orange); }
.circle-badge-yellow { background: var(--color-yellow); }
.circle-badge-green { background: var(--color-green); }
.circle-badge-teal { background: var(--color-teal); }
.circle-badge-purple { background: var(--color-purple); }

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero-text {
  font-size: var(--text-xl);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===================================
   Sections
   =================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-text {
  font-size: var(--text-lg);
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-accent {
  width: 60px;
  height: 4px;
  background: var(--color-red);
  margin: var(--space-md) auto;
}

/* Colored Section Backgrounds */
.section-red { background: var(--color-red); color: var(--color-white); }
.section-orange { background: var(--color-orange); color: var(--color-white); }
.section-yellow { background: var(--color-yellow); color: var(--color-charcoal); }
.section-green { background: var(--color-green); color: var(--color-white); }
.section-teal { background: var(--color-teal); color: var(--color-white); }
.section-purple { background: var(--color-purple); color: var(--color-white); }
.section-light-gray { background: var(--color-light-gray); }
.section-light-blue { background: var(--color-light-blue); }

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background: #B92D39;
  border-color: #B92D39;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-secondary:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-red);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ===================================
   Cards
   =================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
}

.card-subtitle {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gray);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: var(--space-md);
  flex: 1;
}

.card-link {
  font-weight: 700;
  color: var(--color-red);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: var(--color-orange);
}

/* ===================================
   Badges
   =================================== */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.badge-red { background: var(--color-red); }
.badge-orange { background: var(--color-orange); }
.badge-yellow { background: var(--color-yellow); color: var(--color-charcoal); }
.badge-green { background: var(--color-green); }
.badge-teal { background: var(--color-teal); }
.badge-purple { background: var(--color-purple); }
.badge-gray { background: var(--color-gray); }

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-light-blue);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-base);
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-red);
}

.footer-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: var(--space-md);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray);
  color: var(--color-gray);
  font-size: var(--text-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  margin-top: var(--space-md);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* ===================================
   Feature List
   =================================== */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  line-height: 1.7;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ===================================
   Video Container
   =================================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================
   Stats / Circular Stats
   =================================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2xl);
  text-align: center;
}

.stat-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .circle-badge {
    width: 100px;
    height: 100px;
    font-size: var(--text-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
