/*
 * 8:28 Solutions - Main Stylesheet
 * Design system and core component styles
 */

/* ===================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================== */
:root {
  /* Brand Colors - New Color Scheme (Phase 1 Redesign) */
  --color-primary: #0066CC;         /* Deep blue - trust, professionalism */
  --color-primary-dark: #0052A3;    /* Hover states */
  --color-primary-light: #3399FF;   /* Lighter variant */
  --color-primary-blend: #0088CC;   /* Mid-blue for workflow transitions */
  --color-primary-glow: rgba(0, 102, 204, 0.4);

  --color-secondary: #00B4D8;       /* Cyan/teal - innovation, flow */
  --color-secondary-dark: #0096B8;  /* Hover states */
  --color-secondary-light: #33C9E6; /* Lighter variant */
  --color-secondary-glow: rgba(0, 180, 216, 0.4);

  --color-accent: #FF6B35;          /* Vibrant orange - success, action */
  --color-accent-dark: #E55A2B;     /* Hover states */
  --color-accent-light: #FF8A5B;    /* Lighter variant */
  --color-accent-glow: rgba(255, 107, 53, 0.4);

  /* Gradient Combinations */
  --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00B4D8 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8A5B 100%);
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* Light Mode (Default) - Clean & Bright */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Legacy color names for backwards compatibility */
  --color-dark: var(--color-text-primary);
  --color-gray: var(--color-text-secondary);
  --color-light-gray: var(--color-border);
  --color-bg-gray: var(--color-bg-secondary);
  --color-white: var(--color-bg-primary);
}

/* Dark Mode - Linear-Inspired Aesthetic */
[data-theme="dark"] {
  --color-bg-primary: #1A1A1A;
  --color-bg-secondary: #2A2A2A;
  --color-bg-tertiary: #3A3A3A;
  --color-text-primary: #E0E0E0;
  --color-text-secondary: #A0A0A0;
  --color-text-tertiary: #707070;
  --color-border: #3A3A3A;
  --color-border-light: #2A2A2A;

  /* Brighter colors for dark mode visibility */
  --color-primary: #3399FF;
  --color-primary-dark: #0066CC;
  --color-primary-light: #66B3FF;
  --color-primary-blend: #0088CC;
  --color-secondary: #33C9E6;
  --color-secondary-dark: #00B4D8;
  --color-secondary-light: #66D9ED;
  --color-accent: #FF8A5B;
  --color-accent-dark: #FF6B35;
  --color-accent-light: #FFA67D;

  /* Adjusted gradients for dark mode */
  --gradient-primary: linear-gradient(135deg, #3399FF 0%, #33C9E6 100%);
  --gradient-accent: linear-gradient(135deg, #FF8A5B 0%, #FFA67D 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  --gradient-card: linear-gradient(145deg, rgba(51, 153, 255, 0.08) 0%, rgba(255, 138, 91, 0.08) 100%);

  /* Enhanced shadows for dark mode depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(51, 153, 255, 0.3);
}

/* Dark Mode Component Enhancements - Subtle Borders for Elevation */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card {
  border: 1px solid var(--color-border);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
}

:root {
  /* Typography - Modern & Bold */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace;

  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing System (8px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Layout - Modern & Spacious */
  --container-max-width: 1280px;
  --container-padding: var(--space-4);
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* Modern Shadows - Softer & Deeper */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.20);
  --shadow-2xl: 0 32px 64px rgba(15, 23, 42, 0.24);
  --shadow-glow: 0 0 24px var(--color-primary-glow);
  --shadow-glow-accent: 0 0 24px var(--color-accent-glow);

  /* Transitions - Smooth & Natural */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Animations */
  --animation-fade-in: fadeIn 0.6s ease-out;
  --animation-slide-up: slideUp 0.6s ease-out;
  --animation-scale-in: scaleIn 0.4s ease-out;
  --animation-shimmer: shimmer 2s infinite;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px; /* Account for sticky header */
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  color: var(--color-gray);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

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

.section--primary {
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

.section--primary::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

.section--primary h1,
.section--primary h2,
.section--primary h3,
.section--primary h4 {
  color: white;
  position: relative;
  z-index: 1;
}

.section--primary p {
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

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

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

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

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

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

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

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

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

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

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

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

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  line-height: var(--line-height-tight);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  text-decoration: none;
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn--primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn--accent {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn--accent:hover {
  text-decoration: none;
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow-accent);
}

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

.btn--outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px) scale(1.02);
}

.btn--outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn--outline-white:hover {
  background-color: white;
  color: var(--color-primary);
  border-color: white;
  text-decoration: none;
  transform: translateY(-3px) scale(1.02);
}

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

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

.btn--block {
  display: block;
  width: 100%;
}

/* ===================================
   CARDS
   =================================== */
.card {
  background-color: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-base), transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  color: var(--color-dark);
}

.card__text {
  color: var(--color-gray);
  margin-bottom: var(--space-4);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

/* Featured Card with Badge */
.card--featured {
  position: relative;
  border: 2px solid var(--color-accent);
}

.card__badge {
  position: absolute;
  top: -12px;
  right: var(--space-6);
  background: var(--gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

[data-theme="dark"] .card--featured {
  border-color: var(--color-accent);
}

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

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-label--required::after {
  content: " *";
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  font-family: inherit;
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
  color: var(--color-gray);
}

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

.form-error {
  display: none;
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-error);
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  color: var(--color-success);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

/* ===================================
   HEADER
   =================================== */
.header {
  background-color: var(--color-bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.header__logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-decoration: none;
}

.header__logo:hover {
  text-decoration: none;
}

.header__logo-number {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
}

.nav__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav__link--active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-dark);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.nav.open .nav__list {
  flex-direction: column;
  gap: 0;
}

.nav.open .nav__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-light-gray);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  color: var(--color-text-primary);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__column h4 {
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: var(--space-2);
}

.footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-primary);
  text-decoration: none;
  transform: translateX(4px);
}

.footer__text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
  text-align: center;
}

.footer__bottom p {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Dark mode footer - darker blue background */
[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f2847 100%);
}

/* Scripture quote styling */
.footer__scripture {
  font-style: italic;
  font-size: var(--font-size-sm);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
  opacity: 0.2;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--font-size-4xl);
  color: white;
  margin-bottom: var(--space-6);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: slideUp 0.8s ease-out;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-8);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.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;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

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

/* ===================================
   DARK MODE TOGGLE
   =================================== */
.theme-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__theme-toggle {
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  height: auto;
  line-height: var(--line-height-normal);
}

.theme-toggle:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.theme-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: transform var(--transition-base);
}

.nav__theme-toggle .theme-toggle__icon {
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--sun {
  display: block;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(20deg);
}

/* ===================================
   MODERN ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Stagger animations */
.animate-stagger > * {
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Scroll-triggered animations */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.stagger-group > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-group > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-on-scroll,
  .stagger-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===================================
   MODERN UI ELEMENTS
   =================================== */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Glow effects */
.glow-primary {
  box-shadow: var(--shadow-glow);
}

.glow-accent {
  box-shadow: var(--shadow-glow-accent);
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Hover glow effect */
.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

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

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

/* Badge/Pill */
.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background: var(--gradient-primary);
  color: white;
}

/* Modern divider */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
  margin: var(--space-8) 0;
}

/* Icon wrapper */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  background: var(--gradient-card);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.icon-wrapper:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--border-radius-full);
  border: 2px solid var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection styling */
::selection {
  background: var(--color-primary);
  color: white;
}

::-moz-selection {
  background: var(--color-primary);
  color: white;
}

/* ===================================
   MODAL
   =================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.3s ease-out;
}

.modal.visible {
  display: flex;
}

.modal__content {
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
  animation: scaleIn 0.3s ease-out;
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.modal__title {
  font-size: var(--font-size-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  padding-right: var(--space-8);
}

.modal__text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal__form .form-input {
  width: 100%;
}

.modal__form .btn {
  margin-top: var(--space-2);
}

/* ===================================
   DECORATIVE GRAPHICS & PARALLAX
   =================================== */

/* Floating geometric shapes for visual interest */
.section--decorated {
  position: relative;
  overflow: hidden;
}

.section--decorated::before,
.section--decorated::after {
  content: '';
  position: absolute;
  border-radius: var(--border-radius-full);
  pointer-events: none;
  opacity: 0.15;
}

.section--decorated::before {
  width: 400px;
  height: 400px;
  background: var(--gradient-primary);
  top: -200px;
  right: -100px;
  animation: float 15s ease-in-out infinite;
}

.section--decorated::after {
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  bottom: -150px;
  left: -75px;
  animation: float 20s ease-in-out infinite reverse;
}

/* Diagonal separator for breaking up sections */
.section__divider {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.section__divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transform: skewY(-2deg);
  transform-origin: top left;
}

/* Parallax container */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
}

.parallax__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax__content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: var(--space-8);
  position: relative;
  z-index: 1;
}

.parallax__content h2 {
  color: white;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}

.parallax__content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-lg);
}

/* Graphic accent elements */
.graphic-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.graphic-circle--primary {
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

.graphic-circle--accent {
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

/* Gradient blob backgrounds */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.15;
  animation: blobMove 20s ease-in-out infinite;
}

.blob--1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-primary);
  top: -100px;
  left: -100px;
  animation-duration: 25s;
}

.blob--2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  bottom: -100px;
  right: -100px;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob--3 {
  width: 350px;
  height: 350px;
  background: var(--gradient-primary);
  top: 50%;
  right: -50px;
  animation-duration: 35s;
  animation-delay: -10s;
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9) rotate(240deg);
  }
}

/* Stats/numbers highlight section */
.stats-section {
  background: var(--gradient-card);
  border-radius: var(--border-radius-xl);
  padding: var(--space-12);
  margin: var(--space-16) 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 48rem) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-3);
  display: block;
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Pattern background for sections */
.pattern-dots {
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

[data-theme="dark"] .pattern-dots {
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
}

/* ===================================
   ABOUT PAGE - Areas We Serve List
   =================================== */
.areas-served-list {
  columns: 2;
  column-gap: var(--space-8);
  list-style-position: inside;
}

/* Single column on mobile */
@media (max-width: 47.9375rem) {
  .areas-served-list {
    columns: 1;
  }
}

/* ===================================
   BLOG CATEGORY FILTERS
   =================================== */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.blog-filter-btn {
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--color-border);
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.blog-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-secondary);
  transform: translateY(-1px);
}

.blog-filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

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

/* Hide filtered posts */
.card.hidden {
  display: none;
}

/* ===================================
   CUSTOM MODAL UTILITIES
   =================================== */
.custom-alert-modal,
.custom-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-4);
}

.custom-alert-modal.visible,
.custom-confirm-modal.visible {
  opacity: 1;
}

.custom-alert-modal__content,
.custom-confirm-modal__content {
  background: var(--color-bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.custom-alert-modal.visible .custom-alert-modal__content,
.custom-confirm-modal.visible .custom-confirm-modal__content {
  transform: scale(1);
}

.custom-alert-modal__header,
.custom-confirm-modal__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--gradient-card);
}

.custom-alert-modal__title,
.custom-confirm-modal__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.custom-alert-modal__body,
.custom-confirm-modal__body {
  padding: var(--space-8) var(--space-6);
}

.custom-alert-modal__message,
.custom-confirm-modal__message {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

.custom-alert-modal__footer,
.custom-confirm-modal__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  background: var(--color-bg-secondary);
}

.custom-alert-modal__btn,
.custom-confirm-modal__btn {
  min-width: 100px;
}
