/*
 * ARQUIVO: servico-padrao.css (v7.0 - Edição Final de Desacoplamento)
 *
 * NOTA DE IMPLEMENTAÇÃO:
 * Esta versão remove a última dependência externa do projeto, a fonte 'ETmodules', que era carregada de um domínio de terceiros.
 * A remoção finaliza o processo de autonomia do site, melhora a performance e a segurança.
 * A paleta de cores e a arquitetura original foram 100% preservadas.
 */

/* ----------------------------------------- */
/* --- 1. Global Resets & Font Imports --- */
/* ----------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css?family=Abhaya+Libre:400,700|Mulish:400,700,800|Actor:400&display=swap');

/* --- REMOVIDO (PhD 7 & 10): Font-face externa 'ETmodules' removida para eliminar dependência. --- */

:root {
    /* --- PALETA DE CORES ORIGINAL PRESERVADA - INTOCADA --- */
    --primary-color: #006e80;
    --secondary-color: #550b37;
    --accent-color: #a70148;
    --text-color: #161616;
    --background-pink: #F4C0C2;
    --white-color: #ffffff;
    --dark-grey: #333;
    --light-grey: #f1f1f1;
    --footer-bg: #006E80;
    --footer-bottom-bg: #000000;
    --whatsapp-green: #25D366;

    --font-body: 'Mulish', Helvetica, Arial, sans-serif;
    --font-heading: 'Abhaya Libre', Georgia, "Times New Roman", serif;
    --font-nav: 'Actor', Helvetica, Arial, sans-serif;
    --default-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7; /* ALTERAÇÃO PRESCRITA: Aumento do "respiro" entre linhas para melhor legibilidade. */
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: bold;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* --- ALTERAÇÃO PRESCRITA: Implementação da Tipografia Fluida --- */
/* As regras estáticas foram substituídas por clamp() para uma escala visual perfeita. */
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3.1875rem); }
h3 { font-size: clamp(1.75rem, 3.5vw, 2.6875rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

p {
    padding-bottom: 1em;
}

p:last-child {
    padding-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.button, .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 0.8em 1.5em;
    font-weight: bold;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.button:hover, .cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    letter-spacing: 2px;
}


/* ----------------------------------------- */
/* --- 2. CABEÇALHO (Estrutura Preservada) --- */
/* ----------------------------------------- */
#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex-grow: 1;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.75em 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white-color);
    margin: 0 15px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.contact-info a svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.social-links {
    display: block;
}

.top-bar .social-links a {
    margin-left: 10px;
}
.top-bar .social-links a svg {
    width: 16px;
    height: 16px;
}

/* --- Main Header --- */
.main-header {
    background-color: var(--white-color);
    padding: 15px 0;
    position: static;
    box-shadow: none;
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 87px;
    width: auto;
}

/* --- Navigation --- */
.main-nav {
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    font-family: var(--font-nav);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000000;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
    display: block;
}

.main-nav li.current-menu-item > a {
    color: var(--accent-color);
}

.main-nav .cta-button {
    padding: 18px !important;
    color: var(--white-color) !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.main-nav .cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* --- Dropdown Menu --- */
.main-nav .menu-item-has-children {
    position: relative;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    list-style: none;
    padding: 10px 0;
    width: 220px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 0;
}

.main-nav .menu-item-has-children:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu a {
    color: var(--white-color) !important;
    padding: 12px 20px !important;
    font-size: 15px;
    text-transform: none;
    font-weight: bold;
    text-align: left;
}

.main-nav .sub-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    opacity: 1;
}

.main-nav .menu-item-has-children > a {
    padding-right: 18px !important;
}

.main-nav .menu-item-has-children > a::after {
    content: '▾';
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: normal;
    transition: transform 0.2s ease-in-out;
}

.main-nav .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 32px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}


/* ----------------------------------------- */
/* --- 3. Main Content (Estrutura Preservada) --- */
/* ----------------------------------------- */

/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: left;
    padding: 140px 0;
    transition: padding 0.3s ease-out;
}
.hero-content {
    background-color: rgba(0,0,0,0.35); 
    max-width: 42%;
    padding: 40px 35px;
    margin-left: 10%;
    border-radius: 5px;
}
.hero-content p:first-child {
    font-size: 25px;
    margin-bottom: 5px;
}
.hero-content h1 {
    color: var(--white-color);
}
.hero-content p {
    font-size: 20px;
}
.hero-content .cta-button {
    margin-top: 1em;
    color: var(--white-color);
    border-color: var(--white-color);
    background-color: transparent;
}
.hero-content .cta-button:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--white-color);
}

/* --- Dentistry Services Section --- */
.dentistry-services-section {
    padding: 27px 0;
    background-image: linear-gradient(90deg, #ffffff 85%, #006e80 85%, #006e80 91%, #ffffff 91%);
}       
.dentistry-services-section .container.two-columns {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
}
.dentistry-services-section .column-text {
    flex: 0 1 58%; 
    padding-left: 7%;
    padding-right: 4%;
}
.dentistry-services-section .column-text h2 { 
    color: #013953;
    /* ALTERAÇÃO PRESCRITA: Aumento do "respiro" após o título principal do conteúdo. */
    margin-bottom: 25px;
}
.dentistry-services-section .column-text p:first-of-type {
    font-size: 1.1em;
    color: #555;
}
.dentistry-services-section ul {
    list-style-type: '✓ ';
    color: var(--primary-color);
    margin: 2.5em 0;
    padding-left: 1.5em; 
}
.dentistry-services-section ul li { 
    padding-left: 0.5em;
    /* ALTERAÇÃO PRESCRITA: Aumento do "respiro" entre os itens da lista. */
    margin-bottom: 1.2em;
    color: var(--text-color);
}
.dentistry-services-section p:last-of-type a {
    font-weight: bold;
    color: var(--primary-color);
}
.dentistry-services-section .column-image {
    flex: 0 1 42%;
}
.dentistry-services-section .column-image img {
    width: 100%;
    border-radius: 360px 0 0 360px;
    border: 10px solid var(--white-color);
    box-shadow: 1px 0px 0px 2px #006e80;
    float: right;
}

/* --- All Services Section --- */
.all-services-section {
    padding: 30px 0 50px 0;
    background-color: var(--light-grey);
    text-align: center;
}
.all-services-section .container { 
    padding: 0;
    width: 80%;
    max-width: 1080px;
}
.all-services-section h2 { 
    color: #013953; 
    font-weight: bold;
}
.all-services-section p {
    margin: 0 auto 1.2em auto;
    line-height: 1.7;
    max-width: 800px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
}
.service-item {
    padding: 10px;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(0, 110, 128, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5em;
    transition: text-decoration-color 0.3s ease;
}
.service-item:hover {
    text-decoration-color: var(--primary-color);
}


/* ----------------------------------------- */
/* --- 4. RODAPÉ (Estrutura Preservada) --- */
/* ----------------------------------------- */

.footer-cta-section {
    background-color: var(--background-pink);
    padding-top: 54px;
}

.footer-cta-container {
    display: flex;
    align-items: stretch;
    background-color: var(--white-color);
    border-radius: 250px 0 0 250px;
    border-top: 10px solid var(--background-pink);
    border-bottom: 10px solid var(--background-pink);
    border-left: 10px solid var(--background-pink);
    box-shadow: -2px 0px 0px 1px var(--white-color);
    margin-left: auto;
    margin-right: 0;
    width: 90%;
    max-width: 1200px;
}

.footer-cta-content {
    flex: 2;
    padding: 40px 60px;
}

.footer-cta-content h2 {
    color: #013953;
}

.footer-cta-image {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.footer-cta-image img {
   max-width: 100%;
}

.footer-details {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0;
}

.footer-details-content {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.footer-contact-info, .footer-map {
    flex: 1;
}

.footer-contact-info h3, .footer-contact-info h4 {
    color: var(--white-color);
}

.info-item {
    margin-bottom: 2rem;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-item h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.info-item h4 svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0; 
}
.info-item a {
    color: var(--white-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}
.info-item a:hover {
    text-decoration-color: var(--white-color);
    opacity: 1;
}

.footer-map {
    position: relative;
    min-height: 350px;
}
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}
.map-overlay:hover {
    background-color: rgba(0,0,0,0);
}
.footer-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    background-color: var(--footer-bottom-bg);
    color: var(--white-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .container.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: var(--white-color);
}

.footer-bottom .social-links a {
    font-size: 21px;
    color: var(--white-color);
}
.footer-bottom .social-links a svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}


/* ----------------------------------------- */
/* --- 5. ANIMAÇÕES (Estrutura Preservada) --- */
/* ----------------------------------------- */

.dentistry-services-section, 
.all-services-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.dentistry-services-section.visible, 
.all-services-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----------------------------------------- */
/* --- 6. Responsive Design (Refinado) --- */
/* ----------------------------------------- */

@media (max-width: 980px) {
    .container, .all-services-section .container {
        width: 90%;
    }

    /* --- INÍCIO DAS ALTERAÇÕES PRESCRITAS --- */
    .hero-section {
        padding: 80px 0; /* Otimização da primeira dobra. */
    }

    .cta-button {
        padding: 14px 28px; /* Aumento do "respiro" dos botões. */
    }
    
    .all-services-section {
        padding: 50px 0; /* Aumento do "respiro" entre seções. */
    }
    /* --- FIM DAS ALTERAÇÕES PRESCRITAS --- */
    
    .main-nav { 
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white-color);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
    }
    .main-nav.active {
        display: block;
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 100px 20px 40px;
        gap: 1rem;
    }
    .main-nav ul li { width: 100%; text-align: center; }
    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid var(--light-grey);
        font-size: 1.25rem;
    }
    .main-nav .cta-button { margin-top: 20px; }
    .mobile-menu-toggle { display: flex; }
    
    .main-nav .sub-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #f7f7f7;
        box-shadow: none;
        padding: 0;
        border-top: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    .main-nav .menu-item-has-children.submenu-open > .sub-menu { display: block; }
    .main-nav .sub-menu a {
        padding: 12px 20px !important;
        font-size: 1rem;
        color: var(--dark-grey) !important;
        border-bottom: 1px solid #eee;
    }
    .main-nav .sub-menu li:last-child a { border-bottom: none; }
    .main-nav .menu-item-has-children > a::after { display: none; }
    .submenu-toggle {
        position: absolute;
        right: 15px;
        top: 0;
        height: 100%;
        width: 50px;
        cursor: pointer;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .submenu-toggle::after {
        content: '+';
        font-size: 24px;
        color: var(--accent-color);
        transition: transform 0.3s ease;
    }
    .menu-item-has-children.submenu-open .submenu-toggle::after { transform: rotate(45deg); }

    .hero-content {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .dentistry-services-section {
        background-image: none;
        padding: 50px 0;
        margin-top: 0;
    }
    .dentistry-services-section .two-columns { 
        flex-direction: column; 
        padding: 0; 
    }
    .dentistry-services-section .column-text {
        padding: 0;
        margin-bottom: 30px;
    }
    .dentistry-services-section .column-image img { 
        width: 100%; 
        border-radius: 10px; 
        float: none;
        border: 0;
        box-shadow: none;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-cta-section { padding-top: 0; }
    .footer-cta-container {
        flex-direction: column;
        width: 90%;
        max-width: 90%;
        margin: 30px auto;
        border-radius: 0;
        border: 10px solid var(--background-pink);
        box-shadow: none;
    }
    .footer-cta-content { padding: clamp(2.5rem, 6vw, 4rem); }
    .footer-cta-image { width: 67%; align-self: center; margin-top: -30px; }
    .footer-details-content { flex-direction: column; padding: 0; text-align: center; }
    .info-item h4 { justify-content: center; }
    .footer-contact-info, .footer-map { padding: 0; }
    .footer-bottom .container.footer-bottom-content { flex-direction: column; gap: 15px; }
}

@media (max-width: 767px) {
    /* As regras estáticas de heading foram removidas pois clamp() já cobre este breakpoint */

    .top-bar-content {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .contact-info { text-align: center; width: 100%; margin: 0; }
    .contact-info a { display: block; margin: 5px 0; justify-content: center; }
    
    /* --- INÍCIO DA ALTERAÇÃO PRESCRITA --- */
    .contact-info a[href^="mailto:"] {
        display: none; /* Foco na ação primária de ligar. */
    }
    /* --- FIM DA ALTERAÇÃO PRESCRITA --- */

    .top-bar .social-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-bottom .social-links { display: block; }
}

/* ==========================================================================
   7. WhatsApp Button (IMPLEMENTAÇÃO)
   ========================================================================== */
.whatsapp-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    opacity: 1;
}

.footer-contact-info .info-item p a[href*="wa.me"] {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
}

.footer-contact-info .info-item p a[href*="wa.me"]::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23ffffff'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157.1zM223.9 439.6c-38.2 0-73.7-11.8-103.6-32.5L38.8 454.4l29.9-78.4c-21.4-32.3-34.1-70-34.1-110.1 0-108.5 88.4-197 197-197 52.8 0 101.6 20.2 138.6 57.2 36.3 36.3 56.1 84.4 56.1 138.5-.1 108.6-88.4 197.1-197 197.1zm112.5-177.5c-5.9-3-35.1-17.4-40.6-19.3s-9.6-3-13.6 3c-4 6-15.3 19.3-18.8 23.2s-7.1 4.5-13.1 1.5c-29.5-14.8-54.8-26.6-79.8-59.5-11.7-15.4-1.3-15.4 7.2-27.1 2.1-2.9 4.2-6 6.3-8.9 2.1-2.9 4.2-6 6.3-8.9.9-1.2 1.8-2.4.9-4.5-4.5-10.3-9.1-21.6-12.5-29.5s-7.1-6.8-9.9-7.1c-2.9-.3-6.2-.3-9.6-.3s-8.1 1.2-12.5 5.9c-4.5 4.7-17.5 17.1-17.5 41.8s17.9 48.4 20.4 51.9c2.5 3.5 35.1 56.2 87.5 77.6 52.4 21.4 52.4 14.2 61.8 13.3 9.4-1.2 29.5-12.1 33.7-23.7 4.2-11.6 4.2-21.6 2.9-23.7s-5.1-3.5-11-6.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* ==========================================================================
   8. Refinamento Mobile Específico para Hero Sections (AURA)
   ========================================================================== */

@media (max-width: 767px) {
    .hero-section {
        /*
         * Ajuste Fino da Posição do Fundo:
         * Mantém o alinhamento horizontal centralizado ('center').
         * Ajusta o alinhamento vertical para '30%'. Isso tende a mostrar
         * mais da parte superior da imagem, o que geralmente contém os
         * elementos de maior interesse visual (rostos, ações principais)
         * em fotos de pessoas ou animais, reduzindo a sensação de
         * zoom excessivo ou corte no rosto/foco principal.
         * O valor '30%' pode ser ajustado (ex: 25%, 40%) caso algumas
         * imagens específicas ainda não fiquem ideais, mas é um
         * ponto de partida robusto para a maioria dos casos.
         * 'background-size: cover;' é mantido para garantir o preenchimento.
         */
        background-position: center 30%;
    }
}