/* ==/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #3D403A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY STYLES ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3D403A;
    color: #FFFFFF;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-content {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 2rem;
        border-radius: 8px;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .carousel-slide {
        transition: none !important;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    color: #3D403A;
    font-weight: 500;
}

.header .logo h1 {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif !important;
    font-size: 2.5rem;
    color: #5A6349;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.header .logo h1 a {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif !important;
    color: #5A6349;
    text-decoration: none;
    font-weight: 500;
}

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 246, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(90, 99, 73, 0.1);
    min-height: 80px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background-color: rgba(248, 246, 242, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(90, 99, 73, 0.15);
    min-height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #3D403A;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #5A6349;
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5A6349;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* ---- BUTTONS ---- */
.cta-button,
.hero-cta,
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5A6349;
    color: #F8F6F2;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #5A6349;
    box-shadow: 0 4px 15px rgba(90, 99, 73, 0.2);
    cursor: pointer;
}

.cta-button:hover,
.cta-button:focus,
.hero-cta:hover,
.hero-cta:focus,
.contact-button:hover,
.contact-button:focus {
    background: #F8F6F2;
    color: #5A6349;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(90, 99, 73, 0.25);
    outline: none;
}

.hero-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ---- MOBILE MENU ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #5A6349;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 2px;
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 246, 242, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #3D403A;
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: #5A6349;
}

.mobile-cta {
    background: #5A6349;
    color: #F8F6F2 !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    margin-top: 2rem;
    font-size: 1.2rem !important;
}

/* ---- HERO SECTION ---- */
.hero {
    padding: 120px 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(90, 99, 73, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: contentFadeIn 1.5s 0.5s ease forwards;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #3D403A;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5A6349;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: contentFadeIn 1.5s 1.5s ease forwards;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #3D403A;
    border-radius: 60px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    width: 6px;
    height: 6px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3D403A;
    border-radius: 50%;
    opacity: 1;
    animation: wheel 2s infinite;
}

@keyframes wheel {
    to {
        opacity: 0;
        top: 30px;
    }
}

/* ---- SECTIONS ---- */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

#hero {
    opacity: 1;
    transform: translateY(0);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #5A6349;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #3D403A;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- ABOUT SECTION ---- */
#sobre {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(90, 99, 73, 0.15);
    object-fit: cover;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.about-text strong {
    color: #5A6349;
    font-weight: 600;
}

/* ---- SERVICES SECTION ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(90, 99, 73, 0.1);
    box-shadow: 0 10px 30px rgba(90, 99, 73, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(90, 99, 73, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: #F8F6F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(90, 99, 73, 0.1);
}

.service-icon i {
    font-size: 2rem;
    color: #5A6349;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #5A6349;
}

.service-card p {
    color: #3D403A;
    line-height: 1.6;
}

/* ---- HEALTH PLANS SECTION ---- */
.health-plans {
    background: #fff;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.plan-logo-standard {
    border: 1px solid rgba(90, 99, 73, 0.2);
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.plan-logo-standard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(90, 99, 73, 0.1);
}

.plan-logo-standard svg {
    height: auto;
    max-height: 40px;
    width: 90%;
    fill: #3D403A;
}

/* ---- CONTACT SECTION ---- */
#contato {
    background-color: #fff;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #F8F6F2;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(90, 99, 73, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(90, 99, 73, 0.1);
}

.contact-icon i {
    font-size: 1.5rem;
    color: #5A6349;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #5A6349;
}

.contact-info a,
.contact-info p {
    color: #3D403A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.contact-info a:focus {
    color: #5A6349;
    outline: none;
}

/* ---- FOOTER ---- */
.footer {
    background: #3D403A;
    color: #F8F6F2;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer strong {
    color: #F8F6F2;
    font-weight: 600;
}

/* ---- RESPONSIVE DESIGN ---- */
/* Large Laptops and Desktops (1200px+) */
@media (min-width: 1200px) {
    .hero {
        padding: 100px 0 0;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-content {
        padding: 3rem 4rem;
        max-width: 850px;
    }
}

/* Standard Laptops (1024px-1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero {
        padding: 140px 0 0;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 3.8rem;
        line-height: 1.1;
    }
    
    .hero-content {
        padding: 2.5rem 3rem;
        max-width: 750px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .header {
        min-height: 90px;
        padding: 1.2rem 0;
    }
    
    .header.scrolled {
        min-height: 80px;
        padding: 1rem 0;
    }
}

/* Tablets and Small Laptops (768px-1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .hero {
        padding: 120px 0 0;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-content {
        padding: 2rem 3rem;
        margin: 0 2rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header .logo h1 {
        font-size: 2rem;
        font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif !important;
    }
    
    .hero-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-logo-standard {
        padding: 1rem;
        height: 70px;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* ---- 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 better accessibility */
*:focus-visible {
    outline: 2px solid #5A6349;
    outline-offset: 2px;
}

/* Enhanced focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #5A6349;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Improved contrast for buttons */
.cta-button:focus-visible,
.hero-cta:focus-visible,
.contact-button:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #5A6349;
}

/* Enhanced heading hierarchy */
.service-card header h3,
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3D403A;
    font-weight: 600;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000;
        --bg-color: #fff;
        --accent-color: #006600;
    }
    
    .hero-content {
        background-color: rgba(255, 255, 255, 0.98);
        border: 2px solid #000;
    }
    
    .service-card {
        border: 2px solid #000;
    }
}
