/* Estilos personalizados para a Clínica Saúde */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Header sticky effect */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero section animation */
.hero-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button animations */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Form styles */
.form-input:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

/* Enhanced mobile menu styles */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
    border-top: 3px solid #2563eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu items */
#mobile-menu a, #mobile-menu button {
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

#mobile-menu a:active, #mobile-menu button:active {
    transform: scale(0.98);
}

/* Mobile especialidades dropdown */
#mobile-especialidades-dropdown {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile especialidades arrow rotation */
#mobile-especialidades-arrow {
    transition: transform 0.2s ease;
}

/* Mobile CTA buttons styling */
#mobile-menu .bg-gradient-to-r {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

#mobile-menu .bg-green-600 {
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 40;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    #mobile-menu a, 
    #mobile-menu button {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
    }
    
    #mobile-especialidades-dropdown a {
        min-height: 44px;
        padding: 10px 16px;
    }
}

/* ========================================== */
/* SPECIALTY CAROUSEL STYLES */
/* ========================================== */

/* SPECIALTY CAROUSEL - FIXED HEIGHT AND PROPER SPACING */
#specialty-carousel .w-80 {
    height: 500px; /* Altura fixa para todos os cards */
    display: flex;
    flex-direction: column;
}

#specialty-carousel .w-80 .bg-white {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#specialty-carousel .w-80 .p-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem; /* Padding reduzido no topo */
    height: 100%;
}

/* SPECIALTY CARDS - COMPREHENSIVE SPACING OVERRIDE */
#specialty-carousel .w-80 .p-6 {
    padding: 0.75rem 1.5rem 1rem 1.5rem !important; /* Top reduzido drasticamente */
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

/* Icon with increased spacing */
#specialty-carousel .w-80 .w-16.h-16 {
    margin-bottom: 1.75rem !important; /* Espaço generoso entre ícone e título */
    margin-top: 0.5rem !important; /* Pequeno espaço do topo */
}

/* Title spacing */
#specialty-carousel .w-80 h3 {
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

/* Description spacing */
#specialty-carousel .w-80 p {
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* List takes available space */
#specialty-carousel .w-80 ul {
    margin-bottom: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Button container at bottom */
#specialty-carousel .w-80 .flex.justify-center {
    margin-top: auto !important;
    padding-top: 1rem !important;
    flex-shrink: 0 !important;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;     /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;             /* Safari and Chrome */
}

/* Smooth scrolling for carousel */
#specialty-carousel {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

/* Scroll snap for cards */
#specialty-carousel .w-80 {
    scroll-snap-align: start;
}

/* Navigation arrows */
#specialty-prev,
#specialty-next {
    opacity: 0.8;
    transition: all 0.3s ease;
}

#specialty-prev:hover,
#specialty-next:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-50%);
}

#specialty-prev:active,
#specialty-next:active {
    transform: scale(0.95) translateY(-50%);
}

/* Mobile responsiveness for specialty carousel */
@media (max-width: 640px) {
    #specialty-prev,
    #specialty-next {
        display: none;
    }
    
    /* Specialty cards mobile optimization */
    #specialty-carousel .w-80 {
        width: 280px !important;
        height: 480px; /* Altura ajustada para mobile */
        margin: 0 0.5rem;
    }
    
    #specialty-carousel .w-80 .p-6 {
        padding: 0.875rem 1rem; /* Padding reduzido mas proporcional */
        gap: 0.625rem;
    }
    
    #specialty-carousel .w-80 h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    #specialty-carousel .w-80 .p-6 > p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    #specialty-carousel .w-80 ul {
        font-size: 0.8125rem;
    }
    
    #specialty-carousel .w-80 .inline-block {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet responsiveness for specialty carousel */
@media (max-width: 768px) {
    #specialty-carousel .w-80 {
        width: 300px;
        height: 490px; /* Altura ajustada para tablet */
    }
    
    #specialty-carousel .w-80 .p-6 {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
}

/* Scroll indicators */
.scroll-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

.scroll-indicator:hover {
    background-color: #6b7280;
}

/* Specialty cards animation on scroll */
#specialty-carousel .w-80 {
    transition: all 0.3s ease;
}

#specialty-carousel .w-80:hover {
    transform: translateY(-5px);
}

/* Touch interaction improvements */
#specialty-carousel {
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    overscroll-behavior-x: contain;    /* Prevent page scroll */
}

/* Gradient fade effects at edges */
#specialty-carousel::before,
#specialty-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

#specialty-carousel::before {
    left: 0;
    background: linear-gradient(to right, #f9fafb, transparent);
}

#specialty-carousel::after {
    right: 0;
    background: linear-gradient(to left, #f9fafb, transparent);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #specialty-carousel .w-80 {
        width: 280px; /* Slightly smaller on mobile */
    }
    
    #specialty-carousel .flex {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    #specialty-carousel .w-80 {
        width: 260px; /* Even smaller on very small screens */
    }
}

/* Loading state for carousel */
.carousel-loading {
    opacity: 0.5;
    pointer-events: none;
}

.carousel-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* ========================================== */
/* CONVENIOS CAROUSEL STYLES */
/* ========================================== */

/* Convenio carousel specific styles */
#convenio-carousel {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

#convenio-carousel .w-64 {
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

#convenio-carousel .w-64:hover {
    transform: translateY(-5px);
}

/* Convenio navigation arrows */
#convenio-prev,
#convenio-next {
    opacity: 0.8;
    transition: all 0.3s ease;
}

#convenio-prev:hover,
#convenio-next:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-50%);
}

/* Hide arrows on small screens */
@media (max-width: 640px) {
    #convenio-prev,
    #convenio-next {
        display: none;
    }
}

/* Convenio card gradients and badges */
.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.text-blue-800 {
    color: #1e40af;
}

/* Convenio status badges */
.convenio-credenciado {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.convenio-parceiro {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Convenio logo images */
#convenio-carousel img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

#convenio-carousel .w-64:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
}

/* Logo container styling */
#convenio-carousel .w-20.h-20 {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
}

/* Mobile optimizations for convenios */
@media (max-width: 768px) {
    #convenio-carousel .w-64 {
        width: 240px; /* Smaller on mobile */
        margin: 0 0.5rem;
    }
    
    #convenio-carousel .flex {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #convenio-carousel .w-20.h-20 {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 640px) {
    #convenio-carousel .w-64 {
        width: 220px; /* Even smaller on very small screens */
        margin: 0 0.25rem;
    }
    
    #convenio-carousel .w-20.h-20 {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* General mobile carousel improvements */
@media (max-width: 640px) {
    /* Better spacing and scroll for all carousels */
    #specialty-carousel .flex,
    #team-carousel .flex,
    #convenio-carousel .flex {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Better touch scrolling */
    #specialty-carousel,
    #team-carousel,
    #convenio-carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Snap scrolling for better mobile experience */
    #specialty-carousel .w-80,
    #team-carousel .w-72,
    #convenio-carousel .w-64 {
        scroll-snap-align: center;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 380px) {
    #specialty-carousel .w-80 {
        width: 260px !important;
        height: 460px; /* Altura reduzida para telas muito pequenas */
    }
    
    #team-carousel .w-72 {
        width: 260px !important;
        height: 560px;
    }
    
    #convenio-carousel .w-64 {
        width: 200px !important;
    }
    
    /* Reduce padding on very small screens */
    #specialty-carousel .w-80 .p-6,
    #team-carousel .p-6 {
        padding: 0.75rem;
    }
}

/* Section spacing improvements for mobile */
@media (max-width: 640px) {
    /* Section padding adjustments */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Carousel container improvements */
    .relative:has(#specialty-carousel),
    .relative:has(#team-carousel),
    .relative:has(#convenio-carousel) {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ========================================== */
/* TEAM CAROUSEL STYLES */
/* ========================================== */

/* Team carousel specific styles */
#team-carousel {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

#team-carousel .w-72 {
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

#team-carousel .w-72:hover {
    transform: translateY(-5px);
}

/* Team navigation arrows */
#team-prev,
#team-next {
    opacity: 0.8;
    transition: all 0.3s ease;
}

#team-prev:hover,
#team-next:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-50%);
}

/* Mobile responsiveness for team carousel */
@media (max-width: 640px) {
    #team-prev,
    #team-next {
        display: none;
    }
    
    /* Team cards mobile optimization */
    #team-carousel .w-72 {
        width: 280px !important;
        height: 580px;
        margin: 0 0.5rem;
    }
    
    #team-carousel .h-80 {
        height: 18rem; /* Altura da foto reduzida no mobile */
    }
    
    #team-carousel .p-6 {
        height: 260px;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    #team-carousel .team-header h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    #team-carousel .team-header .font-semibold {
        font-size: 0.9375rem;
    }
    
    #team-carousel .team-content .text-sm {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    
    #team-carousel button {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
    
    /* Specialty badges mobile */
    #team-carousel .absolute.top-4.left-4 {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Tablet responsiveness for team carousel */
@media (max-width: 768px) {
    #team-carousel .w-72 {
        width: 300px;
        height: 600px;
    }
    
    #team-carousel .p-6 {
        height: 280px;
        padding: 1.25rem;
        gap: 0.625rem;
    }
    
    #team-carousel .h-80 {
        height: 19rem;
    }
}

/* Team card photo areas - vertical format */
#team-carousel .h-80 {
    height: 20rem; /* 320px - vertical format */
    position: relative;
    overflow: hidden;
}

/* Team card specialty badges */
#team-carousel .absolute.top-4.left-4 {
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Team card button styles */
#team-carousel button {
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#team-carousel button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Team card icon animations */
#team-carousel .h-80 i {
    transition: all 0.3s ease;
}

#team-carousel .w-72:hover .h-80 i {
    transform: scale(1.1);
}

/* TEAM CAROUSEL - CSS GRID SOLUTION FOR PERFECT BUTTON ALIGNMENT */
#team-carousel .w-72 {
    height: 600px; /* Fixed total card height */
    display: flex;
    flex-direction: column;
}

#team-carousel .p-6 {
    display: grid;
    grid-template-rows: auto auto 1fr auto; /* header, spacing, content, button */
    grid-template-areas: 
        "header"
        "spacing" 
        "content"
        "button";
    height: 280px; /* Fixed height for content area */
    gap: 0.75rem;
}

/* Team card sections */
#team-carousel .team-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#team-carousel .team-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

#team-carousel .p-6 button {
    grid-area: button;
    align-self: end; /* Ensures button stays at bottom */
}

/* Typography spacing adjustments */
#team-carousel .p-6 h3 {
    line-height: 1.2;
    margin: 0;
}

#team-carousel .p-6 .font-semibold {
    margin: 0;
}

#team-carousel .p-6 .text-sm.text-gray-600 {
    margin: 0;
    line-height: 1.4;
}

#team-carousel .p-6 .text-sm.text-gray-500 {
    margin: 0;
}

/* Team card button - always at bottom */
#team-carousel .p-6 button {
    flex-shrink: 0;
    margin-top: auto;
}

/* Mobile optimizations for team */
@media (max-width: 768px) {
    #team-carousel .w-72 {
        width: 260px; /* Smaller on mobile */
    }
    
    #team-carousel .h-80 {
        height: 16rem; /* 256px on mobile */
    }
    
    #team-carousel .text-8xl {
        font-size: 4rem; /* Smaller icons on mobile */
    }
    
    #team-carousel .flex {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust content height for mobile */
    #team-carousel .p-6 {
        height: 260px; /* Slightly smaller on mobile */
    }
}

@media (max-width: 640px) {
    #team-carousel .w-72 {
        width: 240px; /* Even smaller on very small screens */
    }
    
    #team-carousel .h-80 {
        height: 14rem; /* 224px on small screens */
    }
    
    #team-carousel .text-8xl {
        font-size: 3.5rem; /* Even smaller icons */
    }
    
    /* Further adjust content height for small screens */
    #team-carousel .p-6 {
        height: 240px; /* Even smaller on very small screens */
    }
}

/* Team card gradient overlays */
#team-carousel .bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

/* Specialty color themes for team cards */
.team-psychology { background: linear-gradient(135deg, #ec4899, #db2777); }
.team-speech { background: linear-gradient(135deg, #10b981, #059669); }
.team-occupational { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.team-physiotherapy { background: linear-gradient(135deg, #f97316, #ea580c); }
.team-psychopedagogy { background: linear-gradient(135deg, #f59e0b, #d97706); }
.team-neuropsychology { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.team-nutrition { background: linear-gradient(135deg, #84cc16, #65a30d); }
.team-medicine { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* Specialty cards gradient backgrounds */
.specialty-fisio {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.specialty-fono {
    background: linear-gradient(135deg, #10b981, #059669);
}

.specialty-to {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.specialty-psico {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.specialty-neuro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Testimonials slider */
.testimonial-slide {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stats counter animation */
.counter {
    transition: all 0.3s ease;
}

/* Blog post hover effects */
.blog-post {
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-post:hover .blog-image {
    transform: scale(1.1);
}

.blog-image {
    transition: transform 0.3s ease;
}

/* Contact form success/error states */
.form-success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Icon animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: translateY(-5px);
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Team member card effects */
.team-member {
    position: relative;
    overflow: hidden;
}

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

.team-member:hover::before {
    left: 100%;
}

/* Convênios logos hover */
.convenio-logo {
    transition: all 0.3s ease;
    filter: grayscale(50%);
}

.convenio-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Unidades map integration styles */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    header, footer, #mobile-menu-button, .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-blue-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-300 {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support (future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}

/* Focus indicators for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Custom utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }