/* =====================================================================
   Bodhivriksh design system — every colour, font and radius is a CSS
   variable injected from the active ThemeSettings record (base.html).
   ===================================================================== */
:root {
  --bv-primary: #0877B9; --bv-secondary: #08A9DF; --bv-accent: #A6CE39; --bv-dark: #10245B;
  --bv-bg: #fff; --bv-surface: #F5F7FA; --bv-text: #1B2437; --bv-muted: #5B6478;
  --bv-radius: 14px; --bv-font-head: "Plus Jakarta Sans", system-ui, sans-serif; --bv-font-body: "Inter", system-ui, sans-serif;
  --bv-fs: 16px; --bv-hscale: 1;
  --bv-grad: linear-gradient(135deg, var(--bv-primary) 0%, var(--bv-secondary) 100%);
  --bv-grad-dark: linear-gradient(135deg, var(--bv-dark) 0%, color-mix(in srgb, var(--bv-dark) 70%, var(--bv-primary)) 100%);
  --bv-shadow: 0 10px 30px -12px rgba(16, 36, 91, .18);
  --bv-shadow-lg: 0 24px 60px -20px rgba(16, 36, 91, .28);
  --bv-border: color-mix(in srgb, var(--bv-dark) 10%, transparent);
  --header-h: 76px;
}
html { font-size: var(--bv-fs); scroll-behavior: smooth; }
body { font-family: var(--bv-font-body); color: var(--bv-text); background: var(--bv-bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .font-head { font-family: var(--bv-font-head); color: var(--bv-dark); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1, .h1 { font-size: calc(clamp(2rem, 4.2vw, 3.6rem) * var(--bv-hscale)); font-weight: 800; }
h2, .h2 { font-size: calc(clamp(1.6rem, 3vw, 2.5rem) * var(--bv-hscale)); }
h3, .h3 { font-size: calc(1.35rem * var(--bv-hscale)); }
a { color: var(--bv-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bv-dark); }
.text-muted, .muted { color: var(--bv-muted) !important; }
.text-primary-bv { color: var(--bv-primary) !important; }
.text-accent { color: var(--bv-accent) !important; }
.bg-surface { background: var(--bv-surface); }
.bg-dark-bv { background: var(--bv-dark); color: #fff; }
::selection { background: var(--bv-accent); color: var(--bv-dark); }
img { max-width: 100%; height: auto; }
.layout-boxed .site-wrap { max-width: 1360px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,.08); background: var(--bv-bg); }
.layout-boxed { background: var(--bv-surface); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section-sm { padding: 3rem 0; }

/* ---------- eyebrow + headings */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bv-primary); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--bv-accent); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--bv-muted); font-size: 1.06rem; }
.text-gradient { background: linear-gradient(90deg, var(--bv-secondary), var(--bv-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons */
.btn { font-weight: 600; padding: .78rem 1.5rem; border-radius: var(--bv-radius); transition: all .25s ease; display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
.btn-sm { padding: .45rem .9rem; }
.btn-pill .btn, .btn-gradient .btn { border-radius: 999px; }
.btn-square .btn { border-radius: 4px; }
.btn-primary, .btn-bv { background: var(--bv-primary); border: 0; color: #fff; }
.btn-gradient .btn-primary, .btn-gradient .btn-bv { background: var(--bv-grad); background-size: 160% 160%; }
.btn-primary:hover, .btn-bv:hover { background: var(--bv-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--bv-shadow); }
.btn-gradient .btn-primary:hover { background-position: 100% 0; background-color: transparent; background-image: var(--bv-grad); }
.btn-accent { background: var(--bv-accent); color: var(--bv-dark); border: 0; }
.btn-accent:hover { background: #fff; color: var(--bv-dark); transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--bv-accent) 70%, transparent); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--bv-dark); }
.btn-outline-bv { border: 1.5px solid var(--bv-primary); color: var(--bv-primary); background: transparent; }
.btn-outline-bv:hover { background: var(--bv-primary); color: #fff; }
.btn-ghost { background: color-mix(in srgb, var(--bv-primary) 10%, transparent); color: var(--bv-primary); border: 0; }
.btn-ghost:hover { background: var(--bv-primary); color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- top bar & header */
.topbar { background: var(--bv-dark); color: rgba(255,255,255,.78); font-size: .82rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--bv-accent); }
.topbar .announce { color: var(--bv-accent); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 1030; transition: all .3s ease; }
.header-light .site-header { background: #fff; box-shadow: 0 1px 0 var(--bv-border); }
.header-glass .site-header { background: color-mix(in srgb, var(--bv-bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--bv-border); }
.header-dark .site-header { background: var(--bv-dark); }
.header-transparent .site-header { background: color-mix(in srgb, var(--bv-bg) 92%, transparent); backdrop-filter: blur(10px); }
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(16,36,91,.2); }
.navbar { min-height: var(--header-h); padding: 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--bv-font-head); font-weight: 800; color: var(--bv-dark); }
.navbar-brand img { max-height: 52px; width: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { line-height: 1.05; }
.brand-text small { display: block; font-size: .6rem; letter-spacing: .22em; font-weight: 700; color: var(--bv-primary); text-transform: uppercase; }
.brand-text span { font-size: 1.28rem; letter-spacing: -.02em; }
.header-dark .navbar-brand, .header-dark .nav-link { color: #fff !important; }
.header-dark .brand-text small { color: var(--bv-accent); }
.navbar .nav-link { white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--bv-dark); padding: 1.6rem .75rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--bv-primary); }
.navs-underline .navbar .nav-link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 1.2rem; height: 2px; background: var(--bv-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navs-underline .navbar .nav-link:hover::after, .navs-underline .navbar .nav-link.active::after { transform: scaleX(1); }
.navs-pills .navbar .nav-link.active, .navs-pills .navbar .nav-link:hover { background: color-mix(in srgb, var(--bv-primary) 10%, transparent); border-radius: 999px; }
.navs-pills .navbar .nav-link { padding: .55rem .9rem !important; margin: 1rem .1rem; }
.dropdown-menu { border: 0; border-radius: var(--bv-radius); box-shadow: var(--bv-shadow-lg); padding: .6rem; margin-top: 0 !important; }
.dropdown-item { border-radius: calc(var(--bv-radius) * .6); padding: .55rem .8rem; font-size: .92rem; font-weight: 500; }
.dropdown-item:hover { background: var(--bv-surface); color: var(--bv-primary); }
.mega-menu { position: static !important; }
.mega-menu > .dropdown-menu { left: 0; right: 0; width: min(1140px, 96vw); margin: 0 auto !important; padding: 1.6rem; }
.mega-col h6 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; display: flex; align-items: center; gap: .45rem; }
.mega-col h6 i { color: var(--bv-primary); }
.mega-col a { display: block; font-size: .87rem; color: var(--bv-muted); padding: .2rem 0; }
.mega-col a:hover { color: var(--bv-primary); padding-left: 3px; }
.mega-feature { background: var(--bv-grad-dark); color: #fff; border-radius: var(--bv-radius); padding: 1.4rem; height: 100%; }
.mega-feature h5 { color: #fff; }
@media (min-width: 1200px) { .navbar .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .22s ease; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.navbar-toggler { border: 0; font-size: 1.6rem; color: var(--bv-dark); }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 1199.98px) {
  .navbar .nav-link { padding: .7rem 0 !important; }
  .navbar-collapse { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding-bottom: 1rem; }
  .mega-menu > .dropdown-menu { width: 100%; padding: 1rem; box-shadow: none; background: var(--bv-surface); }
  .navs-underline .navbar .nav-link::after { display: none; }
  .header-dark .navbar-collapse .dropdown-menu a { color: var(--bv-dark); }
}

/* ---------- hero */
.hero { position: relative; background: var(--bv-grad-dark); color: #fff; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 10vw, 8.5rem); }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--bv-dark) 94%, transparent) 30%, color-mix(in srgb, var(--bv-dark) 55%, transparent)); }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.4vw, 1.22rem); max-width: 600px; }
.hero .eyebrow { color: var(--bv-accent); }
.hero .eyebrow::before { background: var(--bv-accent); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; background: var(--bv-secondary); top: -140px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: var(--bv-accent); bottom: -180px; left: 30%; opacity: .25; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: var(--bv-primary); top: 40%; left: -80px; opacity: .45; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1);} 33% { transform: translate(30px,-25px) scale(1.06);} 66% { transform: translate(-20px,20px) scale(.96);} }
.hero .container { position: relative; z-index: 2; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; color: rgba(255,255,255,.75); font-size: .9rem; }
.hero-trust i { color: var(--bv-accent); margin-right: .35rem; }
.hero-visual { position: relative; padding: 46px 0 46px 24px; }
.glass { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: calc(var(--bv-radius) + 4px); }
.hv-main { position: relative; padding: 3.2rem 1.5rem 3.6rem; }
.hv-main .hv-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hv-row { display: flex; align-items: center; gap: .85rem; padding: .78rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .92rem; }
.hv-row:last-child { border: 0; }
.hv-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--bv-accent); flex: none; }
.hv-tag { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.hv-tag.ok { background: color-mix(in srgb, var(--bv-accent) 25%, transparent); color: var(--bv-accent); }
.hv-tag.due { background: rgba(255,193,7,.18); color: #ffd666; }
.hv-float { position: absolute; padding: 1rem 1.15rem; display: flex; gap: .8rem; align-items: center; animation: bob 6s ease-in-out infinite; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.hv-float.f1 { top: 10px; right: -14px; z-index: 2; }
.hv-float.f2 { bottom: 14px; left: 0; z-index: 2; animation-delay: -3s; }
.hv-float strong { display: block; font-size: 1.15rem; color: #fff; }
.hv-float small { color: rgba(255,255,255,.65); }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.ring { --p: 86; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--bv-accent) calc(var(--p)*1%), rgba(255,255,255,.12) 0); display: grid; place-items: center; }
.ring::after { content: attr(data-label); width: 44px; height: 44px; border-radius: 50%; background: var(--bv-dark); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 3; }
.carousel-indicators.hero-dots { bottom: 4.5rem; z-index: 4; }
.carousel-indicators.hero-dots [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }

/* ---------- inner page header */
.page-hero { background: var(--bv-grad-dark); color: #fff; padding: 4.2rem 0 3.6rem; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bv-secondary) 55%, transparent), transparent 70%); }
.page-hero h1 { color: #fff; font-size: calc(clamp(1.9rem, 3.6vw, 3rem) * var(--bv-hscale)); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 720px; font-size: 1.08rem; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* ---------- stats */
.stats-band { margin-top: -4rem; position: relative; z-index: 5; }
.stats-card { background: var(--bv-bg); border-radius: calc(var(--bv-radius) + 6px); box-shadow: var(--bv-shadow-lg); padding: 2rem 1rem; }
.stat { text-align: center; padding: .5rem 1rem; }
.stat i { font-size: 1.6rem; color: var(--bv-primary); }
.stat .num { font-family: var(--bv-font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--bv-dark); line-height: 1.1; }
.stat .num .suffix { color: var(--bv-accent); }
.stat p { margin: 0; color: var(--bv-muted); font-weight: 500; font-size: .92rem; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid var(--bv-border); } }

/* ---------- cards */
.card-bv { position: relative; height: 100%; padding: 1.9rem; border-radius: calc(var(--bv-radius) + 4px); background: var(--bv-bg); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s; overflow: hidden; display: flex; flex-direction: column; }
.card-elevated .card-bv { box-shadow: var(--bv-shadow); border: 1px solid transparent; }
.card-bordered .card-bv { border: 1px solid var(--bv-border); }
.card-glass .card-bv { background: color-mix(in srgb, var(--bv-bg) 70%, transparent); border: 1px solid var(--bv-border); backdrop-filter: blur(10px); }
.card-flat .card-bv { background: var(--bv-surface); }
.card-bv:hover { transform: translateY(-6px); box-shadow: var(--bv-shadow-lg); border-color: color-mix(in srgb, var(--bv-primary) 25%, transparent); }
.card-bv .icon-box { width: 58px; height: 58px; border-radius: calc(var(--bv-radius) * .9); display: grid; place-items: center; font-size: 1.55rem; color: var(--bv-primary); background: color-mix(in srgb, var(--bv-primary) 10%, transparent); margin-bottom: 1.25rem; transition: all .35s; }
.card-bv:hover .icon-box { background: var(--bv-grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card-bv h3, .card-bv h4 { font-size: 1.14rem; margin-bottom: .6rem; }
.card-bv p { color: var(--bv-muted); font-size: .94rem; flex-grow: 1; }
.card-bv .link-arrow { margin-top: .5rem; font-size: .92rem; }
.card-bv::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bv-accent) 22%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.card-bv:hover::after { opacity: 1; }
.card-num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--bv-font-head); font-weight: 800; font-size: 2.4rem; color: color-mix(in srgb, var(--bv-dark) 6%, transparent); }
.stretched-link::after { z-index: 2; }

/* ---------- why choose */
.why-wrap { background: var(--bv-dark); color: #fff; border-radius: calc(var(--bv-radius) * 2); overflow: hidden; position: relative; }
.why-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--bv-secondary) 35%, transparent), transparent 45%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--bv-accent) 18%, transparent), transparent 40%); }
.why-wrap > * { position: relative; }
.why-wrap h2 { color: #fff; }
.why-item { display: flex; gap: 1rem; padding: 1.1rem; border-radius: var(--bv-radius); transition: background .3s; }
.why-item:hover { background: rgba(255,255,255,.06); }
.why-item i { font-size: 1.35rem; color: var(--bv-accent); flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); }
.why-item h5 { color: #fff; font-size: 1.02rem; margin-bottom: .2rem; }
.why-item p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.approach-step { text-align: center; padding: 1.4rem 1rem; border-radius: var(--bv-radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.approach-step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--bv-accent); color: var(--bv-dark); font-weight: 800; display: grid; place-items: center; margin: 0 auto .7rem; }
.approach-step h5 { color: #fff; margin-bottom: .3rem; }
.approach-step p { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 575px) { .approach { grid-template-columns: 1fr; } }

/* ---------- compliance calendar widget */
.cal-panel { background: var(--bv-bg); border-radius: calc(var(--bv-radius) + 6px); box-shadow: var(--bv-shadow-lg); overflow: hidden; }
.cal-panel-head { background: var(--bv-grad); color: #fff; padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.cal-panel-head h5 { color: #fff; margin: 0; }
.due-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--bv-border); transition: background .2s; }
.due-item:hover { background: var(--bv-surface); }
.due-date { width: 58px; flex: none; text-align: center; border-radius: 12px; background: var(--bv-surface); padding: .4rem 0; }
.due-date b { display: block; font-size: 1.35rem; font-family: var(--bv-font-head); color: var(--bv-dark); line-height: 1.1; }
.due-date small { font-size: .7rem; text-transform: uppercase; color: var(--bv-muted); font-weight: 700; }
.due-item h6 { margin: 0 0 .15rem; font-size: .96rem; }
.due-item p { margin: 0; font-size: .82rem; color: var(--bv-muted); }
.cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .8rem; font-size: .8rem; font-weight: 600; border-radius: 999px; background: var(--bv-surface); color: var(--bv-dark); border: 1px solid var(--bv-border); }
.chip-accent { background: color-mix(in srgb, var(--bv-accent) 22%, transparent); border-color: transparent; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: .45rem 0 .45rem 2rem; position: relative; }
.feature-list li::before { content: "\F26B"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .42rem; color: var(--bv-primary); font-size: 1.05rem; }

/* full calendar page */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month-grid .dow { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--bv-muted); padding: .4rem 0; }
.month-grid .day { min-height: 92px; border-radius: 10px; background: var(--bv-surface); padding: .4rem; font-size: .75rem; position: relative; }
.month-grid .day.empty { background: transparent; }
.month-grid .day.today { outline: 2px solid var(--bv-primary); background: #fff; }
.month-grid .day .d { font-weight: 700; color: var(--bv-dark); font-size: .85rem; }
.month-grid .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 6px; color: #fff; font-size: .7rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 0; width: 100%; text-align: left; }
@media (max-width: 767px) { .month-grid { display: none; } }

/* ---------- tools */
.tool-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border-radius: var(--bv-radius); background: var(--bv-bg); border: 1px solid var(--bv-border); height: 100%; transition: all .3s; color: var(--bv-text); }
.tool-card:hover { border-color: var(--bv-primary); transform: translateY(-4px); box-shadow: var(--bv-shadow); color: var(--bv-text); }
.tool-card .ti { width: 50px; height: 50px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--bv-accent) 22%, transparent); color: var(--bv-dark); }
.tool-card h5 { font-size: 1rem; margin-bottom: .2rem; }
.tool-card p { font-size: .85rem; color: var(--bv-muted); margin: 0; }
.calc-shell { background: var(--bv-bg); border-radius: calc(var(--bv-radius) + 6px); box-shadow: var(--bv-shadow-lg); overflow: hidden; }
.calc-form { padding: 2rem; background: var(--bv-surface); height: 100%; }
.calc-result { padding: 2rem; }
.result-hero { background: var(--bv-grad-dark); color: #fff; border-radius: var(--bv-radius); padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.result-hero .lbl { color: rgba(255,255,255,.7); font-size: .85rem; }
.result-hero .val { font-family: var(--bv-font-head); font-size: 2rem; font-weight: 800; color: var(--bv-accent); }
.summary-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.summary-tiles .tile { background: var(--bv-surface); border-radius: var(--bv-radius); padding: .9rem 1rem; }
.summary-tiles .tile small { color: var(--bv-muted); display: block; font-size: .78rem; }
.summary-tiles .tile b { font-size: 1.12rem; color: var(--bv-dark); font-family: var(--bv-font-head); }
.breakup-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.breakup-table td { font-size: .92rem; }
.empty-result { text-align: center; padding: 3rem 1rem; color: var(--bv-muted); }
.empty-result i { font-size: 3rem; color: color-mix(in srgb, var(--bv-primary) 40%, transparent); }

/* ---------- industries */
.industry-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.6rem 1rem; border-radius: var(--bv-radius); background: var(--bv-bg); border: 1px solid var(--bv-border); transition: all .3s; height: 100%; color: var(--bv-dark); font-weight: 600; font-size: .95rem; }
.industry-tile i { font-size: 2rem; color: var(--bv-primary); transition: transform .3s; }
.industry-tile:hover { background: var(--bv-dark); color: #fff; transform: translateY(-4px); }
.industry-tile:hover i { color: var(--bv-accent); transform: scale(1.15); }

/* ---------- team */
.team-card { text-align: center; padding: 2rem 1.4rem; border-radius: calc(var(--bv-radius) + 4px); background: var(--bv-bg); box-shadow: var(--bv-shadow); height: 100%; transition: transform .3s; position: relative; overflow: hidden; }
.team-card:hover { transform: translateY(-6px); }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 88px; background: var(--bv-grad); opacity: .95; }
.avatar { width: 116px; height: 116px; border-radius: 50%; margin: 1rem auto 1rem; position: relative; border: 5px solid var(--bv-bg); box-shadow: var(--bv-shadow); overflow: hidden; background: var(--bv-grad-dark); display: grid; place-items: center; color: #fff; font-family: var(--bv-font-head); font-weight: 800; font-size: 2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h5 { margin-bottom: .15rem; }
.team-card .desig { color: var(--bv-primary); font-weight: 600; font-size: .9rem; }
.team-card .qual { color: var(--bv-muted); font-size: .85rem; }
.expertise { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: .9rem; }
.expertise span { font-size: .74rem; padding: .22rem .6rem; border-radius: 999px; background: var(--bv-surface); color: var(--bv-dark); }

/* ---------- clients */
.logo-strip { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.client-logo { width: 170px; height: 90px; border-radius: var(--bv-radius); background: var(--bv-bg); border: 1px solid var(--bv-border); display: grid; place-items: center; padding: 1rem; filter: grayscale(1); opacity: .75; transition: all .3s; font-weight: 700; font-size: .85rem; text-align: center; color: var(--bv-dark); }
.client-logo:hover { filter: none; opacity: 1; box-shadow: var(--bv-shadow); }
.client-logo img { max-height: 56px; }

/* ---------- blog */
.post-card { border-radius: calc(var(--bv-radius) + 4px); overflow: hidden; background: var(--bv-bg); box-shadow: var(--bv-shadow); height: 100%; display: flex; flex-direction: column; transition: transform .3s; }
.post-card:hover { transform: translateY(-6px); }
.post-thumb { aspect-ratio: 16/9; background: var(--bv-grad-dark); position: relative; overflow: hidden; display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb .ph { font-size: 3rem; color: rgba(255,255,255,.25); }
.post-thumb .ph-title { position: absolute; left: 1.2rem; bottom: 1rem; right: 1.2rem; color: #fff; font-family: var(--bv-font-head); font-weight: 700; font-size: 1rem; opacity: .9; }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--bv-muted); display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.1rem; line-height: 1.35; }
.post-card h3 a { color: var(--bv-dark); }
.post-card h3 a:hover { color: var(--bv-primary); }
.post-card p { font-size: .9rem; color: var(--bv-muted); flex: 1; }
.cat-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .28rem .65rem; border-radius: 6px; background: color-mix(in srgb, var(--bv-primary) 10%, transparent); color: var(--bv-primary); }
.prose { font-size: 1.04rem; line-height: 1.8; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .8rem; }
.prose table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--bv-border); padding: .55rem .75rem; }
.prose th { background: var(--bv-surface); }
.prose blockquote { border-left: 4px solid var(--bv-accent); padding: .6rem 1.2rem; background: var(--bv-surface); border-radius: 0 var(--bv-radius) var(--bv-radius) 0; }
.prose img { border-radius: var(--bv-radius); }
.toc-box, .side-box { background: var(--bv-surface); border-radius: var(--bv-radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.side-box h6 { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .9rem; }
.side-links a { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--bv-border); color: var(--bv-text); font-size: .92rem; }
.side-links a:hover, .side-links a.active { color: var(--bv-primary); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.share a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bv-surface); color: var(--bv-dark); margin-right: .35rem; }
.share a:hover { background: var(--bv-primary); color: #fff; }

/* ---------- services detail */
.service-tabs .nav-link { color: var(--bv-muted); font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
.service-tabs .nav-link.active { color: var(--bv-primary); border-color: var(--bv-primary); background: none; }
.process-steps { counter-reset: step; }
.process-step { position: relative; padding: 0 0 1.6rem 3.6rem; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--bv-grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.process-step::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--bv-border); }
.process-step:last-child::after { display: none; }
.process-step h6 { margin-bottom: .2rem; }
.process-step p { color: var(--bv-muted); font-size: .92rem; margin: 0; }
.doc-list li { padding: .5rem .8rem; border-radius: 10px; background: var(--bv-surface); margin-bottom: .5rem; font-size: .92rem; display: flex; gap: .6rem; align-items: center; }
.doc-list li i { color: var(--bv-primary); }
.accordion-bv .accordion-item { border: 1px solid var(--bv-border); border-radius: var(--bv-radius) !important; margin-bottom: .7rem; overflow: hidden; }
.accordion-bv .accordion-button { font-weight: 600; color: var(--bv-dark); background: var(--bv-bg); }
.accordion-bv .accordion-button:not(.collapsed) { color: var(--bv-primary); background: color-mix(in srgb, var(--bv-primary) 5%, transparent); box-shadow: none; }
.accordion-bv .accordion-button:focus { box-shadow: none; }
.svc-list-item { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--bv-radius); border: 1px solid var(--bv-border); background: var(--bv-bg); height: 100%; transition: all .3s; color: var(--bv-text); }
.svc-list-item:hover { border-color: var(--bv-primary); box-shadow: var(--bv-shadow); color: var(--bv-text); transform: translateY(-3px); }
.svc-list-item i { font-size: 1.3rem; color: var(--bv-primary); }
.svc-list-item h6 { margin-bottom: .2rem; font-size: .98rem; }
.svc-list-item p { margin: 0; font-size: .85rem; color: var(--bv-muted); }

/* ---------- labour hub */
.module-tile { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--bv-radius); background: var(--bv-bg); border: 1px solid var(--bv-border); transition: all .3s; height: 100%; color: var(--bv-dark); }
.module-tile:hover { background: var(--bv-dark); color: #fff; border-color: var(--bv-dark); }
.module-tile .mi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--bv-primary) 10%, transparent); color: var(--bv-primary); flex: none; }
.module-tile:hover .mi { background: rgba(255,255,255,.12); color: var(--bv-accent); }
.module-tile b { display: block; font-size: .95rem; }
.module-tile small { color: var(--bv-muted); }
.module-tile:hover small { color: rgba(255,255,255,.6); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.meta-grid div { background: var(--bv-surface); border-radius: 10px; padding: .7rem .9rem; font-size: .85rem; }
.meta-grid small { display: block; color: var(--bv-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.badge-proposed { background: #fff3cd; color: #7a5a00; }
.badge-upcoming { background: #e0f2ff; color: #075985; }
.badge-inforce { background: color-mix(in srgb, var(--bv-accent) 25%, transparent); color: #3c5a00; }
.table-bv { border-radius: var(--bv-radius); overflow: hidden; border: 1px solid var(--bv-border); }
.table-bv table { margin: 0; }
.table-bv thead th { background: var(--bv-dark); color: #fff; font-weight: 600; font-size: .85rem; border: 0; }
.table-bv td { font-size: .9rem; vertical-align: middle; }

/* ---------- contact / forms */
.form-control, .form-select { border-radius: calc(var(--bv-radius) * .7); padding: .72rem .95rem; border-color: color-mix(in srgb, var(--bv-dark) 14%, transparent); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--bv-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bv-primary) 14%, transparent); }
.form-label { font-weight: 600; font-size: .86rem; color: var(--bv-dark); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--bv-primary); border-color: var(--bv-primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-card { background: var(--bv-bg); border-radius: calc(var(--bv-radius) + 6px); box-shadow: var(--bv-shadow-lg); padding: clamp(1.4rem, 3vw, 2.4rem); }
.contact-block { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-block i { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--bv-accent); font-size: 1.2rem; }
.contact-block small { color: rgba(255,255,255,.6); display: block; }
.contact-block a, .contact-block span { color: #fff; }
.contact-panel { background: var(--bv-grad-dark); color: #fff; border-radius: calc(var(--bv-radius) + 6px); padding: 2.2rem; height: 100%; position: relative; overflow: hidden; }
.contact-panel h3 { color: #fff; }
.map-frame { border: 0; width: 100%; height: 300px; border-radius: var(--bv-radius); }

/* ---------- CTA band */
.cta-band { background: var(--bv-grad); color: #fff; border-radius: calc(var(--bv-radius) * 2); padding: clamp(2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ---------- footer */
.site-footer { padding: 4.5rem 0 0; font-size: .92rem; }
.footer-dark .site-footer { background: var(--bv-dark); color: rgba(255,255,255,.72); }
.footer-gradient .site-footer { background: var(--bv-grad-dark); color: rgba(255,255,255,.78); }
.footer-light .site-footer { background: var(--bv-surface); color: var(--bv-muted); }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 1.2rem; }
.footer-light .site-footer h6 { color: var(--bv-dark); }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--bv-accent); }
.footer-light .site-footer a:hover { color: var(--bv-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .28rem 0; }
.footer-links a::before { content: "›"; margin-right: .45rem; color: var(--bv-accent); }
.footer-brand .brand-text span { color: #fff; }
.footer-light .footer-brand .brand-text span { color: var(--bv-dark); }
.social a { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); margin-right: .4rem; }
.footer-light .social a { background: #fff; }
.social a:hover { background: var(--bv-accent); color: var(--bv-dark) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.3rem 0; font-size: .82rem; }
.footer-light .footer-bottom { border-color: var(--bv-border); }

/* ---------- floating actions */
.float-actions { position: fixed; bottom: 22px; z-index: 1040; display: flex; flex-direction: column; gap: .7rem; }
.float-actions.right { right: 22px; }
.float-actions.left { left: 22px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .25s; }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-wa { background: #25D366; position: relative; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2s infinite; }
.fab-call { background: var(--bv-primary); font-size: 1.3rem; }
.fab-top { background: var(--bv-dark); font-size: 1.2rem; width: 46px; height: 46px; opacity: 0; pointer-events: none; transition: opacity .3s; align-self: center; }
.fab-top.show { opacity: 1; pointer-events: auto; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- misc */
.sample-badge { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff3cd; color: #7a5a00; padding: .15rem .45rem; border-radius: 5px; vertical-align: middle; margin-left: .35rem; }
.preview-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 2000; background: #111827; color: #fff; padding: .6rem .7rem .6rem 1.1rem; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.35); font-size: .88rem; display: flex; align-items: center; gap: .8rem; }
.preview-flag { background: #fff3cd; color: #7a5a00; padding: .6rem 1rem; text-align: center; font-weight: 600; font-size: .9rem; }
.disclaimer { font-size: .8rem; color: var(--bv-muted); background: var(--bv-surface); border-left: 3px solid var(--bv-accent); padding: .8rem 1rem; border-radius: 0 10px 10px 0; }
.alert-floating { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 2000; max-width: 420px; box-shadow: var(--bv-shadow-lg); border: 0; border-radius: var(--bv-radius); }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border: 0; color: var(--bv-dark); background: var(--bv-surface); }
.pagination .active .page-link { background: var(--bv-primary); color: #fff; }

/* ---------- reveal animations */
.anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.anim [data-reveal].in { opacity: 1; transform: none; }
.anim [data-reveal="left"] { transform: translateX(-30px); }
.anim [data-reveal="right"] { transform: translateX(30px); }
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .anim [data-reveal] { opacity: 1; transform: none; } .blob, .hv-float, .fab-wa::before { animation: none; } }

/* ---------- portal / auth */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 3rem 1rem; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--bv-secondary) 14%, transparent), transparent 40%), var(--bv-surface); }
.auth-card { width: min(460px, 100%); background: var(--bv-bg); border-radius: calc(var(--bv-radius) + 8px); box-shadow: var(--bv-shadow-lg); padding: 2.4rem; }
.portal-side { background: var(--bv-dark); min-height: 100%; padding: 1.5rem 1rem; border-radius: calc(var(--bv-radius) + 4px); }
.portal-side a { display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.75); padding: .65rem .9rem; border-radius: 10px; font-weight: 500; font-size: .93rem; }
.portal-side a:hover, .portal-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.portal-side a.active i { color: var(--bv-accent); }
.kpi { background: var(--bv-bg); border-radius: var(--bv-radius); padding: 1.2rem; box-shadow: var(--bv-shadow); display: flex; gap: 1rem; align-items: center; height: 100%; }
.kpi i { font-size: 1.4rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--bv-primary) 10%, transparent); color: var(--bv-primary); }
.kpi b { font-size: 1.5rem; font-family: var(--bv-font-head); color: var(--bv-dark); display: block; line-height: 1.1; }
.kpi small { color: var(--bv-muted); }
.status { display: inline-block; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: var(--bv-surface); color: var(--bv-dark); white-space: nowrap; }
.status-filed, .status-completed, .status-approved, .status-converted, .status-published, .status-answered { background: #dcfce7; color: #166534; }
.status-overdue, .status-rejected, .status-urgent, .status-spam, .status-cancelled { background: #fee2e2; color: #991b1b; }
.status-pending, .status-open, .status-new, .status-draft { background: #fef3c7; color: #92400e; }
.status-in_progress, .status-contacted, .status-waiting, .status-awaiting_client { background: #dbeafe; color: #1e40af; }
.thread-msg { max-width: 80%; padding: .9rem 1.1rem; border-radius: 14px; margin-bottom: .8rem; background: var(--bv-surface); }
.thread-msg.mine { margin-left: auto; background: color-mix(in srgb, var(--bv-primary) 10%, transparent); }
.thread-msg small { color: var(--bv-muted); display: block; margin-bottom: .2rem; }

@media print {
  .topbar, .site-header, .site-footer, .float-actions, .calc-form, .no-print, .preview-bar, .cta-band, .page-hero .breadcrumb { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 1rem; }
  .page-hero h1 { color: #000; }
  .calc-shell { box-shadow: none; }
  .col-lg-7 { width: 100% !important; }
  .result-hero { background: #f2f4f8 !important; color: #000 !important; }
  .result-hero .val { color: #000 !important; }
}

@media (min-width:1200px) and (max-width:1399.98px){ .navbar .nav-link{ padding-left:.5rem !important; padding-right:.5rem !important; font-size:.85rem; } }
.status { align-self: center; height: fit-content; }
