/*
 * GBF Advogados — Folha de estilos compartilhada
 * Usada por: agronegocio.html, entretenimento.html, direito-penal.html
 * O index.html tem estilos próprios adicionais inline (hero, galeria, notícias, contato)
 */

:root {
            --bg-color: #f2f2f2;
            --text-color: #1a1a1a;
            --text-muted: #666666;
            --border-color: #d0d0d0;
            --accent-color: #8b7355;
            --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            --font-secondary: 'Times New Roman', Times, serif;
            --white: #ffffff;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: var(--font-primary); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
        ::-webkit-scrollbar { width: 0px; background: transparent; }

        /* Header */
        .main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 22px 50px; background-color: rgba(20,20,20,0.92); backdrop-filter: blur(15px); color: white; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; transition: all 0.3s ease; border-bottom: 1px solid rgba(255,255,255,0.06); }
        .header-left { display: flex; align-items: center; gap: 60px; }
        .header-right { display: flex; align-items: center; gap: 25px; font-size: 0.8rem; letter-spacing: 1px; color: rgba(255,255,255,0.7); }
        .logo { font-family: var(--font-secondary); font-size: 1.3rem; font-weight: bold; text-transform: uppercase; color: white; text-decoration: none; letter-spacing: 3px; line-height: 1.2; }
        .logo small { display: block; font-size: 0.5rem; letter-spacing: 2px; font-family: var(--font-primary); font-weight: 300; }
        .main-nav { display: flex; gap: 35px; list-style: none; }
        .main-nav a { color: rgba(255,255,255,0.85); text-decoration: none; position: relative; padding-bottom: 5px; transition: color 0.3s; font-weight: 400; font-size: 17px; }
        .main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background-color: white; transition: width 0.3s ease; }
        .main-nav a:hover { color: white; }
        .main-nav a:hover::after { width: 100%; }
        .dropdown { position: relative; }
        .dropdown-content { visibility: hidden; opacity: 0; pointer-events: none; position: absolute; top: 100%; left: -20px; background-color: rgba(30,30,30,0.97); backdrop-filter: blur(15px); min-width: 280px; border: 1px solid rgba(255,255,255,0.1); padding: 15px 0 20px; z-index: 1001; border-radius: 2px; transition: opacity 0.2s ease, visibility 0.2s ease; }
        .dropdown:hover .dropdown-content { visibility: visible; opacity: 1; pointer-events: all; }
        .dropdown-content a { color: #cccccc; padding: 12px 30px; display: block; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; font-weight: 300; }
        .dropdown-content a:hover { background-color: rgba(255,255,255,0.05); color: white; padding-left: 35px; }
        .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; z-index: 1100; background: transparent; border: none; padding: 0; }
        .hamburger span { display: block; width: 100%; height: 1.5px; background: white; transition: all 0.35s ease; transform-origin: center; }
        .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
        .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
        .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
        .mobile-drawer { position: fixed; top: 0; right: 0; width: 80vw; max-width: 320px; height: 100%; background-color: #111; z-index: 1050; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77,0,0.18,1); display: flex; flex-direction: column; padding: 100px 40px 60px; overflow-y: auto; }
        .mobile-drawer.open { transform: translateX(0); }
        .drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
        .drawer-overlay.open { opacity: 1; pointer-events: all; }
        .drawer-nav { list-style: none; display: flex; flex-direction: column; }
        .drawer-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
        .drawer-nav a { display: block; color: #fff; text-decoration: none; font-family: var(--font-secondary); font-size: 1.6rem; font-weight: 300; padding: 20px 0; transition: color 0.2s, padding-left 0.2s; }
        .drawer-nav a:hover { color: var(--accent-color); padding-left: 8px; }
        .drawer-sub { list-style: none; padding: 0 0 15px 15px; display: none; }
        .drawer-sub.open { display: block; }
        .drawer-sub li a { font-family: var(--font-primary); font-size: 0.9rem; padding: 8px 0; color: #aaa; }
        .drawer-toggle-arrow { float: right; transition: transform 0.3s; }
        .drawer-toggle-arrow.open { transform: rotate(180deg); }
        .drawer-footer { margin-top: auto; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); color: #666; font-size: 0.8rem; letter-spacing: 1px; line-height: 2; }

        /* Hero com vídeo */
        .page-hero { position: relative; padding: 160px 50px 80px; background-color: #1a1a1a; border-bottom: 1px solid rgba(255,255,255,0.08); overflow: hidden; isolation: isolate; }
        .page-hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: 0; }
        .page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.6) 100%); z-index: 1; }
        .page-hero-content { position: relative; z-index: 2; }
        .page-hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent-color); margin-bottom: 20px; font-weight: 500; }
        .page-hero h1 { font-family: var(--font-secondary); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 300; color: white; line-height: 1.1; letter-spacing: -1px; max-width: 800px; margin-bottom: 30px; }
        .page-hero p { font-size: 1.15rem; color: #FFF; max-width: 640px; line-height: 1.8; font-weight: 300; }

        /* Intro */
        .page-intro { padding: 80px 50px; border-bottom: 1px solid var(--border-color); background-color: var(--white); display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
        .page-intro-title { font-family: var(--font-secondary); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 400; color: var(--text-color); line-height: 1.3; position: sticky; top: 120px; }
        .page-intro-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 20px; }
        .page-intro-body p:last-child { margin-bottom: 0; }

        /* Conteúdo editorial */
        .content-section { padding: 80px 50px; background-color: var(--bg-color); display: grid; grid-template-columns: 220px 1fr; gap: 100px; align-items: start; }
        .content-sidebar { position: sticky; top: 120px; }
        .content-sidebar-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); font-weight: 500; margin-bottom: 20px; display: block; }
        .content-sidebar nav { display: flex; flex-direction: column; border-left: 1px solid var(--border-color); }
        .content-sidebar nav a { font-size: 1.1rem; color: var(--text-muted); text-decoration: none; padding: 8px 0 8px 16px; border-left: 2px solid transparent; margin-left: -1px; transition: color 0.2s, border-color 0.2s; line-height: 1.4; }
        .content-sidebar nav a:hover, .content-sidebar nav a.active { color: var(--text-color); border-left-color: var(--accent-color); }
        .content-body h2 { font-family: var(--font-secondary); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; color: var(--text-color); line-height: 1.25; margin-bottom: 20px; margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border-color); }
        .content-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
        .content-body p { font-size: 1rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }
        .content-body p:last-child { margin-bottom: 0; }

        /* CTA */
        .page-cta { padding: 80px 50px; background-color: #1a1a1a; display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
        .page-cta h2 { font-family: var(--font-secondary); font-size: clamp(1.6rem, 3vw, 2.5rem); color: white; font-weight: 300; max-width: 500px; line-height: 1.3; }
        .cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
        .btn-primary { display: inline-flex; align-items: center; background: white; color: #1a1a1a; padding: 16px 36px; text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; transition: all 0.3s; }
        .btn-primary:hover { background: var(--accent-color); color: white; }
        .btn-secondary { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 16px 36px; text-decoration: none; font-size: 0.85rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; transition: all 0.3s; }
        .btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

        /* Footer */
        .footer-credits { padding: 30px 50px; display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); font-size: 0.75rem; color: var(--text-muted); background-color: var(--bg-color); letter-spacing: 1px; }
        .whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 5000; width: 56px; height: 56px; background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.3s ease; text-decoration: none; }
        .whatsapp-float:hover { transform: scale(1.1); }
        .whatsapp-float svg { width: 28px; height: 28px; fill: white; }

        @media (max-width: 900px) {
            .content-section { grid-template-columns: 1fr; gap: 40px; padding: 60px 25px; }
            .content-sidebar { position: static; }
            .content-sidebar nav { display: none; }
        }
        @media (max-width: 768px) {
            .main-header { padding: 20px 25px; }
            .header-right, .header-left nav { display: none; }
            .header-left { gap: 20px; }
            .hamburger { display: flex; }
            .page-hero { padding: 120px 25px 60px; }
            .page-intro { grid-template-columns: 1fr; gap: 30px; padding: 60px 25px; }
            .page-intro-title { position: static; }
            .page-cta { padding: 60px 25px; flex-direction: column; align-items: flex-start; }
            .footer-credits { padding: 25px; flex-direction: column; gap: 8px; }
        }

        /* ── Accordion Mobile ── */
        @media (max-width: 768px) {
            .content-section { padding: 0; background: var(--bg-color); display: block; }
            .content-sidebar { display: none; }
            .content-body { padding: 0; }
            .content-body h2 {
                display: flex;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                padding: 22px 25px;
                margin: 0;
                border-top: 1px solid var(--border-color);
                border-bottom: none;
                font-size: 1.05rem;
                background: var(--white);
                transition: background 0.2s, color 0.2s;
                user-select: none;
                -webkit-tap-highlight-color: transparent;
            }
            .content-body h2:first-child { border-top: none; }
            .content-body h2.acc-open { color: var(--accent-color); background: #faf9f7; }
            .content-body h2::after {
                content: '+';
                font-family: var(--font-primary);
                font-size: 1.4rem;
                font-weight: 300;
                flex-shrink: 0;
                margin-left: 12px;
                transition: transform 0.3s ease;
                color: var(--accent-color);
            }
            .content-body h2.acc-open::after { transform: rotate(45deg); }
            .acc-panel {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
                background: var(--white);
                border-bottom: 1px solid var(--border-color);
            }
            .acc-panel.acc-open { max-height: 800px; }
            .acc-panel p {
                padding: 0 25px 20px;
                font-size: 0.95rem;
                line-height: 1.85;
                color: var(--text-muted);
                margin: 0;
            }
            .acc-panel p:first-child { padding-top: 16px; }
        }

/* ── Accordion Mobile (páginas internas) ── */
@media (max-width: 768px) {
    .content-section { padding: 0; background: var(--bg-color); display: block; }
    .content-sidebar { display: none; }
    .content-body { padding: 0; }
    .content-body h2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 22px 25px;
        margin: 0;
        border-top: 1px solid var(--border-color);
        border-bottom: none;
        font-size: 1.05rem;
        background: var(--white);
        transition: background 0.2s, color 0.2s;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .content-body h2:first-child { border-top: none; }
    .content-body h2.acc-open { color: var(--accent-color); background: #faf9f7; }
    .content-body h2::after {
        content: '+';
        font-family: var(--font-primary);
        font-size: 1.4rem;
        font-weight: 300;
        flex-shrink: 0;
        margin-left: 12px;
        transition: transform 0.3s ease;
        color: var(--accent-color);
    }
    .content-body h2.acc-open::after { transform: rotate(45deg); }
    .acc-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }
    .acc-panel.acc-open { max-height: 800px; }
    .acc-panel p {
        padding: 0 25px 20px;
        font-size: 0.95rem;
        line-height: 1.85;
        color: var(--text-muted);
        margin: 0;
    }
    .acc-panel p:first-child { padding-top: 16px; }
}
