/* ============================================
   MODERN DRIVER SERVICE LANDING PAGE
   Progressive Enhancement with CSS-only Features
   ============================================ */

/* ============================================
   ROOT VARIABLES & THEME COLORS
   ============================================ */
:root {
    /* Primary Colors - RydCare Midnight */
    --primary-50: #EFF6FF;
    --primary-100: #ECFEFF;
    --primary-500: #0C4A6E;
    --primary-600: #0891B2;
    --primary-700: #155E75;
    --primary-900: #164E63;
    
    /* Accent Colors */
    --accent-500: #0C4A6E;
    --accent-600: #0891B2;
    
    /* RydCare Brand Colors */
    --dark-navy: #00111C;
    --off-white: #F8F8F8;
    --rydcare-orange: #0C4A6E;
    
    /* Neutral Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    
    /* Backgrounds & Text */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F0F9FF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --border-color: #E2E8F0;
    
    /* Gradients - RydCare Midnight */
    --gradient-primary: linear-gradient(135deg, #0C4A6E 0%, #0891B2 100%);
    --gradient-secondary: linear-gradient(135deg, #0891B2 0%, #0C4A6E 100%);
    --gradient-accent: linear-gradient(90deg, #0891B2 0%, #67E8F9 100%);
    --gradient-soft: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);

    /* Radial glow gradients - light mode (subtle blue) */
    --gradient-radial-tl: radial-gradient(circle at top left, rgba(12, 74, 110, 0.10), transparent 35%);
    --gradient-radial-br: radial-gradient(circle at bottom right, rgba(8, 145, 178, 0.08), transparent 30%);
    --gradient-radial-combined: radial-gradient(circle at top left, rgba(12, 74, 110, 0.10), transparent 35%), radial-gradient(circle at bottom right, rgba(8, 145, 178, 0.08), transparent 30%);

    /* Grid overlay - light mode */
    --grid-overlay: linear-gradient(to right, rgba(8, 145, 178, 0.15) 1px, transparent 1px), linear-gradient(to bottom, rgba(8, 145, 178, 0.15) 1px, transparent 1px);
    --grid-size: 40px 40px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --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.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 5rem 1.5rem;
}

/* ============================================
   DARK MODE THEME
   ============================================ */
:root:has(#dark-toggle:checked) {
    --bg-primary: #00111C;
    --bg-secondary: #0A1929;
    --bg-tertiary: #1A2332;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #1A2332;

    /* Keep orange brand in dark mode */
    --primary-50: #FFF8E7;
    --primary-100: #FFEACC;
    --primary-500: #FAA307;
    --primary-600: #E89307;
    --primary-700: #D68307;
    --primary-900: #8B5704;
    --accent-500: #FAA307;
    --accent-600: #E89307;
    --rydcare-orange: #FAA307;

    /* Enhanced gradients for dark mode */
    --gradient-primary: linear-gradient(135deg, #FAA307 0%, #FFB347 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8C00 0%, #FAA307 100%);
    --gradient-accent: linear-gradient(90deg, #FAA307 0%, #FFB347 100%);
    --gradient-soft: linear-gradient(135deg, #0A1929 0%, #1A2332 100%);
    
    /* Orange glows for dark mode */
    --shadow-glow: 0 0 30px rgba(250, 163, 7, 0.3);
    --shadow-glow-pink: 0 0 30px rgba(250, 163, 7, 0.3);

    /* Radial glow gradients - dark mode (blue like login page) */
    --gradient-radial-tl: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%);
    --gradient-radial-br: radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 30%);
    --gradient-radial-combined: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 30%);

    /* Grid overlay - dark mode */
    --grid-overlay: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */
:root {
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-soft);
    color: var(--text-primary);
    transition: background var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

/* Screen reader only class */
.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 to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-600);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
    transition: top var(--transition-base);
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   GRADIENT BACKDROP UTILITY
   Reusable radial glow + grid overlay layer.
   Apply .gradient-backdrop to any section that
   needs the ambient glow treatment.
   ============================================ */
.gradient-backdrop {
    position: relative;
    overflow: hidden;
}

/* Radial glow layer */
.gradient-backdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-combined);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern layer */
.gradient-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grid-overlay);
    background-size: var(--grid-size);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Ensure direct children sit above the pseudo-element layers */
.gradient-backdrop > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

:root:has(#dark-toggle:checked) .header-nav {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

/* Logo */
.logo-container {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    color: var(--primary-600);
    transition: transform var(--transition-bounce);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

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

/* Logo Image Styling (RydCare SVG) */
.logo-image {
    height: 40px;
    width: auto;
    display: block;
    transition: transform var(--transition-base);
}

.logo-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-image {
        height: 32px;
    }
}

/* Hide SVG icon and text when using logo image */
.logo:has(.logo-image) .logo-icon,
.logo:has(.logo-image) .logo-text {
    display: none;
}

/* Desktop Navigation Links */
.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.dark-mode-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

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

/* Show/hide sun and moon icons */
.sun-icon {
    display: block;
    font-size: 1rem;
}

.moon-icon {
    display: none;
    font-size: 1rem;
}

:root:has(#dark-toggle:checked) .sun-icon {
    display: none;
}

:root:has(#dark-toggle:checked) .moon-icon {
    display: block;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-dropdown {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-dropdown:hover {
    background: var(--bg-tertiary);
}

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

/* Hamburger Menu (Mobile) */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger:hover {
    background: var(--bg-tertiary);
}

.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
:root:has(#menu-toggle:checked) .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

:root:has(#menu-toggle:checked) .hamburger-line:nth-child(2) {
    opacity: 0;
}

:root:has(#menu-toggle:checked) .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

:root:has(#menu-toggle:checked) .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.mobile-menu-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(0.25rem);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    overflow: hidden;
    background: var(--gradient-soft);
    transition: background var(--transition-base);
}

/* Radial glow layer */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-combined);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern layer */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grid-overlay);
    background-size: var(--grid-size);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Lift hero children above the glow/grid layers */
.hero-section > * {
    position: relative;
    z-index: 1;
}

:root:has(#dark-toggle:checked) .hero-section {
    background: linear-gradient(135deg, #00111C 0%, #0A1929 60%, #001829 100%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Hero Text */
.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 0.975rem 2.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

:root:has(#dark-toggle:checked) .btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

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

/* Hero Image */
.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-image-wrapper {
    position: relative;
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

/* Hero Logo (RydCare SVG) */
.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 300px;
    }
}

:root:has(#dark-toggle:checked) .hero-logo {
    filter: drop-shadow(0 20px 40px rgba(250, 163, 7, 0.3));
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.scroll-arrow {
    opacity: 0.6;
    font-size: 1.25rem;
}

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

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

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

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stats-section {
    padding: var(--section-padding);
    background: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-500);
}

.stat-icon {
    color: var(--primary-600);
    margin-bottom: 1.25rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-icon i {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    overflow: visible;
    word-wrap: break-word;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-500);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-soft);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    margin-bottom: 1.5rem;
    transition: all var(--transition-bounce);
}

.feature-icon i {
    font-size: 1.75rem;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.15);
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    gap: 0.75rem;
    color: var(--primary-700);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.service-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition-slow);
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-8px) rotateY(2deg) rotateX(2deg);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                var(--gradient-primary) border-box;
}

:root:has(#dark-toggle:checked) .service-card:hover {
    box-shadow: var(--shadow-glow);
}

.service-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-soft);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
}

.service-icon {
    color: var(--primary-600);
    transition: all var(--transition-base);
    font-size: 2rem;
}

.service-card:hover .service-icon {
    color: white;
    transform: scale(1.1);
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-500);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: all var(--transition-fast);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '▼';
    font-size: 0.875rem;
    color: var(--primary-600);
    transition: transform var(--transition-base);
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo svg {
    color: var(--primary-600);
}

.footer-tagline {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-600);
    transform: translateX(5px);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 0;
    border-color: var(--primary-500);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--primary-600);
}

.separator {
    color: var(--text-tertiary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 40;
    font-size: 1rem;
}

/* Show button when scrolled down */
.back-to-top:hover,
.back-to-top:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px) scale(1.1);
}

/* Show on scroll (CSS-only trick using :target) */
body:has(#stats),
body:has(#why-us),
body:has(#services),
body:has(#faq),
body:has(#home),
body:has(#benefits),
body:has(#how-it-works),
body:has(#requirements) {
    .back-to-top {
        opacity: 0.9;
        visibility: visible;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   ACCESSIBILITY - FOCUS STATES
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    :root {
        --section-padding: 3rem 1.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 1.5rem 4rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ============================================
   LANGUAGE SWITCHER (Pill Style)
   ============================================ */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    line-height: 1;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.lang-btn.active {
    background: var(--primary-500);
    color: white;
}

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

/* Mobile language switcher */
.mobile-lang-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.mobile-lang-switcher .lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.mobile-lang-switcher .lang-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   NAV CTA BUTTON
   ============================================ */
.nav-link-cta {
    background: var(--primary-500);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--primary-600);
    color: white;
}

.mobile-menu-cta {
    background: var(--primary-500);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================
   JOIN US SECTION
   ============================================ */
.join-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-radial-combined);
    pointer-events: none;
}

.join-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.join-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.join-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.join-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.join-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.join-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: 50%;
    color: var(--primary-500);
    font-size: 1.5rem;
}

.join-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.join-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.join-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-500);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.join-cta:hover {
    background: var(--primary-600);
    color: white;
}

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

@media (max-width: 768px) {
    .join-grid {
        grid-template-columns: 1fr;
    }
    
    .join-section .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 45;
    transition: all var(--transition-base);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }

        .whatsapp-float i {
            font-size: 1.25rem;
        }
}

/* ============================================
   DRIVER PAGE STYLES
   ============================================ */
.driver-hero {
    position: relative;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    overflow: hidden;
    background: var(--gradient-soft);
    text-align: center;
}

.driver-hero .btn-secondary {
    background: var(--gradient-primary);
    border: 2px solid transparent;
    color: white;
}

.driver-hero .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.driver-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-radial-combined);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern layer */
.driver-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grid-overlay);
    background-size: var(--grid-size);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.driver-hero > * {
    position: relative;
    z-index: 1;
}

.driver-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.driver-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.driver-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.driver-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.driver-benefits,
.driver-steps,
.driver-requirements {
    padding: var(--section-padding);
    background: transparent;
}

.benefits-grid,
.steps-container,
.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.benefit-card,
.step-card,
.requirement-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-500);
}

.benefit-icon,
.requirement-icon {
    color: var(--primary-600);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.benefit-icon i,
.requirement-icon i {
    font-size: 2.5rem;
}

.benefit-title,
.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-desc,
.step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

.requirement-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.driver-cta-banner {
    padding: 4rem 1.5rem;
    background: var(--gradient-primary);
    text-align: center;
}

.driver-cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.driver-cta-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.driver-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.driver-cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.driver-cta-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
}

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 45;
    transition: all var(--transition-base);
}

.whatsapp-button i {
    font-size: 1.5rem;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .whatsapp-button i {
        font-size: 1.25rem;
    }
}
