/**
 * Ralph Rebandt for Governor - Main Stylesheet
 * WCAG AAA Compliant | Mobile-First | SEO Optimized
 */

/* === CSS Variables (Design System) === */
:root {
    /* Colors - WCAG AAA Compliant */
    --color-primary: #2B3E6B;
    --color-secondary: #1A2847;
    --color-accent: #3D5A94;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-medium-gray: #E0E0E0;
    --color-text-dark: #1A1A1A;
    --color-text-light: #4A4A4A;

    /* Patriotic Colors */
    --color-red: #C1242A;
    --color-blue: #3C3B6E;
    --color-light-blue: #B0C4DE;
    --color-light-red: #C1242A;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: -apple-system-headline, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

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

    /* Layout */
    --max-width: 1200px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* === Patriotic Custom Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border-radius: 6px;
    border: 2px solid #F5F5F5;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #C1242A 0%, #1A2847 100%);
    border-color: #E0E0E0;
}

/* Firefox Scrollbar - Patriotic Gradient */
* {
    scrollbar-width: thin;
    scrollbar-color: #3C3B6E #F5F5F5;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    position: relative;
}

h1 { font-size: 2.5rem; }
h2 {
    font-size: 2rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

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

a:hover, a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.section {
    padding: var(--spacing-2xl) 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.section-alt {
    background: linear-gradient(135deg, #F5F5F5 0%, #E8E8F0 100%);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(60, 59, 110, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(193, 36, 42, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Prevent any element from causing horizontal scroll */
img, video, iframe, picture {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
}

/* === Header & Navigation === */
.site-header {
    background: var(--color-white);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow-x: hidden;
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
    max-width: 100vw;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.site-logo img {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.site-logo span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.main-nav a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 80%;
}

.main-nav a:hover {
    background: transparent;
    text-decoration: none;
}

.main-nav a.active {
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.main-nav a.active::after {
    width: 80%;
}

/* Override for donate button in nav - keep dark on hover */
.main-nav .btn-donate::after {
    display: none !important;
}

.main-nav .btn-donate:hover,
.main-nav .btn-donate:active,
.main-nav .btn-donate:focus {
    background: var(--color-secondary) !important;
    color: var(--color-white) !important;
    text-decoration: none !important;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2B3E6B 0%, #3C3B6E 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(60, 59, 110, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C1242A 0%, #C1242A 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 36, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-donate {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

.btn-donate:hover,
.btn-donate:active,
.btn-donate:focus {
    background: #000000;
    color: #FFFFFF !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Footer donate button - white on hover */
.site-footer .btn-donate:hover,
.site-footer .btn-donate:active,
.site-footer .btn-donate:focus {
    background: #FFFFFF !important;
    color: #1A2847 !important;
}

/* Footer volunteer button (btn-outline) - white on hover */
.site-footer .btn-outline:hover,
.site-footer .btn-outline:active,
.site-footer .btn-outline:focus {
    background: #FFFFFF !important;
    color: #1A2847 !important;
    border-color: #FFFFFF !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.btn-outline:hover::after {
    width: 90%;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2B3E6B 0%, #3C3B6E 100%);
    color: var(--color-white);
    text-decoration: none;
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 62, 107, 0.4);
}

/* White button with primary text (CTA sections) */
.btn[style*="background: var(--color-white)"],
.btn[style*="background:var(--color-white)"] {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn[style*="background: var(--color-white)"]::before,
.btn[style*="background:var(--color-white)"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 62, 107, 0.1), transparent);
    transition: left 0.5s;
}

.btn[style*="background: var(--color-white)"]:hover::before,
.btn[style*="background:var(--color-white)"]:hover::before {
    left: 100%;
}

.btn[style*="background: var(--color-white)"]:hover,
.btn[style*="background:var(--color-white)"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(43, 62, 107, 0.3) !important;
    text-decoration: none !important;
}

/* White-bordered outline buttons on dark backgrounds */
.btn-outline[style*="border-color: var(--color-white)"],
.btn-outline[style*="border-color:var(--color-white)"],
.btn-outline[style*="border-color: #FFFFFF"],
.btn-outline[style*="border-color:#FFFFFF"] {
    position: relative;
    overflow: hidden;
}

.btn-outline[style*="border-color: var(--color-white)"]::after,
.btn-outline[style*="border-color:var(--color-white)"]::after,
.btn-outline[style*="border-color: #FFFFFF"]::after,
.btn-outline[style*="border-color:#FFFFFF"]::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}

.btn-outline[style*="border-color: var(--color-white)"]:hover,
.btn-outline[style*="border-color:var(--color-white)"]:hover,
.btn-outline[style*="border-color: #FFFFFF"]:hover,
.btn-outline[style*="border-color:#FFFFFF"]:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 62, 107, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

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

/* === General Card Styling with Flag Ribbon Border === */
.card,
.info-card,
.content-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 3px solid;
    border-image: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
    position: relative;
}

.card:hover,
.info-card:hover,
.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 59, 110, 0.25);
}

/* === Content Sections === */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.content-section.reverse {
    direction: rtl;
}

.content-section.reverse > * {
    direction: ltr;
}

.content-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 3px solid;
    border-image: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Policy Cards === */
.policies-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.policy-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Desktop: 4 columns */
@media (min-width: 1025px) {
    .policy-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 2x2 grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

.policy-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 3px solid;
    border-image: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(60, 59, 110, 0.25);
}

.policy-card h3 {
    color: var(--color-primary);
    background: linear-gradient(135deg, #2B3E6B 0%, #3C3B6E 100%);
    color: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 6px rgba(60, 59, 110, 0.3);
}

.policy-card p {
    color: var(--color-text-dark);
    line-height: 1.7;
    flex-grow: 1;
}

.policy-card .btn {
    margin-top: var(--spacing-md);
    width: 100%;
    text-align: center;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, #1A2847 0%, #0D1423 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
}

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

.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
    color: #E8E8E8;
    font-size: 0.95rem;
    line-height: 1.2;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a .social-icon,
.social-links a .social-icon img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    min-width: 64px !important;
    flex-shrink: 0;
}

.social-links a:hover {
    filter: invert(1);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #C1242A 0%, #3C3B6E 100%);
    border-image-slice: 1;
    color: #E8E8E8;
    font-size: 0.875rem;
    line-height: 1.2;
}

.footer-bottom p {
    color: #E8E8E8 !important;
    line-height: 1.2;
}

.footer-bottom a {
    color: #E8E8E8;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

/* Header Phone Number */
.header-phone {
    transition: var(--transition);
}

.header-phone:hover {
    color: var(--color-secondary) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === Responsive Design === */
/* Large tablets and below: Show hamburger menu earlier to prevent logo crushing */
@media (max-width: 1200px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop nav, transform to mobile overlay */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }

    .main-nav.mobile-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-light-gray);
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        white-space: normal;
    }

    .main-nav .btn-donate {
        margin: 1rem 1.5rem;
        display: block;
        text-align: center;
        border-radius: var(--border-radius);
    }

    .site-header .container {
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .site-logo img {
        height: auto !important;
        max-height: 70px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
    }
}

/* Mobile phones and small tablets */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-logo img {
        height: 60px !important;
        width: auto !important;
        object-fit: contain;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        min-height: 400px;
    }

    .content-section,
    .content-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

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

    .container {
        padding: 0 1rem;
    }

    /* Make phone number smaller on mobile */
    .header-phone {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Policy grid responsive */
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .site-header .container {
        padding: 0.5rem 0.75rem;
    }

    .site-logo img {
        height: 50px !important;
        width: auto !important;
        object-fit: contain;
    }

    /* On very small screens, show phone more compactly */
    .header-phone {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .hero {
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* === Accessibility === */
.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;
}

:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* === Print Styles === */
@media print {
    .site-header,
    .site-footer,
    .btn {
        display: none;
    }
}

/* ===================================== */
/* AppWT LLC Accessibility Tool Styles */
/* ===================================== */

:root {
    --ada-primary: #2B3E6B;
    --ada-success: #28a745;
    --ada-danger: #dc3545;
    --ada-light: #f8f9fa;
}

/* Accessibility Toggle Button (Bottom Left) */
.ada-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px 30px 30px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
    color: white;
}

.ada-toggle-btn:hover {
    background: linear-gradient(135deg, #C1242A 0%, #1A2847 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Back to Top Button (Bottom Right) */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C1242A 0%, #3C3B6E 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #C1242A 0%, #1A2847 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ADA Panel */
.developed-by-appwt-llc-ada-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.developed-by-appwt-llc-ada-panel.show {
    left: 0;
}

.developed-by-appwt-llc-ada-header {
    background: var(--ada-primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.developed-by-appwt-llc-ada-header h3 {
    color: #FFFFFF !important;
}

.developed-by-appwt-llc-ada-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.developed-by-appwt-llc-ada-tabs {
    display: flex;
    background: #f0f0f0;
    flex-shrink: 0;
}

.developed-by-appwt-llc-ada-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-tab.active {
    background: white;
    border-bottom: 3px solid var(--ada-primary);
}

.developed-by-appwt-llc-ada-content {
    flex: 1;
    overflow-y: auto;
}

.developed-by-appwt-llc-ada-tab-content {
    display: none;
    padding: 20px;
}

.developed-by-appwt-llc-ada-tab-content.active {
    display: block;
}

.developed-by-appwt-llc-ada-section-header {
    font-weight: 700;
    font-size: 14px;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.developed-by-appwt-llc-ada-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.developed-by-appwt-llc-ada-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.developed-by-appwt-llc-ada-option-btn:hover {
    background: #e9ecef;
    border-color: var(--ada-primary);
}

.developed-by-appwt-llc-ada-toggle,
.developed-by-appwt-llc-ada-profile-indicator {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.developed-by-appwt-llc-ada-toggle::after,
.developed-by-appwt-llc-ada-profile-indicator::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.developed-by-appwt-llc-ada-toggle.active,
.developed-by-appwt-llc-ada-profile-indicator.active {
    background: var(--ada-success);
}

.developed-by-appwt-llc-ada-toggle.active::after,
.developed-by-appwt-llc-ada-profile-indicator.active::after {
    left: 22px;
}

.developed-by-appwt-llc-ada-slider-group {
    margin-bottom: 20px;
}

.developed-by-appwt-llc-ada-slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.developed-by-appwt-llc-ada-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.developed-by-appwt-llc-ada-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ada-primary);
    cursor: pointer;
}

.developed-by-appwt-llc-ada-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ada-primary);
    cursor: pointer;
    border: none;
}

.developed-by-appwt-llc-ada-color-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.developed-by-appwt-llc-ada-color-option {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.developed-by-appwt-llc-ada-color-option:hover {
    border-color: var(--ada-primary);
    transform: scale(1.1);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--color-secondary);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9997;
    transition: bottom 0.4s ease;
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-content {
    text-align: center;
}

.cookie-consent-content p {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cookie-consent-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Reading Guide */
.ada-reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 215, 0, 0.8);
    pointer-events: none;
    z-index: 9996;
}

/* Reading Mask */
.ada-reading-mask-top,
.ada-reading-mask-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    pointer-events: none;
    z-index: 9996;
}

.ada-reading-mask-top {
    top: 0;
}

.ada-reading-mask-bottom {
    bottom: 0;
    height: calc(100vh - 80px);
}

/* ADA Feature Classes */
body.ada-dark-mode {
    background: #1a1a1a !important;
    color: #f0f0f0 !important;
}

body.ada-dark-mode .site-header,
body.ada-dark-mode .site-footer {
    background: #0a0a0a !important;
}

body.ada-high-contrast {
    filter: contrast(2);
}

body.ada-monochrome {
    filter: grayscale(100%);
}

body.ada-stop-animations * {
    animation: none !important;
    transition: none !important;
}

body.ada-highlight-titles h1,
body.ada-highlight-titles h2,
body.ada-highlight-titles h3,
body.ada-highlight-titles h4,
body.ada-highlight-titles h5,
body.ada-highlight-titles h6 {
    background: yellow !important;
    color: black !important;
    padding: 5px !important;
}

body.ada-highlight-links a {
    background: yellow !important;
    color: black !important;
    padding: 2px 4px !important;
    text-decoration: underline !important;
}

body.ada-hide-images img,
body.ada-hide-images picture {
    display: none !important;
}

body.ada-big-cursor,
body.ada-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="black" stroke="white" stroke-width="2" d="M2 2 L2 28 L12 22 L18 30 L22 28 L16 20 L28 18 Z"/></svg>') 0 0, auto !important;
}

body.ada-big-white-cursor,
body.ada-big-white-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="white" stroke="black" stroke-width="2" d="M2 2 L2 28 L12 22 L18 30 L22 28 L16 20 L28 18 Z"/></svg>') 0 0, auto !important;
}

/* Responsive ADA Panel */
@media (max-width: 480px) {
    .developed-by-appwt-llc-ada-panel {
        width: 100%;
        left: -100%;
    }

    .cookie-consent-banner {
        width: 95%;
    }

    .ada-toggle-btn {
        width: 50px;
        height: 60px;
        bottom: 15px;
        left: 15px;
    }

    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}
