/* Reset and Base Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-First Base Styles (320px - 767px) */
html {
    font-size: 16px; /* Prevent iOS zoom on input focus */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

:root {
    /* ZyntroTest Color Palette - Biotech Theme */
    --primary-blue: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-blue: #2563eb;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --accent-teal: #06b6d4;
    --accent-cyan: #0891b2;
    
    /* Neutral Colors */
    --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;
    
    /* Typography - Mobile First */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Montserrat', Georgia, serif;
    
    /* Mobile Typography Scale */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    
    /* Mobile-First Spacing */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    
    /* Mobile Container Padding */
    --container-padding-mobile: 1rem;    /* 16px */
    --container-padding-tablet: 2rem;    /* 32px */
    --container-padding-desktop: 2.5rem; /* 40px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 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);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile-First Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--text-3xl); /* 30px on mobile */
    color: var(--gray-900);
}

h2 {
    font-size: var(--text-2xl); /* 24px on mobile */
    color: var(--gray-900);
}

h3 {
    font-size: var(--text-xl); /* 20px on mobile */
    color: var(--gray-800);
}

h4 {
    font-size: var(--text-lg); /* 18px on mobile */
    color: var(--gray-800);
}

h5, h6 {
    font-size: var(--text-base); /* 16px on mobile */
    color: var(--gray-700);
}

p {
    font-size: var(--text-base); /* 16px on mobile */
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

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

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

/* Mobile-First Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding-mobile);
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override container for mobile-first - already defined above */

/* Mobile-First Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding-mobile);
    max-width: 100%;
}

.nav-brand {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: none; /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) var(--container-padding-mobile);
    flex-direction: column;
    gap: var(--space-sm);
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-toggle {
    display: flex; /* Show on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

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

/* Mobile-First Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    min-height: 44px; /* Touch-friendly minimum */
    min-width: 44px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

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

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

/* Mobile-First Forms */
input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--text-base); /* Prevent iOS zoom */
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color 0.2s ease;
}

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

/* Mobile-First Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-cyan));
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-900);
}

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

.logo:hover img {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(0, 212, 170, 0.3));
}

/* Footer logo styling */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo img {
    height: 40px;
    opacity: 0.9;
}

.footer-logo .logo:hover img {
    opacity: 1;
}

/* Hide the old logo elements */
.logo-icon,
.logo-text,
.lcms-symbol {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-display);
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5rem;
    height: 0.125rem;
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}

/* Removed conflicting nav-toggle rule - using mobile-first approach */

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X transformation */
.nav-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

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

.nav-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 60vh;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 0;
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0;
    font-weight: 600;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.hero-trust {
    margin-top: 2rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    display: block;
}

.trust-badges {
    display: flex;
    gap: 1rem;
}

.trust-badge {
    background: var(--white);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-2xl);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    color: var(--white);
}

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

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.highlight-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.highlight-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        justify-content: space-between;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero-image {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .image-container {
        transform: none;
        max-width: 100%;
        max-height: 300px;
        width: 100%;
        margin: 0;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .image-container:hover {
        transform: none;
    }
    
    .hero-main-image {
        width: 100%;
        height: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: var(--radius-lg);
    }
    
    .image-overlay {
        padding: 1rem;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }
    
    .overlay-content {
        gap: 0.75rem;
    }
    
    .feature-highlight {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .highlight-text strong {
        font-size: 0.8rem;
    }
    
    .highlight-text span {
        font-size: 0.7rem;
    }
}

/* Removed old LCMS illustration CSS - now using real image */

/* Overview Section */
.overview {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.overview-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.overview-content h2 {
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.overview-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Services Snapshot */
.services-snapshot {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    position: relative;
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
}

/* Heroicons SVG Icons */
.icon {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    opacity: 1;
}

/* Comprehensive Icon Visibility Fix */
svg.icon {
    stroke: var(--white) !important;
    fill: none !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

/* Ensure all service icons are visible */
.service-icon svg {
    stroke: var(--white) !important;
    fill: none !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

/* Ensure all trust badge icons are visible */
.badge-icon svg {
    stroke: var(--white) !important;
    fill: none !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

/* Animation Performance Optimizations */
.service-card {
    will-change: transform, box-shadow;
    transition: none; /* Let anime.js handle all transitions */
}

.service-card:hover {
    /* Remove CSS transitions to prevent conflicts */
    transition: none;
}

.btn {
    will-change: transform;
}

.nav-link {
    will-change: auto; /* Only when needed */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .btn,
    .nav-link,
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Service Icons using Heroicons */
.peptide-icon {
    /* Beaker icon for peptide testing */
}

.supplement-icon {
    /* Shield check icon for supplement screening */
}

.hemp-icon {
    /* Leaf icon for hemp/cannabis testing */
}

.biotech-icon {
    /* Deprecated - replaced with hemp-icon */
}

.service-card h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.price-range {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.service-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Trust Signals */
.trust-signals {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: var(--space-2xl);
}

.trust-badge {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    transition: var(--transition-base);
}

.trust-badge:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.iso-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    flex-direction: column;
}

.badge-text {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.badge-subtext {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.shipping-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
}

.shipping-badge .icon {
    width: 32px;
    height: 32px;
    stroke: var(--white) !important;
    fill: none !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

.tech-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
}

.tech-badge .icon {
    width: 32px;
    height: 32px;
    stroke: var(--white) !important;
    fill: none !important;
    stroke-width: 2 !important;
    opacity: 1 !important;
}

.trust-badge h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.trust-badge p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* COA Preview */
.coa-preview {
    text-align: center;
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    margin: 2rem auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Override container max-width for COA preview to allow full PDF display */
.coa-preview .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.coa-preview h3 {
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
    text-align: center;
}

/* COA Status Message Centering */
#cms-status {
    text-align: center !important;
    margin: 1rem auto !important;
    max-width: 100% !important;
    display: block !important;
    width: 100%;
}

/* COA Button Centering */
.coa-preview .btn {
    margin: 1rem auto !important;
    display: block !important;
    text-align: center;
}

.coa-thumbnail {
    max-width: 300px;
    margin: 0 auto var(--space-lg);
}

.coa-sample {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.coa-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

.coa-logo {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.coa-title {
    font-size: 0.875rem;
    opacity: 0.9;
}

.coa-content {
    padding: 1rem;
}

.coa-line {
    height: 8px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.coa-line.short {
    width: 60%;
}

.coa-data {
    margin-top: 1rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.data-label {
    height: 6px;
    width: 40%;
    background: var(--gray-400);
    border-radius: var(--radius-sm);
}

.data-label.short {
    width: 30%;
}

.data-value {
    height: 6px;
    width: 25%;
    background: var(--primary-blue);
    border-radius: var(--radius-sm);
}

/* COA PDF Preview Styles - Now using search page structure (inline styles) */

/* COA Data Display Styles (Search Results Style) */
.coa-data-display {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
}

.data-item strong {
    color: var(--gray-900);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-item span {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
}

.status-badge {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    display: inline-block;
}

.result-highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.notes-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.notes-section strong {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.notes-section p {
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

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

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--gray-900);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: var(--white);
    opacity: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    background: var(--gray-900);
    color: var(--gray-300);
}

/* Footer Container Override - Restore original layout */
.footer .container {
    max-width: 1200px;
    padding: 0 2rem;
    margin: 0 auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.footer-logo .brand-name {
    color: var(--white);
}

.footer-logo .brand-tagline {
    color: var(--gray-400);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
}

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

.footer-section p {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.footer-badges .badge {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--gray-700);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-800);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-base);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--primary-light);
    background: var(--gray-800);
    transform: translateY(-2px);
}

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

.footer-legal p {
    color: var(--gray-500);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
}

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

.powered-by {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.powered-by a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 500;
}

.powered-by a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin: 0;
        list-style: none;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .nav-list li {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        font-weight: 500;
        text-decoration: none;
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
        width: 100%;
    }
    
    .nav-link:hover {
        background: var(--gray-50);
        color: var(--primary-blue);
    }
    
    .nav-link.active {
        background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
        color: var(--primary-blue);
        font-weight: 600;
    }
    
    .nav-link.active::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: 40px;
        height: 3px;
        background: var(--primary-blue);
        border-radius: 2px;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    
    /* Removed duplicate nav-toggle rules - using mobile-first approach */
    
    /* Prevent body scroll when menu is open */
    body.nav-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Removed duplicate nav-toggle styling - using mobile-first approach */
    
    /* Mobile menu overlay effect */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active::before {
        opacity: 1;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .lcms-machine {
        width: 300px;
        height: 225px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Container Mobile Override */
    .footer .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Trust badge mobile optimization */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-badge {
        padding: 1.5rem;
    }
    
    .badge-icon {
        width: 64px;
        height: 64px;
    }
    
    .badge-icon .icon {
        width: 100%;
        height: 100%;
        stroke-width: 1.5;
    }
    
    .iso-badge .badge-text {
        font-size: 1rem;
    }
    
    .iso-badge .badge-subtext {
        font-size: 0.7rem;
    }
    
    /* Ensure SVG stroke colors are visible on mobile */
    .shipping-badge .icon {
        stroke: var(--white);
        stroke-width: 2;
    }
    
    .tech-badge .icon {
        stroke: var(--white);
        stroke-width: 2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Additional hero image optimization for small screens */
    .hero-image {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    .image-overlay {
        padding: 0.75rem;
    }
    
    .feature-highlight {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .highlight-icon {
        font-size: 1.25rem;
    }
    
    .highlight-text strong {
        font-size: 0.75rem;
    }
    
    .highlight-text span {
        font-size: 0.65rem;
    }
}

/* Animation and Performance */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .trust-badge,
    .testimonial,
    .btn {
        transition: var(--transition-base);
    }
    
    .lcms-machine {
        animation: float 6s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .lcms-symbol {
        animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }
}

/* Focus and Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.btn:focus-visible {
    outline-color: var(--primary-dark);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-900: #000000;
    }
    
    .service-card,
    .trust-badge,
    .testimonial {
        border-width: 2px;
    }
}

/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* Blog Header */
.blog-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    text-align: center;
}

.blog-header-content h1 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 3rem;
    font-family: var(--font-display);
}

.blog-header-content > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Blog Search */
.blog-search {
    max-width: 700px;
    margin: 2rem auto 0;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--white);
}

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

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-icon {
    font-size: 1.25rem;
}

.search-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--gray-700);
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    background: var(--gray-50);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Featured Article - Full Width with Centered Content */
.featured-article {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 60px 0;
    background: var(--white);
    margin: 0;
    max-width: none;
}

.featured-article .container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.featured-article .featured-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.featured-article .featured-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    display: block;
}

.featured-article .featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 0.75rem;
}

.featured-article .featured-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-article .featured-content h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-family: var(--font-display);
}

.featured-article .article-meta {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.article-meta .date::before {
    content: '📅 ';
}

.article-meta .read-time::before {
    content: '⏱ ';
}

.article-meta .category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}

.featured-article .featured-excerpt {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
}

.featured-article .featured-content .btn {
    margin: 0;
    display: inline-block;
}

/* Blog Articles Grid */
.blog-articles {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.blog-articles .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Post Card */
.blog-post {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-header {
    position: relative;
}

.post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-200);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-meta {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta .category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-meta .date,
.post-meta .read-time {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.post-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--font-display);
}

.post-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-body {
    display: none;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-body.expanded {
    display: block;
}

.post-body h4 {
    color: var(--gray-900);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body strong {
    color: var(--gray-900);
    font-weight: 600;
}

.post-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.read-more-btn {
    padding: 0.5rem 1.25rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-base);
}

.read-more-btn:hover {
    background: var(--primary-dark);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Newsletter Section */
.blog-newsletter {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-content > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form .btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.newsletter-form .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

.newsletter-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Blog CTA Section */
.blog-cta {
    padding: var(--space-3xl) 0;
    background: var(--white);
    text-align: center;
}

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

.blog-cta h2 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.blog-cta p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--gray-700);
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tablet - Maintain Centered Layout */
@media (min-width: 769px) {
    .featured-article {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
    }
    
    .featured-article .container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 60px 20px;
        width: 100%;
        display: block;
    }
    
    .featured-article .featured-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .featured-article .featured-content h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .featured-article .featured-excerpt {
        font-size: 1.125rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Desktop - Optimal Centered Layout */
@media (min-width: 1025px) {
    .featured-article {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
    }
    
    .featured-article .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 20px;
        width: 100%;
        display: block;
    }
    
    .featured-article .featured-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .featured-article .featured-content h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .featured-article .featured-excerpt {
        font-size: 1.25rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .featured-article .featured-badge {
        text-align: center;
    }
    
    .featured-article .article-meta {
        justify-content: center;
    }
}

/* Responsive Blog Styles */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 6rem 0 3rem;
    }
    
    .blog-header-content h1 {
        font-size: 2rem;
    }
    
    .blog-header-content > p {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .featured-content h2 {
        font-size: 1.75rem;
    }
    
    .featured-image img {
        aspect-ratio: 16/9;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-features {
        gap: 1rem;
        flex-direction: column;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .coa-preview {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Service cards mobile optimization */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 1rem;
    }
    
    /* CTA section mobile */
    .cta-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Footer mobile optimization */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Form mobile optimization */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Blog mobile optimization */
    .blog-header-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    /* COA search mobile */
    .search-container {
        padding: 1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-button {
        width: 100%;
    }
    
    /* Sample submission mobile */
    .submission-form {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .checkbox-label {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .submission-form {
        padding: 1rem;
    }
    
    /* Featured Article Mobile - Enhanced Padding */
    .featured-article {
        display: block;
        padding: 40px 0;
    }
    
    .featured-article .container {
        padding: 40px 16px;
    }
}

/* Search Page Section Spacing */
.sample-coas-section {
    padding: 2rem 0 0.5rem 0; /* Reduced bottom padding */
    margin: 0;
}

.coa-cta {
    padding: 0.5rem 0 2rem 0 !important; /* Reduced top padding - force override */
    margin: 0 !important;
}

/* Ensure proper centering with minimal padding */
.coa-cta .container {
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.coa-cta .cta-content {
    padding: 0.5rem 0 !important; /* Minimal padding */
    margin: 0 auto !important;
    text-align: center !important;
    max-width: 800px !important;
    width: 100% !important;
}

.coa-cta .cta-actions {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    justify-content: center !important;
}

/* Override any existing cta-content styles for coa-cta specifically */
.coa-cta .cta-content h2 {
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

.coa-cta .cta-content p {
    margin-bottom: 1rem !important;
    text-align: center !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive centering for different screen sizes */
@media (min-width: 768px) {
    .coa-cta .cta-actions {
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    .coa-cta .cta-content {
        max-width: 900px !important;
    }
    
    .coa-cta .cta-content p {
        max-width: 700px !important;
    }
}

/* PDF Modal Container - Chromate-style approach */
.pdf-modal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin: 1.5rem 0;
    max-width: 100%;
    width: 100%;
}

.pdf-modal-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pdf-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.pdf-modal-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.pdf-modal-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-viewer-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Ensure adequate height */
}

/* PDF Preview Styles - Mobile-responsive container with aspect ratio */
.pdf-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pdf-iframe:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05) !important;
    transform: translateY(-2px) !important;
}

.pdf-preview-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 !important;
    padding: 0 !important;
}

/* PDF Download Button Styling */
.pdf-download-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    text-decoration: none !important;
}

.pdf-download-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px -3px rgb(0 0 0 / 0.1) !important;
}

.pdf-download-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1) !important;
}

/* Ensure all PDF viewer containers are centered */
#iframe-pdf-viewer,
#object-pdf-viewer,
#pdfjs-viewer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Center PDF object elements */
#pdf-object {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: 600px !important;
}

/* Mobile PDF iframe adjustments */
@media (max-width: 768px) {
    .pdf-modal-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .pdf-modal-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pdf-modal-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pdf-modal-logo {
        height: 32px;
    }
    
    .pdf-modal-title h3 {
        font-size: 1.25rem;
    }
    
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Keep A4 ratio for better PDF display */
        min-height: 500px; /* Ensure minimum height */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pdf-preview-container {
        margin: 1rem auto !important;
        padding: 0 0.5rem !important;
        max-width: 100% !important;
    }
    
    .pdf-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0.5rem !important;
        display: block !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .pdf-download-btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Keep A4 ratio for consistency */
        min-height: 400px; /* Smaller minimum height for small screens */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pdf-preview-container {
        padding: 0 0.25rem !important;
    }
    
    .pdf-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0.5rem !important;
        display: block !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .pdf-download-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

/* Tablet PDF iframe adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .pdf-modal-container {
        margin: 1.5rem 0;
    }
    
    .pdf-modal-header {
        padding: 1.25rem 2rem;
    }
    
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Standard A4 aspect ratio */
    }
    
    .pdf-preview-container {
        margin: 1.5rem auto !important;
        max-width: 95% !important;
        padding: 0 1rem !important;
    }
    
    .pdf-download-btn {
        padding: 0.875rem 1.75rem !important;
        font-size: 1.1rem !important;
    }
}

/* Desktop PDF iframe adjustments */
@media (min-width: 1025px) {
    .pdf-modal-container {
        margin: 2rem 0;
        max-width: 100%;
    }
    
    .pdf-modal-header {
        padding: 1.5rem 2rem;
    }
    
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Standard A4 aspect ratio */
    }
    
    .pdf-preview-container {
        margin: 2rem 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .pdf-download-btn {
        padding: 1rem 2rem !important;
        font-size: 1.125rem !important;
    }
}

/* Large desktop PDF iframe adjustments */
@media (min-width: 1400px) {
    .pdf-modal-container {
        margin: 2.5rem 0;
    }
    
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Standard A4 aspect ratio */
    }
    
    .pdf-preview-container {
        max-width: 100% !important;
        margin: 2.5rem 0 !important;
        padding: 0 !important;
    }
    
    .pdf-download-btn {
        padding: 1.125rem 2.25rem !important;
        font-size: 1.25rem !important;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .pdf-modal-container {
        margin: 3rem 0;
    }
    
    .pdf-viewer-container {
        aspect-ratio: 1 / 1.414; /* Standard A4 aspect ratio */
    }
    
    .pdf-preview-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .cta-section,
    .footer {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
        background: var(--white) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS - MOBILE FIRST
   ======================================== */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    /* Typography Scale Up */
    h1 {
        font-size: var(--text-4xl); /* 36px */
    }
    
    h2 {
        font-size: var(--text-3xl); /* 30px */
    }
    
    h3 {
        font-size: var(--text-2xl); /* 24px */
    }
    
    h4 {
        font-size: var(--text-xl); /* 20px */
    }
    
    /* Container Updates */
    .container {
        padding: 0 var(--container-padding-tablet);
        max-width: 768px;
    }
    
    /* Footer Container Tablet Override */
    .footer .container {
        max-width: 768px;
        padding: 0 2rem;
    }
    
    /* Navigation - Show Desktop Menu */
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        gap: var(--space-lg);
    }
    
    .nav-menu a {
        padding: 0;
        border: none;
    }
    
    .nav-toggle {
        display: none; /* Hide on tablet+ */
    }
    
    /* Grid Layouts */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    /* Featured Article */
    .featured-article .container {
        max-width: 800px;
        padding: 0 var(--container-padding-tablet);
    }
    
    .featured-article .featured-content h2 {
        font-size: var(--text-3xl);
    }
    
    .featured-article .featured-excerpt {
        font-size: var(--text-lg);
        max-width: 600px;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    /* Typography Scale Up */
    h1 {
        font-size: 3rem; /* 48px */
    }
    
    h2 {
        font-size: 2.5rem; /* 40px */
    }
    
    h3 {
        font-size: 2rem; /* 32px */
    }
    
    h4 {
        font-size: 1.5rem; /* 24px */
    }
    
    /* Container Updates */
    .container {
        padding: 0 var(--container-padding-desktop);
        max-width: 1200px;
    }
    
    /* Footer Container Desktop Override */
    .footer .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    /* Grid Layouts */
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
    
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
    
    /* Featured Article */
    .featured-article .container {
        max-width: 1200px;
        padding: 0 var(--container-padding-desktop);
    }
    
    .featured-article .featured-content h2 {
        font-size: 2.5rem;
    }
    
    .featured-article .featured-excerpt {
        font-size: var(--text-xl);
        max-width: 700px;
    }
    
    /* Hero Section */
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    /* Footer Container Large Desktop Override */
    .footer .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}