/* ==========================================================================
   Frontend theme — navy / warm paper / restrained brass accent
   ========================================================================== */
:root {
    --navy: #13213c;
    --navy-700: #1c2e52;
    --ink: #1f2633;
    --muted: #5d6676;
    --paper: #faf7f1;
    --line: #e6e0d4;
    --gold: #a9823a;
    --gold-600: #8f6c2c;
    --gold-soft: #f3ead7;
    --white: #ffffff;
    /* Semantic tokens — themes override these (see themes/*.css). */
    --page-bg: #ffffff;
    --surface: #ffffff;
    --heading: var(--navy);
    --on-accent: #ffffff;
    --btn-accent: #86662a;        /* brass deep enough for white button text (≥4.5:1) */
    --btn-accent-hover: #6f5422;
    --line-strong: #d6cdb9;
    --chip-bg: #e8edf7;
    --header-bg: rgba(255, 255, 255, .97);
    --footer-bg: #0e1830;
    --hero-bg: radial-gradient(1200px 400px at 85% 0%, rgba(169, 130, 58, .14), transparent 60%), var(--navy);
    --font-heading: var(--font-serif);
    --radius-lg: 14px;
    --btn-radius: 8px;
    --card-shadow: none;
    --radius: 10px;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 19, 33, 60;
    --bs-link-hover-color-rgb: 143, 108, 44;
}

body {
    background: var(--page-bg);
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.65;
    padding-bottom: 64px; /* room for mobile action bar */
}
@media (min-width: 992px) {
    body { padding-bottom: 0; }
}

h1, h2, h3, h4, .section-title, .hero-title, .footer-brand {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--navy);
    color: var(--white);
    padding: .6rem 1rem;
    border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

main:focus { outline: none; }

/* Buttons ---------------------------------------------------------------- */
.btn { border-radius: var(--btn-radius); font-weight: 600; padding: .6rem 1.15rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-gold { background: var(--btn-accent); border-color: var(--btn-accent); color: var(--on-accent); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--btn-accent-hover); border-color: var(--btn-accent-hover); color: var(--on-accent); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn-outline-navy { border: 1px solid var(--navy); color: var(--heading); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Top bar ---------------------------------------------------------------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    padding: .45rem 0;
}
.topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .bi { color: var(--gold); margin-right: .25rem; }
.topbar .list-inline-item:not(:last-child) { margin-right: 1.25rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(140%) blur(6px);
}
.site-header .navbar { padding: .7rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.25rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.navbar-brand { flex-shrink: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 1.15rem; }
.brand-tagline { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.navbar-toggler { border: 1px solid var(--line); font-size: 1.5rem; color: var(--heading); padding: .2rem .55rem; }
.navbar-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .8rem !important;
    border-radius: 6px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold-600); }
.dropdown-menu { border-color: var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(19, 33, 60, .1); padding: .4rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .8rem; font-size: .93rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gold-soft); color: var(--heading); }
.dropdown-item.active, .dropdown-item:active { background: var(--navy); color: var(--white); }

/* Hero ------------------------------------------------------------------- */
.hero {
    background: var(--hero-bg);
    color: rgba(255, 255, 255, .86);
    padding: 5rem 0 4.5rem;
}
.hero .eyebrow { color: var(--gold); }
.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 1.1rem;
}
.hero-lead { font-size: 1.1rem; max-width: 36rem; }
.hero-link { display: inline-block; margin-top: 1.5rem; color: var(--white); font-weight: 500; }
.hero-link:hover { color: var(--gold); }
.hero-card {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.hero-card-list li { padding: .3rem 0; }
.hero-card-list .bi { color: var(--gold); margin-right: .4rem; }
.hero-card .btn { margin-top: .75rem; }

/* Sections --------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.bg-paper { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; }
.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold-600);
    margin-bottom: .5rem;
}

.trust-item { height: 100%; padding: 1.25rem 0; }
.trust-item .bi { font-size: 1.6rem; color: var(--gold); }
.trust-item h2 { font-family: var(--font-sans); font-weight: 600; margin: .6rem 0 .35rem; color: var(--heading); }
.trust-item p { color: var(--muted); margin: 0; font-size: .95rem; }

.process-step {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.process-num {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-600);
    font-weight: 700;
    margin-bottom: .8rem;
}
.process-step h3 { font-family: var(--font-sans); font-weight: 600; }
.process-step p { color: var(--muted); margin: 0; font-size: .95rem; }

.cta-band { background: var(--navy-700); color: rgba(255, 255, 255, .85); padding: 3rem 0; }
.cta-band h2 { color: var(--white); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .72); padding: 4rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { color: var(--white); font-size: 1.3rem; margin-bottom: .6rem; }
.text-muted-light { color: rgba(255, 255, 255, .62); }
.footer-heading { font-family: var(--font-sans); color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.footer-contact .bi { color: var(--gold); margin-top: .15rem; }
.social-links a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.footer-disclaimer { margin: 2.5rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .55); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; }

/* Mobile action bar ------------------------------------------------------ */
.mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(19, 33, 60, .08);
}
.mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .1rem;
    min-height: 60px;
    color: var(--heading);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
}
.mobile-bar .bi { font-size: 1.2rem; }
.mobile-bar a.is-primary { background: var(--btn-accent); color: var(--on-accent); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .75rem 0 .5rem; }
    .hero { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* Mega menu -------------------------------------------------------------- */
@media (min-width: 992px) {
    .site-header .navbar .container { position: relative; }
    .mega-dropdown { position: static; }
    .mega-menu { left: 0; right: 0; width: 100%; padding: 1.25rem; margin-top: .5rem !important; }
}
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem 1.25rem; }
.mega-area { display: block; font-weight: 600; color: var(--heading); text-decoration: none; padding: .45rem .8rem; border-radius: 6px; }
.mega-area:hover, .mega-area:focus { background: var(--gold-soft); color: var(--heading); }
.mega-area .bi { color: var(--gold); margin-right: .25rem; }
.mega-services { margin: 0 0 .75rem; }
.mega-services .dropdown-item { font-size: .88rem; color: var(--muted); padding: .25rem .8rem .25rem 2.05rem; white-space: normal; }
.mega-services .dropdown-item:hover { color: var(--heading); }
.mega-more { font-style: italic; }
.mega-footer { border-top: 1px solid var(--line); margin-top: .5rem; padding: .75rem .8rem 0; font-weight: 600; font-size: .9rem; }
@media (max-width: 991.98px) {
    .mega-grid { grid-template-columns: 1fr 1fr; }
    .mega-menu { border: 0; box-shadow: none; padding: 0 0 .5rem; }
}

/* Page hero / content ---------------------------------------------------- */
.page-hero { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 2.5rem 0 3rem; }
.page-hero .breadcrumb { margin-bottom: 1.25rem; font-size: .85rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, .95); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
.page-hero .eyebrow { color: var(--gold); }
.page-title { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.15; margin-bottom: .75rem; }
.page-lead { font-size: 1.1rem; max-width: 46rem; margin-bottom: 0; }

.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius, 6px); margin: 1rem 0; }
.prose img.img-center { display: block; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
    .prose img.img-left { float: left; max-width: 45%; margin: .25rem 1.5rem 1rem 0; }
    .prose img.img-right { float: right; max-width: 45%; margin: .25rem 0 1rem 1.5rem; }
    .prose h2, .prose h3, .prose table, .prose blockquote { clear: both; }
}
.prose::after { content: ""; display: table; clear: both; }
.prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; }
.prose-steps ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose-steps ol li { counter-increment: step; position: relative; padding: .1rem 0 .9rem 3rem; }
.prose-steps ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-600); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.service-section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }

.area-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s, border-color .2s; }
.area-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(19, 33, 60, .07); }
.area-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.area-card-head a { color: var(--heading); text-decoration: none; }
.area-card-text { color: var(--muted); font-size: .95rem; }
.area-card-more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--gold-600); }
.area-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); color: var(--gold-600); font-size: 1.3rem; }
.area-icon-lg { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.6rem; background: rgba(255, 255, 255, .1); color: var(--gold); }
.service-links { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.service-links a { display: inline-block; font-size: .85rem; padding: .3rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.service-links a:hover { border-color: var(--gold); color: var(--gold-600); }

.service-card { display: block; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(19, 33, 60, .06); color: var(--ink); }
.service-card h3 { font-family: var(--font-sans); font-weight: 600; color: var(--heading); }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card-more { display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--gold-600); }

.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; background: var(--surface);  box-shadow: var(--card-shadow);}
.side-card-navy { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .85); }
.side-card-navy .side-card-title { color: var(--white); }
.side-card-title { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--heading); margin-bottom: 1rem; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: .55rem 0; text-decoration: none; color: var(--ink); }
.side-links a:hover { color: var(--gold-600); }

.lawyer-mini-list li + li { margin-top: .85rem; }
.lawyer-mini-list a { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.lawyer-mini-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-600); font-weight: 700; }
.lawyer-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.faq-accordion .accordion-button { font-weight: 600; color: var(--heading); }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--gold-soft); color: var(--heading); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(169, 130, 58, .35); }

/* Team ------------------------------------------------------------------- */
.lawyer-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.lawyer-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(19, 33, 60, .07); }
.lawyer-card-photo { display: block; aspect-ratio: 400 / 460; background: var(--paper); overflow: hidden; }
.lawyer-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-card-body { padding: 1.25rem 1.25rem 1.5rem; }
.lawyer-card-body h3 a { color: var(--heading); text-decoration: none; }
.lawyer-card-body h3 a:hover { color: var(--gold-600); }
.lawyer-card-role { color: var(--gold-600); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.lawyer-card-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .85rem; }
.lawyer-initials { width: 100%; height: 100%; min-height: 140px; display: grid; place-items: center; font-family: var(--font-heading); font-size: 3rem; color: var(--gold-600); background: var(--gold-soft); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-list li { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }

.founder { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 2.5rem; align-items: center; }
.founder-photo { aspect-ratio: 480 / 560; border-radius: 14px; overflow: hidden; background: var(--gold-soft); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 280px; } }

.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chips a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.filter-chips a:hover { border-color: var(--gold); color: var(--gold-600); }
.filter-chips a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.profile-head { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.profile-photo { aspect-ratio: 220 / 260; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); border: 3px solid rgba(255, 255, 255, .15); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .lawyer-initials { background: transparent; color: var(--gold); }
.profile-facts { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .95rem; }
.profile-facts .bi { color: var(--gold); margin-right: .3rem; }
.profile-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); }
.profile-social a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 767.98px) { .profile-head { grid-template-columns: 1fr; } .profile-photo { max-width: 180px; } }

/* Articles --------------------------------------------------------------- */
.article-search { display: flex; gap: .5rem; max-width: 520px; margin-top: 1.5rem; }
.article-search .form-control { border: 0; padding: .7rem 1rem; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(19, 33, 60, .07); }
.post-card-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--paper); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.post-type { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; background: var(--gold-soft); color: var(--gold-600); }
.post-type-verdict, .post-type-judgment { background: var(--chip-bg); color: var(--heading); }
.post-card-title { font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
.post-card-title a { color: var(--heading); text-decoration: none; }
.post-card-title a:hover { color: var(--gold-600); }
.post-card-excerpt { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.post-card-cat { margin-top: auto; margin-bottom: 0; font-size: .82rem; color: var(--muted); }
.side-counts a { display: flex; justify-content: space-between; }
.side-counts a span { color: var(--muted); font-size: .85rem; }
.side-counts a.active { color: var(--gold-600); font-weight: 600; }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state .bi { font-size: 2.5rem; color: var(--gold); }
.article-title { max-width: 52rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; font-size: .92rem; }
.article-meta .bi { color: var(--gold); margin-right: .3rem; }
.article-lead { font-size: 1.15rem; color: var(--ink); }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--paper); border-radius: var(--radius); font-size: .88rem; color: var(--muted); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box .lawyer-mini-avatar { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.4rem; }
.preview-banner { background: #fff3cd; color: #664d03; padding: .6rem 0; border-bottom: 1px solid #ffe69c; font-size: .9rem; }
.pagination .page-link { color: var(--heading); }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Consultation ----------------------------------------------------------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; background: var(--surface); box-shadow: 0 10px 30px rgba(19, 33, 60, .05); }
@media (max-width: 575.98px) { .form-card { padding: 1.25rem; } }
.req { color: #b42318; }
.consult-form .form-control, .consult-form .form-select { padding: .65rem .85rem; }
.consult-form .form-control:focus, .consult-form .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(169, 130, 58, .2); }
.process-list { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.process-list li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3rem; display: flex; flex-direction: column; }
.process-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-600); font-weight: 700; display: grid; place-items: center; }
.process-list li span { color: var(--muted); font-size: .95rem; }
.thanks-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem 2rem; }
.thanks-icon { font-size: 3.5rem; color: #1a7f4b; }
.enquiry-no { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--heading); letter-spacing: .02em; }

/* Legal Q&A -------------------------------------------------------------- */
.qa-disclaimer { display: flex; gap: .75rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2.5rem; font-size: .92rem; color: var(--muted); }
.qa-disclaimer .bi { color: var(--gold-600); font-size: 1.1rem; margin-top: .1rem; }
.qa-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.qa-item:first-child { padding-top: 0; }
.qa-item-title a { color: var(--heading); text-decoration: none; }
.qa-item-title a:hover { color: var(--gold-600); }
.qa-item-answer { color: var(--muted); margin-bottom: .6rem; }
.qa-item-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); margin: 0; }
.qa-question { background: var(--paper); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; font-size: 1.05rem; }
.qa-answer { border-left: 3px solid var(--gold); padding-left: 1.5rem; }
.text-gold { color: var(--gold) !important; }

/* Resources -------------------------------------------------------------- */
.resource-link { display: flex; gap: 1rem; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.resource-link:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(19, 33, 60, .06); color: var(--ink); }
.resource-link-title { display: block; font-weight: 600; color: var(--heading); }
.resource-link-text { display: block; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.resource-link-host { display: block; font-size: .78rem; color: var(--gold-600); margin-top: .35rem; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);  box-shadow: var(--card-shadow);}
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-play { width: 100%; height: 100%; border: 0; display: block; }
.video-play { position: relative; padding: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-play-icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(19, 33, 60, .85); color: #fff; display: grid; place-items: center; font-size: 2rem; transition: transform .15s; }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { transform: scale(1.08); background: var(--gold); }

/* Homepage sections ------------------------------------------------------ */
.why-item { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.why-item h3 { font-family: var(--font-sans); font-weight: 600; margin-bottom: .3rem; }
.why-item p { color: var(--muted); font-size: .95rem; }
.resource-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--heading); font-weight: 600; text-align: center; height: 100%; }
.resource-tile .bi { font-size: 1.6rem; color: var(--gold); }
.resource-tile:hover { border-color: var(--gold); color: var(--gold-600); }
.stats-band { background: var(--navy); color: var(--white); padding: 3rem 0; }
.stat-value-lg { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--gold); margin: 0; order: -1; }
.stat-label-lg { font-weight: 500; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.stats-band dl > div { display: flex; flex-direction: column-reverse; }
.contact-list li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.contact-list .bi { color: var(--gold); }
.testimonial { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);  box-shadow: var(--card-shadow);}
.testimonial blockquote p { font-size: 1rem; color: var(--ink); }
.testimonial-rating { color: var(--gold); letter-spacing: .1em; margin-bottom: .5rem; }
.text-muted-stars { color: var(--line); }
.career-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); background: var(--paper); }

/* Contact ---------------------------------------------------------------- */
.contact-cards li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-cards .bi { font-size: 1.3rem; color: var(--gold); margin-top: .1rem; }
.contact-cards h2 { font-family: var(--font-sans); font-weight: 600; margin-bottom: .2rem; }
.contact-cards address { font-style: normal; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Theme preview bar (staff only) ----------------------------------------- */
.theme-preview-bar { position: sticky; top: 0; z-index: 1100; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; align-items: center; padding: .45rem 1rem; background: #fff3cd; color: #5c4400; font-size: .85rem; border-bottom: 1px solid #f0d78c; }
.theme-preview-bar a { color: #5c4400; font-weight: 600; }

.navbar-nav .nav-link, .navbar-nav .btn { white-space: nowrap; }
/* Tight laptop widths: every theme's nav must fit on one line beside the brand. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* "body" raises specificity above each theme's own nav rules, which load later. */
    body .site-header .navbar-nav .nav-link { padding-left: .4rem !important; padding-right: .4rem !important; font-size: .8rem; letter-spacing: .03em; }
    body .site-header .navbar-nav .btn { padding: .5rem .8rem; font-size: .74rem; letter-spacing: .03em; }
    body .site-header .navbar-nav .ms-lg-3 { margin-left: .5rem !important; }
    body .site-header .brand-tagline { display: none; }
    body .site-header .brand-name { font-size: 1.02rem; }
    body .site-header .brand-mark { width: 36px; height: 36px; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
    body .site-header .navbar-nav .nav-link { padding-left: .3rem !important; padding-right: .3rem !important; font-size: .76rem; letter-spacing: .01em; }
    body .site-header .navbar-nav .btn { padding: .45rem .65rem; font-size: .7rem; letter-spacing: .02em; }
    body .site-header .brand-name { font-size: .95rem; }
}

/* Entry disclaimer (first visit) ----------------------------------------- */
.disclaimer-open, .disclaimer-open body { overflow: hidden; }
.entry-disclaimer { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; background: rgba(8, 12, 22, .72); backdrop-filter: blur(3px); }
.entry-disclaimer[hidden] { display: none; }
.entry-disclaimer-dialog { width: 100%; max-width: 620px; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.entry-disclaimer-head { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 1.6rem .4rem; }
.entry-disclaimer-head h2 { margin: 0; font-size: 1.6rem; color: var(--heading); }
.entry-disclaimer-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: var(--radius); background: var(--gold-soft); color: var(--gold-600); font-size: 1.2rem; }
.entry-disclaimer-body { padding: .6rem 1.6rem 1rem; overflow-y: auto; font-size: .95rem; line-height: 1.6; }
.entry-disclaimer-body ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.entry-disclaimer-body li { margin-bottom: .45rem; color: var(--ink); }
.entry-disclaimer-body p { color: var(--ink); }
.entry-disclaimer-body:focus-visible { outline-offset: -3px; }
.entry-disclaimer-actions { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.6rem 1.4rem; border-top: 1px solid var(--line); background: var(--paper); }
.entry-disclaimer-actions .btn { min-width: 120px; }
@media (max-width: 575.98px) {
    .entry-disclaimer-head h2 { font-size: 1.35rem; }
    .entry-disclaimer-actions .btn { flex: 1; }
}

/* Theme accent ribbon (added in 1.0.1): a thin bar in the active theme's accent colour. */
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-600, var(--gold))); z-index: 2000; pointer-events: none; }
