/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Variáveis de Cores */
:root {
    --primary-green: #4CAF50;
    --light-green: #81C784;
    --dark-green: #388E3C;
    --pale-green: #E8F5E8;
    --mint-green: #F1F8E9;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(76, 175, 80, 0.2);
    --transition: all 0.3s ease;
}

/* Otimizações para toque */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .social-links a,
    .professional-card,
    .specialty-card,
    .testimonial-card,
    .feature {
        transition: transform 0.2s ease;
    }

    .btn:active,
    .professional-card:active,
    .specialty-card:active,
    .testimonial-card:active,
    .feature:active {
        transform: scale(0.98);
    }
}

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

/* Header e Navegação */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

/* Removed tooth icon styles */

.nav-menu {
    display: flex;
}

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

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

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.external-link i {
    font-size: 0.9rem;
}

.external-link:hover {
    color: var(--primary-green);
}

/* Desktop hover effect */
@media (min-width: 769px) {
    .external-link:hover {
        background: var(--pale-green);
        border-radius: 20px;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Seção Hero */
.hero {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.15), rgba(241, 248, 233, 0.85)), 
        url('../images/dr-helder-franco-smile.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, transparent 30%, rgba(76, 175, 80, 0.1) 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 500px;
}

.hero-text {
    max-width: 600px;
    margin-left: 0;
}

.hero-image {
    display: none; /* Agora é background */
}

.hero-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary i {
    font-size: 1.2rem;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

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

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero image styles removed - now using background */

/* Seções Gerais */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--medium-gray);
}

/* Seção Clínica */
.clinic-section {
    background: var(--light-gray);
}

.clinic-info h3 {
    font-size: 2rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
}

.clinic-info > p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

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

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Seção Profissionais */
.professionals-section {
    background: var(--white);
}

.professional-single {
    display: flex;
    justify-content: center;
}

.main-professional {
    max-width: 600px;
    width: 100%;
}

.main-professional .professional-image {
    width: 180px;
    height: 180px;
    border: 5px solid var(--light-green);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

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

.professional-card {
    background: var(--pale-green);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.professional-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-green);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    border: 4px solid var(--white);
}

.professional-image i {
    font-size: 4rem;
    color: var(--white);
}

.professional-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.professional-image #fallback-icon {
    display: none;
}

/* Show fallback icon if image fails to load */
.professional-image img:not([src]), 
.professional-image img[src=""] {
    display: none;
}

.professional-image img:not([src]) + #fallback-icon, 
.professional-image img[src=""] + #fallback-icon {
    display: block;
}

.professional-info h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem !important;
}

.professional-specialties {
    margin-bottom: 1.5rem;
}

.professional-specialties .main-title {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.professional-specialties .services-title {
    color: var(--dark-green);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.services-list {
    list-style: none;
    margin-bottom: 0;
}

.services-list li {
    color: var(--medium-gray);
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.services-list li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.professional-info p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.credentials {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--dark-green);
    font-weight: 500;
}

/* Seção Especialidades */
.specialties-section {
    background: var(--mint-green);
}

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

.specialty-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.specialty-icon {
    width: 80px;
    height: 80px;
    background: var(--pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.specialty-icon i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.specialty-card h3 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.specialty-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.specialty-card ul {
    list-style: none;
}

.specialty-card li {
    color: var(--medium-gray);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.specialty-card li::before {
    content: '✓';
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Seção Depoimentos */
.testimonials-section {
    background: var(--white);
}

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

.testimonial-card {
    background: var(--pale-green);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

.testimonial-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 1.5rem;
}

.author-info h4 {
    color: var(--dark-green);
    margin-bottom: 0.2rem;
}

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

/* Seção Contato */
.contact-section {
    background: var(--light-gray);
}

/* Botão WhatsApp */
.whatsapp-button-container {
    text-align: center;
    margin-top: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-text {
    color: var(--medium-gray);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

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

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

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

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.info-text h4 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-text p {
    color: var(--medium-gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--dark-green);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.4;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Removed footer tooth icon styles */

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--light-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--light-green);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.contact-list i {
    color: var(--light-green);
    width: 15px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Responsividade Tablet */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .professionals-grid,
    .specialties-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem 0;
        gap: 1rem;
    }

    .external-link {
        justify-content: center;
        padding: 0.5rem 1rem;
        background: var(--pale-green);
        border-radius: 20px;
        margin: 0.5rem 1rem;
        font-weight: 600;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
        margin-top: 70px;
    }

    .hero {
        background-attachment: scroll; /* Fixed não funciona bem no mobile */
    }

    .hero-content {
        justify-content: center;
        text-align: center;
        min-height: 400px;
    }

    .hero-text {
        margin: 0;
        padding: 2rem;
        max-width: 500px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Responsividade Mobile Pequeno */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text {
        padding: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

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

    .professional-card,
    .specialty-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .professional-specialties .main-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .services-list li {
        padding: 0.3rem 0;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .whatsapp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 1rem;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }
}

/* Responsividade Extra Pequeno */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 80px 0 50px;
    }

    .hero-content {
        min-height: 350px;
        padding: 1rem;
    }

    .hero-text {
        padding: 1.2rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .professional-card,
    .specialty-card,
    .testimonial-card,
    .feature {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .professional-image,
    .author-avatar {
        width: 80px;
        height: 80px;
    }

    .professional-image i {
        font-size: 3rem;
    }

    .professional-specialties .main-title {
        font-size: 0.9rem;
    }

    .professional-specialties .services-title {
        font-size: 0.9rem;
    }

    .services-list li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

    .specialty-icon {
        width: 60px;
        height: 60px;
    }

    .specialty-icon i {
        font-size: 2rem;
    }

    .whatsapp-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 90%;
        max-width: 280px;
    }

    .whatsapp-btn span {
        font-size: 0.9rem;
    }
}