/* 
   Arquivo CSS principal para a Clínica Odontológica
   Desenvolvido para transmitir autoridade, receptividade, bem-estar e luxo
*/

/* ===== VARIÁVEIS ===== */
:root {
    /* Cores Principais */
    --primary-color: #50e5cf6d;       
    --secondary-color: #86b7fe;     /* Azul claro - transmite calma e tranquilidade */
    --accent-color: #d4af37;        /* Dourado - transmite luxo e qualidade premium */
    
    /* Cores Neutras */
    --dark-color: #1e2022;          /* Quase preto - para textos principais */
    --gray-color: #77838f;          /* Cinza médio - para textos secundários */
    --light-gray: #f8f9fa;          /* Cinza claro - para fundos de seções */
    --white-color: #ffffff;         /* Branco - para fundos e textos em fundos escuros */
    
    /* Fontes */
    --heading-font: 'Playfair Display', serif;  /* Elegante, transmite sofisticação */
    --body-font: 'Raleway', sans-serif;         /* Moderna e legível */
    
    /* Tamanhos */
    --container-width: 1200px;
    --section-spacing: 100px;
    --element-spacing: 30px;
    
    /* Sombras */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Transições */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

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

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

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* Placeholder para imagens temporárias */
.placeholder-img {
    background-color: #e9ecef;
    width: 50%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 1rem;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--body-font);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    transition: var(--transition-fast);
    background-color: #44ebd3;
}

.header-top {
    background-color: var(--primary-color);
    padding: 5% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white-color);
}

.contact-info span {
    margin-right: 20px;
    font-size: 0.9rem;
}

.contact-info i {
    margin-right: 5px;
    color: var(--accent-color);
}

.social-media a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-media a:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 2% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #44ebd3;
}

.lg {
    width: 30%;
}

.logo h1 {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8rem;
    margin-bottom: 0;
    color: blanchedalmond;
}

.logo span {
    color: blanchedalmond;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: rgba(245, 249, 221, 0.918);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    margin-top: 0;
    padding-top: 120px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white-color);
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background-color: var(--white-color);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.profissionais {
    display: flex;
}

.feature-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(134, 183, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-gray);
}

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

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-features {
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.about-features i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--white-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    transition: var(--transition-medium);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(134, 183, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light-gray);
    position: relative;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    flex: 0 0 calc(50% - 15px);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--accent-color);
    margin-right: 3px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: none;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===== TEAM SECTION ===== */
.team {
    background-color: var(--white-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.team-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background-color: rgba(26, 95, 122, 0.8);
    transition: var(--transition-medium);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.team-social a:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.team-info p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(rgba(26, 95, 122, 0.9), rgba(26, 95, 122, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white-color);
    padding: 80px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta .btn-primary {
    background-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(134, 183, 254, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(134, 183, 254, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== MAP SECTION ===== */
.map {
    padding: 0;
    height: 500px;
}

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

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-about {
    padding-right: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--accent-color);
}

.footer h3 {
    font-size: 1.3rem;
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: var(--body-font);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    border-radius: 0 50px 50px 0;
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition-medium);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
        --section-spacing: 80px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }
    
    .header-main {
        padding: 3% 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 540px;
        --section-spacing: 60px;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px;
        background-attachment: scroll;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid,
    .team-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    :root {
        --container-width: 100%;
        --section-spacing: 50px;
    }
    
    html {
        font-size: 14px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .feature-card,
    .service-card {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .team-image {
        height: 250px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Menu Mobile Ativo */
.main-nav.active {
    display: block;
    width: 100%;
    order: 2;
    margin-top: 15px;
}

.main-nav.active ul {
    flex-direction: column;
}

.main-nav.active li {
    margin: 5px 0;
}