:root {
    --gold: #D4AF37;
    --gold-light: #f3d467;
    --gold-hover: #b5952f;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

/* --- RESET & OTIMIZAÇÃO (CORREÇÃO MAC/SAFARI) --- */
html { 
    scroll-behavior: smooth;
    /* IMPORTANTE: Não colocar overflow-x aqui para não travar o Mac */
    
    /* Otimizações para Mobile */
    -webkit-text-size-adjust: 100%; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    width: 100%;
    position: relative;
    
    /* Overflow lateral controlado aqui */
    overflow-x: hidden; 
    
    /* Fontes nítidas */
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* --- SEGURANÇA DO MENU (DESKTOP) --- */
/* Garante que o menu sempre apareça em telas grandes */
@media (min-width: 769px) {
    .nav-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        pointer-events: auto !important;
    }
    .nav-menu ul { flex-direction: row !important; }
    .mobile-menu-icon { display: none !important; }
}

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #080808; z-index: 99999; 
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
    pointer-events: auto; 
}
.preloader-content { text-align: center; }
.pulsing-logo { width: 80px; animation: pulse 1.5s infinite; filter: grayscale(100%) brightness(200%); margin-bottom: 20px; }
.loading-bar { width: 150px; height: 2px; background: #333; margin: 0 auto; position: relative; overflow: hidden; }
.loading-bar::after {
    content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%;
    background: var(--gold); animation: loading 1.5s infinite ease-in-out;
}

/* --- TIPOGRAFIA & UTILITÁRIOS --- */
h1, h2, h3 { font-family: var(--font-heading); color: #fff; text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-50 { margin-bottom: 50px; }
.gold-text { color: var(--gold); }

/* --- BUTTONS --- */
.btn-cta-main, .btn-cta-small {
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    color: #000; font-family: var(--font-heading); font-weight: 700;
    padding: 16px 35px; border-radius: 4px; display: inline-block;
    text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); position: relative; overflow: hidden;
}
.btn-cta-main:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); }
.btn-cta-small { padding: 10px 25px; font-size: 0.85rem; }

.btn-outline {
    border: 1px solid var(--gold); color: var(--gold); padding: 12px 20px;
    display: block; text-align: center; margin-top: 15px; border-radius: 4px;
    width: 100%; font-weight: 600; text-transform: uppercase; font-size: 0.9rem;
}
.btn-outline:hover { background: var(--gold); color: #000; }

/* --- HEADER --- */
header {
    background-color: rgba(18, 18, 18, 0.9); padding: 15px 0; position: fixed;
    width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; } 

.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--gold); transition: width 0.3s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a:hover::after { width: 100%; }
.mobile-menu-icon { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background: url('../img/hero-bg.jpg') center/cover no-repeat; z-index: 0;
}
.hero .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(18,18,18,0.9), #121212); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding-top: 60px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #e0e0e0; font-weight: 300; }
.badges { margin-bottom: 35px; color: var(--gold); font-family: var(--font-heading); font-size: 1.1rem; }
.hero-subtext { margin-top: 20px; color: #888; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; }
.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 1.5rem; z-index: 2; animation: bounce 2s infinite; opacity: 0.7;
}

/* --- EQUIPE --- */
/* Correção Grid: minmax reduzido para 280px para evitar scroll horizontal em celulares pequenos */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.team-card {
    background: var(--card-bg); padding: 20px; border-radius: 8px; border: 1px solid #333;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.team-card:hover { border-color: var(--gold); transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.team-card .img-box { height: 320px; overflow: hidden; border-radius: 6px; margin-bottom: 20px; position: relative; }
.team-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.team-card:hover .img-box img { transform: scale(1.1); filter: grayscale(0%); }
.team-card h3 { font-size: 1.4rem; margin-bottom: 5px; }
.team-card .role { color: var(--gold); font-size: 0.8rem; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.team-card .desc { color: #ccc; font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

/* --- SERVIÇOS --- */
.bg-darker { background-color: #0d0d0d; position: relative; }
.bg-darker::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#333 1px, transparent 1px); background-size: 30px 30px; opacity: 0.1; pointer-events: none;
}

/* Correção Selo Recomendado: margin-top adicionado para não cobrir o título */
.pricing-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; 
    position: relative; 
    z-index: 1;
    margin-top: 50px; 
}

.pricing-column { background: var(--card-bg); padding: 35px; border-radius: 12px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.premium-border { border: 1px solid var(--gold); position: relative; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); }
.premium-border::after {
    content: 'Recomendado'; position: absolute; top: -12px; right: 20px; background: var(--gold); color: #000;
    padding: 4px 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; border-radius: 4px;
}
.price-list li { display: flex; justify-content: space-between; margin-bottom: 18px; border-bottom: 1px solid #2a2a2a; padding-bottom: 15px; }
.price-list li:last-child { border-bottom: none; }
.p-info strong { display: block; font-size: 1rem; font-weight: 600; color: #eee; }
.p-info span { font-size: 0.8rem; color: var(--text-muted); }
.p-price { font-weight: 700; color: var(--gold); font-size: 1.1rem; font-family: var(--font-heading); }

/* --- REVIEWS --- */
/* Correção Espaçamento: gap aumentado para 50px */
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 50px; 
}

.review-card { background: var(--card-bg); padding: 30px; border-radius: 8px; border-left: 4px solid var(--gold); transition: 0.3s; }
.review-card:hover { background: #252525; transform: scale(1.02); }
.review-card .stars { color: var(--gold); margin-bottom: 15px; font-size: 0.9rem; }
.review-card p { font-style: italic; color: #ddd; font-size: 1rem; line-height: 1.7; }
.review-card small { display: block; margin-top: 20px; font-weight: bold; color: #fff; font-family: var(--font-heading); letter-spacing: 0.5px; }

/* --- FOOTER --- */
footer { background: #050505; padding: 70px 0 30px; border-top: 1px solid #222; }
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1.5fr; 
    gap: 40px; 
    align-items: start;
    margin-bottom: 60px;
}
.footer-logo { width: 100px; margin-bottom: 20px; filter: grayscale(100%) brightness(200%); opacity: 0.8; transition: 0.3s; }
.footer-logo:hover { opacity: 1; filter: none; }
.address-text a:hover { color: var(--gold); text-decoration: underline; }

.footer-hours-social h4 { color: #fff; margin-bottom: 15px; font-size: 1.1rem; }
.footer-hours-social p { color: #ccc; margin-bottom: 5px; }
.social-icons a { font-size: 1.5rem; margin-right: 20px; color: #fff; transition: 0.3s; }
.social-icons a:hover { color: var(--gold); transform: translateY(-3px); display: inline-block; }

.footer-map iframe { box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; }
.footer-map iframe:hover { filter: none !important; }

.copyright-container {
    border-top: 1px solid #1a1a1a; padding-top: 30px; text-align: center;
    display: flex; justify-content: center;
}
.copyright-text p { font-size: 0.85rem; color: #666; margin-bottom: 5px; }
.agency { margin-top: 5px; font-size: 0.8rem; color: #555; }
.onrutas-link { color: #777; font-weight: 600; text-decoration: none; position: relative; transition: 0.3s; }
.onrutas-link:hover { color: var(--gold); letter-spacing: 0.5px; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #fff;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 2000;
}
.pulsing-btn { animation: pulse-green 2s infinite; }

/* --- KEYFRAMES --- */
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes loading { 0% { left: -50%; } 100% { left: 100%; } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; } 
    .footer-map { grid-column: span 2; }
}

@media (max-width: 768px) {
    /* CORREÇÃO ROLAMENTO LATERAL */
    .container {
        width: 90%; 
        padding: 0;
        overflow: hidden; /* Corta elementos que tentem sair */
    }
    
    /* Menu Mobile */
    .nav-menu { 
        display: none; 
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: rgba(18, 18, 18, 0.98); 
        backdrop-filter: blur(10px);
        padding: 30px 20px; 
        border-bottom: 1px solid var(--gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.9); z-index: 9999;
        opacity: 0; transition: opacity 0.3s ease;
    }
    .nav-menu ul { flex-direction: column; text-align: center; gap: 25px; }
    .mobile-menu-icon { display: block; }
    
    /* Ajustes Gerais Mobile */
    .hero h1 { font-size: 2.2rem; }
    .header-container .btn-cta-small { display: none; }
    .hero { padding-top: 60px; }
    
    /* Footer Mobile */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-map { grid-column: span 1; }
    .social-icons { justify-content: center; display: flex; }
    
    /* Força colunas únicas */
    .team-grid, .pricing-container, .reviews-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
}