/* ===================================================================
   1. ESTILOS GLOBAIS E CONFIGURAÇÕES INICIAIS
=================================================================== */

/* Variáveis CSS (Root) */
:root {
    /* ALTERAÇÃO: Adicionadas variáveis de cor para fácil manutenção */
    --cor-primaria: #E2D5BE;
    --cor-secundaria: #213143;
    --cor-texto-claro: #ffffff;
    --cor-texto-escuro: #000000;
    --cor-texto-cinza: #333;
    --cor-hover: #b3b2b0;

    --logo-shift: 120px;
}

/* Reset básico e configurações padrão para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem; /* ALTERAÇÃO: Removido ".000" desnecessário */
}

.fade-highlight {
    animation: fadeEffect 1.5s ease-in-out;
}

@keyframes fadeEffect {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    z-index: -1;
}

.container {
    flex: 1;
}

html, body {
  overflow-x: hidden;
}


/* ===================================================================
   2. CABEÇALHO (HEADER) E NAVEGAÇÃO
=================================================================== */

header {
    background-color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    padding: 1rem 6.25rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Estilização da Logo */
.logo {
    width: 6rem; /* Largura padrão */
    height: auto; /* Altura padrão (que ajustamos) */
    object-fit: contain;

}

/* Deixa a imagem invisível até carregar */
.background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* suaviza a entrada */
}

/* Quando carregar, aparece suavemente */
.background-container img.loaded {
    opacity: 1;
}

/* Overlay azul */ 
.background-container::after { 
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(3, 36, 70, 0.856); /* azul com transparência */ pointer-events: none; /* não bloqueia cliques nos elementos acima */ 
}

nav {
    display: flex;
    justify-content: flex-end;
    padding-right: 19.4%;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: rgb(7, 7, 7);
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* ALTERAÇÃO: Removido `outline: none` por acessibilidade. A borda padrão do navegador é importante.
   Se desejar um estilo customizado, pode adicionar aqui, ex: outline: 2px solid var(--cor-primaria); */
.nav-menu li a:focus,
.nav-menu li a:active {
    box-shadow: none;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    transition: width 0.3s ease, left 0.3s ease;
}

/* ALTERAÇÃO: Adicionado o seletor :focus para melhorar a acessibilidade de navegação via teclado */
.nav-menu li a:hover::after,
.nav-menu li a.active::after,
.nav-menu li a:focus::after {
    width: 100%;
    left: 0;
}

.btn-cliente {
    background-color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    padding: 0.625rem 1rem;
    border-radius: 0.3125rem;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.btn-cliente:hover {
    background-color: var(--cor-hover); /* ALTERAÇÃO: Usando variável */
}


/* ===================================================================
   3. CONTEÚDO PRINCIPAL (MAIN / HERO SECTION)
=================================================================== */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.content {
    max-width: 72rem;
    width: 80%;
    text-align: left;
    margin: 7.5rem auto 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.content h3 {
    color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável e removendo !important */
    font-weight: normal;
}

.content h4 {
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável e removendo !important */
    font-weight: normal;
}

/* Em style.css */
.content h1, .content h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Adiciona uma sombra sutil */
}


/* ===================================================================
   4. TIPOGRAFIA E BOTÕES GERAIS
=================================================================== */

h1 {
    font-size: 2.8125rem;
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    margin: 0.625rem 0;
}

h2 {
    font-size: 1.5rem;
    color: var(--cor-texto-escuro); /* ALTERAÇÃO: Usando variável */
    font-weight: bold;
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    font-weight: bold;
}

h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    font-weight: normal;
}

.buttons {
    margin-top: 1.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.btn {
    text-decoration: none;
    padding: 0.875rem 0;
    width: 16.875rem;
    border-radius: 0.9375rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--cor-secundaria); /* ALTERAÇÃO: Usando variável */
    background-color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    background-color: var(--cor-hover); /* ALTERAÇÃO: Usando variável */
    transform: scale(1.05);
}

/* ALTERAÇÃO: Bloco .btn-agendamento REMOVIDO por ser idêntico a .btn.
   Use a classe .btn no seu HTML no lugar de .btn-agendamento. */


/* ===================================================================
   5. SEÇÃO DE SERVIÇOS
=================================================================== */

.services {
    width: 80%;
    max-width: 68.75rem;
    margin: 0.625rem auto;
    background-color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    border-radius: 0.9375rem;
    padding: 0.625rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
}

.services h2 {
    /* ALTERAÇÃO: Removido 'color: black' por ser redundante com a regra global de h2 */
    font-weight: bold;
    font-size: 2.1875rem;
}

.services h3 {
    color: var(--cor-texto-escuro); /* ALTERAÇÃO: Usando variável */
    font-weight: normal;
}

.service-container {
    display: flex;
    justify-content: space-around;
    gap: 1.25rem;
    margin-top: 0.625rem;
}

.service-box {
    width: 50%;
    padding: 1.25rem;
    border-radius: 0.625rem;
    text-align: center;
}

.service-icon img {
    /* ALTERAÇÃO: Removido 'font-size' pois não se aplica a imagens */
    margin-bottom: 0.9375rem;
    width: 4.375rem;
    height: auto;
    filter: invert(85%) sepia(13%) saturate(481%) hue-rotate(350deg) brightness(96%) contrast(93%);
}

.services .service-box h3 {
    position: relative;
    color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    padding: 0.5rem 1rem;
    line-height: 1.4;
    z-index: 1;
    min-height: 4.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px;
}

.services .service-box h3::before{
    content: "";
    position: absolute;
    top: 0;
    left: -0.5rem;
    width: calc(100% + 1rem);
    height: 100%;
    background-color: rgba(25, 54, 80, 0.95);
    border-radius: 6px;
    z-index: -1;
}


/* ===================================================================
   6. SEÇÃO DO MEIO (MIDDLE)
=================================================================== */

.middle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6.25rem 0;
    background-color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
}

.middle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 68.75rem;
    width: 80%;
    gap: 2.5rem;
}

.middle-text {
    flex: 1;
    max-width: 34.375rem;
    color: var(--cor-texto-cinza); /* ALTERAÇÃO: Usando variável */
}

.middle-text h2 {
    font-size: 1.75rem;
    color: var(--cor-texto-escuro); /* ALTERAÇÃO: Usando variável */
    margin-bottom: 0.9375rem;
}

.middle-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.9375rem;
}

.middle-text strong {
    color: var(--cor-texto-escuro); /* ALTERAÇÃO: Usando variável */
}

.middle-image img {
    width: 100%;
    max-width: 31.25rem;
    border-radius: 6.25rem 1.25rem 6.25rem 1.25rem;
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
    object-fit: cover;
    opacity: 0.9;
}


/* ===================================================================
   7. SEÇÃO DE ESPECIALIDADES
=================================================================== */

.specialities {
    width: 100%;
    max-width: none;
    margin: 3.125rem 0;
    background-color: var(--cor-secundaria); /* ALTERAÇÃO: Usando variável */
    border-radius: 0;
    padding: 3.125rem 0;
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ALTERAÇÃO: Seletores agrupados para evitar repetição */
.specialities h2,
.specialities h3 {
    margin-top: 1.5rem;
}

.specialities h2 {
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
}

.specialities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.875rem;
}

.specialities-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.specialities-box {
    background-color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    color: var(--cor-texto-cinza); /* ALTERAÇÃO: Usando variável */
    width: 100%;
    max-width: 21.875rem;
    padding: 1.875rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.875rem;
    position: relative;
    margin-top: 3.125rem;
    min-height: 30.875rem;
    height: auto;
}

.specialities-box .specialities-icon {
    background-color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -1.875rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.875rem;
}

.specialities-icon img {
    width: 40px;
    height: auto;
}


/* ===================================================================
   8. SEÇÃO SOBRE (ABOUT)
=================================================================== */

.about {
    margin-top: -3.125rem;
    width: 100%;
    height: 25rem;
    /* ALTERAÇÃO: Removido 'background-image' para evitar redundância com a tag <img> */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #e9d1b1;
}

.about-bg {
    width: 100%;
    height: 100%;
    max-width: 1080px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: calc(50% - 540px + 350px);
    right: 5%;
    object-fit: contain;
    z-index: 0;
    overflow: hidden;
    opacity: 0.9;
}

.about-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.about-content {
    max-width: 71.875rem;
    text-align: left;
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    margin-bottom: 0.9375rem;
    font-weight: bold;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.9375rem;
}


/* ===================================================================
   9. BOTÃO FLUTUANTE DO WHATSAPP
=================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 100%;
}


/* ===================================================================
   10. RODAPÉ (FOOTER)
=================================================================== */

.footer {
    background-color: var(--cor-secundaria); /* ALTERAÇÃO: Usando variável */
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    padding: 3.125rem 0;
    width: 100%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 1.25rem;
    gap: 1.25rem;
}

.footer-nav {
    flex: none;
    min-width: auto;
    text-align: left;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin: 0.625rem 0;
}

.footer-nav ul li a {
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: var(--cor-texto-escuro); /* ALTERAÇÃO: Usando variável */
}

.footer-contact {
    flex: none;
    min-width: auto;
    text-align: left;
}

.footer-contact p {
    margin: 0.3125rem 0;
    color: var(--cor-texto-claro); /* ALTERAÇÃO: Usando variável */
}

.footer-contact a {
    /* ALTERAÇÃO: Removido !important. A especificidade já é suficiente. */
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: normal;
}

.footer-contact a:hover {
    color: #ccc;
}

.icon-footer {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 0.625rem;
    border: none;
    border-radius: 0.3125rem;
    font-size: 0.875rem;
}

.footer-form textarea {
    height: 6.25rem;
    resize: none;
}

.footer-form .btn {
    background-color: var(--cor-primaria); /* ALTERAÇÃO: Usando variável */
    color: var(--cor-secundaria); /* ALTERAÇÃO: Usando variável */
    width: 100%;
    padding: 0.625rem;
    border: none;
    border-radius: 0.3125rem;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.3s; /* ALTERAÇÃO: simplificado para background-color */
}

.footer-form .btn:hover {
    background-color: var(--cor-hover); /* ALTERAÇÃO: Usando variável */
}

.footer-bottom {
    background-color: #111;
    padding: 0.625rem;
    margin-top: 1.25rem;
}


/* ===================================================================
   16. CLASSES UTILITÁRIAS
=================================================================== */

.is-hidden {
    display: none !important; /* Uso de !important aqui é aceitável para uma classe utilitária */
}


.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(226, 213, 190, 1) 0%,
    rgba(226, 213, 190, 0.85) 25%,
    rgba(226, 213, 190, 0.4) 55%,
    rgba(226, 213, 190, 0) 75%
  );

  pointer-events: none;
}
