/* 
 * JR Cobranças - Ultra-Premium Design System
 * Theme: Luxury Brutalism & Dynamic Obisidian
 */

:root {
    /* Deep Blue & Gold Palette */
    --bg-obsidian: #0A1628;      /* azul marinho profundo */
    --bg-secondary: #1A3A5C;     /* azul médio */
    --bg-footer: #060E1A;        /* azul quase preto */
    --bg-surface: rgba(26, 58, 92, 0.45);
    --bg-panel: rgba(26, 58, 92, 0.6);
    
    --border-glass: rgba(201, 168, 76, 0.12); /* dourado sutil com baixa opacidade */
    --border-gold: rgba(201, 168, 76, 0.35);  /* dourado com opacidade média */
    
    --text-primary: #F5F5F5;     /* branco suave */
    --text-secondary: #A0AEC0;   /* cinza claro */
    
    --accent-gold: #C9A84C;      /* dourado elegante */
    --accent-bronze: #CD7F32;
    --accent-glow: rgba(201, 168, 76, 0.25);
    
    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;
    
    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-obsidian);
}

body {
    background: radial-gradient(circle at 50% 0%, #162f50 0%, var(--bg-obsidian) 75%);
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800; /* extrabold */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

em {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: inherit;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
}

.overline {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.hover-underline {
    position: relative;
    padding-bottom: 4px;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.4s var(--ease-out-expo);
}

.hover-underline:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Buttons */
.btn-solid, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-solid {
    background: var(--accent-gold);
    color: #0A1628;
    border: 1px solid var(--accent-gold);
}

.btn-solid:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    background: rgba(201, 168, 76, 0.1);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.5s var(--ease-out-expo);
    cursor: pointer;
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: #0A1628;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
}

/* Specific Style for Navbar CTA to stand out */
.navbar .btn-outline {
    background: var(--accent-gold);
    color: #0A1628;
    border: 1px solid var(--accent-gold);
}

.navbar .btn-outline:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.55);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2.2rem 0;
    z-index: 1000;
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 1.2rem 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-jr {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800; /* extrabold */
    color: var(--accent-gold);
    line-height: 1;
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.25);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Background Animated Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-gold), transparent 70%);
    top: -10%; left: -10%;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-bronze), transparent 70%);
    bottom: 20%; right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* Flashlight Mouse Tracker */
#flashlight {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    mix-blend-mode: screen;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    background: linear-gradient(180deg, #0A1628 0%, #152d48 50%, #1A3A5C 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 7.5rem);
    margin-bottom: var(--space-md);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 80%;
    margin-bottom: var(--space-lg);
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-art {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gold-ring {
    width: 250px; height: 250px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    position: relative;
    animation: rotate 30s linear infinite;
}

.gold-ring::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 10px; height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--text-primary);
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Services (Bento Grid) */
.services {
    padding: var(--space-2xl) 0;
    position: relative;
    background: linear-gradient(180deg, #1A3A5C 0%, #12253d 50%, #0A1628 100%);
}

.large-heading {
    font-size: clamp(2rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px; /* Modern spacing instead of brutalist gap */
    background: transparent;
    border: none;
}

.glass-panel {
    background: rgba(26, 58, 92, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s var(--ease-out-expo);
}

.glass-panel:hover {
    background: rgba(26, 58, 92, 0.6);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-num {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.glass-panel h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.glass-panel p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
}

/* Contact Section */
.contact {
    padding: var(--space-xl) 0 var(--space-2xl);
    background: linear-gradient(180deg, #0A1628 0%, #11263f 30%, #1A3A5C 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(26, 58, 92, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    padding: 0;
}

.contact-info {
    padding: 4rem;
    background: rgba(10, 22, 40, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(201, 168, 76, 0.15);
    overflow: hidden;
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 800;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-item .value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-form-area {
    padding: 4rem;
    background: rgba(26, 58, 92, 0.25);
    overflow: hidden;
}

.premium-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 3rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.25rem;
    padding: 1rem 0;
    outline: none;
    resize: none;
    transition: border-bottom 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid rgba(201, 168, 76, 0.5);
}

.input-group label {
    position: absolute;
    top: 1rem; left: 0;
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.line-focus {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gold);
    transition: width 0.5s var(--ease-out-expo);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.input-group input:focus ~ .line-focus,
.input-group textarea:focus ~ .line-focus {
    width: 100%;
}

.btn-submit {
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
}

.privacy-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #555;
}

.privacy-note a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand-col p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-col p {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.security-txt { color: #f87171 !important; }
.cnpj-txt { color: var(--text-secondary) !important; margin-top: 2rem !important; }

.meta-disclaimer {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    text-align: center;
}

.meta-disclaimer p {
    font-size: 0.75rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.meta-disclaimer .copyright {
    color: #444;
}

/* Staggered Reveals & Animation Classes */
.reveal, .reveal-cascade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.active, .reveal-cascade.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    /* Hero: uma coluna, sem coluna fantasma */
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
    }
    .hero-visual {
        display: none !important;
        width: 0;
        height: 0;
        overflow: hidden;
    }
    .hero-sub { margin: 0 auto 2rem; }

    /* Serviços em coluna */
    .services-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-large { grid-column: span 1; grid-row: span 1; }

    /* Contato em coluna */
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border-glass); }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    /* Evitar overflow horizontal */
    html, body { overflow-x: hidden; max-width: 100vw; }

    /* Ocultar elementos desktop */
    .nav-links { display: none; }
    .navbar .btn-outline { display: none; }

    /* ── Menu Mobile Hambúrguer (DOM injection) ───── */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1100;
    }

    .mobile-menu-btn .bar {
        display: block;
        width: 28px;
        height: 2px;
        background-color: var(--text-primary);
        transition: transform 0.35s var(--ease-out-expo), opacity 0.35s ease;
        transform-origin: center;
    }

    .mobile-menu-btn.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .mobile-menu-btn.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* ── Overlay Menu Mobile ─────────────────────── */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out-expo);
    }

    .mobile-nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-overlay a {
        font-family: var(--font-display);
        font-size: clamp(2rem, 8vw, 3rem);
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.02em;
    }

    .mobile-nav-overlay .btn-solid {
        margin-top: 1rem;
        font-size: 1rem;
        padding: 1rem 2.5rem;
        width: auto;
    }

    /* ── Tipografia Mobile ───────────────────────── */
    .hero h1         { font-size: clamp(2.2rem, 9vw, 3.5rem); font-weight: 800; }
    .hero-sub        { font-size: 1rem; max-width: 100%; }
    .large-heading   { font-size: clamp(1.8rem, 7vw, 2.5rem); font-weight: 800; }
    .contact-info h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); font-weight: 800; }
    .glass-panel h3  { font-size: 1.4rem; font-weight: 700; }
    .overline        { font-size: 0.7rem; }

    /* ── Hero centralizado no mobile ────────────── */
    .hero { padding-top: 7rem; min-height: auto; padding-bottom: 3rem; }
    /* Botão hero: tamanho natural, não full-width */
    .hero-cta a { width: auto; display: inline-flex; }

    /* ── Espaçamentos ────────────────────────────── */
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-info, .contact-form-area { padding: 2.5rem 1.5rem; overflow: hidden; }
    .glass-panel { padding: 2.5rem 1.5rem; }
    .section-heading p { font-size: 1rem; }

    /* ── Textos longos ───────────────────────────── */
    .detail-item .value { font-size: 0.95rem; word-break: break-word; overflow-wrap: anywhere; }
    .privacy-note { word-break: break-word; }

    /* ── Formulário ──────────────────────────────── */
    .input-group input,
    .input-group textarea { font-size: 1rem; padding: 0.8rem 0; }
    .input-group label { font-size: 1rem; }
    .input-group { margin-bottom: 2rem; }

    /* ── Botões: apenas o de submit é full-width ─── */
    .btn-submit { padding: 1rem; width: 100%; justify-content: center; }

    /* ── Contato full-width ──────────────────────── */
    .contact-wrapper { border: none; border-radius: 0; background: transparent; box-shadow: none; }
    .contact-info, .contact-form-area { border: 1px solid rgba(201, 168, 76, 0.15); border-radius: 12px; margin-bottom: 15px; }

    /* ── Orbs: conter dentro da tela ────────────── */
    .glow-orb { opacity: 0.2; }
    .orb-1 { width: 300px; height: 300px; left: -30%; }
    .orb-2 { width: 250px; height: 250px; right: -20%; }
}
