/*
Theme Name: Eagle Eye Solutions
Theme URI: https://eagleeyesolutions.us
Author: Eagle Eye Solutions
Author URI: https://eagleeyesolutions.us
Description: Professional WordPress theme for Eagle Eye Solutions - Private Investigations Software built by investigators, for investigators.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eagleeye
Tags: one-column, two-columns, custom-background, custom-header, custom-menu, featured-images, full-width-template, theme-options
*/

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Colors - Professional Navy */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --color-primary-950: #172554;

    /* Accent - Gold/Amber for CTA */
    --color-accent-400: #fbbf24;
    --color-accent-500: #f59e0b;
    --color-accent-600: #d97706;

    /* Neutral/Slate */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    /* Success/Status */
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error: #dc2626;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-slate-700);
    background-color: #ffffff;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-slate-900);
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
.text-display-xl {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-display-lg {
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-display-md {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-display-sm {
    font-size: 1.875rem;
    line-height: 1.25;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

.section-lg {
    padding: calc(var(--spacing-4xl) * 1.5) 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-slate-200);
    height: var(--header-height);
    transition: all 0.3s ease;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.site-logo img,
.site-logo-img {
    height: 56px;
    width: auto;
}

.site-logo-wrapper {
    display: flex;
    flex-direction: column;
}

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-800);
    line-height: 1.2;
}

.site-logo-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-500);
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--color-slate-600);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-primary-700);
    background: var(--color-primary-50);
}

.nav-cta {
    display: flex;
    gap: var(--spacing-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-slate-700);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary-600);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-primary-700);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-200);
}

.btn-secondary:hover {
    background: var(--color-slate-200);
    color: var(--color-slate-800);
}

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

.btn-outline:hover {
    background: var(--color-primary-600);
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: var(--color-primary-700);
}

.btn-white:hover {
    background: var(--color-slate-100);
    color: var(--color-primary-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: calc(var(--header-height) + var(--spacing-4xl));
    padding-bottom: var(--spacing-4xl);
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 50%, var(--color-primary-700) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-primary-100);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(4px);
}

.hero h1 {
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary-100);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--color-primary-200);
    margin-top: var(--spacing-xs);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    background: var(--color-slate-50);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--spacing-3xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    color: var(--color-slate-600);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-slate-200);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary-600);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--color-slate-600);
    font-size: 0.9375rem;
}

/* ========================================
   CAPABILITIES SECTION
   ======================================== */
.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.capabilities-content {
    max-width: 520px;
}

.capabilities-content h2 {
    margin-bottom: var(--spacing-lg);
}

.capabilities-content > p {
    color: var(--color-slate-600);
    margin-bottom: var(--spacing-xl);
    font-size: 1.0625rem;
}

.capability-list {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.capability-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-slate-200);
}

.capability-list li:last-child {
    border-bottom: none;
}

.capability-check {
    width: 24px;
    height: 24px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.capability-check svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.capability-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.capability-text p {
    color: var(--color-slate-500);
    font-size: 0.875rem;
}

.capabilities-image {
    position: relative;
}

.capabilities-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    background: var(--color-primary-900);
    color: #ffffff;
}

.testimonials-section .section-header h2,
.testimonials-section .section-header p {
    color: #ffffff;
}

.testimonials-section .section-header p {
    color: var(--color-primary-200);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--color-primary-100);
    font-style: italic;
    line-height: 1.7;
}

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

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

.testimonial-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
}

.testimonial-info p {
    font-size: 0.8125rem;
    color: var(--color-primary-300);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.pricing-toggle span {
    font-weight: 500;
    color: var(--color-slate-500);
}

.pricing-toggle span.active {
    color: var(--color-slate-900);
}

.toggle-switch {
    width: 56px;
    height: 28px;
    background: var(--color-primary-600);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}

.toggle-switch.annual::after {
    transform: translateX(28px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--color-primary-500);
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary-600);
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-slate-200);
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-slate-500);
}

.pricing-header .billing {
    font-size: 0.875rem;
    color: var(--color-slate-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 0.9375rem;
    color: var(--color-slate-600);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-800) 100%);
    color: #ffffff;
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--color-primary-100);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-slate-900);
    color: var(--color-slate-400);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-brand p {
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-slate-400);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: var(--color-slate-400);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: #ffffff;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.text-primary { color: var(--color-primary-600); }
.text-muted { color: var(--color-slate-500); }
.text-white { color: #ffffff; }

.bg-light { background-color: var(--color-slate-50); }
.bg-white { background-color: #ffffff; }
.bg-primary { background-color: var(--color-primary-600); }
.bg-dark { background-color: var(--color-slate-900); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .capabilities-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .text-display-xl {
        font-size: 2.5rem;
    }

    .text-display-lg {
        font-size: 2.25rem;
    }

    .text-display-md {
        font-size: 1.75rem;
    }

    .main-nav .nav-menu {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-lg {
        padding: var(--spacing-3xl) 0;
    }
}

/* Mobile Navigation Expanded */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-slate-200);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-slate-100);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--color-slate-700);
    font-weight: 500;
    display: block;
}

.mobile-nav .btn {
    margin-top: var(--spacing-lg);
    width: 100%;
}

/* ========================================
   ENHANCED MOBILE & TABLET RESPONSIVE STYLES
   Optimized for iOS, Android, tablets
   Does not affect desktop (>1024px)
   ======================================== */

/* Tablet Landscape (1024px and below) - Enhanced */
@media (max-width: 1024px) {
    /* Hero two-column layouts - stack vertically */
    .hero .container > div[style*="grid-template-columns: 1fr 1fr"],
    .hero .container > div[style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }

    .hero .container > div[style*="grid-template-columns"] > div:first-child {
        margin-bottom: var(--spacing-2xl);
    }

    /* Capabilities grid reverse direction fix */
    .capabilities-grid[style*="direction: rtl"] {
        direction: ltr !important;
    }

    .capabilities-grid[style*="direction: rtl"] > * {
        direction: ltr !important;
    }

    /* Solutions/Features section navigation links */
    .hero a[href^="#"] {
        padding: 6px 12px !important;
        font-size: 0.8125rem !important;
    }

    /* Two-column feature grids become single column */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Touch-friendly link/button sizes */
    .nav-menu a,
    .footer-links a,
    .mobile-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .form-input,
    .form-textarea,
    .form-select {
        min-height: 44px;
    }
}

/* Tablet Portrait & Large Phones (768px and below) - Enhanced */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Hero sections */
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-2xl));
        padding-bottom: var(--spacing-2xl);
    }

    .hero-content {
        max-width: 100% !important;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    /* Hero navigation links wrap properly */
    .hero div[style*="display: flex"][style*="flex-wrap: wrap"] {
        gap: var(--spacing-xs) !important;
    }

    .hero a[href^="#"] {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        flex: 1 1 calc(33% - 8px);
        text-align: center;
        justify-content: center;
    }

    /* Hide hero mockups on smaller screens to save space */
    .hero .container > div[style*="grid-template-columns"] > div:last-child:not(:first-child) {
        display: none !important;
    }

    /* Section headers */
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Capabilities/Solutions sections */
    .capabilities-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
    }

    .capabilities-content {
        max-width: 100%;
    }

    .capabilities-image {
        order: -1;
        max-width: 100%;
    }

    /* All multi-column grids become single column */
    div[style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Inline mockups - fit mobile width */
    .capabilities-image > div {
        max-width: 100%;
    }

    /* Workflow badges - smaller and wrap better */
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: var(--spacing-sm)"] {
        gap: 6px !important;
    }

    div[style*="display: flex"][style*="flex-wrap: wrap"] span[style*="padding: 4px 12px"] {
        padding: 3px 8px !important;
        font-size: 0.6875rem !important;
    }

    /* Hide arrow separators in workflows on mobile */
    div[style*="flex-wrap: wrap"] > span[style*="color: var(--color-slate-400)"]:not([style*="background"]) {
        display: none;
    }

    /* Stats grids in mockups - 2 columns */
    .capabilities-image div[style*="grid-template-columns: repeat(3, 1fr)"],
    .capabilities-image div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }

    /* CTA sections */
    .cta-content {
        padding: 0 var(--spacing-md);
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Footer adjustments */
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }

    /* Ensure sufficient contrast on mobile */
    .hero-subtitle,
    .cta-content p {
        opacity: 1;
        color: rgba(255, 255, 255, 0.95);
    }

    /* Larger tap targets for checkmarks */
    .capability-check {
        min-width: 24px;
        min-height: 24px;
    }
}

/* Mobile Phones (576px and below) */
@media (max-width: 576px) {
    /* Typography scaling */
    .text-display-xl {
        font-size: 2rem;
    }

    .text-display-lg {
        font-size: 1.75rem;
    }

    .text-display-md {
        font-size: 1.5rem;
    }

    .text-display-sm {
        font-size: 1.25rem;
    }

    /* Tighter section padding */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-lg {
        padding: var(--spacing-2xl) 0;
    }

    /* Hero adjustments */
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-xl));
        padding-bottom: var(--spacing-xl);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }

    /* Hero nav links - grid for better alignment */
    .hero div[style*="display: flex"][style*="flex-wrap: wrap"][style*="margin-top"] {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .hero a[href^="#"] {
        text-align: center;
        padding: 8px 4px !important;
        font-size: 0.625rem !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    /* Feature cards */
    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-card h3 {
        font-size: 1.0625rem;
        flex-wrap: wrap;
    }

    .feature-card h3 > div[style*="width: 40px"] {
        width: 36px !important;
        height: 36px !important;
    }

    /* Capability lists */
    .capability-list li {
        padding: var(--spacing-sm) 0;
    }

    .capability-text h4 {
        font-size: 0.9375rem;
    }

    .capability-text p {
        font-size: 0.8125rem;
    }

    .capability-check {
        width: 20px;
        height: 20px;
    }

    .capability-check svg {
        width: 12px;
        height: 12px;
    }

    /* Mockup cards - tighter spacing */
    .capabilities-image > div[style*="border-radius"] {
        border-radius: var(--radius-lg) !important;
    }

    .capabilities-image > div > div[style*="padding: var(--spacing-lg)"] {
        padding: var(--spacing-md) !important;
    }

    /* Inline badges and labels - smaller */
    div[style*="display: inline-flex"][style*="padding: var(--spacing-sm) var(--spacing-md)"] {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* CTA buttons full width */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .site-footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Forms - prevent iOS zoom */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 16px;
    }

    /* Pricing cards */
    .pricing-card {
        padding: var(--spacing-lg);
    }

    .pricing-header .price {
        font-size: 2.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Mockup text sizes */
    .capabilities-image div[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    .capabilities-image div[style*="font-size: 1.25rem"] {
        font-size: 1.0625rem !important;
    }

    .capabilities-image div[style*="font-size: 1.125rem"] {
        font-size: 1rem !important;
    }
}

/* Small Phones (400px and below) */
@media (max-width: 400px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .text-display-xl {
        font-size: 1.75rem;
    }

    .text-display-lg {
        font-size: 1.5rem;
    }

    .text-display-md {
        font-size: 1.25rem;
    }

    /* Hero nav - 2 columns on very small screens */
    .hero div[style*="display: flex"][style*="flex-wrap: wrap"][style*="margin-top"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero a[href^="#"] {
        font-size: 0.5625rem !important;
        padding: 6px 2px !important;
    }

    /* Feature icons smaller */
    .feature-icon {
        width: 48px;
        height: 48px;
    }

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

    /* Workflow badges stack vertically on very small screens */
    div[style*="display: flex"][style*="flex-wrap: wrap"][style*="font-size: 0.875rem"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px !important;
    }

    /* Even smaller mockup elements */
    .capabilities-image div[style*="font-size: 1.25rem"],
    .capabilities-image div[style*="font-size: 1.5rem"] {
        font-size: 1rem !important;
    }
}

/* Landscape orientation fixes for phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

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

    /* Show mockups in landscape since there's more width */
    .hero .container > div[style*="grid-template-columns"] > div:last-child:not(:first-child) {
        display: block !important;
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    html {
        -webkit-text-size-adjust: 100%;
    }

    .site-header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Fix for iOS input zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* Android-specific fixes */
@supports not (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Android Chrome address bar compensation */
        .hero {
            min-height: calc(100vh - var(--header-height) - 56px);
        }
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-subtitle,
    .cta-content p,
    .capability-text p,
    .feature-card p {
        opacity: 1;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .site-header,
    .mobile-nav,
    .cta-section,
    .hero-cta,
    .nav-cta,
    .mobile-menu-toggle {
        display: none !important;
    }

    .hero {
        padding-top: var(--spacing-xl);
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero h1,
    .hero-subtitle {
        color: #000000 !important;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ========================================
   ADDITIONAL MOBILE OVERRIDES FOR INLINE STYLES
   These target specific patterns used in page templates
   ======================================== */

@media (max-width: 768px) {
    /* Hero grid layouts - force single column */
    .hero .container > div {
        display: block !important;
    }

    .hero .container > div > div {
        margin-bottom: var(--spacing-xl);
    }

    /* Hide mockup containers in hero on mobile */
    .hero .container > div > div:last-child > div[style*="background: rgba"] {
        display: none;
    }

    /* Section grids - force single column */
    section .container > div[style*="display: grid"] {
        display: block !important;
    }

    section .container > div[style*="display: grid"] > div {
        margin-bottom: var(--spacing-xl);
    }

    /* Mockup internal grids - 2 columns max */
    div[style*="display: grid"][style*="repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    div[style*="display: grid"][style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    div[style*="display: grid"][style*="repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    div[style*="display: grid"][style*="repeat(6"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Flexbox rows with gaps - allow wrapping */
    div[style*="display: flex"][style*="gap:"] {
        flex-wrap: wrap !important;
    }

    /* Text sizes in mockups - scale down */
    [style*="font-size: 2.5rem"],
    [style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }

    [style*="font-size: 1.75rem"],
    [style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }

    [style*="font-size: 1.25rem"] {
        font-size: 1.0625rem !important;
    }

    [style*="font-size: 1.125rem"] {
        font-size: 1rem !important;
    }

    /* Padding adjustments for mockup cards */
    [style*="padding: var(--spacing-xl)"] {
        padding: var(--spacing-lg) !important;
    }

    [style*="padding: var(--spacing-lg)"] {
        padding: var(--spacing-md) !important;
    }

    /* Gap adjustments */
    [style*="gap: var(--spacing-3xl)"] {
        gap: var(--spacing-xl) !important;
    }

    [style*="gap: var(--spacing-2xl)"] {
        gap: var(--spacing-lg) !important;
    }

    [style*="gap: var(--spacing-xl)"] {
        gap: var(--spacing-md) !important;
    }

    /* Width constraints for mockup elements */
    [style*="width: 48px"] {
        width: 40px !important;
        height: 40px !important;
    }

    [style*="width: 56px"] {
        width: 44px !important;
        height: 44px !important;
    }

    [style*="width: 64px"] {
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 576px) {
    /* Even smaller grids on phones */
    div[style*="display: grid"][style*="repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Further text scaling */
    [style*="font-size: 1.5rem"] {
        font-size: 1.125rem !important;
    }

    [style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
    }

    [style*="font-size: 1.125rem"] {
        font-size: 0.9375rem !important;
    }

    /* Tighter padding on very small screens */
    [style*="padding: var(--spacing-lg)"] {
        padding: var(--spacing-sm) !important;
    }

    [style*="padding: var(--spacing-md)"] {
        padding: var(--spacing-sm) !important;
    }

    /* Icon sizes */
    [style*="width: 40px"][style*="height: 40px"] {
        width: 32px !important;
        height: 32px !important;
    }

    [style*="width: 32px"][style*="height: 32px"] {
        width: 28px !important;
        height: 28px !important;
    }

    /* SVG icons inside containers */
    [style*="width: 32px"] svg,
    [style*="width: 40px"] svg,
    [style*="width: 48px"] svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 400px) {
    /* Minimal padding on very small devices */
    [style*="padding: var(--spacing-md)"] {
        padding: var(--spacing-xs) !important;
    }

    /* Stack all flex containers vertically */
    div[style*="display: flex"]:not([style*="flex-direction: column"]) {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Full width for inline-flex badges */
    [style*="display: inline-flex"] {
        width: 100%;
        justify-content: center;
    }
}
