/* ============================================================
   Mesquita & Mesquita Advogados — folha de estilo compartilhada
   Site institucional estático (sem build step).
   ============================================================ */

/* ==================== VARIÁVEIS / PALETA ==================== */
:root {
    /* Dourado/bronze extraído do gradiente do logo */
    --gold: #B8860B;
    --gold-light: #E8C170;
    --gold-dark: #8A6508;
    --gold-gradient: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 45%, var(--gold-light) 100%);

    /* Preto/grafite institucional */
    --ink: #1A1712;
    --ink-light: #2C2820;
    --ink-soft: #4A4438;

    /* Fundo off-white */
    --bg: #FAF8F3;
    --bg-alt: #F1ECE0;
    --white: #ffffff;

    --gray-500: #7A7568;
    --gray-300: #D8D2C2;
    --gray-200: #E7E2D4;

    --shadow-sm: 0 1px 3px rgba(26, 23, 18, 0.08);
    --shadow: 0 4px 16px rgba(26, 23, 18, 0.10);
    --shadow-lg: 0 12px 32px rgba(26, 23, 18, 0.14);

    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink-light);
    background-color: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10000;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 1rem; }

/* ==================== BOTÕES ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--ink);
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline-dark:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}
.btn-whatsapp:hover {
    background: #1EBE59;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 1rem 2.125rem; font-size: 1rem; }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 0.75rem; }
.logo { height: 52px; width: auto; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.logo-wordmark strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.logo-wordmark span {
    font-size: 0.6875rem;
    color: var(--gold-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav { display: none; }
@media (min-width: 1024px) {
    .nav { display: flex; align-items: center; gap: 2rem; }
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.current { color: var(--ink); font-weight: 600; }
.nav-link.current::after { width: 100%; }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: flex; } }

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--ink); transition: var(--transition);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 999;
    padding: 6.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

/* ==================== PAGE HERO (páginas internas) ==================== */
.page-hero {
    padding: 9.5rem 0 4rem;
    background: var(--ink);
    background-image: radial-gradient(circle at 15% 20%, rgba(184, 134, 11, 0.18), transparent 55%);
    color: var(--white);
    text-align: center;
}
.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
}
.page-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--gray-300);
    font-size: 1.0625rem;
}
.breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--gray-300);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ==================== SEÇÕES ==================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--ink-soft);
}

/* ==================== RODAPÉ ==================== */
.footer {
    background: var(--ink);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer-brand { max-width: 300px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--gray-300); }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.875rem; transition: var(--transition); color: var(--gray-300); }
.footer-col a:hover { color: var(--gold-light); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem !important;
    font-size: 0.875rem;
}
.footer-contact strong { color: var(--white); display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-copyright { font-size: 0.8125rem; color: var(--gray-500); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8125rem; color: var(--gray-300); }
.footer-legal a:hover { color: var(--gold-light); }
.footer-oab { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.75rem; }

/* ==================== WHATSAPP FLUTUANTE ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    z-index: 999;
}
.whatsapp-float a {
    display: flex; align-items: center; gap: 0.65rem;
    background: #25D366; color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 600;
}
.whatsapp-float a:hover { background: #1EBE59; transform: scale(1.05); }
@media (max-width: 640px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float a { padding: 1rem; border-radius: 50%; }
}

/* ==================== CARDS DE ÁREA DE ATUAÇÃO ==================== */
.areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }

.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.area-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card:hover::before { transform: scaleX(1); }
.area-card .area-icon {
    width: 56px; height: 56px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--gold-dark);
    transition: var(--transition);
}
.area-card .area-icon svg { width: 26px; height: 26px; }
.area-card:hover .area-icon {
    background: var(--gold-gradient);
    color: var(--white);
    transform: scale(1.06);
}
.area-card h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.area-card p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; }
.area-card a { font-size: 0.875rem; font-weight: 600; color: var(--gold-dark); }
.area-card a:hover { text-decoration: underline; }

/* ==================== ÁREAS DE ATUAÇÃO (página de detalhe) ==================== */
.area-section:target { scroll-margin-top: 90px; }
.area-detail {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
@media (min-width: 768px) {
    .area-detail { flex-direction: row; align-items: flex-start; gap: 2.5rem; }
}
.area-detail-icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
    box-shadow: var(--shadow);
}
.area-detail-icon svg { width: 32px; height: 32px; }
.area-detail-content { flex: 1; }
.area-detail-content .section-title { margin-bottom: 1rem; }
.area-detail-content > p { color: var(--ink-soft); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; max-width: 720px; }
.area-topics {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 560px;
}
@media (min-width: 600px) { .area-topics { grid-template-columns: repeat(2, 1fr); } }
.area-topics li {
    font-size: 0.9375rem;
    color: var(--ink-light);
    padding-left: 1.5rem;
    position: relative;
}
.area-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-dark);
    font-weight: 700;
}

/* ==================== PERFIS (sócios / equipe) ==================== */
.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 220px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

.partner-card { text-align: center; }
.partner-card h3 { font-size: 1.35rem; margin: 1.5rem 0 0.25rem; }
.partner-card .oab {
    font-size: 0.8125rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}
.partner-card p { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.75; text-align: left; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card { text-align: center; }
.team-card .avatar-placeholder { max-width: 140px; font-size: 1.5rem; }
.team-card h4 { font-size: 1rem; margin: 1rem 0 0.15rem; }
.team-card .role { font-size: 0.8125rem; color: var(--ink-soft); }
.team-card .oab { font-size: 0.75rem; color: var(--gold-dark); margin-top: 0.25rem; }

.team-placeholder-note {
    text-align: center;
    max-width: 560px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--ink-soft);
}

/* ==================== DIFERENCIAIS ==================== */
.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .diff-grid { grid-template-columns: repeat(4, 1fr); } }

.diff-item { text-align: center; padding: 1rem; }
.diff-item .diff-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    transition: var(--transition);
}
.diff-item .diff-icon svg { width: 26px; height: 26px; }
.diff-item:hover .diff-icon { transform: scale(1.08) rotate(-4deg); }
.diff-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.diff-item p { font-size: 0.875rem; color: var(--ink-soft); }

/* ==================== FORMULÁRIO DE CONTATO ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-info-item { display: flex; gap: 1rem; }
.contact-info-item h4,
.contact-info-item strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.contact-info-item p, .contact-info-item a, .contact-info-item span { font-size: 1rem; font-weight: 600; color: var(--ink); }
.contact-info-item a:hover { color: var(--gold-dark); }
.contact-info-item .contact-info-icon {
    width: 48px; height: 48px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dark);
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-info-item .contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-item:hover .contact-info-icon { background: var(--gold-gradient); color: var(--white); }

/* ==================== CTA FINAL ==================== */
.cta-section {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 0;
}
.cta-section h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.15rem); margin-bottom: 1rem; }
.cta-section p { color: var(--gray-300); max-width: 560px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==================== REVELAÇÃO AO ROLAR ==================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== CONTEÚDO DE POLÍTICA / TEXTO LONGO ==================== */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.8; }
.prose ul { margin-left: 1.5rem; }
.prose li { list-style: disc; }
.prose .updated { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 2rem; }
