/* Base Styles */
:root {
    --primary-color: #006838; /* Verde escuro institucional */
    --secondary-color: #238F63; /* Verde médio para seções de destaque */
    --white: #fff;
    --light-gray: #f9f9f9;
    --dark-gray: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* Alternância de cores entre seções */
section.hero {
    background-color: var(--white);
}

section.testimonials {
    background-color: var(--secondary-color);
    color: var(--white);
}

section.benefits {
    background-color: var(--secondary-color);
    color: var(--white);
}

section.services {
    background-color: var(--white);
}

section.about {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    color: var(--white);
}

section.contact {
    background-color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #005028;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

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

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background-color: var(--white);
    color: var(--dark-gray);
    padding: 8rem 0 6rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}



.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.hero-text {
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Container para o título */
.title-container {
    margin-bottom: 1.5rem;
}

/* Estilo para o efeito de marca-texto */
.title-h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

span.highlight {
    color: var(--white);
    background-color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: -0.3rem;
    width: fit-content;
    white-space: nowrap;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Elemento decorativo - círculo no canto inferior direito */
.hero-image::before {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(35, 143, 99, 0.15);
    z-index: -1;
    display: none; /* Oculto por padrão para mobile */
}

/* Elemento decorativo - traço curvo */
.hero-image::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -5%;
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(35, 143, 99, 0.3);
    border-radius: 50%;
    z-index: -1;
    display: none; /* Oculto por padrão para mobile */
}

/* Elemento decorativo - conjunto de pontos no fundo */
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(35, 143, 99, 0.2) 3px, transparent 4px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.7;
    display: none; /* Oculto por padrão para mobile */
}

/* Mostrar elementos decorativos apenas em desktop */
@media (min-width: 992px) {
    .hero-image::before,
    .hero-image::after,
    .hero::before,
    .shape-image::before,
    .shape-image::after {
        display: block;
    }
}

.shape-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    box-shadow: 15px 15px 30px rgba(0, 104, 56, 0.12);
}

/* Elemento decorativo - pontos espalhados */
.shape-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-image: radial-gradient(circle, rgba(35, 143, 99, 0.5) 2px, transparent 3px);
    background-size: 15px 15px;
    z-index: 2;
    display: none; /* Oculto por padrão para mobile */
}

/* Elemento decorativo - semi-arco */
.shape-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 60px;
    height: 30px;
    border-bottom: 3px solid rgba(35, 143, 99, 0.3);
    border-radius: 0 0 50% 50%;
    z-index: 2;
    display: none; /* Oculto por padrão para mobile */
}

@media (min-width: 992px) {
    .shape-image {
        max-width: 500px;
    }
}

.shape-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--secondary-color);
}

.testimonials h2 {
    color: var(--white);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-gray);
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.testimonial-card h4 {
    margin-bottom: 0.25rem;
}

.testimonial-card span {
    color: #666;
    font-size: 0.9rem;
}

.testimonialSwiper {
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
}

/* Garantir que as setas estejam sempre visíveis e clicáveis */
.swiper-button-next,
.swiper-button-prev,
.testimonial-swiper-button-next,
.testimonial-swiper-button-prev {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-swiper-button-next,
.testimonial-swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 16px;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.testimonial-swiper-button-prev {
    left: 10px;
}

.testimonial-swiper-button-next {
    right: 10px;
}

/* Garantir que as setas estejam sempre visíveis e centralizadas */
.testimonial-swiper-button-next i,
.testimonial-swiper-button-prev i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .testimonial-swiper-button-next {
        right: 5px;
    }
    
    .testimonial-swiper-button-prev {
        left: 5px;
    }
}

.testimonial-swiper-pagination {
    position: relative;
    text-align: center;
    transition: 300ms opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    bottom: -20px;
    left: 0;
    width: 100%;
    margin-top: 20px;
}

/* Benefits Section */
.benefits {
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0;
}

.benefits h2 {
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    color: var(--dark-gray);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon-container {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* Services Section */
.services {
    text-align: center;
    background-color: var(--white);
    padding: 4rem 0;
}

.services h2 {
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: var(--tertiary-color);
    color: var(--dark-gray);
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card .icon-container {
    background-color: var(--primary-color);
}

.service-card:hover .icon-container {
    background-color: var(--white);
    color: var(--primary-color);
}

/* About Section */
.about {
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.about-text {
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about h2 {
    color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-images {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-images img {
    width: 100%;
    height: auto;
    display: block;
}

.aboutSwiper {
    width: 100%;
}

/* Estilo para a imagem com overlay verde */
.overlay-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* Garante que o overlay respeite as bordas arredondadas */
    transform: translateZ(0); /* Melhora a renderização em dispositivos móveis */
}

.swiper-slide {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 5px;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: white;
    padding: 15px 12px 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 3;
}

/* Overlay verde removido */

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--white);
}

.contact h2 {
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.map-link:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact p i {
    font-size: 1.2rem;
    width: 20px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-info {
        align-items: flex-start;
    }
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .shape-image {
        margin: 0 auto;
        max-width: 350px;
    }
}

/* Estilo para o menu mobile no rodapé */
.footer-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--white);
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-nav {
    display: none;
}

.footer-nav.active {
    display: block;
    margin-top: 1rem;
}

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

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Estilo para quebra de linha no h1 mobile */
.mobile-line, .third-line {
    display: inline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .mobile-line {
        display: block;
        margin-bottom: 0.4rem;
    }
    
    .title-container {
        margin-bottom: 1rem;
    }
    
    .title-h1 {
        font-size: 1.5rem;
        max-width: 100%;
        padding-right: 0.5rem;
    }
    
    span.highlight {
        white-space: nowrap;
        padding: 0.3rem 0.6rem;
        display: inline-block;
        margin-bottom: -0.3rem;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }
    
    .third-line {
        display: block;
    }
    
    /* Sem sobreposição de estilos para o span.highlight no mobile */
    
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-text {
        margin-top: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    .benefit-card .icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-card .icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    /* Primeira dobra mobile */
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .header-btn {
        display: none;
    }
    
    /* Reorganização da primeira dobra */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-text h1 {
        margin-bottom: 1rem;
        font-size: 1.9rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        margin-bottom: 1.5rem;
    }
    
    .hero-text .primary-btn {
        margin: 0 auto 2rem;
        display: block;
        width: fit-content;
    }
    
    .hero-image {
        order: 3;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        padding: 1rem;
    }
    
    /* Habilitando elementos decorativos no mobile */
    .hero-image::before {
        display: block;
        width: 40px;
        height: 40px;
        bottom: 5%;
        right: 10%;
    }
    
    .hero-image::after {
        display: block;
        width: 80px;
        height: 80px;
        top: 15%;
        right: 0;
    }
    
    .hero::before {
        display: block;
        transform: scale(0.7);
    }
    
    .shape-image {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .shape-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Seção sobre a clínica no mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .about-text {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .about-text h2 {
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        order: 2;
        margin-bottom: 1.5rem;
    }
    
    .about-images {
        order: 3;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-images img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        object-fit: cover;
    }
    
    .about-text .primary-btn {
        order: 4;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
}

/* Ajustes específicos para as setas do carrossel em telas menores */
@media (max-width: 768px) {
    .testimonial-swiper-button-next,
    .testimonial-swiper-button-prev {
        width: 35px;
        height: 35px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .testimonial-swiper-button-next i,
    .testimonial-swiper-button-prev i {
        color: var(--primary-color);
        font-size: 14px;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0.8rem;
    }
    
    .contact-item i {
        margin-bottom: 0;
        margin-right: 0.8rem;
        font-size: 1.2rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-info .primary-btn {
        margin: 1.5rem auto;
        display: block;
        width: fit-content;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .shape-image {
        max-width: 280px;
    }
    
    /* Rodapé mobile */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-logo {
        max-width: 120px;
    }
    
    .footer-nav-toggle {
        display: inline-block;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}
