:root {
    --jrm-primary: #0d3a66;
    --jrm-primary-dark: #082544;
    --jrm-accent: #ff7a00;
    --jrm-light: #f5f7fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2a37;
}

a { color: var(--jrm-primary); }

.btn-primary {
    background: var(--jrm-primary);
    border-color: var(--jrm-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--jrm-primary-dark);
    border-color: var(--jrm-primary-dark);
}
.btn-accent {
    background: var(--jrm-accent);
    color: #fff;
    border: none;
}
.btn-accent:hover { background: #e56e00; color: #fff; }

.text-primary { color: var(--jrm-primary) !important; }
.bg-primary  { background-color: var(--jrm-primary) !important; }
.bg-light-blue { background-color: var(--jrm-light); }

.site-header { backdrop-filter: blur(8px); }
.site-header .navbar-brand { font-size: 1.25rem; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--jrm-primary) 0%, var(--jrm-primary-dark) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255,122,0,0.18), transparent 60%);
    pointer-events: none;
}
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }

/* Cards */
.service-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    background: #fff;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13,58,102,.12);
    border-color: var(--jrm-primary);
}
.service-card .icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(13,58,102,.08);
    color: var(--jrm-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* Carrossel de serviços */
.services-swiper { padding: 2rem 0 3rem; }
.services-swiper .swiper-pagination-bullet-active { background: var(--jrm-primary); }
.services-swiper .swiper-button-next,
.services-swiper .swiper-button-prev { color: var(--jrm-primary); }

/* Article cards */
.article-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.article-card .cover {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: #e5e7eb;
}
.article-card .body { padding: 1.25rem; }
.article-card .badge-category {
    background: rgba(13,58,102,.08);
    color: var(--jrm-primary);
    font-weight: 600;
}

/* Section */
section { padding: 4rem 0; }
.section-title { font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { color: #6b7280; max-width: 720px; margin-bottom: 3rem; }

/* Footer */
.site-footer h5, .site-footer h6 { color: #fff; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    z-index: 1000;
    transition: transform .15s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

/* Article body */
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-body h2, .article-body h3 { margin-top: 2rem; }
.article-body p { line-height: 1.75; }
.article-body blockquote {
    border-left: 4px solid var(--jrm-primary);
    padding-left: 1rem;
    color: #4b5563;
    font-style: italic;
}

/* Dashboard */
.dash-layout { min-height: 100vh; display: flex; }
.dash-sidebar {
    width: 250px;
    background: var(--jrm-primary-dark);
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
}
.dash-sidebar .brand {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1rem;
    font-weight: 700;
}
.dash-sidebar a {
    display: flex; align-items: center; gap: .65rem;
    color: rgba(255,255,255,.75);
    padding: .65rem 1.25rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left: 3px solid var(--jrm-accent);
    padding-left: calc(1.25rem - 3px);
}
.dash-content {
    margin-left: 250px;
    flex: 1;
    background: #f5f7fa;
    min-height: 100vh;
}
.dash-topbar {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
}
.dash-main { padding: 2rem; }
.dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}
.dash-stat {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}
.dash-stat .num { font-size: 2rem; font-weight: 800; color: var(--jrm-primary); }
.dash-stat .label { color: #6b7280; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 768px) {
    .dash-sidebar { transform: translateX(-100%); transition: transform .25s; z-index: 1050; }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-content { margin-left: 0; }
}
