:root {
    --wd-navy: #163a6b;
    --wd-navy-dark: #0d2547;
    --wd-blue: #2d5eac;
    --wd-orange: #faa719;
    --wd-orange-dark: #e0940a;
    --wd-ink-on-orange: #1a1300;
    --wd-gray: #4b5563;
    --wd-gray-light: #f3f4f6;
    --wd-white: #ffffff;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

a {
    color: var(--wd-blue);
}

/* Header / navegação */
.site-header {
    background: var(--wd-navy);
}

.navbar-brand {
    font-weight: 700;
    color: var(--wd-white) !important;
    letter-spacing: .02em;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--wd-white) !important;
}

.btn-cta {
    background: var(--wd-orange);
    color: var(--wd-ink-on-orange) !important;
    border-radius: 4px;
    padding: .5rem 1.1rem;
    font-weight: 600;
}

.btn-cta:hover {
    background: var(--wd-orange-dark);
    color: var(--wd-ink-on-orange) !important;
}

/* Hero da home */
.hero {
    background: linear-gradient(135deg, var(--wd-navy) 0%, var(--wd-navy-dark) 100%);
    color: var(--wd-white);
    padding: 4.5rem 0 3.5rem;
}

.hero h1 {
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.2;
}

.hero .lead {
    color: rgba(255,255,255,.85);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wd-orange);
    display: block;
}

.hero-stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
}

.hero-image-wrap img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

/* Seções gerais */
section {
    padding: 3.5rem 0;
}

section.bg-alt {
    background: var(--wd-gray-light);
}

.section-title {
    font-weight: 700;
    color: var(--wd-navy);
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--wd-gray);
    margin-bottom: 2rem;
}

/* Grade de tribunais */
.tribunal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.tribunal-badge {
    background: var(--wd-white);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem .75rem;
    text-align: center;
}

.tribunal-badge .brasao {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: .5rem;
}

.tribunal-badge .sigla {
    font-weight: 700;
    color: var(--wd-navy);
    display: block;
    font-size: 1.1rem;
}

.tribunal-badge .nome {
    font-size: .75rem;
    color: var(--wd-gray);
}

/* Credenciais */
.credencial-item {
    background: var(--wd-white);
    border-left: 3px solid var(--wd-blue);
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    font-size: .95rem;
}

/* Cards de serviço */
.servico-card {
    background: var(--wd-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow .2s ease;
}

.servico-card:hover {
    box-shadow: 0 8px 24px rgba(15,36,56,.1);
}

.badge-em-breve {
    background: #e5e7eb;
    color: var(--wd-gray);
}

.badge-destaque {
    background: var(--wd-orange);
    color: var(--wd-ink-on-orange);
}

.servico-card-media {
    background: var(--wd-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease;
}

.servico-card-media:hover {
    box-shadow: 0 8px 24px rgba(15,36,56,.1);
}

.servico-card-media img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.servico-card-media .servico-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Como funciona */
.passo-numero {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--wd-navy);
    color: var(--wd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: .75rem;
}

.passo-imagem {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* FAQ accordion (JS puro) */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--wd-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: none;
    padding-bottom: 1rem;
    color: var(--wd-gray);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform .15s ease;
    font-size: 1.3rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background: var(--wd-gray-light);
    padding: .6rem 0;
}

.breadcrumb {
    margin: 0;
    font-size: .85rem;
}

/* Blog */
.post-card {
    background: var(--wd-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.post-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card-body {
    padding: 1.25rem;
}

.post-meta {
    font-size: .8rem;
    color: var(--wd-gray);
}

article.blog-post img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

article.blog-post h2 {
    margin-top: 2rem;
    color: var(--wd-navy);
}

/* Footer */
.site-footer {
    background: var(--wd-navy-dark);
    color: rgba(255,255,255,.8);
    padding: 3rem 0 1.5rem;
}

.site-footer a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wd-white);
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255,255,255,.15);
    margin: 2rem 0 1rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wd-navy-dark);
    color: var(--wd-white);
    z-index: 1050;
    padding: 1rem;
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    margin: 0;
    font-size: .9rem;
}

/* Normas técnicas */
.norma-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: var(--wd-white);
    height: 100%;
}

.norma-item .sigla {
    font-weight: 700;
    color: var(--wd-navy);
    display: block;
    margin-bottom: .25rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
}
