/* ============================================
   APPLYBOARD AFRICA - ELEGANT THEME
   Version 2.0 - Complete Redesign
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors */
  --primary-900: #0a2540;
  --primary-800: #0d3356;
  --primary-700: #0f4c75;
  --primary-600: #1565a0;
  --primary-500: #206fb3;
  --primary-400: #5ba0d0;
  --primary-300: #8bbde0;
  --primary-200: #bdd9ef;
  --primary-100: #e8f4fb;
  --primary-50: #f5fafd;

  /* Accent Colors - Warm Gold */
  --accent-900: #7a5a1a;
  --accent-800: #9a7424;
  --accent-700: #b8902e;
  --accent-600: #d4a853;
  --accent-500: #e4bc6a;
  --accent-400: #eece8a;
  --accent-300: #f5e0ad;
  --accent-200: #f9eed0;
  --accent-100: #fdf8ec;
  --accent-50: #fefcf6;

  /* Neutral Colors */
  --neutral-950: #0a0f14;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  --white: #ffffff;

  /* Semantic Colors */
  --success-500: #10b981;
  --success-100: #d1fae5;
  --warning-500: #f59e0b;
  --warning-100: #fef3c7;
  --error-500: #ef4444;
  --error-100: #fee2e2;
  --info-500: #3b82f6;
  --info-100: #dbeafe;

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Font Sizes */
  --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;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* 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.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 40px rgb(15 76 117 / 0.15);
  --shadow-gold: 0 8px 30px rgb(212 168 83 / 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* Legacy Variable Aliases (for backward compatibility) */
  --primary: #0f4c75;
  --primary-light: #3282b8;
  --primary-dark: #0a3655;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-light: #f8fafc;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
}

.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: var(--container-lg);
}

.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: var(--transition-base);
}

.site-header.scrolled::before {
  opacity: 1;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  transition: var(--transition-base);
}

.site-header.scrolled .header-inner {
  padding: var(--space-3) 0;
}

/* Logo */
.site-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-base);
}

.site-header.scrolled .site-logo img {
  height: 40px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  position: relative;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

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

/* When header is scrolled (white background), use dark text */
.site-header.scrolled .nav-link {
  color: var(--neutral-700);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--primary-700);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.site-header.scrolled .nav-link::after {
  background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 24px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Header buttons - ghost style when not scrolled */
.site-header .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border: none;
  text-decoration: none;
}

.site-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.site-header.scrolled .btn-ghost {
  color: var(--neutral-700);
}

.site-header.scrolled .btn-ghost:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
  text-decoration: none;
}

/* Header primary button - transparent border when not scrolled */
.site-header .header-actions .btn-primary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  box-shadow: none;
}

.site-header .header-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.site-header.scrolled .header-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border: none;
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgb(15 76 117 / 0.35);
}

.site-header.scrolled .header-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgb(15 76 117 / 0.45);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.site-header.scrolled .mobile-toggle span {
  background: var(--neutral-800);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .mobile-toggle:hover {
  background: var(--neutral-100);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
}

.btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgb(15 76 117 / 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgb(15 76 117 / 0.45);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: var(--neutral-900);
  box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgb(212 168 83 / 0.4);
  color: var(--neutral-900);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neutral-300);
  color: var(--neutral-700);
}

.btn-outline:hover {
  border-color: var(--primary-700);
  color: var(--primary-700);
  background: var(--primary-50);
  text-decoration: none;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-700);
  color: var(--primary-700);
}

.btn-outline-primary:hover {
  background: var(--primary-700);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-800);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-700);
}

.btn-ghost:hover {
  background: var(--neutral-100);
  text-decoration: none;
}

.btn-link {
  background: transparent;
  color: var(--primary-700);
  padding: 0;
  text-decoration: underline;
}

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

/* Button with icon */
.btn i,
.btn svg {
  font-size: 1em;
}

.btn-icon-only {
  padding: var(--space-3);
  width: 44px;
  height: 44px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.92) 0%,
    rgba(15, 76, 117, 0.85) 50%,
    rgba(10, 37, 64, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  padding: var(--space-16) 0;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success-500);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  max-width: 800px;
}

.hero-title .highlight {
  color: var(--accent-500);
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--primary-900);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero .hero-background {
  opacity: 0.3;
}

.page-hero .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.95) 0%,
    rgba(15, 76, 117, 0.9) 100%
  );
}

.page-hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.page-hero-content .subtitle {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-500);
  margin-bottom: var(--space-4);
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-hero-content .description {
  font-size: var(--text-lg);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--accent-500);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-base);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

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

.card-bordered {
  border: 1px solid var(--neutral-200);
}

.card-bordered:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-glow);
}

/* Service Cards */
.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid var(--neutral-100);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: transparent;
}

.service-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.8), transparent);
  opacity: 0;
  transition: var(--transition-base);
}

.service-card:hover .service-card-image::after {
  opacity: 1;
}

.service-card-body {
  padding: var(--space-8);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: var(--white);
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  transition: var(--transition-base);
}

.service-card:nth-child(even) .service-card-icon {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: var(--neutral-900);
}

.service-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.service-card-description {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-700);
  transition: var(--transition-fast);
}

.service-card-link:hover {
  color: var(--accent-600);
  gap: var(--space-3);
}

/* Feature Cards */
.feature-card {
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-100);
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  padding: var(--space-10);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--primary-100);
}

.testimonial-content {
  font-size: var(--text-lg);
  color: var(--neutral-700);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--neutral-900);
}

.testimonial-info p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-top: var(--space-1);
}

.testimonial-rating i {
  color: var(--accent-500);
  font-size: var(--text-sm);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-24) 0;
  background: linear-gradient(
    135deg,
    var(--primary-900) 0%,
    var(--primary-700) 100%
  );
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--neutral-950);
  color: var(--white);
  padding-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin: var(--space-5) 0;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-600);
  color: var(--neutral-900);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-500);
  padding-left: var(--space-2);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-item i {
  color: var(--accent-500);
  margin-top: 3px;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  color: var(--neutral-800);
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.form-control::placeholder {
  color: var(--neutral-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-light {
  background: var(--neutral-50);
}
.bg-primary {
  background: var(--primary-700);
}
.bg-dark {
  background: var(--neutral-900);
}

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

.text-primary {
  color: var(--primary-700);
}
.text-accent {
  color: var(--accent-600);
}
.text-muted {
  color: var(--neutral-500);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mt-8 {
  margin-top: var(--space-8);
}

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

.flex {
  display: flex;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.flex-between {
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero-stats {
    gap: var(--space-8);
  }
}

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  padding: var(--space-20) var(--space-8) var(--space-8);
  overflow-y: auto;
  transition: var(--transition-base);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--neutral-200);
}

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

.mobile-nav a {
  display: block;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--neutral-800);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.mobile-menu-actions {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--neutral-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   LEGACY CLASS ALIASES & ADDITIONS
   (Support for alternate naming conventions)
   ============================================ */

/* Hero Background Alias */
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Hero Content Alias */
.page-hero .hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.page-hero .hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-hero .hero-content p {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-4);
}

.hero-subtitle,
.page-hero .hero-subtitle {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-500);
  margin-bottom: var(--space-4);
}

/* Short Page Hero */
.page-hero-short {
  padding: 140px 0 80px;
  min-height: auto;
}

/* Section Variants */
.section-white {
  background: var(--white);
}

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

.section-dark {
  background: linear-gradient(
    135deg,
    var(--primary-900) 0%,
    var(--primary-700) 100%
  );
  color: var(--white);
}

.section-primary {
  background: linear-gradient(
    135deg,
    var(--primary-700) 0%,
    var(--primary-500) 50%,
    var(--primary-900) 100%
  );
  color: var(--white);
}

/* Section Subtitle (alternate) */
.section-subtitle {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-600);
  margin-bottom: var(--space-3);
}

.section-dark .section-subtitle,
.section-primary .section-subtitle,
.section-header.light .section-subtitle {
  color: var(--accent-500);
}

.section-dark .section-title,
.section-primary .section-title,
.section-header.light .section-title {
  color: var(--white);
}

.section-dark .section-description,
.section-primary .section-description,
.section-header.light .section-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Text Center */
.text-center {
  text-align: center;
}

/* Button Gold */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: var(--neutral-900);
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgb(212 168 83 / 0.4);
  color: var(--neutral-900);
  text-decoration: none;
}

/* Button Success */
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  color: var(--white);
  text-decoration: none;
}

/* Button Danger */
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  color: var(--white);
  text-decoration: none;
}

/* Button Block - Full Width */
.btn-block {
  display: flex;
  width: 100%;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-group-center {
  justify-content: center;
}

/* Grid System */
.grid {
  display: grid;
}

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

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

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

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Background Light */
.bg-light {
  background: var(--neutral-50);
}

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

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

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .page-hero {
    padding: 140px 0 80px;
  }
}

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

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

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

  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-4);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .btn-xl {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}
