/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    /* Paleta de Cores */
    --bg-dark: #0a0b10;         /* Preto quase absoluto */
    --bg-navy: #0f172a;         /* Azul Naval profundo */
    --bg-card: #161e2e;         /* Azul levemente mais claro para cards */
    --primary-gold: #d4af37;    /* Dourado principal */
    --primary-gold-hover: #b5952f;
    
    /* Texto */
    --text-main: #f8fafc;       /* Branco gelo para leitura */
    --text-muted: #94a3b8;      /* Cinza azulado para descrições */
    
    /* Tipografia */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --header-height: 80px;
    --border-radius: 4px; /* Bordas mais retas para o visual geométrico */
}

/* Reset e Acessibilidade Básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip Link para Acessibilidade (Visível apenas ao tabular) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 10px 20px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Foco visível de alto contraste para navegação via teclado */
:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gold { color: var(--primary-gold); }

/* --- COMPONENTES DE UI --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Botão Primário (Dourado) */
.btn-primary {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Botão Outline (Borda Dourada) */
.btn-outline {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--bg-dark);
}

/* --- HEADER & NAVEGAÇÃO --- */
header {
    background-color: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

/* Efeito Hover na navegação (Linha crescendo) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- SEÇÕES E LAYOUT --- */
section {
    padding: 80px 20px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Elementos Geométricos de Fundo */
.geometric-bg {
    position: relative;
    background-color: var(--bg-navy);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); /* Corte diagonal no fundo */
}

/* --- HERO SECTION --- */
.hero {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    background-image: linear-gradient(to right, rgba(10,11,16, 0.9), rgba(10,11,16, 0.6)),
                      url('../assets/hero.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #0a0b10;
}

.hero-content {
    max-width: 800px;
    margin-left: 5%; /* Design assimétrico */
    opacity: 0; /* Para animação de entrada */
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- CARDS DE SERVIÇOS (Grid) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Detalhe geométrico no card */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-gold);
    transition: height 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

.card:hover::before {
    height: 100%;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* --- RODAPÉ --- */
footer {
    background-color: #000;
    padding: 60px 20px 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto 40px;
}

/* Ajuste de contraste para acessibilidade no Footer */
.footer-grid h3 {
    color: var(--text-main); /* Garante contraste no título */
    font-size: 1.1rem;
}

.footer-grid p, 
.footer-grid ul {
    color: #bfbfbf; /* Cor mais clara para passar no contraste AA */
    font-size: 0.9rem;
}

.footer-grid a {
    color: #bfbfbf; /* Link mais claro */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-grid a:hover {
    color: var(--primary-gold);
}

/* --- ANIMAÇÕES --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe utilitária para JS Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        height: calc(100vh - var(--header-height));
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid #222;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-btn {
        display: block; /* Será tratado no HTML */
        color: var(--text-main);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* --- TOAST NOTIFICATION --- */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999; /* Para ficar acima de tudo */
    right: 30px;
    top: 100px; /* Abaixo do header */
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s, top 0.5s;
    border-left: 5px solid transparent;
}

/* Classe para quando estiver visível */
.toast.show {
    visibility: visible;
    opacity: 1;
    top: 110px; /* Efeito de descida suave */
}

/* Cores de status */
.toast.success {
    border-left-color: #2ecc71; /* Verde */
    background-color: #1e2530;
}

.toast.error {
    border-left-color: #e74c3c; /* Vermelho */
    background-color: #1e2530;
}