/* ===== CSS Variables ===== */
:root {
    /* Warm, earthy color palette - sage green and terracotta */
    --primary-color: #7d8c75;
    --primary-dark: #5c6b55;
    --primary-light: #a8b5a1;
    --secondary-color: #c9b99a;
    --accent-color: #d4a574;
    
    /* Neutral colors */
    --text-dark: #3d3d3d;
    --text-light: #5a5a5a;
    --text-muted: #8b8b8b;
    --white: #ffffff;
    --off-white: #faf8f5;
    --light-bg: #f5f2ed;
    --border-color: #e5e0d8;
    
    /* Typography */
    --font-family: 'Heebo', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xs) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 140px;
    width: auto;
    transition: all var(--transition-fast);
}

.navbar.scrolled .logo-img {
    height: 80px;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-xs);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(125, 140, 117, 0.88) 0%, rgba(92, 107, 85, 0.92) 100%),
        url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1920&q=80') center/cover no-repeat;
    text-align: center;
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: var(--spacing-xs);
}

/* ===== About Section ===== */
.about {
    background-color: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    width: 300px;
    height: 380px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-image svg {
    width: 80%;
    height: auto;
    opacity: 0.5;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-text h2 {
    margin-bottom: var(--spacing-xs);
}

.about-text h3 {
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.credentials {
    margin-top: var(--spacing-md);
}

.credentials li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.credentials .icon {
    font-size: 1.25rem;
}

/* ===== EMDR Section ===== */
.emdr {
    background-color: var(--white);
}

.emdr-content {
    display: grid;
    gap: var(--spacing-lg);
}

.emdr-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
}

.emdr-benefits h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.benefit-card {
    background-color: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Methods Grid ===== */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.method-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.method-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.method-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.method-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.method-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Process Section ===== */
.process {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}
}

.process .section-header h2 {
    color: var(--white);
}

.process .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.step {
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    text-align: center;
    padding: var(--spacing-sm);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.step p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.step-connector {
    display: none;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--off-white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.testimonial {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: 4rem;
    color: var(--secondary-color);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    padding-top: var(--spacing-md);
}

.testimonial-content p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.author-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.info-card {
    background-color: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.info-card a {
    color: var(--primary-color);
}

.info-card a:hover {
    text-decoration: underline;
}

.whatsapp-card {
    background-color: #25D366;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-link {
    display: block;
    text-decoration: none;
    color: white;
}

.whatsapp-card .info-icon {
    color: white;
}

.whatsapp-card h3 {
    color: white;
}

.whatsapp-card p {
    color: white;
    opacity: 0.9;
}

.contact-form {
    background-color: var(--off-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 111, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.form-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.form-buttons .btn {
    flex: 1;
    margin-top: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: white;
}

.btn-whatsapp svg {
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--text-dark);
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-frame {
        width: 250px;
        height: 320px;
    }
    
    .credentials li {
        justify-content: center;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1001;
    transition: top var(--transition-fast);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Accessibility Toolbar ===== */
.accessibility-toolbar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    color: var(--white);
    border: 3px solid var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.accessibility-icon {
    line-height: 1;
}

.accessibility-menu {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    min-width: 200px;
    display: none;
    border: 2px solid var(--primary-color);
}

.accessibility-menu.active {
    display: block;
}

.accessibility-menu h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

.accessibility-menu button,
.accessibility-menu a {
    display: block;
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: right;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.accessibility-menu button:hover,
.accessibility-menu button:focus,
.accessibility-menu a:hover,
.accessibility-menu a:focus {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    outline: none;
}

.accessibility-menu button:last-of-type {
    margin-bottom: var(--spacing-sm);
}

/* Accessibility Mode Classes */
body.high-contrast {
    --text-dark: #000000;
    --text-light: #000000;
    --primary-color: #000000;
    --light-bg: #ffffff;
    --off-white: #ffffff;
}

body.high-contrast * {
    border-color: #000000 !important;
}

body.high-contrast .hero {
    background: #000000;
}

body.high-contrast .navbar.scrolled {
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
}

body.links-highlight a {
    background-color: yellow !important;
    color: #000000 !important;
    text-decoration: underline !important;
    padding: 2px 4px;
}

body.readable-font,
body.readable-font * {
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.05em;
}

body.font-size-large {
    font-size: 18px !important;
}

body.font-size-large * {
    font-size: inherit;
}

body.font-size-large h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important; }
body.font-size-large h2 { font-size: clamp(2rem, 4.5vw, 2.8rem) !important; }
body.font-size-large h3 { font-size: 1.7rem !important; }
body.font-size-large h4 { font-size: 1.4rem !important; }
body.font-size-large p, body.font-size-large li { font-size: 1.15rem !important; }

body.font-size-larger {
    font-size: 20px !important;
}

body.font-size-larger h1 { font-size: clamp(2.4rem, 6vw, 4rem) !important; }
body.font-size-larger h2 { font-size: clamp(2.2rem, 5vw, 3rem) !important; }
body.font-size-larger h3 { font-size: 1.9rem !important; }
body.font-size-larger h4 { font-size: 1.6rem !important; }
body.font-size-larger p, body.font-size-larger li { font-size: 1.3rem !important; }

body.font-size-largest {
    font-size: 22px !important;
}

body.font-size-largest h1 { font-size: clamp(2.6rem, 6.5vw, 4.2rem) !important; }
body.font-size-largest h2 { font-size: clamp(2.4rem, 5.5vw, 3.2rem) !important; }
body.font-size-largest h3 { font-size: 2.1rem !important; }
body.font-size-largest h4 { font-size: 1.8rem !important; }
body.font-size-largest p, body.font-size-largest li { font-size: 1.45rem !important; }

@media (max-width: 768px) {
    .accessibility-toolbar {
        left: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .accessibility-menu {
        left: 0;
        bottom: 60px;
        top: auto;
        transform: none;
    }
}
