/* Smooth rendering */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

img,
svg {
    transform: translateZ(0);
}

*,
::after,
::before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
    max-width: 100vw
}

body {
    margin: 0;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    color: #1f2937;
    background: #fff;
    overflow-x: hidden;
    max-width: 100vw
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

a {
    color: inherit;
    text-decoration: inherit
}

img,
svg {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto
}

button {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer
}

[x-cloak] {
    display: none !important
}

/* ------------------------------------------------
   2. LAYOUT UTILITIES
   ------------------------------------------------ */
.fixed {
    position: fixed
}

.relative {
    position: relative
}

.absolute {
    position: absolute
}

.top-0 {
    top: 0
}

.left-0 {
    left: 0
}

.right-0 {
    right: 0
}

.bottom-0 {
    bottom: 0
}

.z-50 {
    z-index: 50
}

.z-40 {
    z-index: 40
}

.z-10 {
    z-index: 10
}

.flex {
    display: flex
}

.grid {
    display: grid
}

.hidden {
    display: none
}

.block {
    display: block
}

.inline-flex {
    display: inline-flex
}

.items-center {
    align-items: center
}

.justify-between {
    justify-content: space-between
}

.justify-center {
    justify-content: center
}

.gap-2 {
    gap: .5rem
}

.gap-3 {
    gap: .75rem
}

.gap-4 {
    gap: 1rem
}

.gap-6 {
    gap: 1.5rem
}

.gap-8 {
    gap: 2rem
}

.gap-12 {
    gap: 3rem
}

.w-full {
    width: 100%
}

.max-w-7xl {
    max-width: 80rem
}

.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem
}

.py-2 {
    padding-top: .5rem;
    padding-bottom: .5rem
}

.py-3 {
    padding-top: .75rem;
    padding-bottom: .75rem
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem
}

.pt-20 {
    padding-top: 5rem
}

.pb-20 {
    padding-bottom: 5rem
}

.mb-4 {
    margin-bottom: 1rem
}

.mb-6 {
    margin-bottom: 1.5rem
}

.h-20 {
    height: 5rem
}

.w-10 {
    width: 2.5rem
}

.h-10 {
    height: 2.5rem
}

.w-6 {
    width: 1.5rem
}

.h-6 {
    height: 1.5rem
}

/* ------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------ */
.text-sm {
    font-size: .875rem;
    line-height: 1.25rem
}

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

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

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

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem
}

.text-5xl {
    font-size: 3rem;
    line-height: 1
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1
}

.font-medium {
    font-weight: 500
}

.font-semibold {
    font-weight: 600
}

.font-bold {
    font-weight: 700
}

.leading-tight {
    line-height: 1.25
}

.text-center {
    text-align: center
}

/* ------------------------------------------------
   4. COLORS
   ------------------------------------------------ */
.text-white {
    color: #fff
}

.text-gray-500 {
    color: #6b7280
}

.text-gray-600 {
    color: #4b5563
}

.text-gray-800 {
    color: #1f2937
}

.text-gray-900 {
    color: #111827
}

.text-blue-100 {
    color: #dbeafe
}

.text-blue-200 {
    color: #bfdbfe
}

.text-primary-600 {
    color: #2563eb
}

.text-primary-700 {
    color: #1e3a5f
}

.text-primary-900 {
    color: #0c1929
}

.text-accent {
    color: #f59e0b
}

.bg-white {
    background-color: #fff
}

.bg-gray-50 {
    background-color: #f9fafb
}

.bg-primary-100 {
    background-color: #dbeafe
}

.bg-primary-700 {
    background-color: #1e3a5f
}

.bg-primary-900 {
    background-color: #0c1929
}

.bg-accent {
    background-color: #f59e0b
}

/* ------------------------------------------------
   5. COMPONENTS - BASE
   ------------------------------------------------ */
.rounded-lg {
    border-radius: .5rem
}

.rounded-xl {
    border-radius: .75rem
}

.rounded-2xl {
    border-radius: 1rem
}

.rounded-full {
    border-radius: 9999px
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0/.05)
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0/.1)
}

.border-b {
    border-bottom-width: 1px
}

.border-gray-100 {
    border-color: #f3f4f6
}

.overflow-hidden {
    overflow: hidden
}

.object-contain {
    object-fit: contain
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px)
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: .15s
}

.transition-all {
    transition-property: all;
    transition-duration: .3s
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0c1929 0%, #1e3a5f 50%, #142744 100%)
}

/* Card hover effect */
.card-hover {
    transition: all .3s ease
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1)
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3a5f;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top .3s
}

.skip-link:focus {
    top: 0
}

/* ------------------------------------------------
   6. ANIMATIONS - KEYFRAMES
   ------------------------------------------------ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes contactPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.7), 0 0 30px rgba(245, 158, 11, 0.3);
    }
}

@keyframes characterBounceIn {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0.3);
    }

    60% {
        opacity: 1;
        transform: translateY(-15%) scale(1.1);
    }

    80% {
        transform: translateY(5%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes characterWave {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(-2deg);
    }

    75% {
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation Classes */
.character-float {
    animation: float 3s ease-in-out infinite
}

.character-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: .5s
}

.glow-orange {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, .5))
}

/* ------------------------------------------------
   7. MOBILE HEADER & MENU
   ------------------------------------------------ */
/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #1e3a5f;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

.mobile-menu-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.mobile-menu-btn:active {
    transform: scale(0.97);
}

.menu-line {
    width: 100%;
    height: 2.5px;
    background: #1e3a5f;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Card Style */
.mobile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mobile-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-card:active {
    transform: scale(0.98);
}

/* Quick Action Buttons */
.quick-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #e2e8f0;
    color: #1e3a5f;
}

.quick-action-btn:active {
    transform: scale(0.96);
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    color: #0c1929;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.cta-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Staggered Menu Item Animation */
.mobile-menu-item {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.mobile-menu-item.animate-in {
    animation: slideUpFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-item-1.animate-in {
    animation-delay: 0.05s;
}

.menu-item-2.animate-in {
    animation-delay: 0.1s;
}

.menu-item-3.animate-in {
    animation-delay: 0.15s;
}

.menu-item-4.animate-in {
    animation-delay: 0.2s;
}

.menu-item-5.animate-in {
    animation-delay: 0.25s;
}

.menu-item-6.animate-in {
    animation-delay: 0.3s;
}

/* ------------------------------------------------
   8. MOBILE BOTTOM NAVIGATION
   ------------------------------------------------ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: .5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 50;
    display: none;
}

.safe-area-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Contact button highlight */
.contact-btn-highlight {
    position: relative;
}

.contact-pulse {
    animation: contactPulse 2s ease-in-out infinite;
}

/* Character animations for contact modal */
.character-bounce-in {
    opacity: 0;
    transform: translateY(100%) scale(0.3);
    animation: characterBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        characterWave 2s ease-in-out 0.6s infinite;
}

/* ------------------------------------------------
   9. RESPONSIVE - TABLET & UP (640px+)
   ------------------------------------------------ */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .sm\:flex-row {
        flex-direction: row
    }
}

/* ------------------------------------------------
   10. RESPONSIVE - MEDIUM SCREENS (768px+)
   ------------------------------------------------ */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .md\:text-4xl {
        font-size: 2.25rem
    }

    .md\:text-5xl {
        font-size: 3rem
    }

    .md\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem
    }

    .md\:block {
        display: block
    }

    .md\:hidden {
        display: none
    }
}

/* ------------------------------------------------
   11. RESPONSIVE - DESKTOP (1024px+)
   ------------------------------------------------ */
@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr))
    }

    .lg\:flex {
        display: flex
    }

    .lg\:hidden {
        display: none
    }

    .lg\:block {
        display: block
    }

    .lg\:gap-12 {
        gap: 3rem
    }

    .lg\:py-24 {
        padding-top: 6rem;
        padding-bottom: 6rem
    }

    .lg\:text-6xl {
        font-size: 3.75rem
    }

    .lg\:order-1 {
        order: 1
    }

    .lg\:order-2 {
        order: 2
    }

    .lg\:mb-8 {
        margin-bottom: 2rem
    }

    .lg\:gap-8 {
        gap: 2rem
    }

    /* Hide mobile elements on desktop */
    .mobile-bottom-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .pb-safe {
        padding-bottom: 0 !important;
    }
}

/* ------------------------------------------------
   12. RESPONSIVE - MOBILE/TABLET (under 1024px)
   ------------------------------------------------ */
@media (max-width: 1023px) {
    .mobile-bottom-nav {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .pb-safe {
        padding-bottom: 4.5rem;
    }

    section:last-of-type {
        padding-bottom: 5rem !important;
    }
}

/* ------------------------------------------------
   13. RESPONSIVE - MOBILE ONLY (under 768px)
   ------------------------------------------------ */
@media (max-width: 767px) {

    /* Base text sizing */
    html {
        font-size: 14px;
    }

    body {
        line-height: 1.4;
    }

    /* Headings - compact */
    h1,
    .text-3xl,
    .text-4xl,
    .text-5xl,
    .text-6xl {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    h2,
    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    h3,
    .text-xl {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    h4,
    .text-lg {
        font-size: 1rem !important;
        line-height: 1.35 !important;
    }

    /* Body text */
    p,
    .text-base {
        font-size: 0.875rem !important;
        line-height: 1.45 !important;
    }

    .text-sm {
        font-size: 0.8rem !important;
    }

    .text-xs {
        font-size: 0.7rem !important;
    }

    /* Tighter spacing */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-12 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .pt-32 {
        padding-top: 5rem !important;
    }

    .pb-20 {
        padding-bottom: 1.5rem !important;
    }

    /* Tighter margins */
    .mb-16,
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }

    .mb-8,
    .mb-6 {
        margin-bottom: 0.75rem !important;
    }

    .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    /* Tighter gaps */
    .gap-12 {
        gap: 1.5rem !important;
    }

    .gap-8 {
        gap: 1rem !important;
    }

    .gap-6 {
        gap: 0.75rem !important;
    }

    .gap-4 {
        gap: 0.5rem !important;
    }

    /* Tighter padding */
    .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .p-8 {
        padding: 1rem !important;
    }

    .p-6 {
        padding: 0.75rem !important;
    }

    /* Smaller corners */
    .rounded-2xl {
        border-radius: 0.75rem !important;
    }

    .rounded-3xl {
        border-radius: 1rem !important;
    }

    /* 2-column layouts */
    .grid.md\:grid-cols-2.lg\:grid-cols-4,
    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .grid.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Horizontal scroll for 5-column grids */
    .grid.lg\:grid-cols-5 {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        -webkit-overflow-scrolling: touch;
    }

    .grid.lg\:grid-cols-5>* {
        flex: 0 0 45% !important;
        scroll-snap-align: start !important;
    }

    /* Inline feature lists */
    .space-y-4,
    .space-y-3,
    .space-y-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .space-y-4>*,
    .space-y-3>*,
    .space-y-2>* {
        margin-top: 0 !important;
        flex: 0 0 auto;
    }

    /* Compact cards */
    .card-hover,
    .character-card,
    [class*="rounded-2xl"][class*="p-"] {
        padding: 0.75rem !important;
    }

    .card-hover .w-16,
    .card-hover .w-14 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .card-hover .w-12 {
        width: 2rem !important;
        height: 2rem !important;
    }

    .character-card .h-40 {
        height: 6rem !important;
    }

    .character-card img {
        max-height: 5rem !important;
    }

    .card-hover h3,
    .character-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    .card-hover p,
    .character-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Compact hero */
    .hero-gradient .max-w-2xl,
    .hero-gradient .max-w-3xl {
        max-width: 100% !important;
    }

    .hero-gradient .inline-flex {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.7rem !important;
    }

    .hero-gradient p {
        margin-bottom: 0.75rem !important;
    }

    .hero-gradient .character-float {
        display: none !important;
    }

    .hero-gradient .flex-col.sm\:flex-row {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    .hero-gradient .flex-col.sm\:flex-row a {
        padding: 0.625rem 1rem !important;
        font-size: 0.8rem !important;
        flex: 1;
    }

    .hero-gradient .flex-wrap {
        gap: 0.375rem !important;
    }

    .hero-gradient .flex-wrap>div {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    /* Compact buttons */
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .py-4 {
        padding-top: 0.625rem !important;
        padding-bottom: 0.625rem !important;
    }

    .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Compact forms */
    input,
    textarea,
    select {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }

    /* ------------------------------------------------
   7. FOOTER - COMPACT & ORGANIZED
   ------------------------------------------------ */
    @media (max-width: 767px) {
        footer {
            padding-top: 1.5rem !important;
            padding-bottom: 5rem !important;
        }

        /* Footer grid */
        footer .grid.md\:grid-cols-2.lg\:grid-cols-4 {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 1.25rem 0.75rem !important;
        }

        /* Section headings - Orange titles */
        footer h4.font-semibold,
        footer .font-semibold.text-accent {
            font-size: 0.8rem !important;
            font-weight: 600 !important;
            margin-bottom: 0.35rem !important;
        }

        /* UL lists - Add left padding for alignment */
        footer ul.space-y-2 {
            padding-left: 0.6rem !important;
            border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
            margin-left: 0.1rem !important;
        }

        /* LI items - tighter spacing */
        footer ul.space-y-2 li {
            margin-top: 0 !important;
            padding-left: 5px;
        }

        footer ul.space-y-2 li+li {
            margin-top: 0.15rem !important;
        }

        /* Footer links */
        footer ul.space-y-2 li a {
            font-size: 0.7rem !important;
            line-height: 1.4 !important;
            min-height: auto !important;
            display: inline !important;
        }

        /* Contact items with icons - ONE LINE */
        footer ul.space-y-2 li a.flex {
            display: inline-flex !important;
            align-items: center !important;
            gap: 0.25rem !important;
            white-space: nowrap !important;
            flex-wrap: nowrap !important;
            font-size: 0.65rem !important;
        }

        /* Contact icons - smaller */
        footer ul.space-y-2 li a.flex svg {
            width: 0.7rem !important;
            height: 0.7rem !important;
            flex-shrink: 0 !important;
        }

        /* Brand section - no left border */
        footer>div>div>div:first-child ul,
        footer .flex.items-center.gap-3 {
            border-left: none !important;
            padding-left: 0 !important;
        }

        /* Social icons */
        footer .flex.items-center.gap-3 a {
            min-height: auto !important;
            padding: 0 !important;
        }

        footer .flex.items-center.gap-3 svg {
            width: 1rem !important;
            height: 1rem !important;
        }

        /* Company description */
        footer .text-blue-200.mb-4.text-sm {
            font-size: 0.65rem !important;
            line-height: 1.4 !important;
            margin-bottom: 0.5rem !important;
        }

        /* Locations section */
        footer .border-t.border-primary-800.pt-6.mb-6 {
            padding-top: 1rem !important;
            margin-bottom: 0.75rem !important;
        }

        footer .border-t h4 {
            font-size: 0.75rem !important;
            margin-bottom: 0.5rem !important;
        }

        footer .grid.grid-cols-2.gap-4 {
            gap: 0.5rem !important;
        }

        footer .grid.grid-cols-2 p {
            font-size: 0.7rem !important;
            margin-bottom: 0.15rem !important;
        }

        footer .grid.grid-cols-2 a {
            font-size: 0.6rem !important;
            line-height: 1.3 !important;
        }

        /* Bottom bar */
        footer>div>.border-t:last-child {
            padding-top: 0.75rem !important;
            gap: 0.5rem !important;
        }

        footer>div>.border-t:last-child p,
        footer>div>.border-t:last-child a {
            font-size: 0.6rem !important;
        }

        footer>div>.border-t:last-child .flex.items-center.gap-4 {
            gap: 0.75rem !important;
        }
    }


    /* Horizontal scroll testimonials */
    .testimonials-grid,
    [class*="testimonial"] {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0.75rem !important;
        padding: 0.5rem 0 !important;
    }

    .testimonials-grid>*,
    [class*="testimonial"]>* {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
    }

    /* Smaller images */
    .max-w-sm,
    .max-w-md,
    .max-w-lg {
        max-width: 200px !important;
    }

    .w-20,
    .w-24 {
        width: 3rem !important;
        height: 3rem !important;
    }

    [data-aos="fade-left"] img:not(.essential),
    [data-aos="fade-right"] img:not(.essential) {
        max-height: 150px !important;
    }

    /* Hide decorative elements */
    .animate-bounce {
        display: none !important;
    }

    .absolute.blur-xl,
    .absolute.opacity-50 {
        display: none !important;
    }

    .card-hover {
        min-height: auto;
    }
}

/* ------------------------------------------------
   12. TOUCH-FRIENDLY - EXCLUDE FOOTER
   ------------------------------------------------ */
@media (max-width: 767px) {

    /* Main navigation and buttons */
    header a,
    header button,
    main a.btn,
    main button,
    .mobile-bottom-nav a,
    .mobile-bottom-nav button,
    .cta-button,
    .mobile-card,
    .quick-action-btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* Reset for footer */
    footer a,
    footer button,
    footer li,
    .card-hover,
    .card-hover a {
        min-height: auto !important;
    }
}

/* ------------------------------------------------
   INLINE LISTS - Only for specific sections, NOT footer
   ------------------------------------------------ */
@media (max-width: 767px) {

    /* Remove border-left from contact section (icons act as visual cue) */
    footer div:has(a[href^="tel"]) ul,
    footer div:has(a[href^="mailto"]) ul {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Contact items aligned with icon */
    footer div:has(a[href^="tel"]) a,
    footer div:has(a[href^="mailto"]) a {
        padding-left: 0 !important;
    }

    /* Only convert feature lists in cards to inline */
    .card-hover .space-y-4,
    .card-hover .space-y-3,
    .card-hover .space-y-2,
    section:not(footer)>.space-y-4,
    section:not(footer)>.space-y-3 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .card-hover .space-y-4>*,
    .card-hover .space-y-3>*,
    .card-hover .space-y-2>* {
        margin-top: 0 !important;
        flex: 0 0 auto;
    }

    /* Footer lists stay vertical */
    footer .space-y-4,
    footer .space-y-3,
    footer .space-y-2,
    footer ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.2rem !important;
    }
}

/* Accessibility Widget Styles */
/* Floating Action Button */
.a11y-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.a11y-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.a11y-fab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

@media (min-width: 1024px) {
    .a11y-fab {
        bottom: 24px;
        right: 24px;
    }
}

/* Panel */
.a11y-panel {
    position: fixed;
    bottom: 145px;
    right: 16px;
    width: 320px;
    max-height: calc(100vh - 180px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 400px) {
    .a11y-panel {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 140px;
        max-height: calc(100vh - 160px);
    }
}

@media (min-width: 1024px) {
    .a11y-panel {
        bottom: 90px;
        right: 24px;
        max-height: calc(100vh - 120px);
    }
}

/* Header */
.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%);
    color: white;
}

/* Content */
.a11y-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Section */
.a11y-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

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

.a11y-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls */
.a11y-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.a11y-label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.a11y-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.a11y-btn-group-full {
    display: flex;
    gap: 4px;
}

.a11y-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-btn:hover {
    background: #f3f4f6;
    border-color: #1e3a5f;
}

.a11y-btn-sm {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-btn-sm:hover {
    background: #f3f4f6;
}

.a11y-btn-sm.active {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}

.a11y-value {
    min-width: 45px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a5f;
}

/* Select */
.a11y-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    color: #374151;
    cursor: pointer;
    min-width: 140px;
}

/* Toggle Row */
.a11y-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Toggle Switch */
.a11y-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.a11y-toggle.active {
    background: #1e3a5f;
}

.a11y-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.a11y-toggle.active .a11y-toggle-slider {
    transform: translateX(20px);
}

/* Mode Buttons */
.a11y-mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.a11y-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-mode-btn:hover {
    border-color: #1e3a5f;
    background: #f8fafc;
}

.a11y-mode-btn.active {
    border-color: #1e3a5f;
    background: #1e3a5f;
    color: white;
}

/* Footer */
.a11y-footer {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a11y-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.a11y-reset-btn:hover {
    background: #dc2626;
}

/* Reading Guide */
.reading-guide-line {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(245, 158, 11, 0.15);
    border-top: 2px solid #f59e0b;
    border-bottom: 2px solid #f59e0b;
    pointer-events: none;
    z-index: 9997;
    transition: top 0.1s ease-out;
}

/* ================================================
   ACCESSIBILITY MODES - Applied to <html>
   ================================================ */

/* High Contrast */
html.a11y-high-contrast {
    filter: contrast(1.4);
}

html.a11y-high-contrast * {
    border-color: #000 !important;
}

/* Inverted Colors */
html.a11y-inverted {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-inverted img,
html.a11y-inverted video,
html.a11y-inverted svg {
    filter: invert(1) hue-rotate(180deg);
}

/* Dark Mode */
html.a11y-dark {
    filter: invert(0.9) hue-rotate(180deg);
}

html.a11y-dark img,
html.a11y-dark video,
html.a11y-dark svg {
    filter: invert(1) hue-rotate(180deg);
}

/* Text Only Mode */
html.a11y-text-only img:not(.a11y-keep),
html.a11y-text-only video,
html.a11y-text-only svg:not(.a11y-keep),
html.a11y-text-only [style*="background-image"],
html.a11y-text-only .hero-gradient,
html.a11y-text-only [class*="gradient"] {
    display: none !important;
}

html.a11y-text-only {
    background: white !important;
}

html.a11y-text-only * {
    background-image: none !important;
    background: white !important;
    color: #000 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.a11y-text-only a {
    color: #0000EE !important;
    text-decoration: underline !important;
}

html.a11y-text-only header,
html.a11y-text-only footer,
html.a11y-text-only .mobile-bottom-nav {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
}

/* Dyslexia Font */
html.a11y-dyslexia {
    font-family: 'OpenDyslexic', 'Comic Sans MS', cursive, sans-serif !important;
}

html.a11y-dyslexia * {
    font-family: inherit !important;
}

/* Highlight Focus */
html.a11y-highlight-focus *:focus {
    outline: 4px solid #f59e0b !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.3) !important;
}

/* Big Cursor */
html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5 3l14 9-8 1-2 8z'/%3E%3C/svg%3E"), auto !important;
}

/* Stop Animations */
html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
    animation: none !important;
    transition: none !important;
}

/* Hide Images */
html.a11y-hide-images img,
html.a11y-hide-images svg:not(.a11y-keep),
html.a11y-hide-images video,
html.a11y-hide-images picture {
    opacity: 0.1 !important;
}

/* Color Blind Modes */
html.a11y-protanopia {
    filter: url('#protanopia-filter');
}

html.a11y-deuteranopia {
    filter: url('#deuteranopia-filter');
}

html.a11y-tritanopia {
    filter: url('#tritanopia-filter');
}

html.a11y-monochrome {
    filter: grayscale(100%);
}

/* ================================================
   ACCESSIBILITY WIDGET - ALWAYS VISIBLE
   Must override all modes
   ================================================ */

/* Floating Button - Always visible */
.a11y-fab,
#a11y-widget .a11y-fab {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%) !important;
    color: white !important;
    filter: none !important;
}

.a11y-fab.active,
#a11y-widget .a11y-fab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.a11y-fab svg,
#a11y-widget .a11y-fab svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    color: white !important;
    stroke: white !important;
}

/* Panel - Always visible when open */
.a11y-panel,
#a11y-widget .a11y-panel {
    visibility: visible !important;
    background: white !important;
    color: #1f2937 !important;
    filter: none !important;
}

.a11y-panel *,
#a11y-widget .a11y-panel * {
    filter: none !important;
}

.a11y-panel .a11y-header,
#a11y-widget .a11y-panel .a11y-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%) !important;
    color: white !important;
}

.a11y-panel .a11y-content,
#a11y-widget .a11y-panel .a11y-content {
    background: white !important;
    color: #374151 !important;
}

.a11y-panel .a11y-section-title,
#a11y-widget .a11y-section-title {
    color: #1e3a5f !important;
}

.a11y-panel .a11y-label,
#a11y-widget .a11y-label {
    color: #374151 !important;
}

.a11y-panel .a11y-btn,
.a11y-panel .a11y-btn-sm,
.a11y-panel .a11y-toggle,
.a11y-panel .a11y-select,
.a11y-panel .a11y-mode-btn,
#a11y-widget .a11y-btn,
#a11y-widget .a11y-btn-sm,
#a11y-widget .a11y-toggle,
#a11y-widget .a11y-select,
#a11y-widget .a11y-mode-btn {
    background: white !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

.a11y-panel .a11y-btn-sm.active,
.a11y-panel .a11y-mode-btn.active,
#a11y-widget .a11y-btn-sm.active,
#a11y-widget .a11y-mode-btn.active {
    background: #1e3a5f !important;
    color: white !important;
    border-color: #1e3a5f !important;
}

.a11y-panel .a11y-toggle,
#a11y-widget .a11y-toggle {
    background: #d1d5db !important;
}

.a11y-panel .a11y-toggle.active,
#a11y-widget .a11y-toggle.active {
    background: #1e3a5f !important;
}

.a11y-panel .a11y-toggle-slider,
#a11y-widget .a11y-toggle-slider {
    background: white !important;
}

.a11y-panel .a11y-footer,
#a11y-widget .a11y-footer {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

.a11y-panel .a11y-reset-btn,
#a11y-widget .a11y-reset-btn {
    background: #ef4444 !important;
    color: white !important;
}

.a11y-panel .a11y-value,
#a11y-widget .a11y-value {
    color: #1e3a5f !important;
}

.a11y-panel svg,
#a11y-widget .a11y-panel svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Reading Guide - Keep visible */
.reading-guide-line {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #f59e0b !important;
}

/* ================================================
   TEXT ONLY MODE - Exclude accessibility widget
   ================================================ */
html.a11y-text-only #a11y-widget,
html.a11y-text-only #a11y-widget *,
html.a11y-text-only .a11y-fab,
html.a11y-text-only .a11y-panel,
html.a11y-text-only .a11y-panel *,
html.a11y-text-only .reading-guide-line {
    background-image: initial !important;
    filter: none !important;
}

html.a11y-text-only #a11y-widget .a11y-fab {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%) !important;
}

html.a11y-text-only #a11y-widget .a11y-fab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* ================================================
   INVERTED / DARK MODE - Exclude accessibility widget
   ================================================ */
html.a11y-inverted #a11y-widget,
html.a11y-inverted #a11y-widget *,
html.a11y-dark #a11y-widget,
html.a11y-dark #a11y-widget * {
    filter: none !important;
}

/* ================================================
   HIGH CONTRAST - Keep widget normal
   ================================================ */
html.a11y-high-contrast #a11y-widget,
html.a11y-high-contrast #a11y-widget * {
    filter: none !important;
}

/* ================================================
   COLOR BLIND MODES - Keep widget normal
   ================================================ */
html.a11y-protanopia #a11y-widget,
html.a11y-protanopia #a11y-widget *,
html.a11y-deuteranopia #a11y-widget,
html.a11y-deuteranopia #a11y-widget *,
html.a11y-tritanopia #a11y-widget,
html.a11y-tritanopia #a11y-widget *,
html.a11y-monochrome #a11y-widget,
html.a11y-monochrome #a11y-widget * {
    filter: none !important;
}

/* Text Only Mode - UPDATED */
html.a11y-text-only img:not(.a11y-keep),
html.a11y-text-only video,
html.a11y-text-only svg:not(.a11y-keep):not(#a11y-widget svg),
html.a11y-text-only [style*="background-image"]:not(#a11y-widget *),
html.a11y-text-only .hero-gradient,
html.a11y-text-only [class*="gradient"]:not(.a11y-fab):not(.a11y-header) {
    display: none !important;
}

html.a11y-text-only {
    background: white !important;
}

html.a11y-text-only *:not(#a11y-widget):not(#a11y-widget *):not(.reading-guide-line) {
    background-image: none !important;
    background: white !important;
    color: #000 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.a11y-text-only a:not(#a11y-widget a) {
    color: #0000EE !important;
    text-decoration: underline !important;
}

html.a11y-text-only header:not(#a11y-widget *),
html.a11y-text-only footer:not(#a11y-widget *),
html.a11y-text-only .mobile-bottom-nav:not(#a11y-widget *) {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
}

/* ================================================
   READING GUIDE - DESKTOP ONLY
   ================================================ */

/* Hide reading guide line on touch devices */
@media (max-width: 1023px) {
    .reading-guide-line {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Hide the Reading Guide toggle option on mobile */
@media (max-width: 1023px) {
    .a11y-reading-guide-row {
        display: none !important;
    }
}


/* ================================================
   FLOATING BUTTONS - ORGANIZED LAYOUT (5 Features)
   Back to Top, Cookie, TTS, AI Chat, Accessibility
   ================================================ */

/* ================================================
   1. BACK TO TOP - LEFT SIDE (Shows on scroll)
   ================================================ */
#back-to-top {
    position: fixed;
    left: 12px;
    bottom: 120px;
    width: 40px;
    height: 40px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9988;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: #0c1929;
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    #back-to-top {
        bottom: 130px;
        left: 16px;
    }
}

/* ================================================
   2. TTS BUTTON - LEFT SIDE
   ================================================ */
.features-fab-container {
    position: fixed;
    left: 16px;
    bottom: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9990;
}

@media (min-width: 1024px) {
    .features-fab-container {
        bottom: 80px;
        left: 24px;
    }
}

.feature-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feature-fab:hover {
    transform: scale(1.1);
}

.feature-tts {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.feature-tts.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

/* ================================================
   3. COOKIE SETTINGS - LEFT SIDE (Bottom)
   ================================================ */
.cookie-settings-fab {
    position: fixed;
    left: 16px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9989;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-fab:hover {
    transform: scale(1.1);
    border-color: #f59e0b;
}

@media (min-width: 1024px) {
    .cookie-settings-fab {
        bottom: 80px;
        left: 16px;
    }
}

@media (max-width: 1023px) {
    .cookie-settings-fab {
        bottom: 140px;
        left: 16px;
    }
}

/* ================================================
   4. AI CHAT BUTTON - RIGHT SIDE
   ================================================ */
.ai-chat-fab {
    position: fixed;
    right: 16px;
    bottom: 145px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    z-index: 9997;
    transition: all 0.3s ease;
}

.ai-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.ai-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1e3a5f;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .ai-chat-fab {
        bottom: 90px;
        right: 24px;
    }
}

/* ================================================
   5. ACCESSIBILITY BUTTON - RIGHT SIDE (Bottom)
   ================================================ */
.a11y-fab {
    position: fixed;
    right: 16px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
}

.a11y-fab:hover {
    transform: scale(1.1);
}

.a11y-fab.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

@media (min-width: 1024px) {
    .a11y-fab {
        bottom: 24px;
        right: 24px;
    }
}

/* ================================================
   6. TTS CONTROLS BAR (Center Bottom)
   ================================================ */
.tts-controls {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9995;
}

@media (min-width: 1024px) {
    .tts-controls {
        bottom: 80px;
    }
}

.tts-controls button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.tts-controls button:hover {
    transform: scale(1.2);
}

.tts-speed {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 12px;
    background: white;
}

/* ================================================
   7. MOBILE ADJUSTMENTS (under 1024px)
   ================================================ */
@media (max-width: 1023px) {

    /* Left side stack */
    #back-to-top {
        bottom: 210px;
        width: 36px;
        height: 36px;
    }

    .features-fab-container {
        bottom: 150px;
    }

    .feature-fab {
        width: 40px;
        height: 40px;
    }

    /* Right side stack */
    .ai-chat-fab {
        bottom: 150px;
        width: 52px;
        height: 52px;
    }

    .a11y-fab {
        bottom: 80px;
        width: 52px;
        height: 52px;
    }

    /* TTS controls */
    .tts-controls {
        bottom: 150px;
        padding: 8px 12px;
        gap: 8px;
    }

    .tts-controls button {
        font-size: 18px;
    }
}

/* ================================================
   8. Z-INDEX HIERARCHY
   ================================================ */
/*
   9999: Cookie consent banner
   9998: Accessibility button
   9997: AI Chat button
   9995: TTS controls bar
   9990: TTS button
   9989: Cookie settings button
   9988: Back to top button
   50: Mobile bottom nav
   40: Header
*/

/* ================================================
   9. ALWAYS VISIBLE - Override all a11y modes
   ================================================ */
#back-to-top,
.features-fab-container,
.feature-fab,
.cookie-settings-fab,
.ai-chat-fab,
.tts-controls,
#features-widget,
#features-widget * {
    filter: none !important;
    visibility: visible !important;
}

html.a11y-text-only #back-to-top,
html.a11y-text-only .features-fab-container,
html.a11y-text-only .feature-fab,
html.a11y-text-only .cookie-settings-fab,
html.a11y-text-only .ai-chat-fab,
html.a11y-text-only .tts-controls,
html.a11y-text-only #features-widget,
html.a11y-text-only #features-widget *,
html.a11y-inverted #features-widget,
html.a11y-inverted #features-widget *,
html.a11y-dark #features-widget,
html.a11y-dark #features-widget * {
    filter: none !important;
}