/* ============================================================
   BRAZ TORRES — ADVOCACIA E CONSULTORIA JURÍDICA
   Identidade Visual: Navy #1B2838 / Gold #C4956A
   ============================================================ */

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

:root {
    --navy: #1B2838;
    --navy-dark: #111C27;
    --navy-light: #243447;
    --gold: #C4956A;
    --gold-light: #D4A97E;
    --gold-pale: #E8D5C0;
    --white: #FFFFFF;
    --off-white: #F7F5F2;
    --gray-100: #F0EDE9;
    --gray-200: #DDD8D1;
    --gray-400: #9A9590;
    --gray-600: #6B6560;
    --gray-800: #3A3530;
    --text: #2C2825;
    --text-light: #6B6560;

    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;

    --container: 1200px;
    --radius: 4px;
    --shadow: 0 2px 20px rgba(27,40,56,0.08);
    --shadow-lg: 0 8px 40px rgba(27,40,56,0.12);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

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


/* --- Tipografia --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}


/* --- Botões --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--gold-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196,149,106,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}
.btn-navy:hover {
    background: var(--navy-light);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}
.btn-whatsapp:hover {
    background: #1EBE57;
    color: var(--white);
    transform: translateY(-1px);
}


/* --- Top Bar --- */
.topbar {
    background: var(--navy-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

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

.topbar a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.topbar a:hover { color: var(--gold); }

.topbar-contato {
    display: flex;
    gap: 24px;
    align-items: center;
}

.topbar-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar-social a { font-size: 1rem; }


/* --- Header / Navbar --- */
.header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(196,149,106,0.12);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 12px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}


/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #0E1620 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196,149,106,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--gold); }

.hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-foto {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-foto img {
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    object-fit: cover;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- Seção genérica --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 12px;
}

.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }
.section--navy .eyebrow { color: var(--gold); }


/* --- Áreas de Atuação --- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.area-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,149,106,0.1);
    color: var(--gold);
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.area-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.area-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}


/* --- Sobre / Quem Somos --- */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sobre-foto {
    position: relative;
}

.sobre-foto img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.sobre-foto::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.sobre-content .eyebrow { margin-bottom: 8px; }
.sobre-content h2 { margin-bottom: 20px; }

.sobre-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.sobre-formacao {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
}

.sobre-formacao li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.sobre-formacao li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}


/* --- Missão / Visão / Valores --- */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mvv-card {
    text-align: center;
    padding: 48px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.mvv-card h3 {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.mvv-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.8;
}


/* --- Passos --- */
.passos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.passos-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: var(--gray-200);
}

.passo-item {
    text-align: center;
    position: relative;
}

.passo-num {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.passo-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.passo-item p {
    color: var(--text-light);
    font-size: 0.88rem;
}


/* --- Depoimentos --- */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.depoimento-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-100);
    position: relative;
}

.depoimento-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 16px;
    left: 24px;
    line-height: 1;
}

.depoimento-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depoimento-autor-info strong {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
}

.depoimento-autor-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}


/* --- Artigos / Blog --- */
.artigos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.artigo-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.artigo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.artigo-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}

.artigo-card-body {
    padding: 28px;
}

.artigo-card-data {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artigo-card h3 {
    font-size: 1.05rem;
    margin: 10px 0 12px;
    line-height: 1.4;
}

.artigo-card h3 a { color: var(--navy); }
.artigo-card h3 a:hover { color: var(--gold); }

.artigo-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.artigo-card .leia-mais {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.artigo-card .leia-mais:hover { gap: 10px; }


/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

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

.cta-section p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    margin-bottom: 32px;
}


/* --- Contato --- */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contato-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contato-info-item .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,149,106,0.1);
    color: var(--gold);
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contato-info-item h4 {
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.contato-info-item p,
.contato-info-item a {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196,149,106,0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }


/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img {
    height: 70px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.footer-logo p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contato-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    align-items: flex-start;
}

.footer-contato-item .icon { color: var(--gold); flex-shrink: 0; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    border-radius: 50%;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }


/* --- Página interna (banner topo) --- */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.page-banner h1 {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.page-banner .eyebrow { margin-bottom: 8px; }

/* Artigo interno */
.artigo-conteudo {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px;
}

.artigo-conteudo img {
    border-radius: 8px;
    margin: 24px 0;
}

.artigo-conteudo h2 { margin: 32px 0 16px; font-size: 1.6rem; }
.artigo-conteudo h3 { margin: 24px 0 12px; font-size: 1.2rem; }
.artigo-conteudo p { margin-bottom: 16px; color: var(--text-light); }
.artigo-conteudo ul, .artigo-conteudo ol { margin: 16px 0; padding-left: 24px; }
.artigo-conteudo li { margin-bottom: 8px; color: var(--text-light); }
.artigo-conteudo ul li { list-style: disc; }
.artigo-conteudo ol li { list-style: decimal; }
.artigo-conteudo blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--off-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}


/* --- Paginação --- */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.paginacao a, .paginacao span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.paginacao a {
    color: var(--text-light);
    border: 1px solid var(--gray-200);
}
.paginacao a:hover { border-color: var(--gold); color: var(--gold); }

.paginacao .atual {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
}


/* --- WhatsApp Flutuante --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    font-size: 1.7rem;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}


/* --- Flash / Alertas --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }


/* --- Portal LGPD --- */
.portal-lgpd {
    text-align: center;
    padding: 20px;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
}

.portal-lgpd a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}
.portal-lgpd a:hover { color: var(--gold); }


/* --- Responsive --- */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-foto { display: none; }
    .hero-stats { justify-content: center; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
    .sobre-foto { max-width: 400px; margin: 0 auto; }
    .depoimentos-grid { grid-template-columns: 1fr; }
    .artigos-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contato-grid { grid-template-columns: 1fr; }
    .mvv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .header .container { height: 68px; }
    .logo img { height: 50px; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 16px; width: 100%; }
    .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; text-align: center; }

    .menu-toggle { display: flex; }

    .areas-grid { grid-template-columns: 1fr; }
    .artigos-grid { grid-template-columns: 1fr; }
    .passos-grid { grid-template-columns: 1fr; gap: 32px; }
    .passos-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }

    .section { padding: 64px 0; }
}
