/* ═══════════════════════════════════════════════════════════════════════
   Bobbeck.nl — design system
   "A well-made instrument and its manual." Warm daylight, deep-blue ink,
   one teal signal. Fraunces = the voice, Instrument Sans = the interface.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* surfaces & ink */
    --paper:      #fbfaf7;
    --paper-2:    #f2eee6;
    --field:      #e9eff3;
    --ink:        #16233b;
    --ink-soft:   #3c4c68;
    --ink-faint:  #6b7891;

    /* the one accent — deep teal (fresh, clinical, not blue, not green) */
    --accent:        #0b6a73;
    --accent-bright: #16a9b4;
    --accent-ink:    #084249;   /* accent text on light, ≥7:1 */

    --line:       rgba(22, 35, 59, 0.12);
    --line-soft:  rgba(22, 35, 59, 0.07);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    --w:      1120px;
    --w-wide: 1280px;
    --w-read: 680px;

    --radius:   14px;
    --radius-s: 9px;

    --shadow:    0 14px 40px rgba(11, 26, 62, 0.10);
    --shadow-lg: 0 22px 60px rgba(11, 26, 62, 0.16);

    /* ── legacy aliases: keep older shop/admin CSS working ── */
    --primary: var(--ink);
    --primary-highlight: var(--accent);
    --bb-serif: var(--serif);
    --bb-sans:  var(--sans);
    --bb-mono:  var(--sans);
    --bb-ink:   var(--ink);
    --bb-navy:  var(--ink);
    --bb-slate: var(--ink-soft);
    --bb-spark: var(--accent);
    --bb-paper: var(--paper);
    --bb-sky:    var(--accent);
    --bb-sky-lo: var(--accent-ink);
    --bb-cta:    var(--accent);
    --bb-air:    var(--paper-2);
    --bb-air-2:  var(--field);
    --bb-line:   var(--line);
    --art-serif: var(--serif);
    --art-sans:  var(--sans);
    --art-mono:  var(--sans);

    --nav-animation-speed: 300ms;
    --animation-speed: 160ms;
}

/* ─────────────────────────────────────────────  reset / base  ── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* the layout uses Bootstrap .h-100 for a sticky footer, which clamps body to
   the viewport and lets tall content overflow behind the footer — use min-height */
html.h-100, body.h-100 { height: auto !important; min-height: 100%; }
body.d-flex.flex-column { min-height: 100vh; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.62;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "calt";
}

img, svg, video { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent-bright); color: #fff; }

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

hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }

/* ─────────────────────────────────────────────  typography  ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 460;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 0 0 0.5em;
    font-optical-sizing: auto;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); font-weight: 420; margin-bottom: 0.55em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); margin-top: 0.2em; }
h3 { font-size: 1.3rem; letter-spacing: -0.008em; }
h4 { font-size: 1.1rem; font-weight: 500; }

h1 i, h2 i, h3 i, h4 i {
    color: var(--accent);
    font-size: 0.7em;
    position: relative;
    top: -0.08em;
    margin-right: 0.15em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

a {
    color: var(--accent-ink);
    text-decoration-color: var(--line);
    text-underline-offset: 0.15em;
    transition: color var(--animation-speed);
}
a:hover { color: var(--accent-bright); }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--accent); }

blockquote {
    margin: 1.6rem 0;
    padding-left: 1.2rem;
    border-left: 2px solid var(--accent);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.5;
}

.lead {
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 400;
}

small, .small, .bio { font-size: 0.875rem; color: var(--ink-faint); }

code, kbd, pre { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

.center { display: flex; justify-content: center; align-items: center; text-align: center; }
.centerText { text-align: center; }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────  layout  ── */
#main { flex-shrink: 0; }
main .container,
.container {
    width: 100%;
    max-width: var(--w);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* fixed navbar → clear its height on inner (non-presentation) pages;
   presentation pages open with a dark full-bleed hero/masthead under it. */
#header { position: static; }
.navbar.fixed-top { position: fixed; }
#main > .container { padding-top: 6rem; padding-bottom: 0; }
#main > .container--flush { max-width: 100%; padding: 0; }
.site-index { max-width: 100%; }
.container--flush > .site-index { padding: 0; }
.container--flush > .site-index > .row { margin: 0; }
.container--flush > .site-index .col-md-12:empty { display: none; }
#overlay { display: none; }

/* the old fixed cloud-photo background — gone in the redesign */
.backgroundCarousel, #carouselExampleFade.backgroundCarousel { display: none !important; }

/* section band — surfaces carry meaning */
.band {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.band + .band { border-top: 1px solid var(--line-soft); }
.band--paper  { background: var(--paper); }
.band--paper2 { background: var(--paper-2); }
.band--field  { background: var(--field); }
.band--ink {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.86);
}
.band--ink h1, .band--ink h2, .band--ink h3 { color: #fff; }
.band--ink a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.band--ink a:hover { color: var(--accent-bright); }
.band-inner { max-width: var(--w); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.band-read  { max-width: var(--w-read); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-ink);
    margin: 0 0 0.7rem;
}

/* ─────────────────────────────────────────────  divider (signature)  ── */
.myrule, .featurette-divider, .art-divider {
    width: min(78%, 680px);
    height: 1px;
    border: 0;
    margin: clamp(2.4rem, 5vw, 3.6rem) auto;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--line) 24%,
        var(--accent) 50%,
        var(--line) 76%,
        transparent 100%);
    position: relative;
    opacity: 1;
}
.myrule::after, .featurette-divider::after, .art-divider::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-bright);
    box-shadow: 0 0 10px 1px rgba(11, 106, 115, 0.55);
}
.band--ink .myrule {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2) 24%, var(--accent-bright) 50%, rgba(255,255,255,.2) 76%, transparent);
}
.band-inner > .myrule:first-child { margin-top: 0; margin-bottom: clamp(2.4rem, 6vw, 3.6rem); }

/* ─────────────────────────────────────────────  buttons  ── */
.btn {
    --bs-btn-border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0;
    line-height: 1;
    border-radius: 999px;
    padding: 0.8em 1.5em;
    border: 1.5px solid transparent;
    transition: background-color var(--animation-speed), color var(--animation-speed),
                border-color var(--animation-speed), transform var(--animation-speed);
    box-shadow: none;
    text-decoration: none;
    margin: 0;
    vertical-align: middle;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 0.9em; line-height: 1; display: inline-flex; }

.btn-primary, .btn-warning,
.btn-primary:visited, .btn-warning:visited {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover, .btn-warning:hover,
.btn-primary:focus, .btn-warning:focus {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
    color: #fff;
}

.btn-outline-primary, .btn-outline-secondary, .btn-light {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-light:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #0d1728; border-color: #0d1728; color: #fff; }
.btn-success { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn-danger  { background: #b23b3b; border-color: #b23b3b; color: #fff; }
.btn-lg { padding: 0.85em 1.8em; font-size: 1.02rem; }
.btn-sm { padding: 0.5em 1em; font-size: 0.86rem; }

.band--ink .btn-outline-primary,
.band--ink .btn-outline-secondary,
.hero .btn-outline-primary,
.hero .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.band--ink .btn-outline-primary:hover,
.band--ink .btn-outline-secondary:hover,
.hero .btn-outline-primary:hover,
.hero .btn-outline-secondary:hover {
    background: #fff; border-color: #fff; color: var(--ink);
}

/* ─────────────────────────────────────────────  header / nav  ── */
#header { position: relative; z-index: 1030; }

.navbar {
    --bs-navbar-padding-y: 0.55rem;
    background: var(--ink) !important;
    padding-block: 0.55rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(11,26,62,0.12);
}
.navbar .container,
.navbar > .container-fluid { max-width: var(--w-wide); }

.navbar-brand {
    font-family: var(--serif);
    font-weight: 480;
    font-size: 1.32rem;
    color: #fff !important;
    letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 0.5rem;
    text-shadow: none;
}
.navbar-brand i { color: var(--accent-bright); font-size: 0.9em; }

.navbar-nav { gap: 0.15rem; align-items: center; }
.nav-link {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.96rem;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.82) !important;
    text-shadow: none;
    padding: 0.5rem 0.75rem !important;
    border-radius: 7px;
    display: inline-flex; align-items: center; gap: 0.4rem;
    position: relative;
    transition: color var(--animation-speed), background-color var(--animation-speed);
}
.nav-link i { font-size: 0.9em; opacity: 0.85; }
.nav-link:hover, .nav-link:focus { color: #fff !important; background: rgba(255,255,255,0.06); }
.nav-link.active, .nav-item.active > .nav-link {
    color: #fff !important;
    background: transparent;
}
.nav-link.active::after, .nav-item.active > .nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem; right: 0.75rem; bottom: 0.18rem;
    height: 2px;
    background: var(--accent-bright);
    border-radius: 2px;
}
.dropdown-menu {
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-border-radius: var(--radius-s);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
    padding: 0.4rem;
    font-family: var(--sans);
}
.dropdown-item { border-radius: 6px; font-size: 0.94rem; padding: 0.5rem 0.7rem; }
.dropdown-item:active, .dropdown-item.active { background: var(--accent); }

.navbar-toggler { border: 0; padding: 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .icon-bar {
    display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.navbar-toggler .icon-bar + .icon-bar { margin-top: 5px; }

/* language switch — quiet segmented pill */
.lang-switch {
    display: inline-flex;
    margin-left: 0.6rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    overflow: hidden;
}
.lang-opt {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.62rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.lang-opt.is-active { background: #fff; color: var(--ink); }
.lang-opt:not(.is-active):hover { color: #fff; }

/* ─────────────────────────────────────────────  footer  ── */
#footer {
    background: var(--ink) !important;
    color: rgba(255, 255, 255, 0.6);
    padding-block: 1.6rem;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent);
}
#footer a { color: rgba(255, 255, 255, 0.85); }
#footer a:hover { color: var(--accent-bright); }

/* ─────────────────────────────────────────────  surfaces / cards  ── */
.whiteBg, .whiteBgNoShadow, .whiteTrBg {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 3vw, 1.9rem);
    box-shadow: none;
    backdrop-filter: none;
}
.band--paper2 .whiteBg { background: var(--paper); }
.startvak { border-radius: var(--radius); border-color: var(--line); background: var(--field); }

.rounded-image, .featurette-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0;
}
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }

.prijs {
    font-family: var(--serif);
    font-weight: 460;
    font-size: 1.7rem;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0.3rem 0 0.8rem;
}

/* readable measure inside big text blocks */
.measure, .band-read p, .band-read li { max-width: var(--w-read); }

/* ─────────────────────────────────────────────  forms  ── */
.form-control, .form-select, .form-label, label, .form-check-label { font-family: var(--sans); }
.form-label, label:not(.form-check-label) {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.form-control, .form-select {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    color: var(--ink);
    background-color: #fff;
    transition: border-color var(--animation-speed), box-shadow var(--animation-speed);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11, 106, 115, 0.14);
    outline: none;
}
.form-control::placeholder { color: var(--ink-faint); }
.form-floating > label { color: var(--ink-faint); }
.invalid-feedback, .help-block.help-block-error { color: #b23b3b; font-size: 0.85rem; }
.is-invalid, .has-error .form-control { border-color: #b23b3b; }

.form-check-input { border-color: var(--ink-faint); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(11, 106, 115, 0.14); border-color: var(--accent); }

.alert {
    font-family: var(--sans);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    border-left: 3px solid var(--accent);
    background: var(--field);
    color: var(--ink);
    padding: 0.9rem 1.1rem;
}
.alert-success { border-left-color: #1f7a4d; }
.alert-danger, .alert-error { border-left-color: #b23b3b; background: #fbeceb; }
.alert-warning { border-left-color: #c98a1a; background: #fbf3e4; }
#warningbox { background: var(--field); }

/* ─────────────────────────────────────────────  tables / gridview  ── */
table, .grid-view table, .kv-grid-table {
    font-family: var(--sans);
    font-size: 0.94rem;
    width: 100%;
    border-collapse: collapse;
}
.table > :not(caption) > * > *, .grid-view td, .grid-view th {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.table thead th, .grid-view thead th {
    font-weight: 600;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--line);
    background: transparent;
}
.table-warning, tr.table-warning > * { background: #fbf3e4 !important; }
.table-success, tr.table-success > * { background: #e8f3ec !important; }
.grid-view { border-radius: var(--radius); overflow: hidden; }
.summary { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 0.6rem; }
.pagination { --bs-pagination-color: var(--accent-ink); --bs-pagination-active-bg: var(--accent); --bs-pagination-active-border-color: var(--accent); font-family: var(--sans); }

.badge { font-family: var(--sans); font-weight: 600; }
.badge.text-bg-warning { background: #c98a1a !important; color: #fff !important; }
.badge.text-bg-success { background: #1f7a4d !important; }

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* hero — the video stays; content sits left, calm */
.hero {
    position: relative;
    min-height: min(72vh, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 16, 30, 0.82) 0%, rgba(9, 16, 30, 0.5) 46%, rgba(9, 16, 30, 0.15) 100%),
        linear-gradient(0deg, rgba(9, 16, 30, 0.55), rgba(9, 16, 30, 0) 55%);
}
.hero__inner {
    position: relative;
    max-width: var(--w);
    width: 100%;
    margin-inline: auto;
    padding: clamp(3.5rem, 9vw, 6rem) clamp(1.1rem, 4vw, 2rem);
}
.hero__body { max-width: 34rem; color: #fff; }
.hero__kicker {
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent-bright);
    margin: 0 0 0.55rem;
}
.hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 1.5rem + 4vw, 4.1rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 1rem;
    text-wrap: balance;
}
.hero__lead {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.8rem;
}
.hero__lead a { color: #fff; text-decoration-color: var(--accent-bright); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* "who was Bob Beck" + generic editorial pair (text | image) */
.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
@media (min-width: 820px) {
    .feature { grid-template-columns: 1.05fr 0.95fr; }
    .feature--flip .feature__media { order: -1; }
}
.feature__body { max-width: 36rem; }
.feature__body p { color: var(--ink); }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* the protocol — a real numbered spec (the one place numbering is earned) */
.protocol { counter-reset: step; }
.protocol__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
@media (min-width: 720px) { .protocol__grid { grid-template-columns: 1fr 1fr; } }
.protocol__step {
    background: var(--paper);
    padding: 1.5rem 1.6rem;
    display: flex;
    gap: 1.1rem;
}
.protocol__num {
    counter-increment: step;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--accent);
    flex: none;
}
.protocol__num::before { content: counter(step); }
.protocol__step h3 { margin: 0 0 0.3rem; font-size: 1.16rem; }
.protocol__step p { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.97rem; }
.protocol__step a { font-weight: 600; font-size: 0.92rem; }

/* device "datasheet" section */
.device {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
@media (min-width: 860px) {
    .device { grid-template-columns: 1fr 0.9fr; align-items: center; }
    .device--flip .device__media { order: -1; }
}
.device__body { max-width: 36rem; }
.device__body p { color: var(--ink); }
.device__spec {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.3rem;
    columns: 2;
    column-gap: 1.5rem;
}
.device__spec li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    break-inside: avoid;
}
.device__spec li::before {
    content: '';
    position: absolute; left: 0; top: 0.55em;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
}
.device__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.device__price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin: 0 0 1rem; }

/* full-bleed image strip */
.strip { margin: 0; }
.strip img {
    width: 100%;
    height: clamp(240px, 34vw, 420px);
    object-fit: cover;
    object-position: center 60%;
}

/* free guide / lecture blocks reuse .feature */

/* blog strip on the homepage + the /blog grid */
.bb-article-grid, .bb-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.1rem, 2.5vw, 1.6rem);
    width: 100%;
}
.bb-article-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--animation-speed), box-shadow var(--animation-speed), border-color var(--animation-speed);
    min-height: 320px;
    position: relative;
}
.bb-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.bb-card-bg {
    height: 172px;
    background-size: cover;
    background-position: center;
    background-color: var(--field);
    flex: none;
}
.bb-card-no-image {
    background:
        radial-gradient(120% 120% at 15% 0%, rgba(22, 169, 180, 0.16), transparent 60%),
        var(--ink);
}
.bb-card-overlay { display: none; }
.bb-card-content { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.bb-card-category {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-ink);
    margin-bottom: 0.4rem;
}
.bb-card-title {
    font-family: var(--serif);
    font-weight: 480;
    font-size: 1.24rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.008em;
}
.bb-card-lead {
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0 0 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bb-card-link { font-weight: 600; font-size: 0.9rem; color: var(--accent-ink); text-decoration: none; }
.bb-article-card:hover .bb-card-link { color: var(--accent-bright); }
.bb-blog-header, h1.bb-blog-header { margin-bottom: 0.2rem; }
.bb-blog-header a { color: var(--ink); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════════
   BLOG MASTHEAD  (blog.php)
   ═══════════════════════════════════════════════════════════════════════ */
.blog-masthead {
    background: var(--ink);
    color: #fff;
    margin: 0;
    padding: calc(3.6rem + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2rem, 5vw, 3.4rem);
}
.blog-masthead-inner {
    max-width: var(--w);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}
.blog-masthead-back {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}
.blog-masthead-back:hover { color: #fff; }
.blog-masthead-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 1.3rem + 2.5vw, 3rem);
    color: #fff;
    margin: 0.6rem 0 0.3rem;
    letter-spacing: -0.015em;
}
.blog-masthead-title i { color: var(--accent-bright); }
.blog-masthead-sub { color: rgba(255, 255, 255, 0.7); margin: 0; font-size: 1rem; }
.blog-masthead-right { text-align: right; flex: none; }
.blog-masthead-page { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.blog-masthead-count { font-family: var(--serif); font-size: 2.4rem; color: #fff; line-height: 1; }
@media (max-width: 640px) {
    .blog-masthead-inner { flex-direction: column; align-items: flex-start; }
    .blog-masthead-right { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ARTICLE PAGE  (article.php)
   ═══════════════════════════════════════════════════════════════════════ */
.art-hero {
    position: relative;
    margin: 0;
    min-height: min(60vh, 500px);
    padding-top: 4.8rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
    isolation: isolate;
}
.art-hero-bg-zoom {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.art-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(9,16,30,0.9) 0%, rgba(9,16,30,0.4) 55%, rgba(9,16,30,0.2) 100%);
    z-index: -1;
}
.art-hero-content {
    max-width: var(--w);
    width: 100%;
    margin-inline: auto;
    padding: clamp(2.2rem, 6vw, 4rem) clamp(1.1rem, 4vw, 2rem);
    color: #fff;
}
.art-back-link, .art-sticky-back {
    color: rgba(255,255,255,0.75);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}
.art-back-link:hover { color: #fff; }
.art-hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0.8rem 0 0.6rem;
    max-width: 20ch;
}
.art-hero-lead {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    max-width: 52ch;
    margin: 0;
}
.art-hero-scroll { display: none; }

.art-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.art-sticky-bar > .art-sticky-back,
.art-sticky-meta {
    display: inline-flex;
    align-items: center;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.art-sticky-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--w);
    margin-inline: auto;
    padding: 0.7rem clamp(1.1rem, 4vw, 2rem);
}
.art-sticky-meta { gap: 1.1rem; }
.art-sticky-meta > span + span { position: relative; padding-left: 1.1rem; }
.art-sticky-meta > span + span::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 3px; height: 3px; border-radius: 50%;
    background: currentColor; transform: translateY(-50%); opacity: 0.5;
}
.art-sticky-back { color: var(--ink-soft); }
.art-sticky-back:hover { color: var(--accent-ink); }

.art-body-section { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.art-reading-col {
    max-width: var(--w-read);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.72;
    color: var(--ink);
    font-optical-sizing: auto;
}
.art-reading-col p { margin: 0 0 1.35rem; }
.art-reading-col h2, .art-reading-col h3 { font-family: var(--serif); margin-top: 2rem; }
.art-reading-col a { color: var(--accent-ink); text-decoration-color: var(--accent); }
.art-body-section > .art-reading-col:first-child > p:first-child::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: 0.8;
    padding: 0.05em 0.09em 0 0;
    color: var(--accent);
    font-family: var(--serif);
}
.art-breakout {
    margin: 2.2rem calc(50% - 50vw);
    width: 100vw;
}
.art-breakout img { width: 100%; max-height: 70vh; object-fit: cover; }
.art-pair { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 2rem 0; }
@media (max-width: 600px) { .art-pair { grid-template-columns: 1fr; } }

.art-author-section { background: var(--field); padding: clamp(2rem, 5vw, 3rem) 0; margin-top: 1rem; }
.art-author-card {
    max-width: var(--w-read);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
    display: flex; gap: 1.2rem; align-items: flex-start;
}
.art-author-name { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.3rem; }
.art-author-bio { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   LEGACY HOMEPAGE MARKUP  (index.php still uses these — retune, don't fight)
   ═══════════════════════════════════════════════════════════════════════ */
.fullWidthNoBackground {
    position: relative;
    box-shadow: none;
    width: 100%;
}
.fullWidthBackground, .fullWidthBackground2, .fullWidthBackground6 {
    background: var(--paper-2);
    padding-block: clamp(2.5rem, 6vw, 4rem);
    margin-block: 0;
}
.fullWidthBackground6 {
    background: var(--ink);
    color: rgba(255,255,255,0.86);
}
.fullWidthBackground6 h1, .fullWidthBackground6 h2, .fullWidthBackground6 h3 { color: #fff; }
.fullWidthBackground6 a { color: #fff; }
.fullWidthBackground6 h1 i, .fullWidthBackground6 h2 i { color: var(--accent-bright); }
.parallax { background-attachment: scroll !important; background: var(--paper-2); }

.opsomming li { padding: 0.5em 0; font-size: 1.05em; }
.opsomming li::marker { color: var(--accent); }

/* generic homepage rows still built with .row + .col + .whiteBg */
.site-index .row { margin-block: 0; }
.site-index .whiteBg { margin-block: 1.2rem; }

/* carousel (product sliders, article images) */
.carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 0 3px rgba(0,0,0,0.5)); }
.mycarousel { box-shadow: var(--shadow-lg); border: 4px solid var(--paper); border-radius: var(--radius); }

/* video hero fallback for the current index.php markup */
#video-background {
    width: 100vw !important;
    left: 50%; transform: translateX(-50%);
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════
   SHOP
   ═══════════════════════════════════════════════════════════════════════ */
.shop-index-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.shop-index-head .lead { margin-bottom: 0; }

.shop-grid { margin-top: 8px; }
.shop-card {
    display: flex; flex-direction: column; overflow: hidden; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
    transition: transform var(--animation-speed), box-shadow var(--animation-speed);
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shop-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--field); }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.04); }
.shop-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.shop-card-body h2 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.shop-card-lead { color: var(--ink-soft); flex: 1; font-size: 0.95rem; }
.shop-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0.7rem; }
.shop-stock { font-size: 0.86rem; font-weight: 500; margin: 0.3rem 0 0.9rem; }
.shop-stock.in { color: #1f7a4d; }
.shop-stock.out { color: #b23b3b; }
.shop-product .shop-back { font-size: 0.9rem; font-weight: 500; }
.shop-add-form { margin-top: 0.9rem; }
.shop-cart-table th { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.shop-cart-product { display: flex; align-items: center; gap: 12px; }
.shop-cart-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.shop-cart-note { color: var(--ink-faint); font-size: 0.9rem; }
.shop-cart-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.shop-order-summary table { margin-bottom: 8px; }
.shop-summary-total th { border-top: 2px solid var(--line); font-size: 1.1rem; }
.shop-lookup-status { min-height: 1.2em; font-size: 0.82rem; color: var(--ink-soft); margin: -6px 0 10px; }
.shop-return address { font-style: normal; line-height: 1.5; }
@media (max-width: 575.98px) {
    .shop-cart-actions { justify-content: stretch; }
    .shop-cart-actions .btn { flex: 1; }
}

/* ── Login ── */
.site-login { margin-top: 12px; }
.login-card { padding: 1.8rem 1.7rem 1.4rem; }
.login-card .login-links { margin: 0.9rem 0 0; text-align: center; }

/* ── Order backend ── */
.order-view h1 .badge { vertical-align: middle; font-size: 0.5em; }
.order-actions .form-select-sm { min-width: 10rem; }

/* ── Admin dashboard ── */
.admin-dashboard .lead { margin-bottom: 1.4rem; }
.dash-card {
    display: flex; align-items: center; gap: 16px; height: 100%;
    padding: 1.25rem 1.4rem; text-decoration: none; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
    transition: transform var(--animation-speed), box-shadow var(--animation-speed);
}
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.dash-card-icon {
    flex: none; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 13px;
    font-size: 1.3rem; color: #fff; background: var(--accent);
}
.dash-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dash-card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 480; line-height: 1.25; }
.dash-card-title .badge { font-size: 0.6em; vertical-align: middle; }
.dash-card-text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.35; }
.dash-card-arrow { flex: none; color: var(--accent); opacity: 0.5; transition: opacity var(--animation-speed), transform var(--animation-speed); }
.dash-card:hover .dash-card-arrow { opacity: 1; transform: translateX(3px); }
.dash-card-icon.bb-accent-orders   { background: #c98a1a; }
.dash-card-icon.bb-accent-products { background: var(--accent); }
.dash-card-icon.bb-accent-blog     { background: #5b4b8a; }
.dash-card-icon.bb-accent-users    { background: #1f7a4d; }
.dash-card-icon.bb-accent-roles    { background: var(--ink); }
.dash-card-icon.bb-accent-site     { background: var(--ink-faint); }

/* ── Summernote / CodeMirror admin polish ── */
.note-editor.note-frame { border-radius: var(--radius-s); border-color: var(--line); }
.note-toolbar { background: var(--field); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--ink);
        margin: 0.5rem -1rem -0.55rem;
        padding: 0.5rem 1rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .navbar-nav { align-items: flex-start; gap: 0; }
    .nav-link { width: 100%; }
    .nav-link.active::after { left: 0.75rem; right: auto; width: 20px; }
    .lang-switch { margin: 0.6rem 0 0; }
}
@media (max-width: 719px) {
    .device__spec { columns: 1; }
}
@media (max-width: 575px) {
    body { font-size: 1rem; }
    .btn { width: auto; }
    .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .bb-article-card:hover, .shop-card:hover, .dash-card:hover, .btn:hover { transform: none; }
}

/* kill leftover AOS hidden state if any [data-aos] slips through */
[data-aos] { opacity: 1 !important; transform: none !important; }
