/* ===== Justitia Law — public theme (navy & gold, editorial) ===== */
:root {
    --lfp-primary: #3B2A4A;          /* deep plum / indigo */
    --lfp-primary-rgb: 59, 42, 74;
    --lfp-primary-2: #4A3760;
    --lfp-accent: #C9A24B;           /* champagne gold */
    --lfp-accent-2: #b8923f;
    --lfp-ink: #251C30;
    --lfp-muted: #6a6276;
    --lfp-bg: #F8F5FA;               /* soft lilac-white (never pure white) */
    --lfp-surface: #ffffff;
    --lfp-line: #e8e2ee;
    --lfp-radius: 14px;
    --lfp-shadow: 0 10px 30px rgba(59,42,74,.10);
    --lfp-serif: "Playfair Display", "Noto Serif Bengali", Georgia, serif;
    --lfp-sans: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    font-family: var(--lfp-sans);
    color: var(--lfp-ink);
    background: var(--lfp-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif { font-family: var(--lfp-serif); font-weight: 700; color: var(--lfp-primary); letter-spacing: .2px; }
a { color: var(--lfp-primary); text-decoration: none; }
a:hover { color: var(--lfp-accent-2); }
.text-accent { color: var(--lfp-accent) !important; }
.bg-navy { background: var(--lfp-primary) !important; color: #fff; }

/* ---- Buttons ---- */
.btn-primary { background: var(--lfp-primary); border-color: var(--lfp-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--lfp-primary-2); border-color: var(--lfp-primary-2); }
.btn-accent { background: var(--lfp-accent); border-color: var(--lfp-accent); color: #1c1300; font-weight: 600; }
.btn-accent:hover { background: var(--lfp-accent-2); border-color: var(--lfp-accent-2); color: #1c1300; }
.btn-outline-light-navy { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-navy:hover { background: #fff; color: var(--lfp-primary); }
.btn-outline-navy { border: 1.5px solid var(--lfp-primary); color: var(--lfp-primary); }
.btn-outline-navy:hover { background: var(--lfp-primary); color: #fff; }

/* ---- Topbar ---- */
.topbar { background: var(--lfp-primary); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--lfp-accent); }
.topbar .container { padding-top: 7px; padding-bottom: 7px; }
.topbar i { color: var(--lfp-accent); }
.topbar-social a { margin-left: 12px; font-size: .95rem; }

/* ---- Header / nav ---- */
.main-header { background: var(--lfp-surface); border-bottom: 1px solid var(--lfp-line); position: sticky; top: 0; z-index: 1030; transition: box-shadow .25s, padding .25s; }
.main-header.is-stuck { box-shadow: 0 6px 22px rgba(11,37,69,.10); }
.navbar-brand { min-width: 0; }
.navbar-brand .brand-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--lfp-primary); color: var(--lfp-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.brand-text { font-family: var(--lfp-serif); font-weight: 700; font-size: 1.25rem; color: var(--lfp-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.brand-text small { display: block; font-family: var(--lfp-sans); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--lfp-accent-2); font-weight: 600; }
.navbar-nav .nav-link { color: var(--lfp-ink); font-weight: 500; padding: .55rem .85rem; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px; background: var(--lfp-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--lfp-primary); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }

/* ---- Notice bar ---- */
.notice-bar { text-align: center; padding: 8px 40px; font-size: .85rem; }
.notice-bar a { text-decoration: underline; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; background: linear-gradient(125deg, #261B33 0%, #3B2A4A 55%, #4A3760 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 15%, rgba(201,162,75,.18), transparent 40%); }
.hero-inner { position: relative; padding: 92px 0 96px; }
.hero .eyebrow { color: var(--lfp-accent); letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; }
.hero p.lead { color: rgba(255,255,255,.82); max-width: 620px; }
.hero-stats { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 22px; }
.hero-stats .num { font-family: var(--lfp-serif); font-size: 1.9rem; color: var(--lfp-accent); }

/* ---- Sections ---- */
.lfp-section { padding: 76px 0; }
.lfp-section.alt { background: var(--lfp-surface); }
.section-eyebrow { color: var(--lfp-accent-2); text-transform: uppercase; letter-spacing: 2.5px; font-size: .78rem; font-weight: 700; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: .35rem; }
.section-divider { width: 64px; height: 3px; background: var(--lfp-accent); border: 0; opacity: 1; margin: 14px 0 0; }
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Cards ---- */
.card-soft { background: var(--lfp-surface); border: 1px solid var(--lfp-line); border-radius: var(--lfp-radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
/* §9.21: equal-height ONLY for a card that is the sole child of a grid column (NOT stacked sidebar cards) */
.row > [class*="col"] > .card-soft:only-child { height: 100%; }
.card-soft:hover { transform: translateY(-5px); box-shadow: var(--lfp-shadow); border-color: transparent; }
.practice-card { padding: 28px 24px; }
.practice-card .ico { width: 54px; height: 54px; border-radius: 12px; background: rgba(var(--lfp-primary-rgb), .07); color: var(--lfp-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.practice-card:hover .ico { background: var(--lfp-primary); color: var(--lfp-accent); }
.attorney-card .photo { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: 12px 12px 0 0; background: #eee; }
.attorney-card .body { padding: 16px 18px; }
.case-card .body { padding: 20px 22px; }
.outcome-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .28rem .6rem; border-radius: 999px; background: rgba(var(--lfp-primary-rgb), .08); color: var(--lfp-primary); }
.article-card .cover { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 14px 14px 0 0; }
.testi-card { padding: 26px; }
.testi-card .stars { color: var(--lfp-accent); }
.cta-band { background: linear-gradient(120deg, var(--lfp-primary), var(--lfp-primary-2)); color: #fff; border-radius: 18px; padding: 44px; position: relative; overflow: hidden; }
.cta-band::after { content: "\2696"; position: absolute; right: 24px; bottom: -10px; font-size: 8rem; opacity: .08; }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: linear-gradient(120deg, #261B33, #4A3760); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb-item.active { color: var(--lfp-accent); }

/* ---- Footer ---- */
.main-footer { background: var(--lfp-primary); color: rgba(255,255,255,.74); padding: 56px 0 0; border-top: 3px solid var(--lfp-accent); }
.main-footer h6 { color: #fff; font-family: var(--lfp-serif); margin-bottom: 16px; }
.main-footer a { color: rgba(255,255,255,.74); }
.main-footer a:hover { color: var(--lfp-accent); }
.footer-links li { margin-bottom: 8px; }
.social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; margin-right: 8px; }
.social-links a:hover { background: var(--lfp-accent); border-color: var(--lfp-accent); color: var(--lfp-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 18px 0; }
.footer-disclaimer { font-size: .78rem; opacity: .6; }

/* ---- Floating + scroll-top ---- */
.scroll-top-btn { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 1040; padding: 0; }
.scroll-top-btn.show { display: inline-flex; }
.fab-wa { position: fixed; right: 18px; bottom: 70px; width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; z-index: 1040; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

.empty-state { color: var(--lfp-muted); }

/* ---- Motion (gated for reduced-motion) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero::before { animation: none; }
}

/* ===== §12.1 mobile responsive safety-net ===== */
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container, .container-fluid { overflow-wrap: break-word; }
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; }
body { overflow-x: clip; }
/* §9.31(b): flex grid columns default to min-width:auto and refuse to shrink below a wide child
   (long <select> options, unbreakable strings) → forces horizontal overflow on narrow screens. */
.row > [class*="col"] { min-width: 0; }
.form-select, .form-control { max-width: 100%; }
@media (max-width: 991.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }
@media (max-width: 767px) {
    .lfp-section { padding: 48px 0; }
    .hero-inner { padding: 60px 0 64px; }
    .cta-band { padding: 28px; }
    .navbar-nav .nav-link::after { display: none; }
}
