/* --- Variáveis de Cor e Configurações Globais --- */
:root {
    --highlight-color: #D89323; 
    --highlight-color-hover: #f4ab37; 
    --font-family: 'Poppins', sans-serif;
}

/* --- Reset Básico e Estilos do Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    /* A imagem de fundo é aplicada aqui para garantir a cobertura total */
    background: linear-gradient(rgba(45, 45, 45, 0.9), rgba(45, 45, 45, 0.9)), url('Fotos/costagomes.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: var(--font-family);
    color: #f0f0f0;
    line-height: 1.6;
    width: 100%;
    min-height: 100%; /* Garante que o body ocupe no mínimo 100% da altura do HTML */
}

h1, h2, h3 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout do Container --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Cabeçalho e Navegação --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.177);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; 
}

.logo {
    max-height: 180px; 
    width: auto;
    height: auto;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
    margin-top: 10px;
}

/* --- Menu Desktop --- */
.desktop-nav {
    display: none; /* Escondido por padrão, visível em telas maiores */
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.desktop-nav a:not(.nav-button):hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--highlight-color);
}

.desktop-nav a.nav-button {
    background-color: var(--highlight-color);
    color: #ffffff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.desktop-nav a.nav-button:hover {
    background-color: var(--highlight-color-hover);
    color: #ffffff;
    transform: scale(1.05);
}

/* --- Menu Mobile --- */
.mobile-menu-wrapper {
    display: none; /* Escondido por padrão, visível em telas menores */
}

#mobile-menu-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-menu-button:hover {
  background-color: rgba(0,0,0,0.2);
}

#mobile-menu-button .icon {
    height: 28px;
    width: 28px;
}

/* MODIFICADO: Estilos do container do menu mobile para animação */
#mobile-menu {
   background-color: rgba(0, 0, 0, 0.18); 
   -webkit-backdrop-filter: blur(10px); 
   backdrop-filter: blur(10px); 
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
   border-bottom: 1px solid rgba(0, 0, 0, 0.1);
   
   /* Propriedades para a animação */
   max-height: 0;
   opacity: 0;
   overflow: hidden;
   visibility: hidden;
   padding-top: 0;
   padding-bottom: 0;
   transition: max-height 0.4s ease-out, opacity 0.3s ease-in, padding 0.4s ease-out, visibility 0.4s;
}

/* NOVA CLASSE: Torna o menu visível e aciona a animação */
#mobile-menu.menu-visible {
    max-height: 400px; /* Um valor seguro maior que a altura do menu */
    opacity: 1;
    visibility: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
}


#mobile-menu a {
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1rem; 
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#mobile-menu a:not(.nav-button):hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--highlight-color);
}

#mobile-menu a.nav-button {
    background-color: var(--highlight-color);
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#mobile-menu a.nav-button:hover {
    background-color: var(--highlight-color-hover);
    color: #ffffff;
    transform: scale(1.02); 
}

.hidden {
  display: none !important;
}

/* --- Seções --- */
section {
    padding: 5rem 0;
}

/* Seção Hero */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content .highlight {
    color: var(--highlight-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff; 
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--highlight-color);
    color: #ffffff;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--highlight-color-hover);
    transform: scale(1.05);
    color: #ffffff;
}

/* Seção Sobre */
.about-content {
    display: grid;
    gap: 2rem 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.about-text p {
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Cabeçalho da Seção */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #ffffff;
}

/* --- Seção de Áreas de Atuação --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background-color: rgba(80, 80, 80, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 320px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.service-card-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Seção de Localização */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.map-container iframe {
    display: block;
}

/* --- Rodapé --- */
.site-footer-contact {
    background-color: #252525;
    color: #f0f0f0;
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.site-footer-contact h2 {
    color: #ffffff;
}

.footer-text {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #f0f0f0;
    font-weight: 600;
}

.social-links a:hover {
    color: var(--highlight-color);
}

.copyright {
    color: #cccccc;
    font-size: 0.875rem;
    margin-top: 3rem;
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 767px) {
    h1 { font-size: 2.5rem; }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
    }
    
    .desktop-nav {
      display: none;
    }

    .mobile-menu-wrapper {
      display: block;
    }

    /* Ajuste da margem de rolagem para mobile */
    section[id] {
        scroll-margin-top: 300px;
    }
}

@media (min-width: 768px) {
    h1 { font-size: 4rem; }

    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-wrapper {
        display: none;
    }
    #mobile-menu {
      display: none !important; /* Garante que o menu mobile nunca apareça em telas grandes */
    }

    .about-content {
        grid-template-columns: 300px 1fr;
    }

    /* Ajuste da margem de rolagem para desktop */
    section[id] {
        scroll-margin-top: 50px;
    }
}

/* --- ESTILOS PARA O ACCORDION DE BIOGRAFIAS --- */
.accordion {
    background-color: transparent;
    color: inherit;
    cursor: pointer;
    padding: 1rem 0;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: background-color 0.4s;
    margin: 0;
}

.accordion h2 {
    margin: 0;
    transition: color 0.3s ease;
}

.accordion:hover h2,
.accordion.active h2 {
    color: var(--highlight-color);
}

.accordion::after {
    content: '\002B';
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 2rem;
    float: right;
    margin-left: 10px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.accordion.active::after {
    content: "\2212";
    transform: rotate(180deg);
}

.panel {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.panel p {
    padding: 0.5rem 0 1.5rem 0;
}
