/* =======================
   INBOX ADVISORS
   Fresh Email Deliverability Design
   ======================= */

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

/* Performance optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets - minimum 44x44px for mobile */
a,
button,
.nav-link,
.nav-link-cta,
.btn,
.service-card,
.case-card,
.testimonial-card {
    -webkit-tap-highlight-color: rgba(30, 41, 59, 0.1);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure buttons have proper touch targets */
.btn {
    min-height: 48px;
    padding: 1rem 2rem;
}

.nav-link {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
}

img,
picture,
video {
    max-width: 100%;
    display: block;
    height: auto;
    /* Prevent image overflow on mobile */
    object-fit: contain;
}

/* Ensure all images are responsive */
img[src],
img[srcset] {
    width: 100%;
    height: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    /* Enterprise Navy/Slate Color Scheme */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    
    --primary: #1e293b;          /* Deep slate navy */
    --primary-dark: #0f172a;     /* Darker navy */
    --primary-light: #334155;    /* Lighter slate */
    
    --secondary: #475569;        /* Professional slate gray */
    --secondary-light: #64748b;  /* Light slate */
    --secondary-dark: #334155;   /* Dark slate */
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    --accent: #3b82f6;           /* Professional blue accent */
    --accent-light: #60a5fa;     /* Light blue */
    
    --success: #16a34a;          /* Success green */
    --success-light: #22c55e;    /* Light success green */
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.2);
    
    --error: #dc2626;            /* Error red */
    --error-light: #ef4444;      /* Light error red */
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.2);
    
    --warning: #f59e0b;          /* Warning amber */
    --warning-bg: rgba(245, 158, 11, 0.1);
    
    --border-light: #e2e8f0;
    --border-gray: #cbd5e1;
    
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-secondary: linear-gradient(135deg, #475569 0%, #64748b 100%);
    --gradient-vibrant: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    
    /* Focus ring */
    --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.3);
    --focus-ring-dark: 0 0 0 3px rgba(30, 41, 59, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on iOS */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent horizontal scroll on mobile */
    width: 100%;
    max-width: 100vw;
}

:root {
    --nav-height: 80px;
}

/* =======================
   SKIP TO CONTENT (ACCESSIBILITY)
   ======================= */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* =======================
   CLEAN BACKGROUND
   ======================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 41, 59, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(71, 85, 105, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(30, 41, 59, 0.01) 2px, rgba(30, 41, 59, 0.01) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(71, 85, 105, 0.01) 2px, rgba(71, 85, 105, 0.01) 4px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
}

/* =======================
   NAVIGATION
   ======================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.15);
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    height: var(--nav-height);
}

.nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 6px 24px rgba(30, 41, 59, 0.2);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    :root { --nav-height: 60px; }
    .logo-text {
        font-size: 1.25rem;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.nav-dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
    color: white;
    outline: 2px solid white;
    outline-offset: 2px;
}

.nav-dropdown.active .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
    background: var(--bg-light);
    color: var(--primary);
    outline: none;
}

.nav-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.nav-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    color: white;
}

.nav-link-cta {
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link-cta:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: var(--focus-ring), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link-cta::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

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

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.nav-burger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-burger:focus {
    outline: 2px solid white;
    outline-offset: 3px;
    border-radius: 4px;
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    overflow: hidden;
    /* Prevent overflow on mobile */
    width: 100%;
    max-width: 100vw;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.08) 0%, rgba(71, 85, 105, 0.08) 100%);
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 5rem;
    }
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    padding: 1.25rem 1.75rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    background-image: linear-gradient(white, white), 
                      var(--gradient-vibrant);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(30, 41, 59, 0.12);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-vibrant);
    color: white;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:focus {
    outline: 2px solid white;
    outline-offset: 3px;
    box-shadow: var(--focus-ring-dark), 0 4px 16px rgba(30, 41, 59, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-vibrant);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-outline span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-outline:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

.btn-outline:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

.btn-outline:hover::before {
    transform: translateY(0);
}

/* =======================
   SECTION DIVIDERS
   ======================= */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-light) 15%,
        var(--accent) 50%,
        var(--border-light) 85%,
        transparent 100%
    );
    margin: 2rem 0;
    opacity: 0.6;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-divider {
        margin: 1.5rem 0;
        height: 1.5px;
    }
}

/* =======================
   SHARED SECTION STYLES
   ======================= */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.08) 0%, rgba(71, 85, 105, 0.08) 100%);
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

@media (min-width: 1400px) {
    .section-title {
        font-size: 3.5rem;
    }
}

/* =======================
   ABOUT SECTION
   ======================= */
.about {
    padding: 6rem 2rem;
    background: white;
}

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

.about-content {
    margin-top: 2rem;
}

.about-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text em {
    font-style: italic;
    color: var(--primary);
}

.mission-statement {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.04) 0%, rgba(71, 85, 105, 0.04) 100%);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

.mission-statement h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-statement p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

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

.about-stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =======================
   SERVICES SECTION
   ======================= */
.services {
    padding: 4rem 2rem 3rem;
    position: relative;
    background: var(--bg-white);
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .services-container {
        padding: 0 2rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 768px) {
.services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1400px) {
    .service-card {
        padding: 3rem;
        min-height: 380px;
    }
}

.service-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-color: var(--accent);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.08) 0%, rgba(71, 85, 105, 0.08) 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

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

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

@media (min-width: 1400px) {
    .service-card h3 {
        font-size: 1.75rem;
    }
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: auto;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 400;
}

/* =======================
   CASE STUDIES / RESULTS SECTION
   ======================= */
.case-studies {
    padding: 3rem 2rem 2rem;
    background: var(--bg-light);
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(71, 85, 105, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .case-studies-container {
        padding: 0 2rem;
    }
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    position: relative;
    padding: 3rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.case-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-color: var(--accent);
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.12);
}

.case-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.case-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.case-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.case-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =======================
   TESTIMONIALS SECTION
   ======================= */
.testimonials {
    padding: 3rem 0 2rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.testimonials-track-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    margin-top: 2rem;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 90s linear infinite;
    width: fit-content;
    will-change: transform;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 400px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 400px;
    max-width: 400px;
}

.testimonial-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-color: var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.1);
    border-color: var(--primary);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-tagline {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-style: normal;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.author-info {
    display: block;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
    }

    .testimonials-container {
        padding: 0 2rem;
    }
    
    .testimonials-track-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonials-track {
        gap: 1.5rem;
    }
}

/* =======================
   CONTACT SECTION
   ======================= */
.contact {
    padding: 3rem 2rem 2rem;
    background: white;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .contact-container {
        padding: 0 2rem;
    }
}

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

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    /* Prevent zoom on iOS input focus */
    font-size: 16px;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 44px; /* Better touch target */
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}

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

.contact-form button {
        width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: 8px;
        text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
    display: block;
}

.form-status.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
    display: block;
}

/* =======================
   FOOTER
   ======================= */
.footer {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 1200px) {
    .footer-container {
        padding: 0 2rem;
    }
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
        display: flex;
    justify-content: space-between;
        align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

/* =======================
   BACK TO TOP BUTTON
   ======================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-vibrant);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:focus {
    outline: 2px solid white;
    outline-offset: 3px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.35);
}

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

/* =======================
   STICKY CTA BUTTON
   ======================= */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient-vibrant);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sticky-cta.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sticky-cta:focus {
    outline: 2px solid white;
    outline-offset: 3px;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sticky-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.5);
    color: white;
}

.sticky-cta svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 1rem;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        /* iOS safe area support */
        bottom: max(1rem, env(safe-area-inset-bottom));
        left: max(1rem, env(safe-area-inset-left));
        right: max(1rem, env(safe-area-inset-right));
        transform: translateX(-50%) translateY(100px);
    }
    
    .sticky-cta.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .sticky-cta svg {
        width: 18px;
        height: 18px;
    }
    
    /* Hide back-to-top on mobile when sticky CTA is visible */
    .sticky-cta.show ~ .back-to-top {
        bottom: 5rem;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
}

/* =======================
   FORM LOADING SPINNER
   ======================= */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

.spinner-path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -40px;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -120px;
    }
}

/* =======================
   FOUNDER HIGHLIGHTS
   ======================= */
.founder-highlights {
    display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    margin: 2.5rem 0;
}

.highlight {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.04) 0%, rgba(71, 85, 105, 0.04) 100%);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.highlight h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.highlight p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.highlight strong {
    color: var(--primary);
    font-weight: 600;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 1024px) {
    .nav-container,
    .services-container,
    .contact-container,
    .footer-container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        /* iOS safe area support */
        padding-left: max(1.25rem, env(safe-area-inset-left));
        padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    
    .nav {
        /* iOS safe area support for notch */
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height) - env(safe-area-inset-bottom));
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 3rem 2rem;
        padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom)));
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-dropdown-toggle::after {
        border-top-color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1.5rem;
    }
    
    .nav-dropdown-item:hover,
    .nav-dropdown-item:focus {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }
    
    .nav-link-cta {
        background: white;
        padding: 0.75rem 1.5rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 48px;
        width: 100%;
    }

    .nav-burger {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-container {
        padding: 0;
    }

    .hero-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .stat-box {
        width: 100%;
        padding: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

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

    .services {
        padding: 3rem 1.5rem 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .case-studies {
        padding: 3rem 1.5rem 2rem;
    }

    .cases-grid {
        gap: 1.5rem;
    }

    .case-card {
        padding: 2rem 1.5rem;
    }

    .case-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .contact {
        padding: 3rem 1.5rem 2rem;
    }
    
    .testimonials {
        padding: 3rem 0 2rem;
    }
    
    .testimonials-container {
        padding: 0 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .contact-intro {
        font-size: 1.125rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .nav-container,
    .services-container,
    .contact-container,
    .footer-container,
    .case-studies-container {
        padding: 0 1.5rem;
    }

    .about {
        padding: 3rem 1.25rem;
    }

    .about-text h3 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .about-text p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }

    .mission-statement {
        padding: 1.25rem;
        margin: 2rem 0;
    }

    .mission-statement h4 {
        font-size: 1rem;
    }

    .mission-statement p {
        font-size: 0.9375rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .about-stat-num {
        font-size: 2rem;
    }

    .about-stat-label {
        font-size: 0.875rem;
    }
}

/* Prevent text selection issues on mobile */
@media (max-width: 768px) {
    .hero-title,
    .section-title {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Ensure images don't overflow */
    img {
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Better table/card scrolling on mobile */
    .services-grid,
    .cases-grid {
        overflow-x: visible;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 1rem 3rem;
        /* iOS safe area */
        padding-top: max(7rem, calc(7rem + env(safe-area-inset-top)));
        padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom)));
    }

    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.5rem 1rem;
        max-width: 95%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        min-height: 320px;
    }

    .service-card h3 {
        font-size: 1.375rem;
    }

    .case-card {
        padding: 2rem 1.25rem;
    }

    .case-card h3 {
        font-size: 1.25rem;
    }

    .case-subtitle {
        font-size: 0.8125rem;
    }

    .nav-container,
    .services-container,
    .contact-container,
    .footer-container,
    .case-studies-container {
        padding: 0 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        min-height: 48px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .footer {
        padding: 4rem 1.5rem 2.5rem;
        /* iOS safe area */
        padding-bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
    }

    .footer-brand {
        margin-bottom: 2.5rem;
    }

    .footer-brand p {
        font-size: 1rem;
        line-height: 1.6;
    }

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

    .footer-bottom p {
        font-size: 0.9375rem;
    }

    .footer-links {
        font-size: 0.9375rem;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        padding: 1.25rem;
    }
    
    .testimonial-text {
        font-size: 0.9375rem;
    }
    
    .section-divider {
        margin: 0.5rem 0;
    }
}
