/*!
 * Upskilling Circle - Unified CSS Architecture
 * Search Keywords: reset, variables, typography, layout, header, navigation, buttons, hero, services, testimonials, footer, modal, forms, mobile, responsive
 * Version: 1.0.0
 * 
 * Table of Contents:
 * 1. CSS Reset & Base Styles
 * 2. Design System Variables
 * 3. Typography System
 * 4. Layout & Grid System
 * 5. Header & Navigation
 * 6. Button Components
 * 7. Hero Section
 * 8. Services Section
 * 9. Testimonials Section
 * 10. Footer Component
 * 11. Modal Components
 * 12. Form Components
 * 13. Utility Classes
 * 14. Responsive Design (Mobile-First)
 */

/* ============================================================================
   1. CSS RESET & BASE STYLES
   Keywords: reset, base, normalize, box-sizing, body
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ============================================================================
   2. DESIGN SYSTEM VARIABLES
   Keywords: variables, tokens, colors, gradients, spacing, breakpoints
   ============================================================================ */

:root {
    /* Brand Colors */
    --color-primary: #F58A1F;
    --color-primary-dark: #D67317;
    --color-primary-light: #FF9A3F;
    --color-navy: #203659;
    --color-navy-light: #2C4A7D;
    --color-sage: #a2c5c1;
    --color-sage-light: #b8d0cd;
    
    /* Text Colors */
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-text-white: #ffffff;
    
    /* Background Colors */
    --color-background: #ffffff;
    --color-background-alt: #f8fafb;
    --color-background-dark: #f5f7fa;
    
    /* Border Colors */
    --color-border: #e1e5e9;
    --color-border-light: #f0f2f5;
    --color-border-dark: #d1d5db;
    
    /* Status Colors (from COLOR-GUIDELINES.md) */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* COLOR-GUIDELINES.md Compatibility Aliases */
    --navy: var(--color-navy);
    --orange: var(--color-primary);
    --sage-green: var(--color-sage);
    --orange-red: #FF6A1A;
    --success: var(--color-success);
    
    /* Gradients (updated with current hero as main gradient) */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #FF6A1A 100%);
    --gradient-navy: linear-gradient(135deg, #203659 0%, #333488 100%);
    --gradient-sage: linear-gradient(135deg, var(--color-sage) 0%, #7fb3ac 100%);
    --gradient-header: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 252, 0.7) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafb 0%, #e8f4f8 100%);
    
    /* Spacing Scale (16px base) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 2.5rem;   /* 40px */
    --space-3xl: 3rem;     /* 48px */
    --space-4xl: 4rem;     /* 64px */
    --space-5xl: 5rem;     /* 80px */
    
    /* Typography Scale */
    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --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: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    --font-size-5xl: 3rem;      /* 48px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: var(--space-lg);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1200px;
}

/* ============================================================================
   3. TYPOGRAPHY SYSTEM
   Keywords: typography, headings, text, fonts, h1, h2, h3, paragraphs
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-4xl);
}

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-md);
    line-height: var(--line-height-base);
}

.text-large {
    font-size: var(--font-size-lg);
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Typography Classes - Streamlined hierarchy with fluid scaling */

/* Responsive Heading Hierarchy */
.heading-xl {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
}

.heading-lg {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

.heading-md {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

/* Responsive Text Sizes */
.text-lg {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: var(--line-height-base);
    margin-bottom: var(--space-md);
}

.text-base {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: var(--line-height-base);
    margin-bottom: var(--space-md);
}

/* Typography Utility Classes */
.text-highlight {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(245, 138, 31, 0.3);
    font-weight: var(--font-weight-semibold);
}

.text-success {
    color: #10B981;
    font-weight: var(--font-weight-semibold);
}

.text-muted {
    color: var(--color-text-secondary);
    opacity: 0.8;
}

/* Typography Color Modifiers - Use when context doesn't provide color */
.heading-xl--navy { color: var(--color-navy); }
.heading-xl--white { color: var(--color-text-white); }
.heading-xl--primary { color: var(--color-primary); }

.heading-lg--navy { color: var(--color-navy); }
.heading-lg--white { color: var(--color-text-white); }
.heading-lg--primary { color: var(--color-primary); }

.heading-md--navy { color: var(--color-navy); }
.heading-md--white { color: var(--color-text-white); }
.heading-md--primary { color: var(--color-primary); }

.text-lg--navy { color: var(--color-navy); }
.text-lg--white { color: var(--color-text-white); }
.text-lg--secondary { color: var(--color-text-secondary); }

.text-base--navy { color: var(--color-navy); }
.text-base--white { color: var(--color-text-white); }
.text-base--secondary { color: var(--color-text-secondary); }

/* ============================================================================
   4. LAYOUT & GRID SYSTEM
   Keywords: layout, container, grid, flexbox, columns, rows
   ============================================================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-5xl) 0;
}

.section--hero {
    padding: calc(var(--space-5xl) + 80px) 0 var(--space-5xl) 0; /* Account for fixed header */
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--4col {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--column {
    flex-direction: column;
}

.flex--wrap {
    flex-wrap: wrap;
}

/* ============================================================================
   5. HEADER & NAVIGATION
   Keywords: header, navigation, navbar, logo, menu, mobile-menu, backdrop
   ============================================================================ */

.site-header {
    background: var(--gradient-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-navy);
    padding: var(--space-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: opacity var(--transition-base);
}

.logo-container:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 40px;
    height: 40px;
}

.brand-logo--horizontal {
    width: auto;
    height: 50px;
    max-width: 300px;
}

.brand-name {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-navy);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--color-navy);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-navy);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    margin: 3px 0;
    transition: var(--transition-base);
}

/* AI Landing Page Header Variant */
.site-header--ai {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 250, 252, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(245, 138, 31, 0.1);
}

/* ============================================================================
   6. BUTTON COMPONENTS
   Keywords: buttons, cta, primary, secondary, outline, sizes, hover, states
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: var(--gradient-navy);
    color: var(--color-text-white);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-navy) 40%, transparent);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.btn--large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

.btn--small {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn--block {
    width: 100%;
}

.btn--sage {
    background: var(--gradient-sage);
    color: var(--color-text-white);
    box-shadow: var(--shadow-sm);
}

.btn--sage:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--color-sage) 40%, transparent);
}

/* Card-Aware Button System - Buttons adapt to their card context */

/* Card-Primary Buttons (for edge-card-primary and clean-card-primary contexts) */
.btn--card-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border: 2px solid var(--color-primary);
}

.btn--card-primary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 138, 31, 0.3);
}

/* Card-Sage Buttons (for edge-card-sage contexts) */
.btn--card-sage {
    background: var(--color-sage);
    color: var(--color-text-white);
    border: 2px solid var(--color-sage);
}

.btn--card-sage:hover {
    background: #8fb5b1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(162, 197, 193, 0.25);
}

/* Card-Glass Buttons (for glass-card contexts) */
.btn--card-glass {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-navy);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn--card-glass:hover {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* Form Submit Button (unified styling) */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.submit-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 138, 31, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Legacy CTA Classes (maintain backward compatibility during migration) */
.cta-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-full);
    padding: 18px var(--space-2xl);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 138, 31, 0.3);
}

.cta-primary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 138, 31, 0.3);
}

.cta-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    padding: 18px var(--space-2xl);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 138, 31, 0.1);
}

.cta-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 138, 31, 0.3);
}

/* Header CTA variant - smaller, compact */
.header-cta {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-lg);
}

/* ============================================================================
   7. HERO SECTION
   Keywords: hero, main-title, subtitle, hero-content, hero-image, landing
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, #203659 0%, #333488 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #F58A1F, #FF6A1A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: var(--line-height-base);
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Alternative Hero Layout (Light Background, Two-Column)
   Usage: Add .hero--alt class to hero section */
.hero--alt {
    background: var(--gradient-hero);
}

.hero--alt .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    text-align: left;
}

.hero--alt .hero-title {
    color: var(--color-navy);
}

.hero--alt .hero-subtitle {
    color: var(--color-text-secondary);
}

.hero--alt .hero-buttons {
    justify-content: flex-start;
}

/* Navy Hero Variant (Full Navy Background)
   Usage: Add .hero--navy class to hero section */
.hero--navy {
    background: var(--gradient-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-5xl) 0;
}

.hero--navy .hero-title {
    font-size: var(--font-size-5xl);
    color: var(--color-primary);
}

.hero--navy .hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* AI Landing Hero Variants - Exact match to server version */
.hero--ai {
    background: linear-gradient(135deg, #203659 0%, #333488 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero--ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero--ai .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero--ai .hero-content {
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 0;
}

.hero--ai h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #F58A1F, #FF6A1A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .hero--ai h1 {
        font-size: 2.2rem;
    }
    
    .hero--ai .container {
        padding: 0 15px;
    }
}

.hero--ai .urgency-badge {
    display: inline-block;
    background: rgba(245, 138, 31, 0.2);
    border: 1px solid rgba(245, 138, 31, 0.4);
    color: #F58A1F;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 138, 31, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(245, 138, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 138, 31, 0); }
}

.hero--ai .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .hero--ai .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero--ai .hero-stats {
        grid-template-columns: 1fr;
    }
}

.hero-stat {
    text-align: center;
}

/* Fix stat text wrapping - ensure stat numbers stay on one line */
.hero--ai .stat-item {
    text-align: center;
}

.hero--ai .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F58A1F;
    display: inline;
    white-space: nowrap;
}

/* Override container width for AI landing hero to prevent headline wrapping */
body .hero--ai .container {
    max-width: 1400px;
    width: 100%;
}

/* Let the headline wrap naturally but with more space */

.hero-stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #F58A1F;
    display: block;
}

.hero-stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: var(--space-xs);
}

/* ============================================================================
   8. SERVICES SECTION
   Keywords: services, service-grid, service-card, service-icon, features
   ============================================================================ */

.services {
    background: var(--color-background);
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.services-title {
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.services-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Legacy service classes for compatibility */
.service-title {
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-lg);
}

.service-features li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: var(--space-lg);
}

/* ==========================================================================
   ICON SYSTEM - UNIFIED RESPONSIVE ICONS
   SEARCH KEYWORDS: icon, service-icon, benefit-icon, responsive-icons,
   icon-sizing, icon-variants, svg-icons, emoji-icons
   ========================================================================== */

/* Base Icon Container */
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

/* Icon Content Styling */
.service-icon svg {
    width: 100%;
    height: 100%;
    transition: all var(--transition-base);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Icon Size Variants */
.icon-sm {
    width: 24px;
    height: 24px;
}

.icon-md {
    width: 48px;
    height: 48px;
}

.icon-lg {
    width: 80px;
    height: 80px;
}

.icon-xl {
    width: 96px;
    height: 96px;
}

/* Icon Color Filters */
.icon-primary-filter {
    filter: brightness(0) saturate(100%) invert(55%) sepia(85%) saturate(1352%) hue-rotate(360deg) brightness(101%) contrast(101%);
}

.icon-primary-fill {
    fill: var(--color-primary);
}

/* Process Icons Styling */
.process-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    transition: transform var(--transition-base);
}

.process-icon-sm {
    width: 20px;
    height: 20px;
}

/* Team Member Avatar */
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(245, 138, 31, 0.3);
    transition: transform var(--transition-base);
    display: block;
}

/* Hover Effects for Interactive Icons */
.service-icon:hover {
    transform: scale(1.05);
}

.service-icon:hover svg {
    filter: brightness(1.1);
}

.process-icon:hover {
    transform: scale(1.1);
}

.team-avatar:hover {
    transform: scale(1.05);
}

/* Responsive Icon Scaling */
@media (max-width: 768px) {
    .service-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto var(--space-md);
    }
    
    .icon-lg {
        width: 64px;
        height: 64px;
    }
    
    .icon-xl {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto var(--space-sm);
    }
    
    .icon-lg {
        width: 56px;
        height: 56px;
    }
    
    .icon-xl {
        width: 64px;
        height: 64px;
    }
}



/* New Integrated Card Architecture - 6 Complete Card Classes */

/* 1. Orange Edge Cards (Home automation, benefits, team members) */
.edge-card-primary {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border-left: 5px solid #F58A1F;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    text-align: left;
    position: relative;
}

.edge-card-primary:hover {
    box-shadow: 0 12px 30px rgba(245, 138, 31, 0.15), -2px 0 0 0 #F58A1F;
}

/* Internal styling for orange edge cards */
.edge-card-primary h3 {
    color: #203659;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.edge-card-primary p {
    color: #666;
    line-height: 1.6;
}

.edge-card-primary .benefit-icon,
.edge-card-primary .service-icon svg {
    color: #F58A1F;
    fill: #F58A1F;
}

.edge-card-primary .stat-highlight {
    color: #F58A1F;
    font-weight: bold;
    font-size: 1.1em;
}

.edge-card-primary .service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F58A1F;
    font-weight: bold;
}

/* Team Member Cards - Override text alignment for team profiles */
.edge-card-primary--team {
    text-align: center;
}

/* 2. Sage Edge Cards (Home people stream) */
.edge-card-sage {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border-left: 5px solid #a2c5c1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, border-left-width 0.3s ease;
    text-align: center;
    position: relative;
}

.edge-card-sage:hover {
    box-shadow: 0 12px 30px rgba(162, 197, 193, 0.15);
    border-left-width: 6px;
}

/* Internal styling for sage edge cards */
.edge-card-sage h3 {
    color: #203659;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.edge-card-sage p {
    color: #666;
    line-height: 1.6;
}

.edge-card-sage .service-icon svg {
    color: #a2c5c1;
    fill: #a2c5c1;
}

.edge-card-sage .service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #a2c5c1;
    font-weight: bold;
}

/* 3. Clean Cards for White Backgrounds (Approach, other services) */
.clean-card-primary {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease, 
                border-width 0.3s ease, 
                box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform-origin: center bottom;
    will-change: transform;
}

.clean-card-primary:hover {
    transform: translateY(-3px);
    border-color: #F58A1F;
    border-width: 3px;
    box-shadow: 0 8px 20px rgba(245, 138, 31, 0.15);
}

/* Internal styling for clean primary cards */
.clean-card-primary h3,
.clean-card-primary h4 {
    color: #203659;
    font-weight: bold;
}

.clean-card-primary p {
    color: #666;
    line-height: 1.7;
}

.clean-card-primary .service-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F58A1F;
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clean-card-primary .service-icon svg {
    width: 32px;
    height: 32px;
    fill: #F58A1F;
}

.clean-card-primary .service-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(55%) sepia(85%) saturate(1352%) hue-rotate(360deg) brightness(101%) contrast(101%);
}

/* 4. Clean Cards for Colored Backgrounds */
.clean-card-light {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: border-width 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.clean-card-light:hover {
    border-width: 3px;
    box-shadow: 0 8px 25px rgba(245, 138, 31, 0.12);
}

.clean-card-light h3,
.clean-card-light h4 {
    color: #203659;
    font-weight: bold;
}

.clean-card-light p {
    color: #666;
    line-height: 1.7;
}

/* 5. Glass Cards Primary (Urgency stats) */
.glass-card-primary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    color: #203659;
}

.glass-card-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.glass-card-primary .service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #203659;
}

.glass-card-primary h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #203659;
}

/* 6. Glass Cards Dark (Regional data) */
.glass-card-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    color: white;
}

.glass-card-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.glass-card-dark h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #F58A1F;
}

.glass-card-dark .country-stats {
    list-style: none;
    text-align: left;
}

.glass-card-dark .country-stats li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.glass-card-dark .country-stats li:last-child {
    border-bottom: none;
}

/* Grid Systems for Different Card Types */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.urgency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

/* Benefit Icon Styling */
.benefit-icon {
    color: #F58A1F;
    font-size: 1.5rem;
    margin-right: 10px;
    display: inline;
}

/* ============================================================================
   9. TESTIMONIALS SECTION  
   Keywords: testimonials, testimonial-card, quotes, reviews, clients
   ============================================================================ */

.testimonials {
    background: var(--gradient-hero);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.testimonials-title {
    color: var(--color-navy);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-size: 4rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--color-navy);
    margin-bottom: var(--space-xs);
}

.testimonial-info p {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================================================
   10. FOOTER COMPONENT
   Keywords: footer, footer-links, contact-info, social-links, copyright
   ============================================================================ */

/* Original Footer Design */
.site-footer {
    background: var(--color-navy);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer p:nth-child(2) {
    margin-top: 10px;
    opacity: 0.8;
}

.footer-credit {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-attribution {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-attribution a {
    color: inherit;
    text-decoration: none;
}

.footer-attribution a:hover {
    text-decoration: underline;
}

/* Alternative Complex Footer (for other pages) */
.site-footer--complex {
    background: var(--gradient-navy);
    padding: var(--space-4xl) 0 var(--space-xl) 0;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--color-text-white);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* ============================================================================
   11. MODAL COMPONENTS
   Keywords: modal, overlay, modal-content, modal-header, close-button
   ============================================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    z-index: 9999;
    
    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-background);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    
    /* Animation */
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal--open .modal-content {
    opacity: 1;
}

.modal-header {
    background: var(--gradient-navy);
    color: var(--color-text-white);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
}

.modal-title {
    color: var(--color-text-white);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Account for reduced header height */
}

/* ============================================================================
   12. FORM COMPONENTS
   Keywords: forms, inputs, textarea, labels, validation, form-grid, submit
   ============================================================================ */

.form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: var(--color-background);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    padding: var(--space-md) var(--space-2xl);
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Service Options in Forms */
.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.service-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.service-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.service-option--selected {
    border-color: var(--color-primary);
    background: var(--gradient-primary);
    color: var(--color-text-white);
    transform: scale(1.02);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.service-option--selected *,
.service-option--selected h3,
.service-option--selected p,
.service-option--selected span,
.service-option--selected strong {
    color: var(--color-text-white);
}

.service-option--selected svg,
.service-option--selected svg path {
    fill: var(--color-text-white);
}

.service-option--selected img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.service-option--selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-text-white);
    color: var(--color-primary);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.service-option h4 {
    margin: 0;
    color: var(--color-navy);
    font-size: var(--font-size-base);
}

.service-option p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.service-option i,
.service-option svg,
.service-option img,
.service-option .process-icon-sm {
    width: 20px;
    height: 20px;
    color: var(--color-navy);
    margin: 0;
    flex-shrink: 0;
    display: block;
}

/* ============================================================================
   13. UTILITY CLASSES
   Keywords: utilities, helpers, text-align, margins, padding, display
   ============================================================================ */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-white { color: var(--color-text-white); }
.text-navy { color: var(--color-navy); }

.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

/* Section Utilities */
.section--navy {
    background: var(--gradient-navy);
    color: var(--color-text-white);
    padding: 60px 0;
    text-align: center;
}

.section--white {
    background: var(--color-background);
    padding: 80px 0;
}

.section--light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

/* Container Utilities */
.container--narrow {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.container--medium {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container--wide {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.container--extra-wide {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Special Effect Containers */
.glass-container {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.glass-container--large {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Flexbox Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flex-items-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   14. RESPONSIVE DESIGN (MOBILE-FIRST)
   Keywords: mobile, responsive, breakpoints, media-queries, tablet, desktop
   ============================================================================ */

/* Mobile-First Base Styles (320px+) */
/* All styles above are mobile-first */

/* Small Mobile Adjustments (480px+) */
@media (max-width: 480px) {
    .hero .hero-title,
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero .hero-subtitle,
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero--navy .hero-title {
        font-size: 1.8rem;
    }
    
    .hero--navy .hero-subtitle {
        font-size: 1rem;
    }
    
    .edge-card-primary,
    .edge-card-sage {
        padding: 25px 20px;
    }
}

@media (min-width: 480px) {
    :root {
        --container-padding: var(--space-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Styles (768px+) */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (1024px+) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Menu Responsive Styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-background);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero .hero-title,
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero .hero-subtitle,
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero--alt .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero--alt .hero-buttons {
        justify-content: center;
    }
    
    .hero--navy .hero-title {
        font-size: 2.2rem;
    }
    
    .hero--navy .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile Footer */
    .site-footer {
        padding: 30px 0;
    }
    
    .site-footer p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .btn,
    .modal {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .hero {
        min-height: auto;
        background: white;
    }
}

/* ==========================================================================
   9. TOOLTIP SYSTEM
   SEARCH KEYWORDS: tooltip, tooltiptext, tooltip-icon, tooltip-link, hover, 
   interactive, accessibility, mobile, positioning
   ========================================================================== */

.tooltip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    max-width: 90vw;
    background-color: var(--color-navy);
    color: var(--color-text-white);
    text-align: left;
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: var(--font-size-sm);
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Style for tooltip source text */
.tooltip .tooltiptext::first-line {
    font-weight: bold;
}

/* Alternative approach: style "Source:" specifically */
.tooltiptext-source {
    font-weight: bold;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-navy) transparent transparent transparent;
}

/* Hover state */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Tooltip variants */
.tooltip--light .tooltiptext {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.tooltip--light .tooltiptext::after {
    border-color: var(--color-background) transparent transparent transparent;
}

/* Icon tooltips */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-white);
    position: relative;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    transform: scale(1.1);
}

.tooltip-icon--primary {
    background: rgba(245, 138, 31, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(245, 138, 31, 0.3);
}

/* Enhanced hyperlink animations */
a {
    position: relative;
    transition: color var(--transition-base);
    text-decoration: none;
}

/* General hyperlink underline animation */
a:not(.btn):not(.nav-link):not(.brand-logo):not(.tooltip-icon) {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color var(--transition-base);
}

a:not(.btn):not(.nav-link):not(.brand-logo):not(.tooltip-icon):hover {
    text-decoration-color: currentColor;
}

/* Link tooltips */
.tooltip-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tooltip-link:hover {
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.tooltip-link--primary {
    text-decoration-color: rgba(245, 138, 31, 0.3);
}

.tooltip-link--primary:hover {
    text-decoration-color: var(--color-primary);
}

/* Special positioning for cards */
.glass-card .tooltip .tooltiptext,
.edge-card .tooltip .tooltiptext {
    top: 120%;
    bottom: auto;
}

.glass-card .tooltip .tooltiptext::after,
.edge-card .tooltip .tooltiptext::after {
    top: -10px;
    bottom: auto;
    border-color: transparent transparent var(--color-navy) transparent;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tooltip .tooltiptext {
        width: 250px;
        max-width: 85vw;
        margin-left: -125px;
        font-size: 0.8rem;
    }
    
    /* Touch-friendly tooltips on mobile */
    .tooltip:active .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .tooltip .tooltiptext {
        width: 200px;
        margin-left: -100px;
        padding: var(--space-sm);
    }
}

/* Accessibility improvements */
.tooltip[aria-describedby] {
    outline: none;
}

.tooltip:focus .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Ensure tooltips don't interfere with touch scrolling */
@media (pointer: coarse) {
    .tooltip .tooltiptext {
        pointer-events: none;
    }
}

/* Accessibility: All animations are now designed to be motion-friendly by default */