/* 
    A Banca de Advogados - Versão Dark Mode
    Paleta: Fundo Escuro (#050c16), Azul Profundo (#0a192f), Dourado (#c5a059), Texto Claro (#e6e6e6)
*/

:root {
    --primary-color: #0a192f;
    --bg-dark: #050c16;
    --bg-card: #0d1b2a;
    --secondary-color: #c5a059;
    --text-color: #e6e6e6;
    --light-text: #b0b0b0;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Noto Serif', serif;
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-card);
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.max-width-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b08d4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================
   HEADER / NAVBAR
========================= */

header {
    background: transparent;
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease, 
                box-shadow 0.3s ease, 
                padding 0.3s ease;
}

/* Estado quando rolar a página */
header.scrolled {
    background: rgba(5, 12, 22, 0.95);
    backdrop-filter: blur(6px); /* efeito vidro moderno */
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 12px 0; /* levemente menor ao rolar */
}

/* Container interno */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 50px;
    transition: 0.3s ease;
}

/* Menu */
#menu {
    display: flex;
    gap: 25px;
}

/* Links */
#menu a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover elegante */
#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

#menu a:hover {
    color: var(--secondary-color);
}

#menu a:hover::after {
    width: 100%;
}

/* Botão mobile (mantido oculto) */
#btn-mobile {
    display: none;
}


/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-main-logo {
    max-width: 400px;
    margin: 0 auto 30px;
    filter: brightness(1.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--white);
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    margin-top: 40px;
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--white);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.mision-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mision-vision h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Gallery */
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    filter: grayscale(20%) brightness(0.8);
}

.gallery-img:hover {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(1);
}

/* Cards Areas de Atuacao */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
    background: #12253a;
}

.card-icon img {
    height: 60px;
    margin: 0 auto 20px;
    filter: brightness(0) saturate(100%) 
            invert(73%) sepia(32%) 
            saturate(415%) hue-rotate(3deg) 
            brightness(95%) contrast(92%);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--white);
}

.card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Team Section */
.grid-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.team-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: brightness(0.9);
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--white);
}

.team-info span {
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('../assets/images/_N4A4970.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Contact Section */
.contact-list li {
    margin-bottom: 20px;
}

.contact-list strong {
    color: var(--secondary-color);
}

.map-placeholder {
    background-color: #1a2a3a;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #0d1b2a;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    font-family: inherit;
    color: var(--white);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #12253a;
}

#form-status {
    margin-top: 15px;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #02060c;
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.footer-links h4, .footer-legal h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-text);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-right {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 15px;
}

.reveal-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.reveal-right:hover img {
    transform: scale(1.05);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    #btn-mobile {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: 0.5rem;
        color: var(--white);
    }

    #hamburger {
        border-top: 2px solid;
        width: 20px;
    }

    #hamburger::after, #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: 0.3s;
        position: relative;
    }

    #nav.active #hamburger {
        border-top-color: transparent;
    }

    #nav.active #hamburger::before {
        transform: rotate(135deg);
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -7px;
    }

    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 80px;
        right: 0;
        background: var(--bg-dark);
        height: 0;
        transition: 0.6s;
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
    }

    #nav.active #menu {
        height: calc(100vh - 80px);
        visibility: visible;
        overflow-y: auto;
    }

    #menu li {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    }

    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
