/* ============================================
   VISIT ATCHISON - MODERN DESIGN SYSTEM
   Fresh, Clean, WOW Factor
   ============================================ */

/* NOTE: Base styles (styles.css), modern-sections.css, and modern-components.css
   are now loaded directly in HTML files to prevent CSS import cascading issues
   and improve load performance. Do not use @import for CSS files. */

/* ============================================
   MODERN HEADER SYSTEM
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.main-nav {
    position: relative;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.site-logo {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .site-logo {
    height: 60px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-dark-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    opacity: 0;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.nav-item {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-dark-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-item:hover {
    color: var(--primary-teal);
    background: rgba(39, 175, 165, 0.1);
}

/* HIGHLIGHTED NAV ITEMS - THE WOW FACTOR */
.nav-highlights {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    border-left: 2px solid rgba(39, 175, 165, 0.2);
    border-right: 2px solid rgba(39, 175, 165, 0.2);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.highlight-icon {
    font-size: 1.3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Events Highlight - Party Vibe */
.events-highlight {
    background: linear-gradient(135deg, #e9ca5e 0%, #d1aa66 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(233, 202, 94, 0.4);
}

.events-highlight:hover {
    background: linear-gradient(135deg, #d1aa66 0%, #e9ca5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 202, 94, 0.6);
}

.highlight-badge {
    background: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Haunted Highlight - Spooky Vibe */
.haunted-highlight {
    background: linear-gradient(135deg, #334f5d 0%, #102a43 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 79, 93, 0.4);
    position: relative;
}

.haunted-highlight:hover {
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(51, 79, 93, 0.6);
}

.pulse-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Amelia Highlight - Aviation Vibe */
.amelia-highlight {
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 175, 165, 0.4);
}

.amelia-highlight:hover {
    background: linear-gradient(135deg, #2aebce 0%, #27afa5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(39, 175, 165, 0.6);
}

.amelia-highlight .highlight-icon {
    animation: plane-fly 5s ease-in-out infinite;
}

@keyframes plane-fly {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(3px) translateY(-3px) rotate(5deg);
    }
    75% {
        transform: translateX(-3px) translateY(-2px) rotate(-5deg);
    }
}

/* Hide mobile menu elements on desktop */
.mobile-menu-close {
    display: none;
}

.mobile-menu-header {
    display: none;
}

.mobile-home-link {
    display: none;
}

.mobile-menu-contact {
    display: none;
}

/* Map Highlight - Location Ping */
.map-highlight {
    background: linear-gradient(135deg, #c41d15 0%, #c2514b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 29, 21, 0.4);
    position: relative;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
}

.map-highlight:hover {
    background: linear-gradient(135deg, #c2514b 0%, #c41d15 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 29, 21, 0.6);
}

.map-ping {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
}

.map-ping::before,
.map-ping::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    border-radius: 50%;
    animation: ping 2s ease-out infinite;
}

.map-ping::after {
    animation-delay: 1s;
}

@keyframes ping {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Search Bar */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(51, 79, 93, 0.05);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    background: rgba(51, 79, 93, 0.1);
    box-shadow: 0 0 0 3px rgba(39, 175, 165, 0.2);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-dark-blue);
    width: 150px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Search Results Dropdown */
.nav-search {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: fadeInDown 0.3s ease;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(39, 175, 165, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark-blue);
    margin-bottom: 0.25rem;
}

.result-title mark {
    background: rgba(233, 202, 94, 0.3);
    color: inherit;
    padding: 0 0.2em;
    border-radius: 3px;
}

.result-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.result-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.result-type,
.result-category {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: rgba(39, 175, 165, 0.1);
    color: var(--primary-teal);
    font-weight: 600;
}

.result-category {
    background: rgba(233, 202, 94, 0.2);
    color: var(--primary-gold);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.search-no-results p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark-blue);
}

.search-no-results small {
    font-size: 0.85rem;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    width: 0;
    transition: width 0.1s ease;
}

/* ============================================
   MODERN FOOTER SYSTEM
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    color: white;
    padding: 4rem 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-teal) 50%, transparent 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 0 calc(2rem - 50px);
}

/* Footer Main Row: Brand + Links */
.footer-main-row {
    padding: 0 0 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Footer Secondary Row: Connect & Hours - Full Bleed */
.footer-secondary {
    padding: 0 0 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-brand-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo {
    max-height: 120px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-tagline {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    color: var(--secondary-bright-teal);
    margin: 0;
    line-height: 1.2;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--primary-teal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 175, 165, 0.4);
}

.facebook-icon:hover { background: #1877f2; }
.instagram-icon:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.twitter-icon:hover { background: #000; }
.tiktok-icon:hover { background: #000; }
.linkedin-icon:hover { background: #0077b5; }
.snapchat-icon:hover { background: #fffc00; color: #000; }
.youtube-icon:hover { background: #ff0000; }

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-bright-teal);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-bright-teal);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--secondary-bright-teal);
    transform: translateX(3px);
}

/* Email Copied Feedback */
.email-link.email-copied {
    color: #4ade80 !important;
    font-weight: 500;
}

/* Hours Display - Admin Connected */
.hours-display {
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.1) 0%, rgba(42, 235, 206, 0.05) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(39, 175, 165, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hours-status-wrapper {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.hours-today-section {
    flex: 0 0 auto;
}

.hours-regular-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.status-dot.closed {
    background: var(--primary-red);
    box-shadow: 0 0 10px rgba(196, 29, 21, 0.5);
    animation: none;
}

.status-text {
    font-size: 0.85rem;
    color: #4ade80;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-text.closed {
    color: #ffffff;
    background: linear-gradient(135deg, #c41d15 0%, #ff4444 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(196, 29, 21, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hours-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.hours-time {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.4;
}

.hours-label {
    font-size: 0.75rem;
    color: var(--secondary-bright-teal);
    margin: 0 0 0.35rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hours-schedule {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
}

.hours-status {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.hours-today.closed .hours-status {
    color: var(--primary-red);
}

/* Today Hours - Currently Closed styling with teal outline */
.today-hours strong {
    color: var(--primary-red);
    -webkit-text-stroke: 3px var(--secondary-bright-teal);
    font-weight: 900;
    font-size: 1.3rem;
    text-shadow: 
        0 0 5px var(--secondary-bright-teal),
        0 0 10px var(--secondary-bright-teal),
        2px 2px 0 var(--secondary-bright-teal),
        -2px -2px 0 var(--secondary-bright-teal),
        2px -2px 0 var(--secondary-bright-teal),
        -2px 2px 0 var(--secondary-bright-teal);
}

.hours-reason {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0 0 0;
}

/* Week Hours Toggle */
.hours-week-toggle {
    margin-top: 0.75rem;
}

.hours-week-toggle summary {
    font-size: 0.85rem;
    color: var(--secondary-bright-teal);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-week-toggle summary::-webkit-details-marker {
    display: none;
}

.hours-week-toggle summary::before {
    content: '▶';
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.hours-week-toggle[open] summary::before {
    transform: rotate(90deg);
}

.hours-week {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.hours-day.today {
    color: var(--secondary-bright-teal);
    font-weight: 700;
}

.day-label {
    color: rgba(255, 255, 255, 0.9);
}

.day-hours {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Newsletter Signup */
.footer-newsletter {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(42, 235, 206, 0.03) 0%, rgba(39, 175, 165, 0.05) 100%);
    border-top: 1px solid rgba(42, 235, 206, 0.1);
    border-bottom: 1px solid rgba(42, 235, 206, 0.1);
}

.footer-newsletter .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.newsletter-wrapper {
    max-width: 600px;
    text-align: center;
    flex-shrink: 0;
}

/* Footer Flipbook */
.footer-flipbook {
    text-align: center;
    flex-shrink: 0;
}

.footer-flipbook iframe {
    display: block;
    margin: 0 auto;
}

.flipbook-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary-bright-teal);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-header {
    margin-bottom: 1.5rem;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-bright-teal);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-fields {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(39, 175, 165, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--primary-dark-blue);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(51, 79, 93, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary-bright-teal);
    box-shadow: 0 0 0 3px rgba(42, 235, 206, 0.1);
    background: white;
}

.newsletter-submit {
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 235, 206, 0.4);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.newsletter-message.error {
    display: block;
    background: rgba(196, 29, 21, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(196, 29, 21, 0.3);
}

/* Newsletter Success State */
.newsletter-success-container {
    text-align: center;
    padding: 2rem 1.5rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.newsletter-success-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--secondary-bright-teal);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-success-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 30px;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .newsletter-fields {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
    
    .newsletter-success-container {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-success-icon {
        font-size: 2.5rem;
    }
    
    .newsletter-success-title {
        font-size: 1.4rem;
    }
    
    .newsletter-success-text {
        font-size: 0.9rem;
    }
}

/* Footer Bottom - Copyright Row */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-content a:hover {
    color: var(--secondary-bright-teal);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Design Credit Row */
.footer-credit {
    text-align: center;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-credit p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--secondary-bright-teal);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(39, 175, 165, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(39, 175, 165, 0.6);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .nav-highlights {
        gap: 0.5rem;
    }
    
    .highlight-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-social-wrapper {
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Universal tablet/mobile breakpoint - 1024px is the industry standard 
   for switching to mobile navigation on sites with multiple nav items.
   This ensures proper display on iPad landscape and similar tablet sizes. */
@media (max-width: 1024px) {
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 10001;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        background: var(--primary-dark-blue);
    }
    
    .site-header.scrolled .mobile-menu-toggle span {
        background: white;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important; /* Override any conflicting left property */
        width: 85% !important;
        max-width: 350px;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        background: linear-gradient(135deg, #102a43 0%, #1f4257 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 10000;
        transform: translateZ(0); /* Force GPU acceleration for smoother transitions */
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10002;
        line-height: 1;
        padding: 0;
    }
    
    .mobile-menu-header {
        padding: 0.25rem 1rem 0.25rem;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        display: block;
    }
    
    .mobile-menu-logo {
        height: 100px;
        width: auto;
        margin-bottom: 0.25rem;
    }
    
    .mobile-home-link {
        display: block !important;
        width: 100% !important;
        color: white !important;
        padding: 0.5rem 1rem !important;
        border: none !important;
        text-align: center !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: rgba(39, 175, 165, 0.15);
    }
    
    .mobile-home-link:hover {
        background: rgba(39, 175, 165, 0.25) !important;
    }
    
    .mobile-menu-contact {
        margin-top: 0;
        padding: 0.75rem 1rem 3rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    
    .mobile-contact-link {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 1.05rem;
        padding: 0.25rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .mobile-contact-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-bright-teal);
    }
    
    .mobile-contact-link .contact-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        flex-shrink: 0;
        flex-grow: 0;
        flex: none;
    }
    
    .nav-item {
        color: white !important;
        width: 100%;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
        text-align: left;
    }
    
    .nav-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-highlights {
        flex-direction: column;
        width: 100%;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(39, 175, 165, 0.1);
        flex-shrink: 0;
    }
    
    .highlight-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 1.25rem;
        gap: 0.75rem;
    }
    
    .highlight-icon {
        font-size: 1.25rem;
    }
    
    .highlight-text {
        font-size: 1rem;
        color: white;
    }
    
    .highlight-badge,
    .pulse-dot,
    .map-ping {
        display: none;
    }
    
    .nav-search {
        display: none !important;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        padding: 0 1.25rem;
    }
    
    .footer-main-row {
        padding: 2rem 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-main-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 0;
    }
    
    .footer-brand-wrapper {
        grid-column: 1 / -1;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Explore Atchison - left column, row 2 */
    .footer-column:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 1rem;
    }
    
    /* Top Experiences - right column, row 2 */
    .footer-column:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        padding-left: 1rem;
    }
    
    /* Visit Us - full width, row 3, centered */
    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-left: 0;
        text-align: center;
    }
    
    .footer-column:nth-child(4) .contact-info {
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-column:nth-child(4) .contact-item {
        justify-content: center;
    }
    
    .footer-brand-text {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        max-height: 70px;
    }
    
    .footer-tagline {
        font-size: 1.15rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .footer-column {
        padding: 1rem 0.5rem;
        border-top: none;
        text-align: center;
    }
    
    .footer-column:first-of-type {
        border-top: none;
    }
    
    /* Center content in footer columns */
    .footer-column .footer-links {
        align-items: center;
    }
    
    .footer-column .footer-title {
        text-align: center;
    }
    
    /* Visit Us - add spacing from previous section */
    .footer-column:nth-child(4) {
        padding-top: 1.5rem;
        margin-top: 0.5rem;
    }
    
    /* Remove border before Connect section (social links) */
    .footer-social {
        border-top: none !important;
        padding-top: 1rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        letter-spacing: 0.05em;
    }
    
    .footer-links {
        gap: 0.15rem;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding-left: 0 !important;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0 !important;
    }
    
    .contact-info {
        gap: 0.6rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    
    .contact-icon {
        font-size: 1.1rem;
    }
    
    .footer-secondary {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .footer-secondary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-social-wrapper,
    .footer-hours-wrapper {
        padding: 1.25rem 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .hours-display {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .footer-newsletter {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }
    
    .footer-newsletter .footer-content {
        padding: 0 0.75rem;
    }
    
    .newsletter-wrapper {
        padding: 1.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        max-width: 100% !important;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .newsletter-header {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .newsletter-fields {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .newsletter-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    .newsletter-submit {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-flipbook {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(42, 235, 206, 0.1);
    }
    
    .footer-flipbook iframe {
        max-width: 100% !important;
        height: 250px !important;
    }
    
    .flipbook-title {
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 1.25rem 1rem;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .footer-bottom-content a {
        display: inline;
    }
    
    .copyright {
        width: 100%;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    /* Privacy, Accessibility, Login on same line */
    .separator {
        display: inline;
        font-size: 0.7rem;
    }
    
    .footer-credit {
        padding: 0.75rem 0 1.25rem;
        font-size: 0.75rem;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-top {
        gap: 2rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-column {
        padding: 0 1rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
}

/* ============================================
   ACCESSIBILITY WIDGET
   ============================================ */

/* Accessibility Toggle Button - Left side mirror of back-to-top */
.accessibility-toggle-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
}

.accessibility-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
}

.accessibility-toggle-btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.accessibility-toggle-btn svg {
    width: 26px;
    height: 26px;
}

.accessibility-toggle-btn.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    bottom: 5.5rem;
    left: 2rem;
    width: 320px;
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.accessibility-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.accessibility-panel-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accessibility-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.accessibility-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.accessibility-panel-content {
    padding: 1rem;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

/* Accessibility Option Rows */
.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.accessibility-option:last-of-type {
    border-bottom: none;
}

.accessibility-option label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* Toggle Switch */
.accessibility-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    display: inline-block;
}

.accessibility-toggle input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.accessibility-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
    z-index: 1;
}

.accessibility-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.accessibility-toggle input:checked + .slider {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.accessibility-toggle input:checked + .slider:before {
    transform: translateX(22px);
}

.accessibility-toggle input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Button Groups */
.accessibility-slider-group {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 8px;
}

.accessibility-slider-group button {
    padding: 0.4rem 0.6rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    min-width: 36px;
}

.accessibility-slider-group button:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.accessibility-slider-group button.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Text Size Buttons */
.text-size-btn[data-size="small"] { font-size: 0.7rem; }
.text-size-btn[data-size="normal"] { font-size: 0.85rem; }
.text-size-btn[data-size="large"] { font-size: 1rem; }
.text-size-btn[data-size="xlarge"] { font-size: 1.15rem; }

/* Reset Button */
.accessibility-reset {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessibility-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Accessibility Statement Link */
.accessibility-statement-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
    color: #2563eb;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.accessibility-statement-link:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* Accessibility Applied Styles */
/* Using targeted selectors to avoid breaking fixed-position elements */

/* High Contrast - increases contrast on text and images */
body.a11y-high-contrast {
    --a11y-text-color: #000;
    --a11y-bg-color: #fff;
}

body.a11y-high-contrast p,
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6,
body.a11y-high-contrast span,
body.a11y-high-contrast li,
body.a11y-high-contrast a,
body.a11y-high-contrast label {
    color: var(--a11y-text-color) !important;
    text-shadow: none !important;
}

body.a11y-high-contrast .hero-modern,
body.a11y-high-contrast .section,
body.a11y-high-contrast main,
body.a11y-high-contrast article {
    filter: contrast(1.3);
}

/* Invert Colors (Dark Mode) - targets main content only, not floating elements */
body.a11y-dark-mode {
    background: #1a1a1a !important;
}

body.a11y-dark-mode .site-header,
body.a11y-dark-mode main,
body.a11y-dark-mode .hero-modern,
body.a11y-dark-mode .site-footer,
body.a11y-dark-mode .section,
body.a11y-dark-mode article {
    filter: invert(1) hue-rotate(180deg);
}

/* Re-invert images so they display correctly */
body.a11y-dark-mode .site-header img,
body.a11y-dark-mode main img,
body.a11y-dark-mode .hero-modern img,
body.a11y-dark-mode .site-footer img,
body.a11y-dark-mode article img,
body.a11y-dark-mode video,
body.a11y-dark-mode iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* Ensure floating elements are NOT affected by accessibility filters */
.accessibility-toggle-btn,
.accessibility-panel,
.back-to-top,
.cookie-consent-banner {
    filter: none !important;
    transform: translateZ(0); /* Force new stacking context */
}

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Arial', sans-serif !important;
    letter-spacing: 0.05em;
}

body.a11y-highlight-links a {
    outline: 3px solid #ffcc00 !important;
    outline-offset: 2px;
    background: rgba(255, 204, 0, 0.2) !important;
}

body.a11y-big-cursor,
body.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' d='M7 2l12 11.5-5.5 1 3.5 6.5-2 1-3.5-6.5-4.5 3.5z'/%3E%3C/svg%3E") 0 0, auto !important;
}

body.a11y-text-small { font-size: 85% !important; }
body.a11y-text-normal { font-size: 100% !important; }
body.a11y-text-large { font-size: 115% !important; }
body.a11y-text-xlarge { font-size: 130% !important; }

body.a11y-line-normal { line-height: 1.5 !important; }
body.a11y-line-medium { line-height: 1.8 !important; }
body.a11y-line-large { line-height: 2.2 !important; }

body.a11y-letter-normal { letter-spacing: normal !important; }
body.a11y-letter-wide { letter-spacing: 0.1em !important; }
body.a11y-letter-wider { letter-spacing: 0.2em !important; }

body.a11y-align-left * { text-align: left !important; }
body.a11y-align-center * { text-align: center !important; }
body.a11y-align-justify * { text-align: justify !important; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-toggle-btn {
        bottom: 1.5rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .accessibility-toggle-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .accessibility-panel {
        left: 1rem;
        right: 1rem;
        width: auto;
        bottom: 5rem;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .accessibility-toggle-btn {
        bottom: 1rem;
        left: 0.75rem;
        width: 42px;
        height: 42px;
    }
    
    .accessibility-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 4rem;
    }
    
    .accessibility-option {
        padding: 0.6rem 0;
    }
    
    .accessibility-option label {
        font-size: 0.85rem;
    }
}
/* ============================================
   ANDROID/MOBILE VIEWPORT FIX
   Prevents zoom-out on page load
   ============================================ */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Ensure all containers respect viewport width */
/* NOTE: .site-header is excluded from overflow-x:hidden to prevent z-index stacking issues on mobile */
.main-nav,
.nav-wrapper,
.site-footer,
section,
.container,
.content-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Force header to always be on top - fixes mobile z-index issues */
.site-header {
    z-index: 9999 !important;
}

/* Fix for elements that might cause horizontal scroll */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}