/* ============================================
   BLUE CLOUD ABA THERAPY - MAIN STYLESHEET
   ============================================ */

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

:root {
    /* Brand Colors */
    --primary: #5BBBEF;
    --primary-dark: #1B365D;
    --primary-darker: #0F2442;
    --primary-light: #8DD0F5;
    --primary-lighter: #D6F0FC;
    --secondary: #3B82F6;
    --accent: #FFB547;
    --accent-light: #FFD699;
    --accent-dark: #E69A2E;

    /* Neutrals */
    --white: #FFFFFF;
    --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 */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Typography */
    --text: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);

    /* Backgrounds */
    --bg: var(--gray-50);
    --bg-white: var(--white);
    --bg-alt: var(--gray-100);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #7DD3F7 100%);
    --gradient-hero: linear-gradient(180deg, #E8F6FD 0%, #F0F9FF 50%, var(--gray-50) 100%);
    --gradient-card: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FFD280 100%);
    --gradient-dark: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 40px rgba(91, 187, 239, 0.25);
    --shadow-accent: 0 4px 16px rgba(255, 181, 71, 0.35);

    /* Borders */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

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

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

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

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

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

.container-sm { max-width: 768px; }
.container-lg { max-width: 1440px; }

section {
    padding: var(--space-20) 0;
    position: relative;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 187, 239, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-6);
    max-width: 1280px;
    margin: 0 auto;
    gap: var(--space-4);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 68px;
    width: auto;
    transition: transform var(--transition);
}

.logo:hover img {
    transform: scale(1.03);
}

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--gray-200);
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    padding: var(--space-20) var(--space-6) var(--space-6);
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1001;
}

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

.nav-menu-header {
    margin-bottom: var(--space-6);
}

.nav-menu-header .logo img {
    height: 48px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.nav-link.active {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-4) 0;
}

.nav-cta {
    margin-top: auto;
    padding-top: var(--space-6);
}

.nav-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.nav-close:hover {
    background: var(--gray-200);
}

.nav-close svg {
    width: 20px;
    height: 20px;
    color: var(--gray-600);
}

.nav-social {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    margin-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-social svg {
    width: 22px;
    height: 22px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 66, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

/* Desktop nav */
.nav-desktop {
    display: none;
}

.nav-social-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-2);
    padding-left: var(--space-4);
    border-left: 1px solid var(--gray-200);
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--gray-500);
    transition: var(--transition);
}

.nav-social-link:hover {
    color: var(--primary);
    background: var(--primary-lighter);
}

.nav-social-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sm {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 181, 71, 0.45);
    color: var(--gray-900);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-3);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

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

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

.card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--space-16);
    background: var(--gradient-hero);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Animated Clouds */
.clouds {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
}

.cloud {
    position: absolute;
    background: #FFFFFF;
    border-radius: 200px;
    animation: cloudDrift linear infinite;
    will-change: transform;
    box-shadow: 0 8px 32px rgba(91, 187, 239, 0.15), inset 0 -4px 16px rgba(91, 187, 239, 0.1);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud--xl {
    width: 280px;
    height: 90px;
}
.cloud--xl::before {
    width: 120px;
    height: 120px;
    top: -60px;
    left: 50px;
}
.cloud--xl::after {
    width: 150px;
    height: 150px;
    top: -80px;
    left: 100px;
}

.cloud--lg {
    width: 220px;
    height: 70px;
}
.cloud--lg::before {
    width: 90px;
    height: 90px;
    top: -45px;
    left: 40px;
}
.cloud--lg::after {
    width: 110px;
    height: 110px;
    top: -55px;
    left: 90px;
}

.cloud--md {
    width: 160px;
    height: 50px;
}
.cloud--md::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 25px;
}
.cloud--md::after {
    width: 85px;
    height: 85px;
    top: -42px;
    left: 65px;
}

.cloud--sm {
    width: 100px;
    height: 32px;
}
.cloud--sm::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 15px;
}
.cloud--sm::after {
    width: 55px;
    height: 55px;
    top: -27px;
    left: 40px;
}

.cloud-1 { top: 5%; animation-duration: 90s; animation-delay: 0s; opacity: 0.95; }
.cloud-2 { top: 15%; animation-duration: 80s; animation-delay: -20s; opacity: 1; }
.cloud-3 { top: 28%; animation-duration: 100s; animation-delay: -40s; opacity: 0.9; }
.cloud-4 { top: 42%; animation-duration: 70s; animation-delay: -15s; opacity: 1; }
.cloud-5 { top: 55%; animation-duration: 95s; animation-delay: -50s; opacity: 0.92; }
.cloud-6 { top: 68%; animation-duration: 85s; animation-delay: -30s; opacity: 0.95; }
.cloud-7 { top: 78%; animation-duration: 75s; animation-delay: -60s; opacity: 0.88; }
.cloud-8 { top: 88%; animation-duration: 88s; animation-delay: -10s; opacity: 0.9; }

@keyframes cloudDrift {
    0% {
        transform: translateX(-350px);
    }
    100% {
        transform: translateX(calc(100vw + 350px));
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-lighter);
}

.hero-badge svg {
    width: 22px;
    height: 22px;
    color: var(--success);
}

.hero h1 {
    margin-bottom: var(--space-6);
    color: var(--primary-dark);
}

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

.hero-lead {
    font-size: clamp(1.125rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.hero-feature svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* Hero Images */
.hero-images {
    display: none;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ============================================
   STATS / TRUST INDICATORS
   ============================================ */
.stats {
    background: var(--white);
    padding: var(--space-12) 0;
    position: relative;
}

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

.stat-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.stat-value {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   QUICK START SECTION
   ============================================ */
.quick-start {
    background: var(--white);
    padding: var(--space-12) 0;
    position: relative;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

.quick-start-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.quick-start-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.quick-start-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.quick-start-header svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.quick-start-header h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin: 0;
}

.quick-start-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-size: 1rem;
}

.quick-start-card--embed {
    padding: var(--space-6);
}

.quick-start-card--embed .quick-start-header {
    margin-bottom: var(--space-2);
}

.embed-container {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.embed-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ============================================
   INSURANCE SECTION
   ============================================ */
.insurance-section {
    background: var(--gradient-hero);
    padding: var(--space-16) 0;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.insurance-logo {
    background: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 80px;
}

.insurance-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.insurance-logo img {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0);
    transition: var(--transition);
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding: var(--space-8) 0;
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: var(--space-8);
    right: var(--space-8);
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
    display: none;
}

.timeline-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.timeline-steps {
    display: grid;
    gap: var(--space-6);
}

.timeline-step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.timeline-marker {
    position: relative;
    flex-shrink: 0;
}

.timeline-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.timeline-line {
    position: absolute;
    top: 56px;
    left: 50%;
    width: 3px;
    height: calc(100% + var(--space-6));
    background: var(--gray-200);
    transform: translateX(-50%);
}

.timeline-step:last-child .timeline-line {
    display: none;
}

.timeline-content {
    flex: 1;
    padding-bottom: var(--space-2);
}

.timeline-content h4 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
    color: var(--primary-dark);
}

.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-3);
}

.timeline-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    gap: var(--space-6);
}

.service-card {
    position: relative;
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: var(--transition);
}

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

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   ABOUT / FEATURES
   ============================================ */
.about-grid {
    display: grid;
    gap: var(--space-12);
}

.about-content h2 {
    margin-bottom: var(--space-6);
}

.about-content .lead {
    margin-bottom: var(--space-6);
}

.feature-list {
    display: grid;
    gap: var(--space-4);
}

.feature-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.feature-content h4 {
    font-size: 1.05rem;
    margin-bottom: var(--space-1);
}

.feature-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About Images */
.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.about-image--tall {
    grid-row: span 2;
}

/* ============================================
   WHAT IS ABA SECTION
   ============================================ */
.aba-info {
    background: var(--gradient-hero);
}

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

.aba-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.aba-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.aba-card h3 svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.benefits-list {
    display: grid;
    gap: var(--space-3);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.benefit-item svg {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item span {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 36, 66, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-rating svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

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

.testimonial-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   AREAS SERVED
   ============================================ */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.area-tag {
    background: var(--white);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: var(--shadow-xs);
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
}

.area-tag:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    gap: var(--space-12);
}

.contact-info h2 {
    margin-bottom: var(--space-4);
}

.contact-info .lead {
    margin-bottom: var(--space-8);
}

.contact-cards {
    display: grid;
    gap: var(--space-4);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.contact-card-content span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-1);
}

.contact-card-content p {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.social-link {
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-4px);
}

.social-link:hover svg {
    color: var(--white);
}

.social-link svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
    transition: var(--transition);
}

/* Contact CTA Buttons */
.contact-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.contact-cta-buttons .btn {
    justify-content: center;
}

.contact-cta-buttons .btn svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 480px) {
    .contact-cta-buttons {
        flex-direction: row;
    }

    .contact-cta-buttons .btn {
        flex: 1;
    }
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    text-align: center;
    margin-bottom: var(--space-2);
}

.contact-form-wrapper > p {
    text-align: center;
    margin-bottom: var(--space-6);
}

/* Map */
.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 280px;
    margin-top: var(--space-6);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-24);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
}

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

.footer-logo {
    display: inline-flex;
    margin-bottom: var(--space-4);
}

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

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

.footer-nav-wrapper {
    display: contents;
}

.footer-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: var(--space-4);
    line-height: 1.6;
}

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

.footer-address a:hover {
    color: var(--accent);
}

.footer-address p {
    margin: 0;
}

.footer-nav h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-4);
}

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

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    margin-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

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

/* ============================================
   FLOATING WIDGET
   ============================================ */
.floating-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--space-4);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    z-index: 998;
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    align-items: center;
    border-top: 3px solid var(--primary);
}

.floating-widget .btn {
    flex: 1;
    max-width: 160px;
}

.widget-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--primary-dark);
    transition: var(--transition);
}

.widget-phone:hover {
    background: var(--primary-lighter);
}

.widget-phone svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.widget-phone-text {
    display: none;
}

/* ============================================
   LOCATION PAGE
   ============================================ */
.location-grid {
    display: grid;
    gap: var(--space-8);
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.location-card-header {
    text-align: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.location-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-lighter);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.location-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.location-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}

.location-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.location-details {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.location-detail {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.location-detail svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.location-detail p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.location-detail a {
    color: var(--primary-dark);
    font-weight: 600;
}

.location-detail a:hover {
    color: var(--primary);
}

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

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 36, 66, 0.6);
    backdrop-filter: blur(4px);
    touch-action: none;
}

.modal-container {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    -webkit-overflow-scrolling: touch;
}

/* Wider modal for intake forms */
.modal-container--wide {
    max-width: 750px;
}

.modal-container--wide .modal-body {
    padding: var(--space-3);
    overflow: hidden;
}

/* Iframe wrapper for forms */
.modal-container--wide .iframe-wrapper {
    width: 100%;
    height: 80vh;
    max-height: 700px;
    overflow: hidden;
}

.modal-container--wide .iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Prevent body scroll when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    border-color: var(--error);
}

.modal-close:hover svg {
    color: var(--white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text);
    transition: var(--transition);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: var(--space-4);
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 997;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    padding: calc(100px + var(--space-16)) 0 var(--space-16);
    background: var(--gradient-hero);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-4);
    color: var(--primary-dark);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    display: grid;
    gap: var(--space-4);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

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

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-answer-inner {
    padding: 0 var(--space-6) var(--space-5);
}

.faq-answer-inner p {
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
    display: grid;
    gap: var(--space-6);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.team-photo {
    aspect-ratio: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.team-info {
    padding: var(--space-5);
    text-align: center;
}

.team-info h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-1);
}

.team-info .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}

.team-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   CAREERS
   ============================================ */
.job-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.job-card h3 {
    margin-bottom: var(--space-3);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-meta svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal-content p {
    margin-bottom: var(--space-4);
}

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

.legal-content li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-primary-light { background: var(--primary-lighter); }

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

.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;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .cloud { display: none; }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile fix for Chrome Android overflow issue */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero, .clouds, section, .container {
        max-width: 100vw;
    }

    /* Prevent any element from causing horizontal scroll */
    img, video, iframe {
        max-width: 100% !important;
        width: 100%;
    }

    /* Floating widget mobile fix */
    .floating-widget {
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-widget .btn {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .widget-phone {
        padding: var(--space-2) var(--space-3);
        flex: 0 0 auto;
    }

    .widget-phone svg {
        width: 18px;
        height: 18px;
    }

    /* Contact section mobile fix */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: row;
        gap: var(--space-3);
        padding: var(--space-3);
    }

    .contact-card-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card-content p {
        font-size: 0.95rem;
        word-break: break-word;
    }

    /* Map mobile fix */
    .map-wrapper {
        height: 220px;
        margin-top: var(--space-4);
        border-radius: var(--radius);
    }

    /* Social links mobile fix */
    .social-links {
        justify-content: flex-start;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    /* Modal mobile fix */
    .modal-container {
        max-width: calc(100vw - var(--space-6));
        max-height: 85vh;
        margin: var(--space-3);
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: var(--space-3) var(--space-4);
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: var(--space-4);
        max-height: calc(85vh - 60px);
    }

    .modal-container--wide {
        max-width: calc(100vw - var(--space-4));
    }

    .modal-container--wide .modal-body {
        padding: var(--space-2);
    }

    .modal-container--wide .iframe-wrapper {
        width: 100%;
        height: 70vh;
        max-height: 600px;
    }

    /* Quick start section mobile fix */
    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .quick-start-card {
        padding: var(--space-4);
    }

    /* Insurance logos mobile fix */
    .insurance-logos {
        gap: var(--space-4);
    }

    .insurance-logo {
        min-width: 100px;
        padding: var(--space-2);
    }

    .insurance-logo img {
        max-height: 40px;
    }

    /* Footer mobile fix - make nav sections side by side */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-brand {
        text-align: center;
        margin-bottom: var(--space-2);
    }

    .footer-nav-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
        text-align: center;
    }

    .footer-nav h4 {
        font-size: 0.9rem;
        margin-bottom: var(--space-2);
    }

    .footer-nav .footer-links a {
        font-size: 0.85rem;
        padding: var(--space-1) 0;
    }

    .footer-address {
        text-align: center;
        font-size: 0.85rem;
    }

    /* Location page mobile fix */
    .location-grid {
        gap: var(--space-6);
    }

    .location-card {
        padding: var(--space-5);
    }

    .location-card-header {
        margin-bottom: var(--space-4);
    }

    .location-icon {
        width: 48px;
        height: 48px;
    }

    .location-icon svg {
        width: 24px;
        height: 24px;
    }

    .location-card-header h2 {
        font-size: 1.25rem;
    }

    .location-details {
        gap: var(--space-3);
    }

    .location-detail {
        gap: var(--space-3);
    }

    .location-detail svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .location-detail strong {
        font-size: 0.8rem;
    }

    .location-detail p {
        font-size: 0.9rem;
    }

    .location-actions {
        gap: var(--space-2);
    }

    .location-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .location-map {
        min-height: 280px;
        border-radius: var(--radius-lg);
    }

    .location-map iframe {
        min-height: 280px;
    }

    /* Service areas mobile fix */
    .areas-list {
        gap: var(--space-2);
    }

    .area-tag {
        padding: var(--space-2) var(--space-4);
        font-size: 0.85rem;
    }
}

/* Extra small screens (under 400px) */
@media (max-width: 399px) {
    .floating-widget {
        padding: var(--space-2);
        gap: var(--space-1);
    }

    .floating-widget .btn {
        padding: var(--space-2);
        font-size: 0.75rem;
    }

    .widget-phone {
        padding: var(--space-2);
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-card {
        padding: var(--space-2);
    }

    .contact-card-icon {
        width: 36px;
        height: 36px;
    }

    .contact-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-card-content p {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 var(--space-3);
    }
}

/* SM: 480px */
@media (min-width: 480px) {
    .widget-phone-text { display: inline; }
    .floating-widget .btn { max-width: 180px; }
}

/* MD: 640px */
@media (min-width: 640px) {
    .hero-cta { flex-direction: row; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-start-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .aba-grid { grid-template-columns: repeat(2, 1fr); }

    .insurance-logo {
        min-width: 160px;
        height: 90px;
    }

    .insurance-logo img {
        max-width: 140px;
        max-height: 60px;
    }

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

    .timeline-step {
        flex-direction: column;
        text-align: center;
    }

    .timeline-line {
        display: none;
    }
}

/* LG: 1024px */
@media (min-width: 1024px) {
    .logo img { height: 72px; }

    .nav-toggle { display: none; }

    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }

    .nav-desktop .nav-link {
        padding: var(--space-3) var(--space-4);
        font-size: 0.95rem;
    }

    .nav-desktop .nav-link:hover {
        background: transparent;
        color: var(--primary);
    }

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

    .hero-text { text-align: left; }
    .hero-lead { margin-left: 0; margin-right: 0; }
    .hero-cta { justify-content: flex-start; }
    .hero-features { justify-content: flex-start; }

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

    .hero-image {
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .hero-image:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-xl);
    }

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

    .hero-image:first-child {
        grid-column: span 2;
    }

    .hero-image:first-child img {
        height: 280px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-12);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr 2fr;
        grid-template-rows: auto auto;
        gap: var(--space-8) var(--space-12);
        text-align: left;
    }

    .footer-brand { text-align: left; grid-row: 1; }
    .footer-text { margin: 0; }

    .footer-nav-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
        grid-row: 1;
    }

    .footer-address {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: var(--space-4);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .timeline-steps {
        grid-template-columns: repeat(5, 1fr);
    }

    .floating-widget {
        padding: var(--space-4) var(--space-8);
        gap: var(--space-4);
    }

    .floating-widget .btn {
        flex: none;
        min-width: 180px;
    }

    .scroll-top {
        bottom: 120px;
        right: var(--space-8);
    }

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

    /* Location page desktop */
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
        align-items: start;
    }

    .location-map {
        min-height: 500px;
    }

    .location-map iframe {
        min-height: 500px;
    }

    .location-actions {
        flex-direction: row;
    }
}

/* XL: 1280px */
@media (min-width: 1280px) {
    .logo img { height: 80px; }
    .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   LEGAL CONTENT PAGES
   ============================================ */
.legal-content {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--primary-dark);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--primary-lighter);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text);
}

.legal-content p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-content ul li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content strong {
    color: var(--text);
}

/* Cookie Table */
.cookie-table {
    margin: var(--space-6) 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border: 1px solid var(--gray-200);
}

.cookie-table th {
    background: var(--primary-lighter);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    background: var(--white);
    color: var(--text-secondary);
}

.cookie-table tbody tr:hover td {
    background: var(--gray-50);
}

/* Citation Links */
a.cite,
a.cite:link,
a.cite:visited {
    font-size: 9px !important;
    vertical-align: super !important;
    color: var(--gray-400) !important;
    text-decoration: none !important;
    font-weight: normal !important;
}

a.cite:hover {
    color: var(--primary) !important;
}

/* Print */
@media print {
    .header, .floating-widget, .scroll-top, .modal, .clouds { display: none !important; }
    body { background: white; }
    section { padding: var(--space-8) 0; }
    .hero { min-height: auto; padding: var(--space-12) 0; }
    .cite { display: none; }
}
