* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #F2F2F2;
}

main {
    flex: 1;
}

/* Header */
header {
    background-color: #5B1B1A;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.5rem;
    flex-wrap: wrap; 
    flex-direction: column;
    gap: 15px;
}

header .logo img {
    height: 70px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: center;
    width: 100%; 
}

.nav-link, .nav-link-highlight {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 15px;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
    white-space: nowrap;
}

.nav-link {
    background-color: #5B1B1A;
}

.nav-link:hover {
    background-color: white;
    color: #5B1B1A;
}

.nav-link-highlight {
    background-color: white;
    color: #5B1B1A;
}

.nav-link-highlight:hover {
    background-color: #11751d;
    color: #F2F2F2;
}


/* secao-principal */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 40px 20px;
    background-color: #F2F2F2;
    flex-wrap: wrap;
    gap: 2rem;
    flex-direction: column;
}

.hero-text {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    color: #000000;
    text-align: left;
    flex: 1 1 100%; 
    min-width: 300px;
    padding-left: 0; 
}

.hero-text span {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-icon {
    font-size: clamp(2rem, 5vw, 3.75rem);
    vertical-align: middle;
    margin-left: 10px;
}


/* Carrossel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto; 
}


.carousel-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1/1;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, filter 0.6s ease-out, z-index 0s 0.3s;
    border-radius: 30px;
    overflow: hidden;
    transform-origin: bottom center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity, filter;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item.active {
    transform: translateX(0) translateY(0) rotateZ(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 5;
}

.carousel-item.behind-1 {
    transform: translateX(20px) translateY(15px) rotateZ(5deg) scale(0.95);
    opacity: 0.7;
    filter: blur(3px);
    z-index: 4;
}

.carousel-item.behind-2 {
    transform: translateX(40px) translateY(30px) rotateZ(10deg) scale(0.9);
    opacity: 0.5;
    filter: blur(6px);
    z-index: 3;
}

.carousel-item.behind-3 {
    transform: translateX(60px) translateY(45px) rotateZ(15deg) scale(0.85);
    opacity: 0.3;
    filter: blur(9px);
    z-index: 2;
}

.carousel-item.behind-4 {
    transform: translateX(80px) translateY(60px) rotateZ(20deg) scale(0.8);
    opacity: 0.1;
    filter: blur(12px);
    z-index: 1;
}

.carousel-item.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}


/* Controles do carrossel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}


.dots-container {
    display: flex;
    margin: 0 var(--spacing-sm);
    flex-grow: 1;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.dot.active {
    background-color: #5B1B1A;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.prev-btn,
.next-btn {
    background-color: #5B1B1A;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #F2F2F2;
}

.prev-btn img,
.next-btn img {
    width: 20px;
    filter: invert(100%);
}

@media (max-width: 992px) {
    .carousel-wrapper {
        width: 100%; 
        height: auto;
        margin-right: 0;
        margin-left: 0; 
    }

    .carousel-container {
        width: 350px; 
        height: 350px;
    }

    .carousel-controls {
        justify-content: space-between; 
        padding-right: 0;
        width: 90%; 
        max-width: 400px; 
    }

    .dots-container {
        flex-grow: 0; 
    }
    
    
    .carousel-item.behind-1 {
        transform: translateX(10px) translateY(7px) rotateZ(3deg) scale(0.95);
        filter: blur(2px);
    }
    .carousel-item.behind-2 {
        transform: translateX(20px) translateY(14px) rotateZ(6deg) scale(0.9);
        filter: blur(4px);
    }
    .carousel-item.behind-3,
    .carousel-item.behind-4 {
        opacity: 0; 
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        width: 280px;
        height: 280px;
    }
    .prev-btn, .next-btn {
        width: 45px;
        height: 45px;
    }
    .prev-btn img, .next-btn img {
        width: 18px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        width: 220px;
        height: 220px;
    }
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }
    .prev-btn img, .next-btn img {
        width: 15px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
}


/* Responsividade */
@media (max-width: 992px) {
    .results-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-content {
        min-height: auto;
        padding-bottom: var(--spacing-md);
    }

    .carousel-wrapper {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-top: var(--spacing-lg);
    }

    .carousel-container {
        width: 300px;
        height: 300px;
    }

    .carousel-controls {
        justify-content: center;
        padding-right: 0;
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu ul {
        margin-top: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .nav-menu li {
        margin-left: 0;
        margin-right: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }

    .text-content h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .text-content h1 {
        font-size: 1.8em;
    }
    .carousel-container {
        width: 250px;
        height: 250px;
    }
    .next-btn {
        width: 40px;
        height: 40px;
    }
    .next-btn img {
        width: 15px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Secao-secundaria */
.about-section, .contact-section, .team-section {
    background-color: #5B1B1A; 
    padding: 7rem 5%;
    color: #F2F2F2;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section, .team-section {
    background-color: #F2F2F2;
    color: #5B1B1A;
}


.section-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem); 
    margin-bottom: 2rem;
    color: inherit; 
}

.section-text {
    font-size: clamp(1rem, 2.5vw, 2rem); 
    line-height: 1.6;
}

/* Contact Section (secao-terciaria) */
.contact-prompt, .team-prompt {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    color: #000000;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; 
    gap: 40px;
    padding: 20px 0;
}

.contact-form {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
    color: inherit; 
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    background-color: #5B1B1A;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #702c2b;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem); 
    color: #5B1B1A;
    margin-top: 1rem;
}

.contact-info p {
    color: #000000;
    font-size: clamp(1rem, 2vw, 2rem);
    margin: 8px 0;
    line-height: 1.6;
}

.social-icons a {
    font-size: clamp(2rem, 4vw, 3rem); 
    margin-right: 15px;
    color: #000;
    text-decoration: none;
}

.social-icons a:hover {
    color: #5B1B1A;
}

/* Team Section */
.team-section {
    background-color: #F2F2F2;
    padding: 7rem 5%;
    color: #5B1B1A;
    min-height: auto; 
}

.dentist-profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
    margin-top: 2rem;
}

.dentist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 300px; 
    max-width: 450px; 
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dentist-card img {
    height: 250px; 
    width: 250px; 
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid #5B1B1A; 
}

.dentist-card p {
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    color: #5B1B1A;
    line-height: 1.6;
}

.dentist-card p img {
    height: 3rem; 
    width: auto;
    border-radius: 0; 
    border: none; 
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #5B1B1A;
    color: white;
    padding: 15px 20px; 
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; 
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info i {
    font-size: 1rem;
}

/* Página agendamento */
.appointment-container {
    width: 90%; 
    max-width: 600px; 
    margin: 40px auto;
    padding: 2rem;
    background-color: #5B1B1A;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.page-title {
    text-align: center;
    flex: 1; 
}

.page-title h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
}

.appointment-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.appointment-form {
    display: flex;
    flex-direction: column;
}

.appointment-form label {
    margin-top: 15px;
    color: white;
    font-size: 1rem;
}

.appointment-form input,
.appointment-form select {
    background-color: #D9D9D9;
    padding: 12px;
    margin-top: 8px;
    border-radius: 35px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%; 
}

.appointment-form select option.option-placeholder {
    color: #888; 
}

.form-button-container {
    text-align: center;
    margin-top: 30px;
}

.appointment-form button {
    padding: 12px 24px;
    border-radius: 35px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 1.1rem;
    width: 250px; 
    border: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.appointment-form button:hover {
    background-color: darkgreen;
    color: #ffffff;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    header .logo {
        margin-bottom: 15px;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link, .nav-link-highlight {
        width: 100%; 
        text-align: center;
        padding: 10px 0;
    }

    .hero-section {
        flex-direction: column;
        padding: 4rem 20px 20px;
        min-height: auto; 
        padding-top: 80px; 
    }

    .hero-text {
        padding-left: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-text span {
        margin-bottom: 0.2rem;
    }

    .hero-icon {
        transform: rotate(90deg); 
        display: inline-block; 
        margin-left: 0;
        margin-top: 10px;
    }

    .results-images {
        height: 350px; 
    }

    .result-image {
        max-width: 90%; 
        border-radius: 50px;
    }

    .result-image-1 {
        left: 5%; 
        transform: translateY(-50%) translateX(-5%);
    }

    .result-image-2 {
        right: 5%; 
        transform: translateY(-50%) translateX(5%) rotate(2.5deg);
    }

    .about-section, .contact-section, .team-section {
        padding: 4rem 20px; 
        min-height: auto;
    }

    .section-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .section-text {
        font-size: 1rem; 
        text-align: justify;
    }

    .contact-prompt, .team-prompt {
        font-size: 1.2rem;
        text-align: center;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-form, .contact-info {
        width: 100%;
        max-width: 400px; 
    }

    .contact-form button {
        width: 100%; 
    }

    .contact-info p, .contact-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .social-icons {
        text-align: center;
        margin-top: 15px;
    }

    .social-icons a {
        font-size: 2rem;
        margin: 0 10px;
    }

    .dentist-card {
        flex-basis: 100%; 
        max-width: 350px; 
    }

    .dentist-card img {
        height: 200px;
        width: 200px;
    }

    .dentist-card p {
        font-size: 0.9rem;
    }

    footer {
        flex-direction: column;
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .footer-info {
        justify-content: center;
        text-align: center;
    }

    .appointment-container {
        width: 95%; 
        padding: 1.5rem;
        border-radius: 30px;
    }

    .page-title h1, .appointment-subtitle {
        font-size: 1.5rem;
    }

    .appointment-form label {
        font-size: 0.9rem;
    }

    .appointment-form input,
    .appointment-form select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .appointment-form button {
        width: 200px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    nav {
        gap: 10px;
    }

    .hero-section {
        padding: 6rem 30px;
        flex-direction: row; 
        justify-content: space-around;
        align-items: center;
    }

    .hero-text {
        font-size: 3.5rem;
        padding-left: 1rem;
        flex: 1 1 50%;
    }

    .hero-icon {
        font-size: 3rem;
        transform: none; 
    }

    .results-images {
        height: 400px;
        max-width: 700px;
    }

    .result-image {
        max-width: 500px;
    }

    .about-section, .contact-section, .team-section {
        padding: 6rem 40px;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-text {
        font-size: 1.2rem;
    }

    .contact-prompt, .team-prompt {
        font-size: 1.8rem;
    }

    .contact-content {
        justify-content: center;
        gap: 30px;
    }

    .contact-form {
        flex: 1 1 300px;
    }

    .contact-info {
        flex: 1 1 250px;
    }

    .social-icons a {
        font-size: 2.5rem;
    }

    .dentist-card {
        flex-basis: 45%; 
        max-width: 400px;
    }

    .dentist-card img {
        height: 220px;
        width: 220px;
    }

    .appointment-container {
        width: 70%;
    }
}

@media (min-width: 1025px) {
    .results-images {
        margin-right: 70px;
    }

    .result-image-1 {
        right: 4vw;
        top: auto;
        transform: none;
    }

    .result-image-2 {
        top: 2vw;
        left: 2vw;
        transform: rotate(1.5deg);
    }
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 40px;
    }
    
    nav {
        width: auto;
        gap: 15px;
    }
    .carousel-container {
        margin-bottom: 2rem;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
}
}
@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        gap: 5rem;
        padding: 6rem 40px;
    }
    
    .hero-text {
        text-align: left;
        flex: 0 1 400px;
    }
}
@media (max-width: 480px) {
    .carousel-item.behind-1 {
        transform: translateX(5px) translateY(5px) rotateZ(2deg) scale(0.95);
    }
    .carousel-item.behind-2 {
        transform: translateX(10px) translateY(10px) rotateZ(4deg) scale(0.9);
    }
}
.faq {
    background-color: #F2F2F2;
    padding: 5rem 2rem;
    color: #5B1B1A;
    text-align: center;
}

.faq-item {
    max-width: 800px;
    margin: 10px auto;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.faq-pergunta {
    width: 100%;
    background-color: #ffffff;
    color:#5B1B1A;
    padding: 15px;
    border: none;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
    border-radius: 0 0 10px 10px;
    padding: 0 15px;
}

.faq-resposta p {
    padding: 10px 0;
}


.wpp-link{
    position: fixed;
    width: 90px;
    height: 90px;
    bottom: 50px;
    right: 50px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 2px 2px 3px #888;
    z-index: 1000;
}
.fa-whatsapp{
    color: white;
    margin-top: 26px;
}
