/*
Theme Name: Estrada Real Cyber
Theme URI: https://consultoria.estradarealnet.com.br
Author: Estrada Real Networks
Description: Tema customizado cyberpunk avançado.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: estrada-real
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

:root {
    --bg-color: #030303;
    --neon-green: #00ff88;
    --neon-cyan: #00e5ff;
    --text-color: #b0b0b0;
    --border-color: #1a1a1a;
    --glow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fundo de Grade Animada */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Efeito de Scanline */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.1) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green), 0 0 15px rgba(0, 255, 136, 0.5);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover { color: #fff; text-shadow: 0 0 10px var(--neon-green); }

/* Header */
.site-header {
    background: rgba(3, 3, 3, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.site-branding { display: flex; flex-direction: column; }
.site-title a { font-family: 'Orbitron', sans-serif; color: var(--neon-green); font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; text-shadow: var(--glow); }
.site-description { color: var(--text-color); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; }

/* Menu */
.main-navigation ul { list-style: none; display: flex; gap: 2.5rem; }
.main-navigation a { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; position: relative; padding-bottom: 5px; }
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--neon-green);
    box-shadow: var(--glow);
    transition: width 0.3s ease;
}
.main-navigation a:hover::after { width: 100%; }

/* Container Principal */
.site-main { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; min-height: 70vh; position: relative; z-index: 1; }

/* Botões */
.btn, button, input[type="submit"] {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 1rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2), inset 0 0 10px rgba(0, 255, 136, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover, button:hover, input[type="submit"]:hover {
    background: var(--neon-green);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--neon-green);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: rgba(3, 3, 3, 0.95);
    border-top: 1px solid var(--neon-green);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Cards com Efeito 3D */
.card {
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    background: rgba(10, 10, 10, 0.7);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover { 
    border-color: var(--neon-green); 
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}
.card:hover::before { opacity: 1; }

/* Animações de Entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsivo */
@media (max-width: 768px) {
    .site-header { flex-direction: column; padding: 1rem; }
    .main-navigation ul { flex-direction: column; gap: 1rem; text-align: center; margin-top: 1rem; }
    h1 { font-size: 2rem !important; }
}

/* Ajuste de Tamanho da Logo */
.custom-logo-link img, .custom-logo {
    max-height: 50px !important;
    width: auto !important;
}
.site-branding { display: flex; align-items: center; gap: 1rem; }

/* Botão Hambúrguer */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--neon-green);
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Menu Mobile */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .main-navigation {
        position: fixed;
        top: 0; right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(3, 3, 3, 0.98);
        border-left: 1px solid var(--neon-green);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1050;
    }
    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; gap: 2rem; }
    .main-navigation a { font-size: 1.2rem; }
}

/* Forçar menu hambúrguer em todas as telas */
.menu-toggle {
    display: flex !important;
}
.main-navigation {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 350px;
    height: 100vh;
    background: rgba(3, 3, 3, 0.98);
    border-left: 1px solid var(--neon-green);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
    z-index: 1050;
    display: block !important;
}
.main-navigation.active {
    right: 0 !important;
}
.main-navigation ul {
    flex-direction: column !important;
    gap: 2rem !important;
    display: flex !important;
}
.main-navigation a {
    font-size: 1.2rem !important;
}

/* Esconder o menu horizontal em todas as telas */
@media (min-width: 901px) {
    .main-navigation:not(.active) {
        right: -100% !important;
    }
}
