: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 {
    overflow-x: hidden; /* Vital: impede que o site "dance" para os lados */
    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(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    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.8rem; }

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

.hero h1 { font-size: 3rem; margin: 20px 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%; }

.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; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: var(--bg-secondary); padding: 40px; border: 1px solid var(--card-border); border-radius: 8px; }


/* About - Centralização Total Corrigida */
.about {
    padding: 100px 10%;
    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: 0 auto 25px; }
.description { color: var(--text-dim); line-height: 1.8; margin-bottom: 30px; }

.trust-badges {
    display: flex;
    justify-content: center; /* Centraliza badges no flexbox */
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.trust-badges span {
    border: 1px solid var(--card-border);
    padding: 8px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Services */
.services, .gallery { padding: 100px 10%; }
.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.8rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: var(--bg-secondary); padding: 40px; border: 1px solid var(--card-border); border-radius: 8px; }

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    /* Opcional: Adiciona uma sombra suave para dar profundidade */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery Slider - O ponto do bug */
.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: 24px;
    height: 24px;
    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: 12px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    color: #fff;
    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);
    }
}
