/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enhanced smooth scroll implementation - respects user preferences */
html {
    scroll-behavior: smooth;
    /* Better scroll performance */
    scroll-padding-top: 120px; /* Dynamic offset for fixed headers */
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-padding-top: 120px;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth scroll performance optimizations */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; /* Smaller offset for mobile */
    }
    
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-padding-top: 80px;
        }
    }
}

/* Active navigation link indicator */
.nav-links a.active {
    color: #3c8f76 !important;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3c8f76;
    border-radius: 1px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Disable animations for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    .nav-links a.active::after {
        animation: none;
    }
    
    /* Disable parallax for users who prefer reduced motion */
    .hero::before {
        transform: translate3d(0, 0, 0) !important;
        will-change: auto !important;
    }
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
    color: #333333;
}

/* Hero section styles with parallax effect */
.hero {
    height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Parallax background layer */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: var(--mobile-bg-position, center center);
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
    transform: translate3d(0, var(--parallax-offset, 0px), 0);
}

/* Gradient overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
    z-index: -1;
}

/* Navigation styles */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    /* Ensure navigation stays above parallax */
    z-index: 10001;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1000;
}

.logo-svg {
    width: 150px;
    fill: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    /* Garante que todos os elementos SVG sejam renderizados */
    shape-rendering: geometricPrecision;
    text-rendering: optimizeLegibility;
}

.logo-svg:hover {
    fill: #f0f0f0;
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Responsive logo sizing with fluid typography */
@media (max-width: 1024px) {
    .logo-svg {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .logo-svg {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        width: 130px;
    }
}

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

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

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    opacity:0.7;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.5rem;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .nav-buttons {
        width: 100%;
        flex-direction: column;
    }


    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: white;
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: white;
    }
}

/* ===== UNIFIED BUTTON SYSTEM ===== */
/* Base button style with border-radius: 50px standard */

.cta-button, 
.primary-button, 
.about-cta-button, 
.appointment-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background-color: #398d37;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(57, 141, 55, 0.2);
}

.cta-button:hover, 
.primary-button:hover, 
.about-cta-button:hover, 
.appointment-button:hover {
    background-color: #2d6b2b;
    box-shadow: 0 8px 25px rgba(57, 141, 55, 0.3);
    transform: translateY(-3px) scale(1.02);
}

/* Button variants */
.cta-button.cta-button-outline {
    background-color: transparent;
    color: #398d37;
    border-color: #398d37;
    box-shadow: none;
}

.cta-button.cta-button-outline:hover {
    background-color: transparent;
    color: #2d6b2b;
    border-color: #2d6b2b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(57, 141, 55, 0.2);
}

/* Size variants */
.appointment-button.primary {
    font-size: 1.15rem;
    padding: 1.1rem 2.5rem;
}

.appointment-button.secondary {
    background-color: transparent;
    color: #398d37;
    border-color: #398d37;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
    box-shadow: none;
}

.appointment-button.secondary:hover {
    background-color: transparent;
    color: #2d6b2b;
    border-color: #2d6b2b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(57, 141, 55, 0.2);
}

/* Hero content styles */
.hero-content {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(70vh - 4rem);
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 800px;
    color: white;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: white;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
}

/* Hero button specific sizing */
.primary-button {
    padding: 1.1rem 2.5rem;
    font-size: 1.2rem;
    min-width: 250px;
}

/* Media queries for better title control */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3.8rem;
        max-width: 950px;
        line-height: 1.25;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-text h1 {
        font-size: 3.2rem;
        max-width: 850px;
        line-height: 1.3;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-text h1 {
        font-size: 2.8rem;
        max-width: 700px;
        line-height: 1.35;
    }
    
    /* Ajuste para tablets - melhor foco nos rostos */
    .hero::before {
        background-position: center 30%;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Disable parallax on mobile for better performance */
    .hero::before {
        transform: translate3d(0, 0, 0) !important;
        /* Melhor posicionamento para mobile - focar na parte superior da imagem onde estão os rostos */
        background-position: center top;
        /* Reduzir altura extra para mobile */
        top: -10%;
        bottom: -10%;
    }
}

/* Ajustes específicos para dispositivos muito pequenos */
@media (max-width: 480px) {
    .hero::before {
        /* Para telas muito pequenas, focar ainda mais na parte superior */
        background-position: center 20%;
        /* Minimizar altura extra */
        top: 0;
        bottom: 0;
    }
    
    .hero {
        /* Ajustar altura mínima para telas pequenas */
        min-height: 60vh;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* Fallback para dispositivos com baixa qualidade de conexão */
@media (max-width: 768px) and (max-resolution: 1.5dppx) {
    .hero::before {
        /* Para dispositivos com tela de menor resolução, otimizar performance */
        background-attachment: scroll;
        will-change: auto;
    }
}

/* About section */
.about-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #1b4d3e;
    margin-bottom: 32px;
    text-align: center;
}

/* About intro */
.about-intro {
    margin-bottom: 40px;
    text-align: center;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333333;
    font-weight: 500;
}

/* About stats cards */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: linear-gradient(135deg, #3c8f76 0%, #2d6b5a 100%);
    color: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(60, 143, 118, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(60, 143, 118, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* About divider */
.about-divider {
    display: flex;
    align-items: center;
    margin: 48px 0;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3c8f76 50%, transparent 100%);
}

.divider-icon {
    margin: 0 24px;
    width: 48px;
    height: 48px;
    background: #3c8f76;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(60, 143, 118, 0.3);
}

/* About continuation */
.about-continuation {
    margin-bottom: 40px;
}

.about-continuation p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 0;
}

/* About team original format */
.about-team-original {
    margin-bottom: 40px;
}

.about-team-original p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 24px;
    text-align: justify;
}

.about-team-original p:last-child {
    font-style: italic;
    color: #3c8f76;
    font-weight: 500;
    text-align: center;
    margin-top: 32px;
    font-size: 1.2rem;
}


/* Specific spacing for about section button */
.about-cta-button {
    margin-top: 2rem;
    display: block;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.about-image-desktop {
    flex: 1;
    display: block;
    position: sticky;
    top: 120px; /* Offset para o header fixo */
    align-self: flex-start;
    max-height: calc(100vh - 140px); /* Altura máxima baseada na viewport */
    overflow: hidden;
    min-height: 400px; /* Altura mínima para garantir boa visualização */
}

.about-image-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image-desktop:hover img {
    transform: scale(1.02);
}

.about-image-mobile {
    display: none;
}

.about-image-desktop img,
.about-image-mobile img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-image-desktop {
        top: 100px; /* Ajuste para tablets */
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image-desktop {
        display: none;
    }

    .about-image-mobile {
        display: block;
        margin: 2rem 0;
        text-align: center;
    }

    .about-features li {
        text-align: left;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* Responsive stats cards */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Responsive divider */
    .about-divider {
        margin: 40px 0;
    }

    .divider-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 16px;
    }

    /* Responsive team members */
    .team-member {
        padding: 20px;
        margin-bottom: 24px;
    }

    .member-info h4 {
        font-size: 1.2rem;
    }

    /* Responsive philosophy */
    .philosophy-content {
        padding: 32px 24px;
    }

    .philosophy-quote {
        font-size: 1.2rem;
    }

    /* Responsive about team original */
    .about-team-original p {
        font-size: 1rem;
        text-align: left;
    }

    .about-team-original p:last-child {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* Specialties section */
.specialties-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.specialties-container {
    max-width: 1200px;
    margin: 0 auto;
}

.specialties-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1b4d3e;
    margin-bottom: 48px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.specialty-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.specialty-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialty-card:hover .specialty-image img {
    transform: scale(1.05);
}

.specialty-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialty-card h3 {
    font-size: 1.2rem;
    color: #1b4d3e;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* Responsive adjustments for services section */
@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specialty-image {
        height: 180px;
    }
    
    .specialty-content {
        padding: 1.2rem;
    }
    
    .specialty-card h3 {
        font-size: 1.1rem;
    }
}

.services-cta-container {
    text-align: center;
    margin-top: 3rem;
}

/* Procedures section */
.procedures-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.procedures-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.procedures-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1b4d3e;
    margin-bottom: 48px;
}

.procedures-intro {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

/* Style for the 7th card to be centered on the last row */
.procedures-grid .procedure-card:nth-child(7) {
    grid-column: 2 / 3;
}

.procedure-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.procedure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.procedure-card .specialty-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.procedure-card .specialty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.procedure-card:hover .specialty-image img {
    transform: scale(1.05);
}

.procedure-card .specialty-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.procedure-card .specialty-content h3 {
    font-size: 1.2rem;
    color: #1b4d3e;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

/* Responsive adjustments for procedures section */
@media (max-width: 1024px) {
    .procedures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Remove the centered positioning for tablet and mobile */
    .procedures-grid .procedure-card:nth-child(7) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .procedures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .procedure-card .specialty-image {
        height: 180px;
    }
    
    .procedure-card .specialty-content {
        padding: 1.2rem;
    }
    
    .procedure-card .specialty-content h3 {
        font-size: 1.1rem;
    }
}


/* Exams section */
.exams-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.exams-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.exams-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1b4d3e;
    margin-bottom: 48px;
}

.exams-intro {
    font-size: 1.1rem;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0.5rem 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.exam-item {
    padding: 1rem 0;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    cursor: default;
}

.exam-item:hover {
    padding-left: 1rem;
}

.exam-item h3 {
    font-size: 1.1rem;
    color: #1b4d3e;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.exam-item:hover h3 {
    color: #3c8f76;
}

@media (max-width: 768px) {
    .exams-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        max-width: 100%;
    }
    
    .exam-item {
        padding: 0.8rem 2rem;
    }
    
    .exam-item h3 {
        font-size: 1rem;
    }
    
    .exams-container h2 {
        font-size: 2rem;
    }
}

/* Team section */
.team-section {
    padding: 80px 20px;
    background-color: #1b4d3e;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 48px;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 3rem;
    padding: 20px 0;
    justify-content: center;
}

.team-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.team-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.5rem;
    color: #1b4d3e;
    margin: 20px 20px 5px;
}

.team-card .specialty {
    color: #3c8f76;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.team-card .description {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    padding: 0 20px 30px;
    min-height: 120px;
}

.team-cta-container {
    text-align: center;
    margin-top: 3rem;
}

/* Partnerships Section */
.partnerships-section {
    padding: 5rem 2rem;
    background-color: #f5f5f5;
}

.partnerships-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partnerships-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1b4d3e;
    margin-bottom: 48px;
}

.partnerships-intro {
    font-size: 1.1rem;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.partnerships-content {
    margin-top: 2rem;
}

.partnerships-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 0;
    align-items: center;
    justify-items: center;
}

.partnerships-text {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

.partnerships-text h3 {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partnerships-text-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.partnership-text-item {
    color: #888888;
    font-size: 1.05rem;
    font-weight: 400;
    padding: 0.5rem 0;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
    cursor: default;
}

.partnership-text-item:hover {
    color: #555555;
}

.partnership-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.partnership-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

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

@media (max-width: 1024px) {
    .partnerships-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .partnerships-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partnerships-section {
        padding: 40px 15px;
    }
    
    .partnerships-text {
        padding: 1.5rem 0;
    }
    
    .partnerships-text h3 {
        font-size: 1rem;
    }
    
    .partnerships-text-list {
        gap: 1.5rem;
    }
    
    .partnership-text-item {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .partnerships-logos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partnerships-text {
        padding: 1.2rem 0;
    }
    
    .partnerships-text-list {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .partnership-text-item {
        font-size: 0.95rem;
    }
}


/* Appointment Section - Clean and Focused */
.appointment-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f3 100%);
    position: relative;
    overflow: hidden;
}

.appointment-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(60, 143, 118, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.appointment-content h2 {
    font-size: 2.8rem;
    color: #1b4d3e;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.appointment-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.appointment-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.appointment-info {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-container {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid #e9ecef;
}

.schedule-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.625rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.875rem;
    text-align: center;
    justify-content: center;
}

.schedule-title i {
    color: #3c8f76;
    font-size: 1.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
    gap: 0.94rem;
    margin-bottom: 1.56rem;
}

.schedule-card {
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 7.5px;
    padding: 1.09rem 1.25rem;
    text-align: center;
}

.schedule-days {
    font-size: 1.19rem;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 0.625rem;
    text-align: center;
}

.schedule-times {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.44rem;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.time-slot {
    background: transparent;
    color: #333;
    padding: 0;
    border-radius: 0;
    border: 0;
    font-weight: 500;
    font-size: 1.31rem;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.time-slot::before {
    content: '';
    width: 7.5px;
    height: 7.5px;
    background: #3c8f76;
    border-radius: 50%;
    display: inline-block;
}

.time-separator { display: none; }

.emergency-info {
    display: flex;
    align-items: center;
    gap: 0.94rem;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1.56rem;
}

.emergency-icon {
    background: #fecaca;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emergency-icon i {
    color: #dc2626;
    font-size: 1.38rem;
}

.emergency-content {
    flex: 1;
}

.emergency-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 0.31rem;
}

.emergency-text {
    font-size: 1.13rem;
    color: #666;
    font-weight: 400;
}

/* Responsividade da Seção de Agendamento */
@media (max-width: 768px) {
    .appointment-section {
        padding: 60px 20px;
    }
    
    .appointment-content h2 {
        font-size: 2.4rem;
    }
    
    .appointment-intro {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .appointment-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .schedule-container {
        padding: 1.875rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .schedule-times {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .time-separator {
        display: none;
    }
    
    .emergency-info {
        flex-direction: column;
        text-align: center;
        gap: 0.94rem;
    }
}

@media (max-width: 480px) {
    .appointment-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .appointment-intro {
        font-size: 1rem;
    }
    
    .schedule-container {
        padding: 1.56rem;
    }
    
    .schedule-title {
        font-size: 1.5rem;
    }
    
    .schedule-card {
        padding: 1.25rem;
    }
    
    .time-slot {
        font-size: 1.06rem;
        padding: 0.44rem 0.88rem;
    }
    
    .emergency-info {
        padding: 1.25rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Footer Styles */
.footer {
    background-color: #1b4d3e;
    color: #ffffff;
    padding-top: 6rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
}


.footer-section h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3c8f76;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section ul li:hover {
    color: #ffffff;
}

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer__address-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer__address-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer__map {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer__map iframe {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border: 0;
    display: block;
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-link:last-child {
    margin-bottom: 0;
}

.social-link:hover {
    color: #ffffff;
}

.footer__text {
    max-width: 270px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-all;    
}

.footer__icon {
    color: #3c8f76;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-bottom {
    padding: 2.2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-bottom__text {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.4;
}

.footer-bottom__icon {
    color: #3c8f76;
    font-size: 1.3rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li {
        justify-content: center;
    }

    .footer__map iframe {
        height: 250px;
    }

    
    /* Social Links Mobile Styles */
    .social-link {
        justify-content: center;
    }
}
