/* ========================================
   LEANNE'S CARE - STYLESHEET
   Compassionate Elderly Care in Morecambe
   ======================================== */

/* ========== CSS RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm, calming color palette */
    --primary-color: #6B9AC4;        /* Soft blue */
    --primary-dark: #4A7BA7;         /* Deeper blue */
    --secondary-color: #8FBC8F;      /* Sage green */
    --accent-color: #E8B4A0;         /* Warm peach */
    --warm-neutral: #F5F1E8;         /* Warm off-white */
    --text-dark: #2C3E50;            /* Dark blue-grey */
    --text-medium: #5A6C7D;          /* Medium grey-blue */
    --text-light: #7D8C9C;           /* Light grey */
    --white: #FFFFFF;
    --light-bg: #F9F7F4;             /* Very light warm grey */
    --border-color: #E0DDD6;         /* Soft border */
    
    /* Typography */
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Merriweather', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 20px;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 18px;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    font-family: var(--font-secondary);
    font-weight: 300;
}

.text-center {
    text-align: center;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* ========== HEADER ========== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
    font-style: italic;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: 
        linear-gradient(rgba(107, 154, 196, 0.85), rgba(143, 188, 143, 0.85)),
        url('images/hero-elderly-care.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 154, 196, 0.75) 0%, rgba(143, 188, 143, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-secondary);
    font-weight: 300;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.profile-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content {
    padding: 20px 0;
}

.intro-text {
    font-size: 1.3rem;
    font-family: var(--font-secondary);
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.highlight-item .icon {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.highlight-item span {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    margin: 0 auto;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ========== WHY CHOOSE SECTION ========== */
.why-choose-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
}

.why-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(107, 154, 196, 0.2);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(107, 154, 196, 0.1) 0%, rgba(143, 188, 143, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.benefit-icon svg {
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1) rotate(5deg);
}

.benefit-card:hover .benefit-icon svg {
    color: var(--white);
    transform: scale(1.05);
}

.benefit-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.benefit-card:hover h3 {
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.why-cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 20px 60px rgba(107, 154, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.why-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.why-cta-box h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.why-cta-box p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.why-cta-box .btn {
    background-color: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 18px 45px;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.why-cta-box .btn:hover {
    background-color: var(--warm-neutral);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.quote-icon {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.author-location {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: var(--white);
}

/* ========== SERVICE AREA SECTION ========== */
.service-area-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.service-area-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.service-area-icon svg {
    color: var(--white);
}

.service-area-text h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-area-text p {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.service-area-note {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* ========== PRICING SECTION ========== */
.pricing-section {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--warm-neutral) 0%, var(--white) 100%);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.pricing-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    min-height: 60px;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-link {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-link:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    padding: 25px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-color);
}

.pricing-note p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 3rem;
}

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 154, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info-icon {
    flex-shrink: 0;
}

.contact-info-icon svg {
    color: var(--primary-color);
}

.contact-info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-info-text p {
    margin: 0;
    color: var(--text-medium);
}

.contact-info-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-callout {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 10px;
}

.contact-callout p {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-callout p:last-child {
    margin-bottom: 0;
    opacity: 0.95;
}

/* ========== FOOTER ========== */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-section a {
    color: var(--accent-color);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets and smaller laptops */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-section {
        min-height: 500px;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    :root {
        --section-padding: 50px 0;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-area-content {
        padding: 0 20px;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .why-benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .benefit-card {
        padding: 35px 25px;
    }
    
    .benefit-icon {
        width: 80px;
        height: 80px;
    }
    
    .benefit-card h3 {
        font-size: 1.3rem;
    }
    
    .why-cta-box {
        padding: 40px 30px;
    }
    
    .why-cta-box h3 {
        font-size: 1.7rem;
    }
    
    .why-cta-box p {
        font-size: 1.1rem;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* High resolution displays */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .main-header,
    .hero-section,
    .contact-section,
    .main-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .service-card,
    .why-card,
    .testimonial-card {
        break-inside: avoid;
    }
}

/* Accessibility improvements */
@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 keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2563EB;
        --secondary-color: #059669;
        --text-dark: #000000;
    }
}

/* ========== ANIMATION CLASSES ========== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
