/* Levocraft B2B - Clean Professional Design */

:root {
    /* Navy & Blue Color Palette */
    --navy-dark: #0F172A;
    --navy: #1E293B;
    --navy-light: #334155;
    --blue-dark: #1E40AF;
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --blue-pale: #60A5FA;
    --blue-subtle: #DBEAFE;
    --teal: #0F766E; /* Darkened from #0D9488 for WCAG AA contrast (4.9:1) */
    --gray-dark: #475569;
    --gray: #64748B;
    --gray-light: #6B7280; /* Darkened from #94A3B8 for WCAG AA contrast (4.6:1) */
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --success: #059669;

    /* Clean Gradients - Navy to Blue */
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #1E40AF 100%);
    --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    --gradient-subtle: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 12px 32px rgba(30, 64, 175, 0.15);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius - Slightly less rounded for professional look */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--navy-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--navy-dark);
}

h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--gray-dark);
    font-size: 1.0625rem;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: var(--space-md);
}

.nav-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy-dark);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-dark);
    transition: var(--transition-base);
}

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

.nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: var(--font-body);
}

.nav-link:hover {
    color: var(--blue);
    background: var(--blue-subtle);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle svg {
    transition: transform var(--transition-fast);
}

.dropdown-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid #E2E8F0;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
}

.dropdown-item:hover {
    background: var(--blue-subtle);
    color: var(--blue);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-heading);
}

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

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

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

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

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

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

/* Focus states for accessibility - WCAG 2.4.7 */
.btn:focus-visible {
    outline: 2px solid var(--navy-dark);
    outline-offset: 2px;
}

.btn-primary:focus-visible,
.btn-gradient:focus-visible {
    outline-color: var(--white);
}

.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.btn-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Hero Section - Clean Navy Gradient */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: var(--space-xl) var(--space-md);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    font-weight: 400;
    line-height: 1.7;
}

.hero-subtitle {
    font-size: 0.9375rem;
    color: var(--blue-pale);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero .btn-group {
    justify-content: center;
}

/* Section */
.section {
    padding: var(--space-xl) 0;
}

.section-gray {
    background: var(--light-bg);
}

.section-white {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-lg);
}

/* ============================================
   STYLE A: Minimal (Current) - Clean, flat cards
   ============================================ */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: none;
    transition: all var(--transition-base);
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    border: 1px solid #E2E8F0;
}

/* ============================================
   STYLE B: Top Border Accent
   Add class "style-b" to .product-grid
   ============================================ */
.style-b .product-card {
    border-top: 3px solid var(--blue);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.style-b .product-card:hover {
    border-top-color: var(--blue-dark);
}

.style-b .product-icon {
    background: var(--blue-subtle);
    border: none;
}

/* ============================================
   STYLE C: Left Border Accent
   Add class "style-c" to .product-grid
   ============================================ */
.style-c .product-card {
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.style-c .product-card:hover {
    border-left-color: var(--navy);
    background: var(--light-bg);
}

.style-c .product-icon {
    background: transparent;
    border: 2px solid var(--blue);
}

/* ============================================
   STYLE D: Shadow Cards (no border)
   Add class "style-d" to .product-grid
   ============================================ */
.style-d .product-card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
}

.style-d .product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.style-d .product-icon {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
}

/* Product Card Common Elements */
.product-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    width: fit-content;
}

.status-available {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.status-coming-soon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--navy-dark);
}

.product-tagline {
    font-size: 0.875rem;
    color: var(--blue);
    font-weight: 500;
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.product-description {
    color: var(--gray-dark);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.product-features li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* ============================================
   Feature Items - Base Style (minimal)
   ============================================ */
.feature-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
}

/* Style B features */
.style-b .feature-item {
    border-top: 3px solid var(--blue);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Style C features */
.style-c .feature-item {
    border-left: 4px solid var(--blue);
    border-radius: 0;
    text-align: left;
}

/* Style D features */
.style-d .feature-item {
    border: none;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    background: var(--blue-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.feature-item p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-hero);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-radius: var(--radius-lg);
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-group {
    justify-content: center;
}

/* Demo Callout */
.demo-callout {
    text-align: center;
    padding: var(--space-md) 0;
}

.demo-callout h2 {
    color: var(--navy-dark);
    margin-bottom: var(--space-sm);
}

.demo-callout p {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.9375rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-studio-link {
    margin-top: var(--space-sm);
}

.footer-studio-link a {
    color: var(--blue-pale);
    font-weight: 500;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

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

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-left: var(--space-sm);
        display: none;
        background: var(--light-bg);
    }

    .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
        display: block;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .hero {
        min-height: auto;
        padding: var(--space-lg) var(--space-sm);
    }

    .product-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mt-md { margin-top: var(--space-md); }

/* ============================================
   PRODUCT SHOWCASE - Circular Constellation
   ============================================ */
.showcase-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #1E40AF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.showcase-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 700px;
    margin: 0 auto;
}

/* Center Bastion Logo */
.bastion-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    transition: all 0.4s ease-in-out;
}

.bastion-center.dimmed {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.3;
}

.bastion-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bastion-tagline {
    font-size: 1.125rem;
    color: var(--blue-pale);
    font-weight: 400;
    opacity: 0.9;
}

/* Product Cards in Circle */
.showcase-product {
    position: absolute;
    width: 180px;
    min-height: 160px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Position products in a circle (6 positions - hexagonal layout) */
.showcase-product[data-position="top"] {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
}

.showcase-product[data-position="top-right"] {
    top: 12%;
    right: 10%;
}

.showcase-product[data-position="top-left"] {
    top: 12%;
    left: 10%;
}

.showcase-product[data-position="bottom-right"] {
    bottom: 12%;
    right: 10%;
}

.showcase-product[data-position="bottom-left"] {
    bottom: 12%;
    left: 10%;
}

.showcase-product[data-position="bottom"] {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
}

/* Product card default content */
.showcase-product .product-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.showcase-product .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.25rem;
}

.showcase-product .product-tagline-short {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.4;
    min-height: 2.1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-product .product-status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.showcase-product .product-status-badge.available {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.showcase-product .product-status-badge.coming-soon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

/* Expanded content (hidden by default) */
.showcase-product .expanded-content {
    display: none;
    text-align: left;
    margin-top: 1rem;
}

.showcase-product .expanded-content ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.showcase-product .expanded-content li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.8125rem;
    color: var(--gray-dark);
}

.showcase-product .expanded-content li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

.showcase-product .learn-more-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.showcase-product .learn-more-link:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Hover/Active State - Card Expands to Center */
.showcase-product.active {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 440px;
    max-width: 90vw;
    height: auto !important;
    min-height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    z-index: 100;
    border-color: var(--teal);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-product.active .expanded-content {
    display: block;
}

.showcase-product.active .product-icon {
    font-size: 2.5rem;
}

.showcase-product.active .product-name {
    font-size: 1.5rem;
}

.showcase-product.active .product-tagline-short {
    font-size: 0.9375rem;
    color: var(--blue);
    font-style: italic;
}

/* Dimmed/faded state for non-active cards */
.showcase-product.dimmed,
.showcase-product.faded {
    opacity: 0.3;
    filter: blur(2px);
    pointer-events: none;
}

.bastion-center.faded {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Overlay when card is active */
.showcase-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Focus states for accessibility */
.showcase-product:focus {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

.showcase-product:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

/* Mobile/Tablet Responsive */
@media (max-width: 900px) {
    .showcase-container {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .bastion-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 2rem;
    }
    
    .bastion-logo {
        font-size: 2.5rem;
    }
    
    .showcase-products-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 500px;
    }
    
    .showcase-product {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
    }
    
    .showcase-product.active {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 90vw;
        max-width: 400px;
    }
}

@media (max-width: 500px) {
    .showcase-products-mobile {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .bastion-logo {
        font-size: 2rem;
    }
}

/* Desktop: Hide mobile grid, show circular showcase */
@media (min-width: 901px) {
    .showcase-products {
        display: block;
    }
    .mobile-products {
        display: none;
    }
}

/* Mobile: Hide circular showcase, show grid */
@media (max-width: 900px) {
    .showcase-section {
        display: none;
    }
    .mobile-products {
        display: block;
    }
}

/* Showcase hint text */
.showcase-hint {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--blue-pale);
    font-size: 0.875rem;
    opacity: 0.7;
    text-align: center;
    z-index: 20;
}

/* Bastion description in center */
.bastion-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    max-width: 300px;
}

/* Mobile products section styling */
.section-navy {
    background: var(--navy-dark);
}

.section-navy .section-header h2,
.section-navy .section-subtitle {
    color: var(--white);
}

.section-navy .section-subtitle {
    opacity: 0.8;
}

.bastion-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Expanded description in showcase cards */
.expanded-description {
    color: var(--gray-dark);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Feature list in expanded cards */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.feature-list li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.8125rem;
    color: var(--gray-dark);
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

/* Development status badge */
.product-status-badge.development,
.product-status.status-development {
    background: rgba(234, 179, 8, 0.1);
    color: #B45309;
}

/* ============================================
   BASTION PAGE STYLES
   ============================================ */

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Page hero (shorter than homepage) */
.hero-page {
    min-height: 60vh;
    padding-top: 120px;
}

/* Two column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.column-content .lead {
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 1rem;
}

.column-content p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Platform visual */
.platform-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.platform-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
}

.platform-logo {
    color: var(--white);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.platform-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: orbit-rotate 30s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: orbit-counter-rotate 30s linear infinite;
}

@keyframes orbit-counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-item:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-item:nth-child(2) { top: 30%; right: 0; }
.orbit-item:nth-child(3) { bottom: 10%; right: 15%; }
.orbit-item:nth-child(4) { bottom: 10%; left: 15%; }
.orbit-item:nth-child(5) { top: 30%; left: 0; }

/* Full-width product grid */
.product-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

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

/* Large product cards */
.product-card-large {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-lighter);
    transition: all 0.3s ease;
}

.product-card-large:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-icon-large {
    font-size: 2.5rem;
    line-height: 1;
}

.product-card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--navy-dark);
}

.product-card-header .product-tagline {
    margin: 0.25rem 0 0 0;
    font-size: 0.9375rem;
    color: var(--blue);
    font-style: italic;
}

.product-card-header .product-status {
    margin-left: auto;
}

.product-card-large .product-description {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

@media (max-width: 500px) {
    .product-features {
        grid-template-columns: 1fr;
    }
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.feature-check {
    color: var(--teal);
    font-weight: 600;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.benefit-card {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Dark CTA section */
.cta-dark {
    text-align: center;
}

.cta-dark h2 {
    color: var(--white);
}

.cta-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ============================================
   PRODUCT PAGE STYLES
   ============================================ */

/* Product hero styling */
.hero-product {
    text-align: center;
}

.hero-product .hero-content {
    max-width: 700px;
}

.product-hero-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.product-hero-tagline {
    font-size: 1.5rem;
    color: var(--blue-pale);
    font-style: italic;
    margin-bottom: 1rem;
}

.product-status-hero {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-status-hero.status-available {
    background: rgba(5, 150, 105, 0.2);
    color: #34D399;
}

.product-status-hero.status-coming-soon {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-pale);
}

.product-status-hero.status-development {
    background: rgba(234, 179, 8, 0.2);
    color: #FCD34D;
}

/* Problem illustration */
.problem-illustration {
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.chaos-emails {
    position: relative;
    font-size: 3rem;
}

.chaos-emails .email-icon {
    opacity: 0.6;
    margin: 0 0.25rem;
}

.chaos-emails .question-mark {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 2rem;
    color: var(--error);
}

/* Portal preview */
.portal-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-header {
    background: var(--navy);
    padding: 1rem;
    text-align: center;
}

.preview-logo {
    color: var(--white);
    font-weight: 600;
}

.preview-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.preview-card {
    background: var(--gray-lighter);
    border-radius: var(--radius-sm);
    height: 80px;
}

/* EDI diagram */
.edi-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.edi-node {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
}

.edi-partner {
    background: var(--gray-lighter);
    color: var(--gray-dark);
}

.edi-conduit {
    background: var(--gradient-primary);
    color: var(--white);
}

.edi-you {
    background: var(--navy);
    color: var(--white);
}

.edi-arrow {
    font-size: 1.5rem;
    color: var(--blue);
}

/* Map preview */
.map-preview {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    min-height: 250px;
    position: relative;
}

.map-pins .map-pin {
    position: absolute;
    font-size: 1.5rem;
    animation: pin-bounce 2s ease-in-out infinite;
}

.map-pin:nth-child(2) { animation-delay: 0.3s; }
.map-pin:nth-child(3) { animation-delay: 0.6s; }

@keyframes pin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Chart preview */
.chart-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 250px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    gap: 0.5rem;
}

.chart-bar {
    width: 30px;
    background: var(--blue-subtle);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.3s ease;
}

.chart-bar.highlight {
    background: var(--gradient-primary);
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Features detailed */
.features-detailed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.feature-detailed {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon-box {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--blue-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.5;
}

/* EDI docs grid */
.edi-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .edi-docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .edi-docs-grid {
        grid-template-columns: 1fr;
    }
}

.edi-doc {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.edi-doc-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.edi-doc h3 {
    font-size: 1rem;
    color: var(--navy-dark);
    margin-bottom: 0.25rem;
}

.edi-doc p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Use cases grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.use-case {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
}

.use-case-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.use-case h3 {
    font-size: 1rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.use-case p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Questions grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.question-card {
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.question-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.question-card p {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* Story visual */
.story-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--gray-lighter);
    border-radius: var(--radius-lg);
}

.story-icon {
    font-size: 3rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-arrow {
    font-size: 2rem;
    color: var(--blue);
}

/* Differences grid */
.differences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.difference-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.difference-card.highlight {
    background: var(--navy);
    color: var(--white);
}

.difference-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.difference-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

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

.difference-card.highlight .difference-label {
    color: var(--blue-pale);
}

.difference-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    font-style: italic;
}

/* Values list */
.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.value-item h3 {
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Two column reverse */
.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* T&A badge */
.tna-badge {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.badge-company {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.badge-subtitle {
    display: block;
    font-size: 0.9375rem;
    opacity: 0.8;
}

/* Contact info cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue-pale);
    margin-bottom: 0.5rem;
}

.contact-card a,
.contact-card span {
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Form column */
.contact-form-column h2 {
    font-size: 1.75rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.form-intro {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* B2B Contact form */
.b2b-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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

/* Form feedback */
.form-feedback {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.form-feedback.success {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.noscript-warning {
    padding: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid #B45309;
    border-radius: var(--radius-sm);
    color: #B45309;
    font-size: 0.875rem;
}

/* Info column */
.contact-info-box,
.contact-cta-box {
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-box h3,
.contact-cta-box h3 {
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

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

.contact-method h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.contact-method a,
.contact-method span {
    font-size: 1rem;
    color: var(--navy-dark);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Expect list */
.expect-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expect-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--gray-dark);
}

.expect-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== */
/* Legal Pages Styles   */
/* ==================== */

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

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.125rem;
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section li strong {
    color: var(--navy-dark);
}

.legal-section a {
    color: var(--blue);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Legal table */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--gray-lighter);
}

.legal-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--navy-dark);
}

.legal-table td {
    color: var(--gray-dark);
}

.legal-table tr:hover td {
    background: var(--light-bg);
}

/* Contact block in legal pages */
.contact-block {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    line-height: 1.8;
}

.contact-block strong {
    display: block;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.contact-block a {
    color: var(--blue);
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 1rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-table {
        font-size: 0.875rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== */
/* Reduced Motion       */
/* WCAG 2.3.3           */
/* ==================== */

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

    .btn:hover,
    .btn-gradient:hover {
        transform: none;
    }

    .showcase-product.active {
        transition: none;
    }
}

/* ==================== */
/* Custom Solutions Page */
/* ==================== */

/* Hero lead text */
.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-md);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--navy-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-dark);
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    color: var(--navy-dark);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-content h3 {
    color: var(--navy-dark);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-dark);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA Subtext */
.cta-subtext {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.cta-subtext a {
    color: var(--white);
    text-decoration: underline;
}

.cta-subtext a:hover {
    color: var(--blue-pale);
}

/* Dropdown enhancements */
.dropdown-icon {
    margin-right: 0.5rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-lighter);
    margin: 0.5rem 0;
}

.dropdown-item-all {
    font-weight: 500;
    color: var(--blue) !important;
}

/* 5-column footer grid */
.footer-grid-5 {
    grid-template-columns: 1.5fr repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .footer-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Custom Solutions Callout (for homepage) */
.solutions-callout {
    background: var(--light-bg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
}

.solutions-callout h2 {
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.solutions-callout p {
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.25rem;
    display: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.back-to-top:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
