﻿/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;

}

:root {
    /* Paleta da Logo */
    --cor-primaria: #4A0E1A;
    --cor-secundaria: #7B1E2E;
    --cor-destaque: #D4A843;
    --cor-destaque-alt: #E8C46A;
    --cor-accent: #E8C46A;
    --cor-texto: #FFFFFF;
    --cor-texto-escuro: #2C1810;
    --cor-texto-medio: #5f5048;
    --cor-fundo-claro: #F5F0E8;
    --cor-fundo-escuro: #2C1810;
    --cor-borda: #eadfcd;
    --fonte-principal: 'Lato', 'Segoe UI', sans-serif;
    --fonte-titulo: 'Playfair Display', Georgia, serif;
    --sombra-suave: 0 2px 8px rgba(74, 14, 26, 0.1);
    --sombra-media: 0 4px 16px rgba(74, 14, 26, 0.15);
    --sombra-forte: 0 8px 24px rgba(74, 14, 26, 0.2);
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto-escuro);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    min-height: 100vh;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    background-color: var(--cor-accent);
    color: var(--cor-primaria);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Prevenir zoom em inputs no iOS e melhorar UX mobile */
@media screen and (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Melhorar área de toque */
    button,
    a,
    .btn-primary,
    .btn-secondary,
    .btn-consulta {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevenir scroll horizontal */
    * {
        max-width: 100%;
    }

    body {
        position: relative;
        overflow-x: hidden;
    }
}

/* Header */
header {
    background-color: rgba(74, 14, 26, 0.94);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--sombra-media);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
    color: var(--cor-texto);
    text-decoration: none;
}

.logo-square {
    width: 55px;
    height: 55px;
    background-color: var(--cor-primaria);
    border: 2px solid var(--cor-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--cor-accent);
    font-family: var(--fonte-titulo);
    letter-spacing: 1px;
    transition: transform 0.3s;
}

.logo-square:hover {
    transform: scale(1.05);
}

.logo-mark {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo:hover .logo-mark {
    transform: scale(1.04);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text span {
    color: var(--cor-texto);
    font-family: var(--fonte-titulo);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text small {
    color: var(--cor-accent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--cor-accent);
}

.nav-link.active {
    color: var(--cor-accent);
    font-weight: 600;
}

.btn-consulta {
    background-color: var(--cor-accent);
    color: var(--cor-primaria);
    padding: 0.85rem 1.4rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--sombra-suave);
}

.btn-consulta:hover {
    background-color: rgba(232, 196, 106, 0.9);
    color: var(--cor-primaria);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cor-texto);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(90deg, rgba(44, 24, 16, 0.94) 0%, rgba(74, 14, 26, 0.86) 48%, rgba(44, 24, 16, 0.9) 100%),
        radial-gradient(circle at 18% 18%, rgba(232, 196, 106, 0.16), transparent 34%),
        url('../images/justica-bg.jpg') center/cover no-repeat,
        linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-fundo-escuro) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -8%;
    top: -20%;
    width: 55%;
    height: 120%;
    background: radial-gradient(circle, rgba(232, 196, 106, 0.22) 0%, transparent 68%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(232, 196, 106, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 196, 106, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
    z-index: 1;
    pointer-events: none;
}

.hero-background-image {
    position:absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 90%;
    object-fit: contain;
    object-position: center right;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
    filter: brightness(0.8) contrast(1.1);
}

.hero-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 0.95fr);
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    min-height: auto;
    order: 2;
}

.hero-main-photo {
    width: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(232, 196, 106, 0.28);
    box-shadow: 0 24px 60px rgba(20, 8, 8, 0.35);
}

.hero-main-photo {
    height: clamp(360px, 42vw, 520px);
    border-radius: 8px;
    object-position: center;
}

.hero-content {
    max-width: 680px;
    margin: 0;
    padding: 0;
    text-align: left;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    order: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(232, 196, 106, 0.2);
    color: var(--cor-accent);
    border: 1px solid rgba(232, 196, 106, 0.4);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.badge i {
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--fonte-titulo);
    letter-spacing: -1px;
}

.hero h1 .destaque {
    color: var(--cor-accent);
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: 0;
    margin-right: 0;
    font-weight: 300;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 680px;
    margin-left: 0;
    margin-right: 0;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 680px;
}

.hero-highlight {
    padding: 1rem;
    background-color: rgba(35, 13, 13, 0.46);
    border: 1px solid rgba(232, 196, 106, 0.24);
    border-radius: 8px;
    color: var(--cor-texto);
    backdrop-filter: blur(10px);
}

.hero-highlight span {
    display: block;
    color: rgba(232, 196, 106, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.hero-highlight strong {
    display: block;
    color: var(--cor-texto);
    font-size: 1rem;
    line-height: 1.35;
}

.btn-primary,
.btn-secondary {
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--sombra-media);
}

.btn-primary {
    background-color: transparent;
    color: var(--cor-texto);
    border: 2px solid rgba(232, 196, 106, 0.5);
}

.btn-primary:hover {
    background-color: rgba(232, 196, 106, 0.15);
    border-color: var(--cor-accent);
    color: var(--cor-accent);
    transform: translateY(-3px);
    box-shadow: var(--sombra-forte);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cor-texto);
    border: 2px solid rgba(232, 196, 106, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(232, 196, 106, 0.15);
    border-color: var(--cor-accent);
    color: var(--cor-accent);
    transform: translateY(-3px);
    box-shadow: var(--sombra-forte);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: -2.2rem 0 3.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 196, 106, 0.26);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.hero-trust i {
    color: var(--cor-accent);
}

.stats {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 1.4rem 1.6rem;
    background-color: rgba(35, 13, 13, 0.46);
    border: 1px solid rgba(232, 196, 106, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 680px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    color: var(--cor-texto);
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cor-accent);
    opacity: 0.95;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--fonte-titulo);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cor-texto);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
    font-size: 1.2rem;
}

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

/* Seções Gerais */
.section {
    padding: 6rem 2rem;
    width: 100%;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.section-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cor-destaque);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    font-family: var(--fonte-titulo);
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--cor-destaque);
}

.section-description {
    font-size: 1.15rem;
    color: var(--cor-texto-medio);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Cards de Áreas */
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.area-card {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 380px;
}

.area-card {
    background: var(--cor-texto);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s;
    border: 1px solid var(--cor-borda);
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-forte);
}

.featured-area {
    border-color: rgba(212, 168, 67, 0.5);
    box-shadow: 0 8px 24px rgba(74, 14, 26, 0.14);
}

.area-icon {
    width: 70px;
    height: 70px;
    background-color: var(--cor-primaria);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--cor-secundaria);
    font-size: 2rem;
    transition: all 0.3s;
}

.area-card:hover .area-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--cor-accent);
    color: var(--cor-texto);
}

.area-card h3 {
    font-size: 1.6rem;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
    font-family: var(--fonte-titulo);
    font-weight: 600;
}

.area-card p {
    color: var(--cor-texto-medio);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--cor-fundo-claro);
    color: var(--cor-texto-medio);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--cor-borda);
}

.tag:hover {
    background-color: var(--cor-destaque);
    color: var(--cor-texto);
    border-color: var(--cor-destaque);
}

.area-services {
    margin: 0.25rem 0 1.35rem;
    border-top: 1px solid var(--cor-borda);
    border-bottom: 1px solid var(--cor-borda);
}

.area-services summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    color: var(--cor-primaria);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.area-services summary::-webkit-details-marker {
    display: none;
}

.area-services summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background-color: var(--cor-fundo-claro);
    border: 1px solid var(--cor-borda);
    color: var(--cor-primaria);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.area-services[open] summary::after {
    content: '-';
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto);
}

.area-services ul {
    list-style: none;
    padding: 0 0 1rem;
    display: grid;
    gap: 0.58rem;
}

.area-services li {
    position: relative;
    padding-left: 1rem;
    color: var(--cor-texto-medio);
    font-size: 0.86rem;
    line-height: 1.55;
}

.area-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--cor-secundaria);
}

.area-link {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-link:hover {
    color: var(--cor-destaque);
    gap: 0.75rem;
}

.area-link i {
    transition: transform 0.3s;
}

.area-link:hover i {
    transform: translateX(5px);
}

/* Página Sobre */
.about-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-fundo-escuro) 100%);
    color: var(--cor-texto);
    padding: 6rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-content {
    flex: 1 1 500px;
    min-width: 300px;
}

.differentials {
    flex: 1 1 400px;
    min-width: 300px;
}

.about-content h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cor-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-content h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--fonte-titulo);
    font-weight: 700;
}

.about-content h3 .destaque {
    color: var(--cor-accent);
}

.about-content p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    color: rgba(232, 196, 106, 0.95);
    font-size: 1.05rem;
    font-weight: 300;
}

.values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.value-item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.value-icon {
    font-size: 2.2rem;
    color: var(--cor-accent);
    min-width: 60px;
    text-align: center;
}

.value-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--cor-accent);
    font-family: var(--fonte-titulo);
    font-weight: 600;
}

.value-content p {
    color: rgba(232, 196, 106, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

.differentials {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-forte);
    border: 1px solid rgba(232, 196, 106, 0.2);
}

.differentials h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--cor-accent);
    font-family: var(--fonte-titulo);
    font-weight: 600;
}

.differentials ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.differentials li {
    padding: 1rem 0;
    color: rgba(232, 196, 106, 0.95);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.differentials li i {
    color: var(--cor-accent);
    font-size: 1.1rem;
    min-width: 20px;
}

.differentials-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(232, 196, 106, 0.2);
}

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

.diff-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cor-accent);
    margin-bottom: 0.5rem;
    font-family: var(--fonte-titulo);
    line-height: 1;
}

.diff-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(232, 196, 106, 0.9);
    letter-spacing: 2px;
    font-weight: 500;
}

.diff-stat-number i {
    font-size: 2.5rem;
}

/* Blog */
.blog-section {
    background-color: #F5F0E8;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-preview-card {
    background-color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-media);
}

.blog-preview-icon {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background-color: var(--cor-primaria);
    color: var(--cor-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.blog-preview-card h3 {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

.blog-preview-card p {
    color: var(--cor-texto-medio);
    line-height: 1.75;
}

.blog-section-action {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.blog-open-button {
    color: var(--cor-primaria);
    border-color: rgba(74, 14, 26, 0.35);
    box-shadow: none;
}

.blog-open-button:hover {
    color: var(--cor-primaria);
    border-color: var(--cor-destaque);
    background-color: rgba(212, 168, 67, 0.14);
}

/* Blog e Admin */
.page-hero {
    padding: 10rem 2rem 5rem;
    background:
        linear-gradient(90deg, rgba(44, 24, 16, 0.92), rgba(74, 14, 26, 0.86)),
        url('../images/justica-bg.jpg') center/cover no-repeat;
    color: var(--cor-texto);
}

.page-hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 auto 1.25rem;
    font-family: var(--fonte-titulo);
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.05;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
}

.blog-page-section {
    background-color: var(--cor-fundo-claro);
}

.blog-toolbar {
    max-width: 1180px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.blog-toolbar h2 {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 2.2rem;
    line-height: 1.1;
}

.blog-status {
    color: var(--cor-texto-medio);
    font-size: 0.95rem;
}

.blog-contact-link,
.post-back-link {
    color: var(--cor-primaria);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-post-card,
.admin-login-card,
.admin-editor,
.admin-posts {
    background-color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.blog-post-card {
    padding: 1.75rem;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background-color: var(--cor-destaque);
}

.blog-post-card:hover {
    border-color: rgba(212, 168, 67, 0.5);
    box-shadow: var(--sombra-media);
    transform: translateY(-4px);
}

.blog-post-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--cor-destaque);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.blog-post-card h2 {
    margin: 1rem 0;
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 1.65rem;
    line-height: 1.2;
}

.blog-post-card p {
    color: var(--cor-texto-medio);
    line-height: 1.75;
}

.blog-post-footer {
    border-top: 1px solid var(--cor-borda);
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-post-footer span {
    color: var(--cor-texto-medio);
    font-size: 0.85rem;
}

.blog-post-footer a {
    color: var(--cor-primaria);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-empty {
    max-width: 680px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--cor-texto-medio);
}

.blog-empty i {
    color: var(--cor-destaque);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-empty h2 {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
}

.post-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 1.5rem 5rem;
}

.post-page h1 {
    margin: 1rem 0;
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.08;
}

.post-excerpt {
    color: var(--cor-texto-medio);
    font-size: 1.2rem;
    line-height: 1.8;
}

.post-author {
    margin: 1.5rem 0 2rem;
    color: var(--cor-texto-medio);
}

.post-author strong {
    color: var(--cor-primaria);
}

.post-body {
    border-top: 1px solid var(--cor-borda);
    padding-top: 2rem;
}

.post-body p {
    margin-bottom: 1.4rem;
    color: var(--cor-texto-escuro);
    font-size: 1.08rem;
    line-height: 1.9;
}

.legal-page {
    width: min(880px, calc(100% - 2rem));
    margin: 7.5rem auto 4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    background: var(--cor-texto);
    box-shadow: var(--sombra-suave);
}

.legal-page h1 {
    margin: 0.7rem 0 1rem;
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.05;
}

.legal-page h2 {
    margin: 2rem 0 0.65rem;
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.legal-page p {
    color: var(--cor-texto-medio);
    line-height: 1.8;
}

.legal-page a {
    color: var(--cor-primaria);
    font-weight: 800;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.page-footer-bottom {
    border-top: 0;
    padding-top: 0;
}

.admin-body {
    background-color: var(--cor-fundo-claro);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem;
    background: linear-gradient(160deg, var(--cor-primaria), var(--cor-fundo-escuro));
    color: var(--cor-texto);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.admin-logo {
    align-items: flex-start;
}

.admin-sidebar h1 {
    margin-bottom: 1rem;
    font-family: var(--fonte-titulo);
    font-size: 2.4rem;
    line-height: 1;
}

.admin-sidebar p {
    color: rgba(232, 196, 106, 0.88);
}

.admin-sidebar-link {
    color: var(--cor-accent);
    text-decoration: none;
    font-weight: 900;
}

.admin-content {
    padding: 2rem;
}

.admin-message {
    min-height: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.admin-message[data-type="error"] {
    color: #9f1d1d;
}

.admin-message[data-type="success"] {
    color: #1f7a3b;
}

.admin-login-card {
    max-width: 520px;
    padding: 2rem;
}

.admin-login-card h2,
.admin-editor h2,
.admin-posts h2 {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 2rem;
}

.admin-form,
.admin-editor {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-form {
    margin-top: 1.5rem;
}

.admin-form input,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
    width: 100%;
    border: 1px solid var(--cor-borda);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    color: var(--cor-texto-escuro);
    font-family: var(--fonte-principal);
    font-size: 1rem;
}

.admin-panel-header,
.admin-grid {
    max-width: 1180px;
}

.admin-panel-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-panel-header span {
    display: block;
    color: var(--cor-texto-medio);
}

.admin-panel-header strong {
    color: var(--cor-primaria);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
}

.admin-editor,
.admin-posts {
    padding: 1.5rem;
}

.admin-status-options,
.admin-editor-actions,
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-status-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-status-options input {
    width: auto;
}

.admin-secondary-button,
.admin-danger-button {
    border: 1px solid var(--cor-borda);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background-color: var(--cor-texto);
    color: var(--cor-primaria);
    cursor: pointer;
    font-weight: 900;
}

.admin-danger-button {
    border-color: rgba(159, 29, 29, 0.3);
    color: #9f1d1d;
}

.admin-posts-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-post-row {
    padding: 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
}

.admin-post-row h3 {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 1.3rem;
}

.admin-post-row p {
    color: var(--cor-texto-medio);
    font-size: 0.9rem;
}

.admin-post-status {
    color: var(--cor-destaque);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(212, 168, 67, 0.12), transparent 34rem),
        var(--cor-fundo-claro);
}

.admin-shell {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
}

.admin-sidebar {
    padding: 1.6rem;
    justify-content: flex-start;
    overflow: hidden;
}

.admin-sidebar::after {
    content: '';
    position: absolute;
    right: -40%;
    bottom: -18%;
    width: 90%;
    aspect-ratio: 1;
    border: 1px solid rgba(232, 196, 106, 0.18);
    border-radius: 50%;
}

.admin-sidebar > * {
    position: relative;
    z-index: 1;
}

.admin-logo {
    margin-bottom: clamp(2rem, 16vh, 9rem);
}

.admin-logo .logo-mark {
    width: 54px;
    height: 54px;
}

.admin-logo .logo-text span {
    font-size: 1.05rem;
}

.admin-logo .logo-text small {
    font-size: 0.62rem;
}

.admin-sidebar-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.75rem 0;
}

.admin-content {
    width: 100%;
    max-width: 1180px;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

.admin-body:not(.admin-logged-in) .admin-shell {
    min-height: 100vh;
}

.admin-body:not(.admin-logged-in) .admin-content {
    display: grid;
    align-content: center;
}

.admin-body:not(.admin-logged-in) .admin-login-card {
    max-width: 620px;
}

.admin-message:empty {
    display: none;
}

.admin-message {
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background-color: rgba(74, 14, 26, 0.06);
}

.admin-message[data-type="error"] {
    background-color: rgba(159, 29, 29, 0.08);
}

.admin-message[data-type="success"] {
    background-color: rgba(31, 122, 59, 0.08);
}

.admin-login-card,
.admin-panel-header,
.admin-editor,
.admin-posts {
    border-color: rgba(212, 168, 67, 0.22);
    box-shadow: 0 16px 44px rgba(74, 14, 26, 0.08);
}

.admin-login-card {
    padding: clamp(1.5rem, 4vw, 2.6rem);
}

.admin-login-intro {
    margin-bottom: 1.75rem;
}

.admin-login-intro p,
.admin-login-card p {
    color: var(--cor-texto-medio);
    line-height: 1.7;
}

.admin-field {
    display: grid;
    gap: 0.45rem;
}

.admin-field label,
.admin-status-options {
    color: var(--cor-texto-escuro);
    font-weight: 700;
}

.admin-form,
.admin-editor {
    gap: 1rem;
}

.admin-form input,
.admin-editor input,
.admin-editor select,
.admin-editor textarea {
    background-color: #fffefa;
    border-color: rgba(212, 168, 67, 0.32);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.16);
}

.admin-login-submit {
    margin-top: 0.45rem;
}

.admin-panel-header {
    padding: 1rem 1.2rem;
    background-color: var(--cor-texto);
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-secondary-link {
    color: var(--cor-primaria);
    font-weight: 900;
    text-decoration: none;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
}

.admin-card-heading {
    margin-bottom: 0.35rem;
}

.admin-card-heading span {
    color: var(--cor-destaque);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.admin-card-heading h2 {
    line-height: 1.1;
}

.admin-editor,
.admin-posts {
    padding: clamp(1.25rem, 3vw, 1.75rem);
}

.admin-posts {
    min-height: 520px;
}

.admin-posts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-refresh-button {
    white-space: nowrap;
}

.admin-post-summary,
.admin-post-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.admin-post-summary span {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--cor-borda);
    border-radius: 999px;
    color: var(--cor-texto-medio);
    font-size: 0.86rem;
}

.admin-post-summary strong {
    color: var(--cor-primaria);
}

.admin-filter-button {
    border: 1px solid var(--cor-borda);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background-color: #fffefa;
    color: var(--cor-primaria);
    cursor: pointer;
    font-weight: 900;
}

.admin-filter-button.active {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto);
}

.admin-loading,
.admin-empty-state {
    min-height: 200px;
    display: grid;
    place-items: center;
    gap: 0.5rem;
    color: var(--cor-texto-medio);
    text-align: center;
}

.admin-loading i,
.admin-empty-state i {
    color: var(--cor-destaque);
    font-size: 1.6rem;
}

.admin-post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background-color: #fffefa;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-post-row:hover {
    border-color: rgba(212, 168, 67, 0.5);
    transform: translateY(-2px);
}

.admin-post-status {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.admin-post-status.is-draft {
    background-color: rgba(212, 168, 67, 0.14);
}

.admin-post-status.is-published {
    background-color: rgba(31, 122, 59, 0.1);
    color: #1f7a3b;
}

.admin-row-actions {
    justify-content: flex-end;
}

.admin-command-center {
    max-width: 1180px;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(130px, 0.55fr));
    gap: 1rem;
}

.admin-welcome-card,
.admin-metric-card,
.admin-live-preview,
.admin-checklist {
    background-color: var(--cor-texto);
    border: 1px solid rgba(212, 168, 67, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(74, 14, 26, 0.08);
}

.admin-welcome-card {
    padding: 1.35rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(74, 14, 26, 0.97), rgba(44, 24, 16, 0.95)),
        url('../images/justica-bg.jpg') center/cover no-repeat;
    color: var(--cor-texto);
    overflow: hidden;
    position: relative;
}

.admin-welcome-card::after {
    content: '';
    position: absolute;
    right: -3rem;
    top: -4rem;
    width: 11rem;
    aspect-ratio: 1;
    border: 1px solid rgba(232, 196, 106, 0.25);
    border-radius: 50%;
}

.admin-welcome-card span {
    color: var(--cor-accent);
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.admin-welcome-card h2 {
    margin: 0.45rem 0;
    font-family: var(--fonte-titulo);
    font-size: 2rem;
    line-height: 1.05;
}

.admin-welcome-card p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.admin-metric-card {
    padding: 1.1rem;
    display: grid;
    align-content: space-between;
    min-height: 150px;
}

.admin-metric-card i {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--cor-fundo-claro);
    color: var(--cor-primaria);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-metric-card span {
    color: var(--cor-texto-medio);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-metric-card strong {
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 2.6rem;
    line-height: 1;
}

.admin-workspace {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.admin-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
    gap: 1rem;
}

.admin-helper {
    color: var(--cor-texto-medio);
    font-size: 0.82rem;
    text-align: right;
}

.admin-writing-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--cor-texto-medio);
    font-size: 0.86rem;
}

.admin-writing-stats span {
    padding: 0.45rem 0.65rem;
    background-color: var(--cor-fundo-claro);
    border: 1px solid var(--cor-borda);
    border-radius: 999px;
}

.admin-writing-stats strong {
    color: var(--cor-primaria);
}

.admin-editor-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1.25rem;
}

.admin-live-preview,
.admin-checklist {
    padding: 1.25rem;
}

.admin-preview-card {
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    padding: 1.25rem;
    background-color: #fffefa;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.admin-preview-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background-color: var(--cor-destaque);
}

.admin-preview-card h3 {
    margin: 1rem 0 0.85rem;
    color: var(--cor-primaria);
    font-family: var(--fonte-titulo);
    font-size: 1.55rem;
    line-height: 1.18;
}

.admin-preview-card p {
    color: var(--cor-texto-medio);
    line-height: 1.7;
}

.admin-preview-card .blog-post-footer {
    margin-top: auto;
}

.admin-preview-card .blog-post-footer strong {
    color: var(--cor-primaria);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-checklist ul {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin-top: 1rem;
}

.admin-checklist li {
    display: flex;
    gap: 0.65rem;
    color: var(--cor-texto-medio);
    line-height: 1.45;
}

.admin-checklist i {
    color: var(--cor-destaque);
    margin-top: 0.2rem;
}

.admin-posts-wide {
    max-width: 1180px;
}

/* Painel do blog em tela cheia */
.admin-shell {
    grid-template-columns: 268px minmax(0, 1fr);
}

.admin-content,
.admin-panel-header,
.admin-command-center,
.admin-workspace,
.admin-grid,
.admin-posts-wide {
    max-width: none;
    width: 100%;
}

.admin-content {
    min-width: 0;
    padding: 1.5rem clamp(1rem, 2vw, 2rem);
}

.admin-panel {
    width: 100%;
}

.admin-logo {
    margin-bottom: clamp(1.75rem, 12vh, 6rem);
}

.admin-command-center {
    grid-template-columns: minmax(420px, 1.2fr) repeat(3, minmax(150px, 0.46fr));
}

.admin-workspace {
    grid-template-columns: minmax(540px, 1fr) minmax(390px, 0.72fr);
}

.admin-grid {
    grid-template-columns: minmax(540px, 1fr) minmax(390px, 0.72fr);
}

.admin-posts {
    min-height: 260px;
}

.admin-empty-state,
.admin-loading {
    min-height: 160px;
}

/* Página Equipe */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.team-card {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.team-card {
    text-align: center;
    background: var(--cor-texto);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.team-photo {
    width: 100%;
    max-width: 320px;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    display: block;
    background-color: #ddd;
    box-shadow: var(--sombra-suave);
    filter: none;
    image-rendering: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: #E8C46A;
    z-index: 2;
    transition: height 0.5s ease;
    border-radius: 8px 0 0 8px;
}

.team-card:hover .team-photo {
    filter: saturate(1.08) contrast(1.03) brightness(1.02);
    transform: translateY(-4px);
    box-shadow: var(--sombra-forte);
}

.team-card:hover .team-photo::before {
    height: 100%;
}

.team-name {
    font-size: 1.6rem;
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--fonte-titulo);
}

.team-role {
    color: var(--cor-secundaria);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.team-oab {
    color: var(--cor-texto-medio);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.team-oab-placeholder {
    visibility: hidden;
}

.team-description {
    color: var(--cor-texto-medio);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.team-contact {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--cor-borda);
    border-bottom: 1px solid var(--cor-borda);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-phone,
.team-email {
    color: var(--cor-texto-medio);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-phone i,
.team-email i {
    color: var(--cor-primaria);
    font-size: 0.9rem;
    width: 18px;
}

.team-phone a,
.team-email a {
    color: var(--cor-texto-medio);
    text-decoration: none;
    transition: color 0.3s;
}

.team-phone a:hover,
.team-email a:hover {
    color: var(--cor-destaque);
}

.team-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--cor-primaria);
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-icon:hover {
    background-color: var(--cor-accent);
    color: var(--cor-texto);
    transform: translateY(-3px);
    box-shadow: var(--sombra-suave);
}

/* Página Contato */
.contact-section {
    background-color: var(--cor-fundo-claro);
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 400px;
    min-width: 300px;
}

.contact-form {
    flex: 1 1 400px;
    min-width: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--cor-primaria);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-accent);
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: var(--sombra-suave);
}

.contact-details h4 {
    font-size: 1.2rem;
    color: var(--cor-primaria);
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-family: var(--fonte-titulo);
}

.contact-details p {
    color: var(--cor-texto-medio);
    line-height: 1.8;
    font-size: 0.95rem;
}

.contact-map-card {
    margin-top: 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 67, 0.26);
    border-radius: 10px;
    background-color: #fffdf9;
    box-shadow: 0 16px 42px rgba(44, 24, 16, 0.1);
}

.contact-map-frame {
    position: relative;
    height: 286px;
    background:
        linear-gradient(135deg, rgba(74, 14, 26, 0.08), rgba(212, 168, 67, 0.08)),
        #e8e1d6;
}

.contact-map {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    display: block;
    filter: saturate(0.62) contrast(1.04) sepia(0.05);
}

.map-brand-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.map-brand-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(74, 14, 26, 0.08), transparent 30%, transparent 72%, rgba(44, 24, 16, 0.08)),
        radial-gradient(circle at center, transparent 0 32px, rgba(245, 240, 232, 0.08) 33px 35px, transparent 36px);
}

.map-location-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.34rem 0.68rem;
    border: 1px solid rgba(232, 196, 106, 0.42);
    border-radius: 6px;
    background: rgba(74, 14, 26, 0.88);
    color: var(--cor-accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(74, 14, 26, 0.18);
    backdrop-filter: blur(6px);
}

.map-pin-custom {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -84%) rotate(-45deg);
    border: 1px solid rgba(232, 196, 106, 0.76);
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(145deg, rgba(74, 14, 26, 0.98), rgba(123, 30, 46, 0.96));
    color: var(--cor-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fonte-titulo);
    box-shadow: 0 12px 24px rgba(74, 14, 26, 0.28);
}

.map-pin-custom::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(232, 196, 106, 0.34);
    border-radius: 50%;
}

.map-pin-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 34px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 999px;
    background: rgba(44, 24, 16, 0.18);
    filter: blur(4px);
}

.map-pin-custom span {
    position: relative;
    z-index: 1;
    line-height: 1;
    font-size: 0.92rem;
    font-weight: 800;
    transform: rotate(45deg);
}

.contact-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1rem 1.05rem;
    color: var(--cor-texto-medio);
    font-size: 0.88rem;
    border-top: 1px solid rgba(212, 168, 67, 0.18);
}

.contact-map-footer > span,
.contact-map-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-map-footer > span {
    min-width: 0;
    color: #4a352d;
    font-weight: 700;
    line-height: 1.45;
}

.contact-map-footer > span i {
    color: var(--cor-primaria);
}

.contact-map-footer a {
    color: var(--cor-primaria);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.contact-map-footer a i {
    color: currentColor;
}

.contact-map-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.contact-map-actions a {
    min-height: 40px;
    padding: 0.58rem 0.9rem;
    border: 1px solid rgba(212, 168, 67, 0.38);
    border-radius: 999px;
    background-color: rgba(245, 240, 232, 0.64);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-map-actions a:hover {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto);
    transform: translateY(-1px);
}

.contact-form {
    background: var(--cor-texto);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--sombra-media);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--cor-texto-escuro);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--cor-borda);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--fonte-principal);
    transition: all 0.3s;
    background-color: var(--cor-fundo-claro);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
    background-color: var(--cor-texto);
    box-shadow: 0 0 0 3px rgba(242, 82, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-choice-group {
    margin: 0 0 1.8rem;
    padding: 0;
    border: 0;
}

.contact-choice-group legend {
    margin-bottom: 0.75rem;
    color: var(--cor-texto-escuro);
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-choice-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.lawyer-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-choice {
    cursor: pointer;
}

.contact-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-choice span {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    background: var(--cor-fundo-claro);
    color: var(--cor-texto-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    font-weight: 800;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-choice input:checked + span {
    border-color: var(--cor-primaria);
    background: var(--cor-primaria);
    color: var(--cor-texto);
    box-shadow: 0 10px 24px rgba(74, 14, 26, 0.16);
}

.contact-choice input:focus-visible + span {
    outline: 3px solid rgba(212, 168, 67, 0.45);
    outline-offset: 2px;
}

.char-count {
    font-size: 0.85rem;
    color: var(--cor-texto-medio);
    margin-top: 0.4rem;
}

.privacy-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: flex-start;
    margin: -0.35rem 0 1.6rem;
    color: var(--cor-texto-medio);
    font-size: 0.86rem;
    line-height: 1.6;
}

.privacy-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0.18rem;
    accent-color: var(--cor-primaria);
}

.privacy-consent a {
    color: var(--cor-primaria);
    font-weight: 800;
    text-decoration: none;
}

.privacy-consent a:hover {
    text-decoration: underline;
}

.form-legal-note {
    margin: -0.45rem 0 1.7rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--cor-accent);
    border-radius: 6px;
    background: rgba(245, 240, 232, 0.85);
    color: var(--cor-texto-medio);
    font-size: 0.86rem;
    line-height: 1.6;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
}

.btn-submit,
.btn-whatsapp {
    flex: 1;
    padding: 1.1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--sombra-suave);
}

.btn-submit {
    background-color: var(--cor-primaria);
    color: var(--cor-texto);
}

.btn-submit:hover {
    background-color: var(--cor-accent);
    color: var(--cor-primaria);
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.btn-whatsapp {
    background-color: #20ba5bca;
    color: var(--cor-texto);
}

.btn-whatsapp:hover {
    background-color: #25D366;
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

/* Footer */
footer {
    background-color: var(--cor-primaria);
    color: var(--cor-texto);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: space-between;
}

.footer-container > div {
    flex: 1 1 200px;
    min-width: 250px;
}

.footer-container > div:first-child {
    flex: 2 1 300px;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo-square {
    width: 55px;
    height: 55px;
    background-color: var(--cor-primaria);
    border: 2px solid var(--cor-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--cor-accent);
    font-family: var(--fonte-titulo);
    letter-spacing: 1px;
}

.footer-logo-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.footer-about {
    color: rgba(232, 196, 106, 0.95);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid var(--cor-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-accent);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--cor-accent);
    color: var(--cor-primaria);
    transform: translateY(-3px);
    box-shadow: var(--sombra-suave);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--cor-texto);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: rgba(232, 196, 106, 0.95);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--cor-accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: start;
}

.footer-contact-icon {
    color: var(--cor-accent);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    min-width: 25px;
}

.footer-contact-text {
    color: rgba(232, 196, 106, 0.95);
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 168, 67, 0.2);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-legal {
    color: rgba(232, 196, 106, 0.7);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 800px;
    font-weight: 300;
}

.footer-copyright {
    color: var(--cor-texto);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    color: var(--cor-texto);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.footer-credit span {
    color: var(--cor-accent);
    font-weight: 800;
    letter-spacing: 0.4px;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--cor-texto);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 300;
}

.footer-bottom-links a:hover {
    color: var(--cor-accent);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-popup {
    background: var(--cor-texto);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--sombra-forte);
    margin-bottom: 1rem;
    max-width: 280px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

.whatsapp-popup.hidden {
    display: none;
}

.whatsapp-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.whatsapp-popup-close:hover {
    background-color: #F0F0F0;
    color: var(--cor-primaria);
}

.whatsapp-popup-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1.5rem;
}

.whatsapp-popup-icon {
    font-size: 1.8rem;
    color: #25D366;
}

.whatsapp-popup-text {
    color: var(--cor-texto-escuro);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

.whatsapp-button {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-texto);
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: var(--sombra-forte);
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Background Pattern */
.pattern-bg {
    background-color: #F5F0E8;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(74, 14, 26, 0.025) 14px, rgba(74, 14, 26, 0.025) 15px);
}

/* Responsividade */
/* Tablet - 768px a 1024px */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo-mark {
        width: 52px;
        height: 52px;
    }

    .logo-text span {
        font-size: 1.05rem;
    }

    .hero {
        padding-top: 90px;
        min-height: 90vh;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem 3rem;
    }

    .hero-background-image {
        width: 40%;
        opacity: 0.12;
    }

    .hero-visual {
        order: 1;
        min-height: auto;
    }

    .hero-content {
        order: 2;
        max-width: 860px;
    }

    .hero-main-photo {
        height: clamp(340px, 54vw, 470px);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0;
    }

    .stats {
        gap: 3rem;
        max-width: 100%;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-command-center,
    .admin-workspace {
        grid-template-columns: 1fr;
    }

    .admin-metric-card {
        min-height: 120px;
    }

    .admin-editor-side {
        position: static;
    }

    .stat-number {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-content,
    .differentials {
        flex: 1 1 100%;
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .areas-grid {
        gap: 1.5rem;
    }

    .area-card {
        flex: 1 1 280px;
        max-width: 100%;
    }

    .team-grid {
        gap: 2rem;
    }

    .team-card {
        flex: 1 1 280px;
        max-width: 100%;
    }

    .team-photo {
        max-width: 280px;
        height: 380px;
    }

    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-container > div {
        flex: 1 1 100%;
        width: 100%;
    }

    .contact-map-frame {
        height: 280px;
    }

    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Mobile - até 768px */
@media (max-width: 768px) {
    header {
        padding: 0.65rem 0.85rem;
    }

    .logo-square {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .logo-text span {
        font-size: 1rem;
    }

    .logo-text small {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--cor-primaria);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: var(--sombra-forte);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.3rem;
    }

    .btn-consulta {
        display: none;
    }

    .hero {
        padding-top: 60px;
        min-height: auto;
        background-position: center;
    }

    .hero-background-image {
        width: 35%;
        opacity: 0.1;
        right: -10%;
    }

    .hero-content {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .hero-shell {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.85rem 0.8rem 2rem;
    }

    .hero-visual {
        width: 100%;
        min-height: 0;
    }

    .hero-main-photo {
        height: clamp(225px, 64vw, 330px);
        border-radius: 8px;
        object-position: center;
    }

    .badge {
        padding: 0.45rem 0.9rem;
        font-size: 0.62rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 1.72rem;
        margin-bottom: 0.65rem;
        line-height: 1.22;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 1rem;
        padding: 0 0.4rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0 0.4rem;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1rem;
        font-size: 0.82rem;
        justify-content: center;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 0 0.4rem;
    }

    .hero-highlight {
        padding: 0.8rem;
    }

    .hero-highlight span {
        font-size: 0.64rem;
        margin-bottom: 0.3rem;
    }

    .hero-highlight strong {
        font-size: 0.9rem;
    }

    .hero-trust {
        justify-content: center;
        margin: -1.6rem 0 2rem;
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .stat-item {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.65rem;
    }

    .section {
        padding: 2.5rem 0.85rem;
    }

    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.35rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .section-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .section-description {
        font-size: 0.95rem;
        padding: 0;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .area-card {
        padding: 1.5rem 1.15rem;
    }

    .area-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .area-card h3 {
        font-size: 1.4rem;
    }

    .about-section {
        padding: 3rem 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-content h3 {
        font-size: 2.2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .values {
        gap: 2rem;
        margin-top: 2rem;
    }

    .value-item {
        gap: 1rem;
    }

    .value-icon {
        font-size: 2rem;
        min-width: 50px;
    }

    .differentials {
        padding: 2.5rem 1.5rem;
    }

    .differentials h3 {
        font-size: 1.75rem;
    }

    .differentials-stats {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }

    .diff-stat-number {
        font-size: 3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card {
        padding: 1.25rem;
    }

    .team-photo {
        max-width: 100%;
        height: clamp(300px, 95vw, 380px);
    }

    .team-name {
        font-size: 1.4rem;
    }

    .team-contact {
        padding: 0.8rem 0;
    }

    .team-phone,
    .team-email {
        font-size: 0.85rem;
        justify-content: center;
    }

    .contact-section {
        padding: 2.5rem 0.85rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-info {
        gap: 2rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .contact-map-frame {
        height: 248px;
    }

    .map-location-badge {
        top: 0.7rem;
        left: 0.7rem;
        max-width: calc(100% - 1.4rem);
        font-size: 0.64rem;
    }

    .map-pin-custom {
        width: 44px;
        height: 44px;
    }

    .contact-map-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
        padding: 0.95rem;
    }

    .contact-map-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: flex-start;
    }

    .contact-map-actions a {
        justify-content: center;
        min-height: 42px;
        padding-inline: 0.7rem;
    }

    .contact-form {
        padding: 1.4rem 1rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .contact-choice-options,
    .lawyer-options {
        grid-template-columns: 1fr;
    }

    .btn-submit,
    .btn-whatsapp {
        width: 100%;
    }

    footer {
        padding: 2.5rem 0.9rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .footer-legal {
        font-size: 0.8rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-preview-card {
        padding: 1.5rem;
    }

    .page-hero {
        padding: 6.5rem 1rem 3rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .blog-toolbar,
    .admin-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-post-card {
        min-height: 0;
        padding: 1.35rem;
    }

    .post-page {
        padding: 6.5rem 1rem 3rem;
    }

    .post-body p {
        font-size: 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-sidebar {
        padding: 1.25rem;
    }

    .admin-login-card,
    .admin-editor,
    .admin-posts {
        padding: 1.25rem;
    }

    .admin-command-center {
        gap: 0.75rem;
    }

    .admin-welcome-card {
        padding: 1.15rem;
    }

    .admin-welcome-card h2 {
        font-size: 1.65rem;
    }

    .admin-editor-row {
        grid-template-columns: 1fr;
    }

    .admin-preview-card {
        min-height: 220px;
    }

    .admin-editor-actions,
    .admin-row-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-secondary-button,
    .admin-danger-button {
        width: 100%;
    }

    .whatsapp-popup {
        display: none !important;
    }

    .whatsapp-popup-text {
        font-size: 0.85rem;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* Melhorias de toque para mobile */
@media (max-width: 768px) {
    a,
    button {
        -webkit-tap-highlight-color: rgba(232, 196, 106, 0.3);
    }

    .nav-link {
        padding: 0.75rem 0;
        display: block;
    }

    .btn-primary,
    .btn-secondary,
    .btn-consulta,
    .btn-submit,
    .btn-whatsapp {
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* Mobile Pequeno - até 480px */
@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.75rem;
    }

    .logo-square {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    .btn-consulta {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 56px;
    }

    .hero-background-image {
        display: none;
    }

    .hero-content {
        padding: 0;
    }

    .hero-shell {
        padding: 0.65rem 0.6rem 1.75rem;
        gap: 0.75rem;
    }

    .hero-visual {
        padding-bottom: 0;
    }

    .hero-main-photo {
        height: clamp(215px, 68vw, 290px);
        object-position: 52% center;
    }

    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.65rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.65rem;
    }

    .hero p {
        font-size: 0.88rem;
        margin-bottom: 0.9rem;
    }

    .hero-buttons {
        margin-bottom: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section {
        padding: 2.25rem 0.7rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .area-card {
        padding: 1.25rem 1rem;
    }

    .area-card h3 {
        font-size: 1.3rem;
    }

    .area-card p {
        font-size: 0.9rem;
    }

    .about-content h3 {
        font-size: 1.9rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .differentials {
        padding: 2rem 1rem;
    }

    .differentials h3 {
        font-size: 1.5rem;
    }

    .differentials li {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }

    .team-photo {
        height: clamp(285px, 98vw, 350px);
    }

    .team-name {
        font-size: 1.3rem;
    }

    .team-description {
        font-size: 0.9rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .contact-details h4 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .contact-map-frame {
        height: 210px;
    }

    .map-location-badge {
        letter-spacing: 0.05em;
    }

    .contact-map-actions {
        grid-template-columns: 1fr;
    }
    }

    .contact-form {
        padding: 1.25rem 0.9rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .whatsapp-widget {
        bottom: 10px;
        right: 10px;
    }

    .whatsapp-popup {
        max-width: 200px;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .whatsapp-popup-text {
        font-size: 0.8rem;
    }

    .whatsapp-button {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .area-card:hover,
    .team-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-submit:hover,
    .btn-whatsapp:hover,
    .whatsapp-button:hover {
        transform: none;
    }

    .team-card:hover .team-photo {
        filter: none;
        transform: none;
        box-shadow: var(--sombra-suave);
    }
}

/* Painel operacional: escopo isolado do site público */
.ops-body {
    min-height: 100vh;
    background: #f4f0e8;
    color: #2d1717;
}

.ops-body button,
.ops-body input,
.ops-body select,
.ops-body textarea {
    font: inherit;
}

.ops-body [hidden] {
    display: none !important;
}

.ops-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.ops-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100vh;
    padding: 22px 16px;
    background: #480b17;
    border-right: 1px solid rgba(233, 190, 92, 0.25);
    overflow-y: auto;
}

.ops-sidebar::after {
    display: none;
}

.ops-sidebar .admin-logo {
    align-items: center;
    gap: 10px;
    margin: 0 4px 34px;
    padding: 0;
}

.ops-sidebar .admin-logo .logo-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.ops-sidebar .admin-logo .logo-text {
    display: block;
    min-width: 0;
}

.ops-sidebar .admin-logo .logo-text span {
    display: block;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    line-height: 1.1;
}

.ops-sidebar .admin-logo .logo-text small {
    display: block;
    margin-top: 3px;
    color: #e7bd58;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ops-nav {
    display: grid;
    gap: 5px;
}

.ops-nav-button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 13px;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
}

.ops-nav-button:hover,
.ops-nav-button.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(233, 190, 92, 0.22);
}

.ops-nav-button.active {
    box-shadow: inset 3px 0 #e7bd58;
}

.ops-nav-button i {
    color: #e7bd58;
    text-align: center;
}

.ops-nav-button strong {
    min-width: 24px;
    padding: 3px 7px;
    color: #4a0e1a;
    background: #e7bd58;
    border-radius: 999px;
    font-size: 0.72rem;
    text-align: center;
}

.ops-sidebar .admin-sidebar-link {
    margin-top: auto;
    padding: 16px 8px 2px;
    color: #e7bd58;
    font-weight: 800;
}

.ops-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 22px clamp(18px, 3vw, 46px) 44px;
}

.ops-body:not(.admin-logged-in) .ops-shell {
    grid-template-columns: minmax(0, 1fr);
}

.ops-body:not(.admin-logged-in) .ops-sidebar {
    display: none;
}

.ops-body:not(.admin-logged-in) .ops-content {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 22px;
    background:
        linear-gradient(90deg, #4a0e1a 0 34%, transparent 34%),
        #f4f0e8;
}

.ops-body .admin-message {
    position: relative;
    width: min(100%, 1100px);
    margin: 0 auto 14px;
    padding: 13px 15px;
    border: 1px solid #e7d8c3;
    border-radius: 6px;
    background: #fff;
}

.ops-body .admin-message:empty {
    display: none;
}

.ops-body .admin-message[data-type="error"] {
    color: #9b1c1c;
    background: #fff1ef;
    border-color: #efc2bc;
}

.ops-body .admin-message[data-type="success"] {
    color: #23653e;
    background: #effaf3;
    border-color: #b9dfc7;
}

.ops-body .admin-login-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
    width: min(880px, 100%);
    min-height: 460px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eadbc7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(64, 24, 20, 0.18);
}

.ops-body .admin-login-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(30px, 5vw, 54px);
    color: #fff;
    background:
        linear-gradient(rgba(61, 8, 18, 0.76), rgba(44, 11, 12, 0.91)),
        url("../images/justica-bg.jpg") center / cover;
}

.ops-body .admin-login-intro h1 {
    margin: 8px 0 16px;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.ops-body .admin-login-intro p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
}

.ops-body .admin-login-card > .admin-form {
    align-self: center;
    padding: clamp(30px, 5vw, 54px);
}

.ops-body .admin-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin-bottom: 17px;
}

.ops-body .admin-field label {
    color: #3c1718;
    font-size: 0.82rem;
    font-weight: 900;
}

.ops-body .admin-field input,
.ops-body .admin-field select,
.ops-body .admin-field textarea,
.ops-toolbar input,
.ops-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #2f1c1b;
    background: #fffdf9;
    border: 1px solid #decdb7;
    border-radius: 5px;
    outline: none;
}

.ops-body .admin-field textarea {
    min-height: 84px;
    resize: vertical;
}

.ops-body .admin-field input:focus,
.ops-body .admin-field select:focus,
.ops-body .admin-field textarea:focus,
.ops-toolbar input:focus,
.ops-toolbar select:focus {
    border-color: #b88a32;
    box-shadow: 0 0 0 3px rgba(184, 138, 50, 0.13);
}

.ops-body .btn-submit,
.ops-body .admin-secondary-button,
.ops-body .admin-danger-button,
.ops-text-button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 900;
    cursor: pointer;
}

.ops-body .btn-submit {
    color: #fff;
    background: #570d1d;
    border: 1px solid #570d1d;
}

.ops-body .btn-submit:hover {
    background: #3f0814;
}

.ops-body .admin-secondary-button {
    color: #570d1d;
    background: #fff;
    border: 1px solid #decdb7;
}

.ops-body .admin-danger-button {
    color: #9b1c1c;
    background: #fff5f4;
    border: 1px solid #edc7c2;
}

.ops-panel {
    width: 100%;
}

.ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e8dbc9;
    border-radius: 7px;
    box-shadow: 0 8px 26px rgba(66, 33, 24, 0.05);
}

.ops-header > div:first-child {
    display: grid;
    gap: 2px;
}

.ops-header span,
.ops-header small {
    color: #78645d;
    font-size: 0.76rem;
}

.ops-header strong {
    color: #4a0e1a;
}

.ops-body .admin-panel-actions {
    display: flex;
    gap: 8px;
}

.ops-view {
    width: 100%;
}

.ops-view.active {
    animation: ops-fade 0.2s ease-out;
}

@keyframes ops-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ops-page-heading,
.ops-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.ops-page-heading {
    margin-bottom: 22px;
}

.ops-page-heading span,
.ops-section-heading span,
.ops-body .admin-card-heading span,
.ops-dialog-heading > span {
    color: #b08027;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.ops-page-heading h1 {
    margin: 3px 0 0;
    color: #4a0e1a;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.ops-page-heading > p {
    max-width: 440px;
    margin: 0 0 5px;
    color: #75645e;
    text-align: right;
}

.ops-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ops-metrics article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8dbc9;
    border-radius: 7px;
}

.ops-metrics i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #9c273a;
    background: #f6eee7;
    border-radius: 6px;
}

.ops-metrics span {
    color: #6f5b54;
    font-size: 0.75rem;
    font-weight: 800;
}

.ops-metrics strong {
    color: #4a0e1a;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
}

.ops-dashboard-grid,
.ops-blog-grid,
.ops-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.ops-blog-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    margin-top: 20px;
}

.ops-panel-card {
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8dbc9;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(66, 33, 24, 0.06);
}

.ops-section-heading,
.admin-card-heading {
    margin-bottom: 18px;
}

.ops-section-heading h2,
.ops-body .admin-card-heading h2,
.ops-dialog-heading h2 {
    margin: 3px 0 0;
    color: #4a0e1a;
    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
}

.ops-text-button {
    color: #650f20;
    background: transparent;
    border: 0;
}

.ops-compact-list {
    display: grid;
}

.ops-compact-list > div,
.ops-compact-list > button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 12px 4px;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eee3d5;
    text-align: left;
}

.ops-compact-list > *:last-child {
    border-bottom: 0;
}

.ops-compact-list i {
    color: #b08027;
}

.ops-compact-list span,
.ops-compact-list div > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ops-compact-list small {
    color: #7b6a63;
}

.ops-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 220px;
    gap: 10px;
    margin-bottom: 14px;
}

.ops-contact-list {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8dbc9;
    border-radius: 7px;
}

.ops-contact-row {
    display: grid;
    grid-template-columns: 110px minmax(260px, 1fr) minmax(150px, 0.55fr) 100px 135px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 78px;
    padding: 13px 16px;
    color: #3a2522;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eee3d5;
    text-align: left;
    cursor: pointer;
}

.ops-contact-row:hover {
    background: #fffaf4;
}

.ops-contact-row:last-child {
    border-bottom: 0;
}

.ops-contact-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ops-contact-main small {
    overflow: hidden;
    color: #77655f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-contact-main em {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    color: #8d2d20;
    background: #fff0e9;
    border-radius: 999px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    vertical-align: middle;
}

.ops-contact-row.needs-retention-review {
    box-shadow: inset 3px 0 #b65b32;
}

.ops-status,
.admin-post-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: #5b4218;
    background: #f7e9bd;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-status.is-contacting,
.ops-status.is-scheduled {
    color: #244e75;
    background: #e9f3fb;
}

.ops-status.is-in_progress {
    color: #6c431b;
    background: #f9e6ce;
}

.ops-status.is-closed,
.admin-post-status.is-published {
    color: #24623b;
    background: #e5f5eb;
}

.ops-status.is-archived {
    color: #655d59;
    background: #eeeae7;
}

.ops-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.ops-goal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 15px;
    background: #faf7f2;
    border: 1px solid #eadfce;
    border-radius: 6px;
}

.ops-goal-card > div:first-child {
    display: grid;
    gap: 3px;
}

.ops-goal-card span {
    color: #78665e;
    font-size: 0.75rem;
}

.ops-progress {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    background: #e7ddd0;
    border-radius: 999px;
}

.ops-progress i {
    display: block;
    height: 100%;
    background: #b08027;
    border-radius: inherit;
}

.ops-body .admin-editor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ops-body .admin-helper,
.ops-body .admin-writing-stats {
    color: #78665e;
    font-size: 0.74rem;
}

.ops-body .admin-writing-stats,
.ops-body .admin-status-options,
.ops-body .admin-editor-actions,
.ops-body .admin-row-actions,
.ops-dialog-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ops-body .admin-writing-stats {
    justify-content: flex-end;
    margin-top: 6px;
}

.ops-body .admin-status-options {
    margin: 6px 0 16px;
}

.ops-body .admin-status-options label,
.ops-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ops-body .admin-post-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ops-body .admin-filter-button {
    min-height: 36px;
    padding: 7px 12px;
    color: #570d1d;
    background: #fff;
    border: 1px solid #decdb7;
    border-radius: 999px;
    font-weight: 900;
}

.ops-body .admin-filter-button.active {
    color: #fff;
    background: #570d1d;
    border-color: #570d1d;
}

.ops-body .admin-posts-list {
    display: grid;
    gap: 10px;
    max-height: 690px;
    overflow-y: auto;
}

.ops-body .admin-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #faf7f2;
    border: 1px solid #eadfce;
    border-radius: 6px;
}

.ops-body .admin-post-row h3 {
    margin: 8px 0 4px;
    color: #4a0e1a;
    font-size: 1rem;
}

.ops-body .admin-post-row p {
    margin: 0;
    color: #78665e;
    font-size: 0.76rem;
}

.ops-body .admin-empty-state {
    display: grid;
    place-items: center;
    min-height: 230px;
    color: #78665e;
    text-align: center;
}

.ops-body .admin-empty-state i {
    color: #d2a333;
    font-size: 1.5rem;
}

.ops-user-row {
    display: flex !important;
    justify-content: space-between;
}

.ops-user-row b {
    color: #6c1425;
    font-size: 0.74rem;
}

.ops-dialog {
    width: min(680px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    padding: 26px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #decdb7;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(42, 12, 13, 0.32);
}

.ops-dialog::backdrop {
    background: rgba(35, 10, 13, 0.68);
    backdrop-filter: blur(2px);
}

.ops-dialog-close {
    display: flex;
    justify-content: flex-end;
}

.ops-dialog-close button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #570d1d;
    background: #f7f1e9;
    border: 0;
    border-radius: 50%;
}

.ops-dialog-heading {
    margin: -26px 44px 20px 0;
}

.ops-dialog-heading p {
    color: #76635c;
    font-size: 0.8rem;
}

.ops-contact-message {
    margin-bottom: 20px;
    padding: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    background: #faf7f2;
    border-left: 3px solid #b08027;
}

.ops-history {
    display: grid;
    margin-top: 22px;
    border-top: 1px solid #eadfce;
}

.ops-history > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #eadfce;
}

.ops-history span {
    color: #78665e;
    font-size: 0.76rem;
    text-align: right;
}

@media (max-width: 1100px) {
    .ops-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .ops-sidebar .admin-logo .logo-text span {
        font-size: 0.9rem;
    }

    .ops-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ops-contact-row {
        grid-template-columns: 100px minmax(220px, 1fr) 150px 115px;
    }

    .ops-contact-row time {
        display: none;
    }
}

@media (max-width: 760px) {
    .ops-shell {
        display: block;
        padding-bottom: 70px;
    }

    .ops-sidebar {
        position: fixed;
        inset: auto 0 0;
        z-index: 100;
        display: block;
        width: 100%;
        height: 66px;
        padding: 7px 8px;
        overflow: visible;
        border-top: 1px solid rgba(233, 190, 92, 0.35);
        border-right: 0;
    }

    .ops-sidebar .admin-logo,
    .ops-sidebar .admin-sidebar-link {
        display: none;
    }

    .ops-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
    }

    .ops-nav-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 52px;
        padding: 4px 2px;
        border-radius: 4px;
        font-size: 0.62rem;
        text-align: center;
    }

    .ops-nav-button.active {
        box-shadow: inset 0 2px #e7bd58;
    }

    .ops-nav-button strong {
        position: absolute;
        top: 3px;
        margin-left: 25px;
        min-width: 18px;
        padding: 1px 5px;
        font-size: 0.58rem;
    }

    .ops-content {
        padding: 12px 10px 24px;
    }

    .ops-body:not(.admin-logged-in) .ops-content {
        padding: 12px;
        background: #f4f0e8;
    }

    .ops-body .admin-login-card {
        display: block;
        min-height: 0;
    }

    .ops-body .admin-login-intro {
        min-height: 210px;
        padding: 28px 24px;
    }

    .ops-body .admin-login-card > .admin-form {
        padding: 26px 22px 30px;
    }

    .ops-header {
        align-items: flex-start;
        margin-bottom: 17px;
        padding: 12px;
    }

    .ops-header #admin-user-email {
        overflow-wrap: anywhere;
    }

    .ops-body .admin-panel-actions {
        flex-direction: column;
    }

    .ops-body .admin-panel-actions button {
        min-height: 36px;
        padding: 7px 10px;
    }

    .ops-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .ops-page-heading h1 {
        font-size: 2rem;
    }

    .ops-page-heading > p {
        text-align: left;
    }

    .ops-heading-action {
        width: 100%;
    }

    .ops-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ops-metrics article {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        min-height: 90px;
        padding: 12px;
    }

    .ops-metrics i {
        width: 32px;
        height: 32px;
    }

    .ops-metrics strong {
        grid-column: 2;
        font-size: 1.65rem;
    }

    .ops-dashboard-grid,
    .ops-settings-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ops-panel-card {
        padding: 16px;
    }

    .ops-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .ops-contact-list {
        gap: 8px;
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .ops-contact-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 14px;
        border: 1px solid #e8dbc9;
        border-radius: 6px;
    }

    .ops-contact-row .ops-status {
        grid-column: 1;
    }

    .ops-contact-main {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ops-contact-row > span:nth-child(3) {
        grid-column: 1;
    }

    .ops-contact-row > span:nth-child(4) {
        grid-column: 2;
        text-align: right;
    }

    .ops-contact-row time {
        display: none;
    }

    .ops-body .admin-editor-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ops-body .admin-post-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ops-body .admin-row-actions {
        width: 100%;
    }

    .ops-body .admin-row-actions button {
        flex: 1;
    }

    .ops-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        padding: 20px 16px;
    }

    .ops-dialog-heading {
        margin: -28px 42px 18px 0;
    }

    .ops-dialog-actions > button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .ops-nav-button span {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ops-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .ops-metrics article {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        min-height: 68px;
    }

    .ops-metrics strong {
        grid-column: auto;
    }

    .ops-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

