/* ==========================================================================
   Variables & Theme Setup
   ========================================================================== */
:root {
    /* Colors */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #1e40af;
    --accent-hover: #1d4ed8;
    --gold-detail: #b45309;

    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;

    --text-main: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;

    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10b981;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ==========================================================================
   Layout & Container Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography & Header Elements
   ========================================================================== */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(30, 64, 175, 0.08);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.logo small {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 6rem 0 5rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.hero-img-bg {
    height: 420px;
    background-color: #cbd5e1;
    border-radius: 4px;
    position: relative;
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.overlay-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gold-detail);
    display: flex;
    flex-direction: column;
}

.overlay-badge strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.overlay-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Sobre o Escritório
   ========================================================================== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.valor-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.valor-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.advogado-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.advogado-img-placeholder {
    height: 260px;
    background-color: #94a3b8;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.advogado-info {
    padding: 1.5rem;
}

.advogado-info h3 {
    font-size: 1.25rem;
}

.advogado-info .cargo {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.advogado-info .bio {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Áreas de Atuação
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.dif-item {
    padding: 1.5rem;
    position: relative;
}

.dif-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(30, 64, 175, 0.15);
    margin-bottom: 0.5rem;
}

.dif-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.dif-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Processo de Atendimento
   ========================================================================== */
.processo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.step {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.step-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.depoimento-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.depoimento-card p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.depoimento-card footer strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--primary);
}

.depoimento-card footer span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-header .icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    background: var(--bg-card);
}

.accordion-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding-bottom: 1.25rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   Contato & Formulário
   ========================================================================== */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contato-lista {
    margin-top: 2rem;
}

.contato-lista li {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.contato-lista strong {
    font-size: 0.875rem;
    color: var(--primary);
}

.contato-lista span {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.contato-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contato-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.error-msg {
    display: none;
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 0.25rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-color);
}

.form-group.error .error-msg {
    display: block;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-status.success {
    color: var(--success-color);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-footer span {
    color: #ffffff;
}

.logo-footer small {
    color: #94a3b8;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-links h4,
.footer-info h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.footer-info .oab-info {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {

    .hero-grid,
    .sobre-grid,
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .nav-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }
}