/* -------------------------
   RESET E CONFIGURAÇÕES GLOBAIS
   (ARQUITETURA ORIGINAL PRESERVADA. REFINAMENTO FLUIDO APLICADO - DR. LUCAS VALENÇA PRADO)
   ------------------------- */

:root {
    /* -- CORES PRESERVADAS CONFORME DIRETIVA -- */
    --primary-color: #550b37; /* Roxo escuro */
    --secondary-color: #a70148; /* Magenta */
    --action-color: #006e80; /* Azul-petróleo */
    --light-color: #ffffff;
    --dark-color: #161616;
    --text-color: #161616;
    --light-gray: #f2f2f2;
    --footer-bg: #000000;
    --pink-bg: #F4C0C2;
    --divi-blue: #006E80;
    --divi-dark-blue: #013953;
    --divi-purple: #550B37;
    --whatsapp-green: #25D366;

    /* -- FONTES PRESERVADAS CONFORME DIRETIVA -- */
    --font-primary: 'Mulish', Helvetica, Arial, sans-serif;
    --font-headings: 'Abhaya Libre', Georgia, "Times New Roman", serif;
    --font-nav: 'Actor', Helvetica, Arial, sans-serif;

    --container-width: 1080px;

    /* -- ADICIONADO (PhD 5): Transição padrão para interações -- */
    --default-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Otimização de rolagem e fonte base para acessibilidade */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-primary);
    font-size: 1.125rem; /* 18px */
    line-height: 1.7; /* MODIFICAÇÃO DIRECIONADA (PhD 2): Aumento do respiro para legibilidade. */
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* ADICIONADO (PhD 7): Classe para travar o scroll quando o menu mobile estiver ativo */
body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: bold;
    line-height: 1.2; /* MODIFICADO (PhD 2): Aperto sutil para títulos */
    color: #000000;
}

/* * REFINAMENTO CIRÚRGICO (PhD 2 & 7): TIPOGRAFIA FLUIDA
 * Substitui tamanhos estáticos por 'clamp()' para escalar
 * fluidamente do Desktop (base) para o Mobile.
 * clamp(MIN [Mobile], PREFERIDO [Fluido], MAX [Desktop])
 */
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }      /* ~36px a 60px */
h2 { font-size: clamp(1.875rem, 4vw, 3.1875rem); } /* ~30px a 51px */
h3 { font-size: clamp(1.75rem, 3.5vw, 2.6875rem); } /* ~28px a 43px */
h4 { font-size: clamp(1.5rem, 3vw, 2.25rem); }      /* ~24px a 36px */

a {
    color: var(--action-color);
    text-decoration: none;
    transition: var(--default-transition); /* MODIFICADO: Usa variável de transição */
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* * REFINAMENTO CIRÚRGICO (PhD 1): ESPAÇAMENTO FLUIDO
 * Aplica espaçamento vertical fluido às seções.
 */
.mission,
.services,
.team-section,
.testimonials {
    /* clamp(MIN [Mobile], PREFERIDO [Fluido], MAX [Desktop]) */
    padding: clamp(3rem, 6vw, 5rem) 0; /* ~48px a 80px (Substitui o padding: 80px 0 estático) */
}

/* ADIÇÃO (PhD 5 & 12): Animação de entrada sutil para seções. */
.mission, .services, .team-section, .testimonials .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mission.visible, .services.visible, .team-section.visible, .testimonials .testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------------
   BOTÕES GLOBAIS
   ------------------------- */

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 0px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--default-transition); /* MODIFICADO: Usa variável */
    cursor: pointer;
    text-align: center;
}

.cta-button {
    background-color: var(--action-color);
    color: var(--light-color);
    border: 2px solid var(--action-color);
}

.cta-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    /* ADICIONADO (PhD 5): Feedback tátil de polimento */
    transform: scale(1.03);
    box-shadow: 0 4px 15px -5px rgba(0, 110, 128, 0.7);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--action-color);
    border: 2px solid var(--action-color);
}

.cta-button-secondary:hover {
    background-color: var(--action-color);
    color: var(--light-color);
    /* ADICIONADO (PhD 5): Feedback tátil */
    transform: scale(1.03);
}


/* -------------------------
   CABEÇALHO (TOP-BAR)
   ------------------------- */

.top-bar {
    background-color: var(--primary-color);
    color: var(--light-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(--light-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;
}


/* -------------------------
   CABEÇALHO PRINCIPAL
   ------------------------- */

.main-header {
    background-color: var(--light-color);
    padding: 15px 0;
    position: static;
    /* IMPLEMENTAÇÃO CORRIGIDA (PhD 6): Sombra removida para paridade com a referência. */
    box-shadow: none;
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* IMPLEMENTAÇÃO CORRIGIDA (PhD 5): Altura ajustada para corresponder ao layout de referência. */
    max-height: 87px;
    width: auto;
}

.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;
    /* IMPLEMENTAÇÃO CORRIGIDA (PhD 1): Padding vertical para centralizar o texto do link na altura do header. */
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
}

.main-nav li.current-menu-item > a {
    color: var(--secondary-color);
}

/* IMPLEMENTAÇÃO CORRIGIDA (PhD 5): Estilo exato do botão CTA na navegação. */
.main-nav .cta-button {
    padding: 18px !important;
    color: var(--light-color) !important;
}

.main-nav .cta-button:hover {
    background-color: var(--primary-color);
}


/* --- Dropdown Menu --- */
.main-nav .menu-item-has-children {
    position: relative;
}

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-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);
    /* ** CORREÇÃO INSERIDA AQUI ** */
    flex-direction: column; /* Garante o alinhamento vertical */
    gap: 0; /* Remove o espaçamento horizontal herdado */
}

.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(--light-color) !important;
    padding: 12px 20px !important;
    font-size: 15px;
    text-transform: none;
    font-weight: bold;
    display: block;
    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; /* IMPLEMENTAÇÃO: Ajuste de tamanho para fidelidade visual. */
    height: 32px; /* IMPLEMENTAÇÃO: Ajuste de tamanho para fidelidade visual. */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 32px;
    height: 4px; /* IMPLEMENTAÇÃO: Ajuste de espessura para fidelidade visual. */
    background-color: var(--secondary-color); /* IMPLEMENTAÇÃO: Cor corrigida para corresponder à referência. */
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* ADICIONADO (PhD 5): Animação do botão 'hambúrguer' para 'X' */
.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);
}

/* -------------------------
   SEÇÃO HERO
   ------------------------- */

.hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
    /* Garante que não haja imagem de fundo por padrão */
    background-image: none;
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
    /* Garante que o vídeo seja exibido por padrão */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    background-color: rgba(0,0,0,0.18);
    /* IMPLEMENTAÇÃO CORRIGIDA (PhD 6): Borda removida. */
    border-radius: 0;
    max-width: 90%;
}

/* IMPLEMENTAÇÃO (PhD 2): Estilização específica do primeiro parágrafo do Hero. */
.hero-content p:first-of-type {
    font-size: 25px;
    text-shadow: 0em 0.1em 0.1em rgba(0,0,0,0.4);
    margin-top: 12px;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    margin: 10px 0 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: var(--light-color);
}

/* -------------------------
   SEÇÃO MISSION
   ------------------------- */

/* IMPLEMENTAÇÃO (PhD 6): Fundo gradiente complexo para replicar o layout Divi. */
.mission {
    background-image: linear-gradient(90deg, #ffffff 85%, var(--divi-blue) 85%, var(--divi-blue) 91%, #ffffff 91%);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 2px;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.mission-text {
    flex: 1;
}
.mission-text img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}
.mission-text h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.mission-text h2 {
    color: var(--divi-dark-blue);
    margin-bottom: 20px;
}
.mission-text p {
    margin-bottom: 30px;
}
.mission-image {
    flex: 1;
}
.mission-image img {
    border-radius: 360px 0 0 360px;
    border: 10px solid var(--light-color);
    box-shadow: 1px 0px 0px 2px var(--action-color);
}

/* IMPLEMENTAÇÃO (PhD 7): Componente de imagem mobile adicionado e oculto em desktop */
.peeking-dog-container {
    display: none;
}


/* -------------------------
   SEÇÃO SERVICES
   ------------------------- */
.services {
    background-color: var(--primary-color);
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.33%;
    height: 100%;
    background-image: url('../Images/main_page/main-page-chat.webp');
    background-size: cover;
    background-position: center;
}

.services-content-wrapper {
    width: 66.67%;
    margin-left: 33.33%;
    padding: clamp(2rem, 5vw, 4rem);
}

.services-content-wrapper > img {
    width: clamp(150px, 20vw, 200px);
    margin-bottom: 20px;
}

.services-content-wrapper h4 {
    color: var(--pink-bg, #F4C0C2);
}

.services-content-wrapper h2 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.services-content-wrapper p {
    margin-bottom: 30px;
}

.service-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.service-item {
    transition: var(--default-transition);
}

/* IMPLEMENTAÇÃO CORRIGIDA (PhD 5): Efeito hover mais sutil, sem sombra. */
.service-item:hover {
    transform: translateY(-8px);
}

.service-item img {
    background: var(--light-color);
    border-radius: 50%;
    padding: 10px;
    border: 2px solid var(--light-color);
    margin: 0 auto 15px;
    width: clamp(80px, 15vw, 128px);
    height: auto;
    aspect-ratio: 1 / 1;
}

.service-item h4 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--light-color);
}

/* -------------------------
   SEÇÃO TEAM
   ------------------------- */
/* IMPLEMENTAÇÃO (PhD 6): Fundo gradiente complexo para replicar o layout Divi. */
.team-section {
    background-image: linear-gradient(90deg, #ffffff 21%, var(--divi-blue) 21%, var(--divi-blue) 26%, #ffffff 26%);
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.team-carousel-container {
    flex: 1;
    padding: 20px;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
}

.team-carousel img {
    border-radius: 50%;
    border: 10px solid var(--light-color);
    box-shadow: 0px 0px 0px 1px var(--action-color);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.team-carousel img.active {
    opacity: 1;
    z-index: 1;
}

.team-text-content {
    flex: 1;
    padding: clamp(1.5rem, 4vw, 3rem);
    background-size: contain;
}

.team-text-content h4 {
    color: var(--divi-purple);
}

.team-text-content h2 {
    color: var(--divi-dark-blue);
}


/* -------------------------
   SEÇÃO TESTIMONIALS
   ------------------------- */
.testimonials {
    background-color: var(--light-gray);
    text-align: center;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #013953;
}

.testimonials h4 {
    color: var(--secondary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    text-align: left;
    box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.1);
    position: relative;
    /* REFINAMENTO: Transição movida para a regra global de animação */
}

/* IMPLEMENTAÇÃO CORRIGIDA (PhD 5): Efeito hover corrigido para 'translateY'. */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 16px 24px -8px rgba(0,0,0,0.15);
}

.testimonial-card::before {
    content: '“';
    font-family: 'Georgia', serif;
    font-size: 100px;
    color: var(--pink-bg, #F4C0C2);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 1;
}
.testimonial-card blockquote {
    position: relative;
    z-index: 2;
}
.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
}


/* -------------------------
   FOOTER
   ------------------------- */

/* RE-ARQUITETADO (PhD 7): Harmonização com a estrutura de 'servicos.css' para paridade visual */
.footer-cta-section {
    background-color: var(--pink-bg);
    padding-top: 54px;
}

.footer-cta-container {
    display: flex;
    align-items: stretch; /* Garante que os filhos preencham a altura */
    background-color: var(--light-color);
    border-radius: 250px 0 0 250px;
    border-top: 10px solid var(--pink-bg);
    border-bottom: 10px solid var(--pink-bg);
    border-left: 10px solid var(--pink-bg);
    box-shadow: -2px 0px 0px 1px var(--light-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(--primary-color);
    color: var(--light-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 {
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
}

.footer-contact-info h3, .footer-contact-info h4 {
    color: var(--light-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(--light-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.info-item a:hover {
    text-decoration-color: var(--light-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: var(--default-transition);
}

.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-bg);
    color: var(--light-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(--light-color);
}

.footer-bottom .social-links a {
    font-size: 21px;
    color: var(--light-color);
}

.footer-bottom .social-links a svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}


/* -------------------------
   MEDIA QUERIES - RESPONSIVIDADE
   ------------------------- */

@media (max-width: 980px) {
    /* --- INÍCIO DAS ALTERAÇÕES PRESCRITAS --- */
    /* Removida a altura fixa do hero aqui, pois será tratada no @media (max-width: 767px / 480px) */

    .cta-button, .cta-button-secondary {
        /* Alteração 2: Aumento do "respiro" interno dos botões para melhor toque e elegância. */
        padding: 14px 28px;
    }

    .mission-image {
        /* Alteração 8: Remoção do border-radius inconsistente para harmonização de estilo. */
        border-radius: 0;
    }
    /* --- FIM DAS ALTERAÇÕES PRESCRITAS --- */

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--light-color);
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        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;
        height: 100%;
        justify-content: flex-start;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        padding: 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
        font-size: 1.25rem;
    }
    .main-nav .cta-button {
        padding: 15px !important;
        text-align: center;
        margin-top: 20px;
    }
    .mobile-menu-toggle { display: flex; }

    /* ADICIONADO: Estilos para o submenu no mobile */
    .main-nav .sub-menu {
        position: static;
        display: none; /* Escondido por padrão no mobile */
        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; /* Mostra o submenu quando aberto via JS */
    }

    .main-nav .sub-menu a {
        padding: 12px 20px !important;
        font-size: 1rem;
        color: var(--dark-color) !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; /* Esconde a seta padrão no mobile */
    }

    .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(--secondary-color);
        transition: transform 0.3s ease;
    }
    .menu-item-has-children.submenu-open .submenu-toggle::after {
        transform: rotate(45deg);
    }


    /* IMPLEMENTAÇÃO CORRIGIDA (PhD 1 e 7): Layout e visibilidade da seção Mission para mobile */
    .mission-content {
        flex-direction: column;
        text-align: center;
    }
    .mission, .team-section {
        background-image: none !important;
    }
    .mission-text {
        order: 1;
    }
    .mission-image {
        order: 2;
        overflow: hidden;
        /* border-radius: 120px 0 120px 0; -- REMOVIDO CONFORME PRESCRIÇÃO 8 */
        border: 10px solid var(--light-color);
        box-shadow: 0 0 0 2px var(--action-color);
    }
    .mission-image img {
        border-radius: 0; /* Reseta o border-radius da imagem para o container controlar a forma */
        border: none;
        box-shadow: none;
    }
    .mission-text img {
        margin: 0 auto 20px;
    }
    .peeking-dog-container {
        display: block;
        order: 3;
        margin-top: 2.5rem;
        background-color: var(--light-color); /* CORREÇÃO: Fundo branco conforme solicitado */
        position: relative;
        height: 180px;
        overflow: hidden;
        width: 100%;
    }
    /* CORREÇÃO (PhD 6): Lógica de posicionamento da imagem para focar na face. */
    .peeking-dog-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%; /* Foca nos 20% superiores da imagem */
    }

    .services-background-image { display: none; }
    .services-content-wrapper {
        width: 100%;
        margin-left: 0;
        padding: clamp(2rem, 5vw, 4rem);
        text-align: center;
    }

    .team-section {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .team-carousel-container {
        min-height: 350px;
        width: 100%;
        max-width: 350px;
    }

    .team-text-content {
        padding: 20px;
        background-image: none;
        text-align: center;
    }

    .testimonial-grid { grid-template-columns: 1fr; }

    /* IMPLEMENTAÇÃO (PhD 7): Estilos do Footer CTA para mobile, com base em 'servicos.css' */
    .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(--pink-bg);
        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) {
    /* ----- REGRAS PARA HERO EM TELAS MÉDIAS (TABLETS PEQUENOS, SMARTPHONES GRANDES) ----- */
    /* Mantém o vídeo visível, mas ajusta layout */
    .hero {
        min-height: 60vh;
        height: auto;
        /* REMOVIDO: background-image daqui para permitir que o vídeo seja visível */
        /* background-image: url('../Images/main_page/video-cachorro.webp'); */
        background-position: center 30%;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    /* REMOVIDO: A regra que escondia o vídeo (.hero video.hero-video { display: none !important; }) */

    .hero-content {
        margin-top: 0;
        margin-bottom: 0;
        max-width: 90%;
        padding: 20px;
        background-color: rgba(0,0,0,0.3);
    }
     /* ----- FIM DAS REGRAS PARA TELAS MÉDIAS ----- */


    .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; /* Alteração 7: Oculta o e-mail para focar na ação primária de ligar. */
    }
    /* --- FIM DA ALTERAÇÃO PRESCRITA --- */

    .top-bar .social-links { display: none; }

    .footer-bottom .social-links {
        display: block;
    }
}
/* ===== NOVA MEDIA QUERY PARA TELAS MUITO PEQUENAS ===== */
@media (max-width: 360px) { /* <--- ALTERE AQUI */
    .hero {
        /* Aplica a imagem de fundo APENAS para telas muito pequenas */
        background-image: url('../Images/main_page/video-cachorro.webp');
        /* Mantém outros estilos relevantes do breakpoint 767px */
        min-height: 60vh;
        height: auto;
        background-position: center 30%;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    /* Esconde o vídeo APENAS para telas muito pequenas */
    .hero video.hero-video {
        display: none !important;
    }

    /* Mantém estilos do .hero-content para consistência */
    .hero-content {
        margin-top: 0;
        margin-bottom: 0;
        max-width: 90%;
        padding: 20px;
        background-color: rgba(0,0,0,0.3);
    }
}
/* ===== FIM DA NOVA MEDIA QUERY ===== */


/* ==========================================================================
   WHATSAPP BUTTON (IMPLEMENTAÇÃO)
   ========================================================================== */
.whatsapp-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: var(--light-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) - REMOVIDO DAQUI
   A regra de background-position para .hero-section foi movida para dentro
   da media query @media (max-width: 980px) em servico-padrao.css e outras,
   e a regra para .hero (index.html) foi corrigida dentro de @media (max-width: 767px) e @media (max-width: 480px) acima.
   ========================================================================== */