/* ============================================
   OLIVEIRA DANTAS — design system
   Tipografia: Lora (títulos) + Poppins (texto), já definidas na v1 deste arquivo.
   --primary-color / --secondary-color vêm do admin (layout.php) e continuam mandando.
   ============================================ */

:root {
    --primary-color: #1a3a52;
    --secondary-color: #2d5a7b;
    --od-brand: #0a2f98;          /* azul do logo */
    --od-ink: #14202e;            /* texto de títulos */
    --od-text: #2f3a47;
    --od-muted: #5a6573;          /* contraste AA sobre branco e sobre --od-paper */
    --od-gold: #a8834f;           /* acento (linhas, ícones grandes) — não usar em texto pequeno */
    --od-paper: #f6f4ef;
    --od-line: #e3dfd6;
    --od-radius: 10px;
    --od-container: 1180px;
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-link-color-rgb: 10, 47, 152;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--od-text);
    font-size: 1rem;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .od-serif {
    font-family: 'Lora', Georgia, serif;
    color: var(--od-ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
h5, h6 { color: var(--od-ink); font-weight: 600; }

/* Escala tipográfica (sobrescreve os display-* gigantes do Bootstrap usados nas views antigas) */
.display-1 { font-size: clamp(3rem, 8vw, 5rem); }
.display-4 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 600 !important; }
.display-5 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 600 !important; }
.lead { font-size: 1.125rem; font-weight: 400; color: var(--od-muted); }

a { color: var(--od-brand); text-underline-offset: 3px; }
a:hover { color: var(--primary-color); }

.container { max-width: var(--od-container); }

:focus-visible { outline: 3px solid var(--od-brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* ============================================
   BOTÕES
   ============================================ */
.btn { border-radius: 8px; font-weight: 500; padding: .6rem 1.2rem; letter-spacing: .01em; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .4rem .85rem; }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover, .btn-primary:focus { background: var(--od-ink); border-color: var(--od-ink); }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-success { background: #1f8f4e; border-color: #1f8f4e; }  /* verde WhatsApp escurecido p/ contraste AA com texto branco */
.btn-success:hover { background: #17733e; border-color: #17733e; }
.btn-light { color: var(--od-ink); }
.od-btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============================================
   HEADER
   ============================================ */
.od-header { background: #fff; border-bottom: 1px solid var(--od-line); }
.od-header .navbar { padding: .6rem 0; }
.od-brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.od-brand img { height: 44px; width: auto; }
.od-brand-name { font-family: 'Lora', serif; font-weight: 600; font-size: 1.15rem; color: var(--od-ink); line-height: 1.1; }
.od-brand-name small { display: block; font-family: 'Poppins', sans-serif; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--od-muted); }
.od-header .nav-link { color: var(--od-text); font-size: .9rem; font-weight: 500; white-space: nowrap; padding: .5rem .55rem !important; border-radius: 6px; }
.od-header .nav-link:hover, .od-header .nav-link.active { color: var(--od-brand); background: #f1f3f9; }
.od-header .navbar-toggler { border-color: var(--od-line); }
@media (max-width: 1199.98px) {
    .od-header .navbar-collapse { padding: .75rem 0 1rem; }
    .od-header .navbar-nav .btn { margin-top: .5rem; }
}
.od-header .btn-sm { white-space: nowrap; }
@media (min-width: 1200px) {
    .od-header .navbar-nav { gap: .1rem; }
}

/* ============================================
   SEÇÕES
   ============================================ */
.od-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.od-section--paper { background: var(--od-paper); }
.od-section--ink { background: var(--primary-color); color: #fff; }
.od-section--ink h2, .od-section--ink h3 { color: #fff; }
.od-section--ink .lead, .od-section--ink p { color: rgba(255,255,255,.86); }
.od-section-head { max-width: 720px; margin-bottom: 2.5rem; }
.od-section-head.text-center { margin-left: auto; margin-right: auto; }
.od-section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: .75rem; }

.od-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--od-brand); margin-bottom: 1rem;
}
.od-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--od-gold); }
.od-section--ink .od-eyebrow { color: #d9c29b; }

/* ============================================
   HERO (home e páginas de serviço)
   ============================================ */
.od-hero { background: var(--od-paper); padding: clamp(3rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--od-line); position: relative; overflow: hidden; }
.od-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: 1.25rem; max-width: 18ch; }
.od-hero .lead { max-width: 58ch; margin-bottom: 2rem; color: var(--od-text); }
.od-hero-note { font-size: .88rem; color: var(--od-muted); margin-top: 1.25rem; }
.od-hero-note i { color: var(--od-gold); }

.od-hero-panel { background: #fff; border: 1px solid var(--od-line); border-radius: var(--od-radius); padding: 1.75rem; }
.od-hero-panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.od-check { list-style: none; padding: 0; margin: 0; }
.od-check li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.od-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1rem; color: var(--od-gold); font-size: .85rem; }

/* ============================================
   CARDS DE ÁREA / SERVIÇO
   ============================================ */
.od-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.od-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 1.25rem; }
.od-card {
    background: #fff; border: 1px solid var(--od-line); border-radius: var(--od-radius);
    padding: 1.6rem; height: 100%; display: flex; flex-direction: column;
    transition: border-color .2s, transform .2s;
}
a.od-card { text-decoration: none; color: inherit; }
a.od-card:hover { border-color: var(--od-brand); transform: translateY(-2px); }
.od-card h3 { font-size: 1.2rem; margin: .9rem 0 .5rem; }
.od-card p { color: var(--od-muted); font-size: .95rem; margin-bottom: 1rem; }
.od-card ul { padding-left: 1.1rem; color: var(--od-text); font-size: .93rem; margin-bottom: 1rem; }
.od-card-icon {
    width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
    background: #eef1f8; color: var(--od-brand); font-size: 1.25rem;
}
.od-card-link { margin-top: auto; font-weight: 500; font-size: .92rem; color: var(--od-brand); }
.od-card-link i { transition: transform .2s; }
a.od-card:hover .od-card-link i { transform: translateX(3px); }
.od-card--feature { border-color: var(--od-gold); background: linear-gradient(#fff, #fff) padding-box; box-shadow: inset 0 3px 0 var(--od-gold); }
.od-tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7a5c2e; background: #f4ecdf; border-radius: 4px; padding: .15rem .5rem; }

/* Cards Bootstrap usados nas views antigas: visual alinhado ao sistema */
.card { border: 1px solid var(--od-line) !important; border-radius: var(--od-radius); box-shadow: none !important; }
.card .fa-3x.text-primary { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 10px; display: inline-grid; place-items: center; background: #eef1f8; color: var(--od-brand) !important; }
.bg-light { background-color: var(--od-paper) !important; }
.rounded-lg { border-radius: var(--od-radius) !important; }

/* ============================================
   ETAPAS (Como funciona)
   ============================================ */
.od-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.od-steps li { counter-increment: step; background: #fff; border: 1px solid var(--od-line); border-radius: var(--od-radius); padding: 1.4rem; }
.od-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: 'Lora', serif; font-size: 1.6rem; font-weight: 600; color: var(--od-gold); margin-bottom: .4rem; }
.od-steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.od-steps p { font-size: .93rem; color: var(--od-muted); margin: 0; }

/* ============================================
   FAQ (details/summary nativo, sem JS)
   ============================================ */
.od-faq { border-top: 1px solid var(--od-line); }
.od-faq details { border-bottom: 1px solid var(--od-line); }
.od-faq summary {
    list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
    font-family: 'Lora', serif; font-weight: 600; font-size: 1.08rem; color: var(--od-ink);
}
.od-faq summary::-webkit-details-marker { display: none; }
.od-faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; font-family: 'Poppins', sans-serif; color: var(--od-gold); }
.od-faq details[open] summary::after { content: "–"; }
.od-faq .od-faq-body { padding: 0 0 1.25rem; color: var(--od-text); max-width: 75ch; }

/* ============================================
   CTA BAND
   ============================================ */
.od-cta { background: var(--primary-color); color: #fff; border-radius: var(--od-radius); padding: clamp(2rem, 5vw, 3rem); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) { .od-cta { grid-template-columns: 1.4fr 1fr; } }
.od-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.od-cta p { color: rgba(255,255,255,.85); margin: 0; }
.od-cta .od-btn-group { justify-content: flex-start; }
@media (min-width: 992px) { .od-cta .od-btn-group { justify-content: flex-end; } }
.od-disclaimer { font-size: .82rem; color: var(--od-muted); }

/* ============================================
   BREADCRUMB
   ============================================ */
.od-breadcrumb { font-size: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--od-line); background: #fff; }
.od-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.od-breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: #b7b1a5; }
.od-breadcrumb a { color: var(--od-muted); text-decoration: none; }
.od-breadcrumb a:hover { color: var(--od-brand); text-decoration: underline; }
.od-breadcrumb [aria-current] { color: var(--od-ink); }

/* ============================================
   CAPAS DE ARTIGO (geradas em CSS, sem imagem)
   Cada categoria tem cor/ícone; o desenho muda por artigo (--r, --x, --y vindos do slug).
   ============================================ */
.od-capa {
    --c1: #1a3a52; --c2: #2d5a7b;
    position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--od-radius) var(--od-radius) 0 0;
    background:
        radial-gradient(circle at var(--x, 80%) var(--y, 30%), rgba(255,255,255,.16) 0 18%, transparent 18.5%),
        radial-gradient(circle at var(--x, 80%) var(--y, 30%), transparent 0 30%, rgba(255,255,255,.10) 30.5% 31.5%, transparent 32%),
        radial-gradient(circle at var(--x, 80%) var(--y, 30%), transparent 0 44%, rgba(255,255,255,.07) 44.5% 45.5%, transparent 46%),
        repeating-linear-gradient(var(--r, 45deg), rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem 1.25rem;
}
.od-capa-cat { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .92; display: flex; align-items: center; gap: .5rem; }
.od-capa-icon { position: absolute; right: 1.1rem; bottom: .9rem; font-size: 2.6rem; opacity: .9; color: rgba(255,255,255,.9); }
.od-capa-title { font-family: 'Lora', serif; font-weight: 600; font-size: 1.15rem; line-height: 1.25; max-width: 80%; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.od-capa--lg { aspect-ratio: auto; min-height: 260px; border-radius: var(--od-radius); padding: 2rem; }
.od-capa--lg .od-capa-title { display: none; }
.od-capa--lg .od-capa-icon { font-size: 4.5rem; }
.od-capa-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--od-radius) var(--od-radius) 0 0; }

.od-capa--tributario   { --c1: #6b4e22; --c2: #a8834f; }
.od-capa--civil        { --c1: #1a3a52; --c2: #3b6384; }
.od-capa--previdenciario { --c1: #0a2f98; --c2: #3a5fc4; }
.od-capa--saude        { --c1: #0f5c5a; --c2: #2f8c86; }
.od-capa--familia      { --c1: #7a3b4f; --c2: #b06a7f; }
.od-capa--trabalhista  { --c1: #3d4a5c; --c2: #6b7a8f; }
.od-capa--empresarial  { --c1: #14202e; --c2: #34506c; }
.od-capa--marcas       { --c1: #4a2a7a; --c2: #7654b0; }
.od-capa--geral        { --c1: #1a3a52; --c2: #2d5a7b; }

/* ============================================
   BLOG
   ============================================ */
.od-post { background: #fff; border: 1px solid var(--od-line); border-radius: var(--od-radius); height: 100%; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.od-post:hover { border-color: var(--od-brand); transform: translateY(-2px); color: inherit; }
.od-post-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.od-post-body h2, .od-post-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.od-post-body p { color: var(--od-muted); font-size: .92rem; margin-bottom: 1rem; }
.od-post-meta { font-size: .8rem; color: var(--od-muted); margin-top: auto; display: flex; justify-content: space-between; }
.od-post-meta span:last-child { color: var(--od-brand); font-weight: 500; }

.od-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.od-chip { font-size: .85rem; padding: .35rem .85rem; border: 1px solid var(--od-line); border-radius: 999px; color: var(--od-text); text-decoration: none; background: #fff; }
.od-chip:hover { border-color: var(--od-brand); color: var(--od-brand); }
.od-chip.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.od-chip small { opacity: .7; margin-left: .25rem; }

.pagination .page-link { color: var(--primary-color); }
.pagination .active > .page-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* ============================================
   ARTIGO (tipografia de leitura)
   ============================================ */
.od-article-head { background: var(--od-paper); border-bottom: 1px solid var(--od-line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.od-article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 26ch; }
.od-article-meta { color: var(--od-muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.od-prose { font-size: 1.075rem; line-height: 1.8; color: var(--od-text); max-width: 72ch; }
.od-prose h2 { font-size: 1.55rem; margin: 2.5rem 0 1rem; }
.od-prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.od-prose p { margin-bottom: 1.2rem; }
.od-prose ul, .od-prose ol { margin-bottom: 1.5rem; padding-left: 1.3rem; }
.od-prose li { margin-bottom: .5rem; }
.od-prose a { font-weight: 500; }
.od-prose blockquote, .od-prose .od-nota { border-left: 3px solid var(--od-gold); background: var(--od-paper); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; font-size: .98rem; }
.od-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.od-prose th, .od-prose td { border: 1px solid var(--od-line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.od-prose th { background: var(--od-paper); }
.od-aside { position: sticky; top: 96px; }
.od-aside-box { border: 1px solid var(--od-line); border-radius: var(--od-radius); padding: 1.4rem; background: #fff; margin-bottom: 1.25rem; }
.od-aside-box h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.od-aside-box ul { list-style: none; padding: 0; margin: 0; }
.od-aside-box li { padding: .5rem 0; border-bottom: 1px solid var(--od-line); font-size: .92rem; }
.od-aside-box li:last-child { border-bottom: 0; }

/* Compat: views antigas que usam .blog-content */
.blog-content h2 { color: var(--od-ink); }

/* ============================================
   FOOTER
   ============================================ */
.od-footer { background: var(--od-ink); color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; margin-top: 0; font-size: .92rem; }
.od-footer h2 { color: #fff; font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.od-footer a { color: rgba(255,255,255,.88); text-decoration: none; overflow-wrap: anywhere; }
.od-footer a:hover { color: #fff; text-decoration: underline; }
.od-footer ul { list-style: none; padding: 0; margin: 0; }
.od-footer li { margin-bottom: .45rem; }
.od-footer-brand { font-family: 'Lora', serif; font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.od-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* WhatsApp flutuante (mobile) */
.whatsapp-floating {
    position: fixed; right: 18px; bottom: 18px; z-index: 1050;
    background: #1f8f4e; color: #fff; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); text-decoration: none;
}
.whatsapp-floating:hover { color: #fff; background: #17733e; }

/* Formulários */
.form-control, .form-select { border-radius: 8px; border-color: #cfc9bd; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--od-brand); box-shadow: 0 0 0 .2rem rgba(10,47,152,.15); }
.form-label { font-weight: 500; font-size: .92rem; color: var(--od-ink); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
