:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --accent: #f39c12;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --card-border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Header */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 254, 254, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: 700; font-size: 1.5rem; }
.logo span { color: var(--accent); }

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent); }

/* Sections Common */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title p {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
}


/* Hero */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(206, 205, 205, 0.7), rgba(245, 215, 181, 0.8)), url('imgs/fundo-hero.webp') no-repeat center center/cover;
}

.hero h1 {
    font-size: 3rem;
    margin: 20px 0 70px 0;
    max-width: 800px;
}

.btn {
    background: var(--accent);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* About & Services */
.about, .services, .gallery { padding: 100px 10%; }
.about {
    display: flex;
    justify-content: center;
}
.about-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Alinha filhos do container ao centro */
    text-align: center;
}
.about .subtitle {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    width: 100%; /* Garante que o texto use o alinhamento do pai */
}
.about h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
}
.divider { 
    width: 50px; 
    height: 3px; 
    background: var(--accent); 
    margin: 20px auto; 
}
.description { 
    color: var(--text-dim); 
    max-width: 700px; 
    margin: 0 auto 30px; 
    line-height: 1.8; 
}
.light-theme .description {
    color: #333333; /* Força o texto descritivo a ser um cinza bem escuro */
}
.trust-badges {
    display: flex;
    justify-content: center; /* Centraliza badges no flexbox */
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.trust-badges span {
    font-weight: 700;
    border: 1px solid var(--card-border);
    padding: 8px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Services */
.services { 
    padding: 100px 10%;
    background-color: var(--bg-secondary);
}
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.service-card { 
    padding: 40px; 
    border: 1px solid var(--card-border); 
    border-radius: 8px; 
    transition: border-color 0.3s;
}
.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px); /* Opcional: Adiciona uma sombra suave para dar profundidade */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.service-card h3 { 
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.service-card p {
    color: var(--text-dim);
}

/* Gallery Slider  */
.gallery {
    padding: 100px 10%;
}
.gallery-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.gallery-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
    width: 100%;
}

.gallery-slider::-webkit-scrollbar { display: none; }

.gallery-item {
    flex: 0 0 320px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--card-border);
    color: var(--accent);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
}

.nav-btn.prev { left: -15px; }
.nav-btn.next { right: -15px; }

/* --- FOOTER COMPLETO E CORRIGIDO --- */
.main-footer {
    background: var(--bg-secondary);
    padding: 80px 10% 40px;
    border-top: 1px solid var(--card-border);
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr; /* Define as 3 colunas */
    gap: 50px;
    align-items: start;
}

/* Regra base para todas as colunas */
.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Coluna 1: Alinhada à Esquerda */
.footer-column.left {
    align-items: flex-start;
}

.footer-column .logo {
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Mapa */
.map-container {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: #000; /* Fundo enquanto o mapa carrega */
}

/* Coluna 2: Centralizada */
.footer-column.central {
    align-items: center;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.contact-item svg {
    width: 20px;
    height: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links svg {
    width: 25px;
    height: 25px;
    color: var(--text-dim);
    transition: 0.3s;
}

.social-links a:hover svg {
    color: var(--accent);
}

/* Coluna 3: Formulário */
.footer-column.right {
    align-items: flex-start;
}

.footer-column h3 {
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
}

.btn-submit {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsividade */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-column, .footer-column.left, .footer-column.right {
        align-items: center;
    }
}
/* --- MOBILE MENU STYLES --- */

/* Esconde o botão no desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Configurações para dispositivos móveis (max-width: 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora do ecrã */
        width: 70%;
        height: 100vh;
        background-color: var(--bg-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        border-left: 1px solid var(--card-border);
        z-index: 1050;
    }

    /* Quando o menu está ativo */
    nav.active {
        right: 0;
    }

    nav a {
        margin: 20px 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    /* Animação do ícone Hamburger para 'X' */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        background-color: var(--accent);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        background-color: var(--accent);
    }
}
/* Definição de tema claro */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f0f0;
    --accent: #d35400; /* Um tom de laranja um pouco mais escuro para melhor contraste */
    --text-main: #1a1a1a;
    --text-dim: #555555;
    --card-border: #cccccc;
}

/* Ajuste específico para o header no tema claro para manter visibilidade */
.light-theme header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--card-border);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
}
/* Ajuste para ícones ou elementos que precisem de inversão */
.light-theme .logo span {
    color: var(--accent);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main);
    transition: background-color 5000s ease-in-out 0s;
}