/* ==========================================================================
   Variáveis Globais (Paleta: Laranja, Cinza e Branco)
   ========================================================================== */
:root {
    --primary-color: #333333;     /* Cinza Escuro/Grafite (Títulos e Footer) */
    --secondary-color: #555555;   /* Cinza Médio (Textos de parágrafos) */
    --accent-color: #F26522;      /* Laranja (Destaques, Botões e Links) */
    --bg-light: #F8F9FA;          /* Cinza muito claro (Fundos de seções alternadas) */
    --white: #FFFFFF;             /* Branco puro */
    --border-color: #DDDDDD;      /* Cinza claro para bordas e divisórias */
    --wa-color: #25D366;          /* Verde Oficial do WhatsApp (Mantido por UX) */
    --transition: 0.3s ease-in-out;
}

/* ==========================================================================
   Reset e Configurações Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--secondary-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
}

/* ==========================================================================
   Navegação (Header)
   ========================================================================== */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Tamanhos do Logotipo Oficial (Header e Footer)
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
}

.logo-header {
    max-height: 45px; /* Tamanho ideal para não estourar a altura do menu */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-header:hover {
    transform: scale(1.05); /* Efeito de zoom suave ao passar o mouse */
}

.logo-footer {
    max-height: 70px; /* Maior no rodapé para destacar a marca */
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn-main {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    background-color: #d9531e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ==========================================================================
   Hero Section - Ecrã Dividido (Tamanho Otimizado para 1ª Dobra)
   ========================================================================== */
.hero-split {
    display: flex;
    min-height: calc(100vh - 70px); 
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-img-box {
    flex: 1;
    min-height: 100%;
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text-box {
    flex: 1;
    padding: 3% 4%; /* Reduzido para não empurrar os botões para baixo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-alerta {
    display: inline-block;
    background-color: #FFF3CD;
    color: #856404;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 12px; /* Margem reduzida */
    border: 1px solid #FFEEBA;
    width: fit-content;
}

.hero-text-box h1 {
    font-size: 2.1rem; /* Fonte ligeiramente reduzida para caber melhor */
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-descricao {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 15px; /* Margem reduzida */
    line-height: 1.4;
}

.hero-infos {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px; /* Box mais compacta */
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icone {
    font-size: 1.3rem;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    font-size: 0.95rem;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
}

.hero-botoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Responsividade: Ajustes Críticos para Mobile
   ========================================================================== */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        min-height: auto; /* Deixa o conteúdo ditar a altura */
    }
    
    .hero-img-box {
        flex: none; /* Impede a imagem de crescer descontroladamente */
        height: 220px; /* FIXADO: Imagem mais curta no mobile */
        min-height: 220px;
    }
    
    .hero-text-box {
        padding: 20px 15px;
        justify-content: flex-start;
    }

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

    .hero-descricao {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .hero-infos {
        padding: 10px;
        margin-bottom: 20px;
    }

    .hero-botoes {
        flex-direction: column;
    }
    
    .hero-botoes .btn-main, .hero-botoes .btn-outline-dark {
        width: 100%;
        text-align: center;
    }
}

/* Pequeno ajuste extra: esconde o botão do header no mobile para não esmagar a logo */
@media (max-width: 768px) {
    .nav-container .btn-outline {
        display: none; 
    }
    .logo-header {
    max-height: 35px; /* Reduz a imagem no telemóvel para encaixar perfeitamente com o botão hambúrguer */
    }
}

/* ==========================================================================
   Diferenciais / Serviços Básicos
   ========================================================================== */
.diferenciais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card-diferencial {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.card-diferencial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom-color: var(--accent-color);
}

.card-diferencial h3 {
    margin-bottom: 15px;
}

/* ==========================================================================
   Páginas Internas (Preparação para Serviços, Blog, etc.)
   ========================================================================== */
.page-header {
    background-color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-color);
}

.lista-servicos {
    list-style: none;
    margin-top: 20px;
}

.lista-servicos li {
    background: var(--white);
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Rodapé (Footer)
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--border-color);
    padding: 40px 0 20px;
}

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

.footer-content h3, .footer-content h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    padding-top: 20px;
    font-size: 14px;
}

/* ==========================================================================
   WhatsApp e Modal
   ========================================================================== */
.btn-float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-color); /* Mantido verde por padrão de UX/Reconhecimento */
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-float-wa:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(51, 51, 51, 0.8); /* Fundo escurecido em cinza */
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto; 
    padding: 30px; 
    border-radius: 8px;
    width: 90%; 
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    text-align: left;
}

.modal-content h3 {
    margin-bottom: 15px;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 15px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: var(--primary-color);
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--secondary-color); 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Menu Hambúrguer e Responsividade do Topo
   ========================================================================== */

/* Estilo Base do Ícone Hambúrguer (Oculto no Desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    margin-left: auto; /* ESTA É A MÁGICA: Empurra o hambúrguer totalmente para a direita no celular! */
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Oculta o CTA mobile quando estiver no desktop */
.nav-cta-mobile {
    display: none; 
}

/* Regras exclusivas para Celulares e Tablets */
@media (max-width: 850px) {
    .cta-desktop {
        display: none; /* Esconde o botão do topo para não esmagar a logo */
    }

    .menu-toggle {
        display: flex; /* Exibe o ícone hambúrguer */
    }

    /* O menu vira uma gaveta lateral */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela à direita */
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 0; /* Remove o gap padrão do desktop */
    }

    /* Classe ativada via JS para mostrar o menu */
    .nav-links.nav-active {
        right: 0; 
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-cta-mobile {
        display: block; /* Mostra o botão dentro do menu */
        margin-top: 20px;
    }

    /* Animação do X no ícone hambúrguer */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-color);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-color);
    }
}

/* ==========================================================================
   Página de Serviços: UI dos Cartões e Modal "Mini Hero"
   ========================================================================== */

/* Grelha de Cartões */
.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.servico-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.icone-servico {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.servico-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.servico-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

/* Modal Mini Hero Sofisticado */
.modal-mini-hero {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(34, 34, 34, 0.85); /* Overlay escuro */
    backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
}

.modal-mh-content {
    background-color: var(--white);
    margin: 5% auto; 
    border-radius: 12px;
    width: 90%; 
    max-width: 850px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden; /* Mantém a imagem dentro das bordas arredondadas */
    animation: abrirMiniHero 0.4s ease-out forwards;
}

@keyframes abrirMiniHero {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-mh-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary-color); 
    background: var(--white);
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; 
    font-weight: bold; 
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.close-mh-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Layout Split dentro do Modal */
.mh-layout {
    display: flex;
    min-height: 400px;
}

.mh-imagem {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.mh-texto {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mh-badge {
    background-color: #FFF3CD;
    color: #856404;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 15px;
}

.mh-texto h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.mh-texto p {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.mh-botoes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsividade do Mini Hero (Mobile) */
@media (max-width: 768px) {
    .mh-layout {
        flex-direction: column;
    }
    .mh-imagem {
        min-height: 200px;
    }
    .mh-texto {
        padding: 25px;
    }
    .mh-texto h2 {
        font-size: 1.6rem;
    }
    .modal-mh-content {
        margin: 10% auto;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ==========================================================================
   Página de Locais: Cartões Interativos
   ========================================================================== */
.grid-locais {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.local-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.local-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.1);
}

.local-card.destaque {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

.local-card.destaque:hover {
    border-left-color: var(--accent-color);
}

.pino-mapa {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.local-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.local-card p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* ==========================================================================
   Página de Galeria: Grelha e Efeitos
   ========================================================================== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--border-color);
    aspect-ratio: 4 / 3;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: block;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.1);
}

.galeria-legenda {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.85);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-legenda {
    transform: translateY(0);
}

/* ==========================================================================
   Página de Blog: Cards de Artigos
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.blog-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-box img {
    transform: scale(1.08); /* Dá um zoom suave na foto ao passar o mouse */
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-badge.alerta {
    background-color: #dc3545; /* Vermelho para coisas urgentes de segurança */
}

.blog-content {
    padding: 25px;
    flex-grow: 1; /* Faz o conteúdo esticar para igualar os tamanhos dos cards */
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-content .btn-link {
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
}

.blog-content .btn-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Páginas de Artigo (Blog Interno)
   ========================================================================== */
.post-container {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.btn-voltar-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.btn-voltar-blog:hover {
    text-decoration: underline;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
}

.post-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.post-content h2 {
    color: var(--primary-color);
    margin: 35px 0 15px;
    font-size: 1.5rem;
}

.post-content p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.post-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-cta {
    background-color: var(--bg-light);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
}

.post-cta h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}