/* =====================================================================
   Corporate certification-body theme.
   Colours are set from config.js at load time (--primary, --dark, --light).
   ===================================================================== */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/ibm-plex-sans.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --primary: #c1121f; --dark: #16181d; --light: #f5f5f6; --ink: #1f2933; --body: #3e4c59; --muted: #677788; --line: #dde3ea; --white: #fff; --radius: 2px; --t: all .5s; --font: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--dark); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h4 { font-size: 19px; }
a { color: inherit; text-decoration: none; transition: var(--t); }
p a, dd a, .hint a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
p a:hover, dd a:hover, .hint a:hover { color: var(--dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 3000; }
.skip:focus { left: 8px; top: 8px; }
.arr { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; transition: transform .3s; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 15px; font-weight: 600; border-radius: var(--radius); border: 1px solid transparent; line-height: 1.2; transition: var(--t); white-space: nowrap; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--dark); border-color: var(--dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn:disabled { opacity: .6; cursor: wait; }
.link { display: inline-flex; align-items: center; color: var(--primary); font-weight: 600; font-size: 15px; }
.link:hover { color: var(--dark); }
p a.link { text-decoration: none; }
.link:hover .arr { transform: translateX(4px); }

/* ---------- utility bar ---------- */
.utility { color: #c3cdd8; font-size: 13.5px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.utility-left { display: flex; gap: 26px; }
.utility-left li { display: flex; align-items: center; white-space: nowrap; }
.utility-left li.u-addr { white-space: normal; }
.utility i { margin-right: 8px; color: #8fa3b7; font-size: 12px; }

/* ---------- masthead ---------- */
.masthead { position: relative; z-index: 100; }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; }
.logo { max-height: 58px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-mark { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); font-weight: 700; font-size: 15px; letter-spacing: .04em; border-radius: var(--radius); }
.wordmark-text { font-weight: 700; font-size: 21px; color: var(--dark); letter-spacing: -.015em; line-height: 1.1; }
.wordmark.light .wordmark-text { color: var(--white); }
.head-contacts { display: flex; align-items: center; gap: 32px; }
.hc { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.hc i { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 15px; transition: var(--t); }
.hc small { display: block; font-size: 12.5px; font-weight: 400; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; }

/* ---------- navigation row ---------- */
.nav-row { position: relative; z-index: 90; }
.nav > ul { display: flex; position: relative; }
.nav > ul > li { position: relative; }
.nav > ul > li.has-mega { position: static; }
.nav > ul > li > a { display: flex; align-items: center; height: 56px; padding: 0 18px; font-size: 15px; font-weight: 500; position: relative; transition: background-color .5s, color .5s; }
/* active / hovered menu item: solid colour box */
.caret { font-size: 10px; margin-left: 8px; transition: transform .5s; }
.nav li:hover .caret, .nav li.focus .caret { transform: rotate(180deg); }
/* dropdown panels: unfold from the top (scaleY) */
.nav .sub { position: absolute; top: 100%; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--primary); box-shadow: 0 18px 40px rgba(16,42,67,.12); transform: scaleY(0); transform-origin: top; opacity: 0; visibility: hidden; transition: all .5s; }
.nav li:hover > .sub, .nav li.focus > .sub { transform: scaleY(1); opacity: 1; visibility: visible; }
.nav .sub.small { left: 0; min-width: 300px; }
.nav .sub.small a { display: block; padding: 13px 20px; border-bottom: 1px solid var(--light); font-size: 15px; color: var(--dark); transition: var(--t); }
.nav .sub.small li:last-child a { border-bottom: 0; }
.nav .sub.small a:hover { background: var(--light); color: var(--primary); padding-left: 26px; }
.nav .sub.mega { left: 0; right: 0; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mega-col { padding: 24px 22px 18px; border-right: 1px solid var(--light); }
.mega-col:last-child { border-right: 0; }
.mega-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega-col a { display: block; padding: 9px 10px; border-left: 2px solid transparent; transition: var(--t); }
.mega-col a b { display: block; font-size: 15px; font-weight: 600; color: var(--dark); transition: var(--t); }
.mega-col a span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.mega-col a:hover { background: var(--light); border-left-color: var(--primary); padding-left: 14px; }
.mega-col a:hover b { color: var(--primary); }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--white); z-index: 1001; transform: translateX(100%); transition: transform .5s; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(16,42,67,.55); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--t); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .wordmark-text { font-size: 18px; }
.drawer-close { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--dark); }
.drawer-links > li { border-bottom: 1px solid var(--line); }
.drawer-links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: var(--dark); font-weight: 500; transition: var(--t); }
.drawer-links a:hover { color: var(--primary); }
.drawer-links > li > a.active { background: var(--primary); color: var(--white); }
.drawer-links .caret { transition: transform .5s; }
.drawer-links li.open .caret { transform: rotate(180deg); }
.drawer-links ul { max-height: 0; overflow: hidden; transition: max-height .5s; background: var(--light); }
.drawer-links li.open ul { max-height: 1000px; }
.drawer-links ul a { padding: 11px 20px 11px 32px; font-weight: 400; font-size: 15px; border-top: 1px solid var(--line); }
.drawer-foot { margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.drawer-foot a:not(.btn) { color: var(--dark); }
.drawer-foot .btn { margin-top: 8px; }

/* ---------- hero: full-width photo slides, fade 0.3 s (as the original site) ---------- */
.hero { position: relative; height: 80vh; min-height: 460px; max-height: 820px; background: var(--dark); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; background-color: var(--dark); background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .3s linear, visibility .3s linear; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.hero-slide:not(.has-img)::before { background: rgba(0, 0, 0, .25); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.hero-text { color: #e8e9eb; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; }
.hero-btn { padding: 15px 44px; font-size: 16px; }
.hero-btn:hover { background: var(--white); border-color: var(--white); color: var(--dark); }

/* form fields */
label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.qv-row { display: flex; }
.qv-row input { flex: 1; min-width: 0; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.qv-row .btn { border-radius: 0 var(--radius) var(--radius) 0; }
input:not([type=submit]), textarea { width: 100%; padding: 12px 14px; border: 1px solid #c5ced8; border-radius: var(--radius); background: var(--white); font-size: 15px; transition: border-color .3s, box-shadow .3s; }
input::placeholder, textarea::placeholder { color: #8a97a5; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea { resize: vertical; min-height: 120px; }

/* ---------- facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--white); }
.facts-in { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 22px; font-weight: 600; color: var(--dark); line-height: 1.25; margin-bottom: 4px; overflow-wrap: anywhere; }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-foot { margin-top: 28px; }
.lede { font-size: 18px; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; }
.split-text .link { margin-top: 6px; }
.split-media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.split-media:hover img { transform: scale(1.05); }
.pillars { border-top: 1px solid var(--line); }
.pillars > div { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.pillars dt { font-weight: 600; color: var(--dark); font-size: 17px; display: flex; gap: 14px; }
.pillars dt span { color: var(--primary); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 2px; }
.pillars dd { color: var(--body); }

/* ---------- carousel cards ---------- */
.carousel-ctrl { display: flex; gap: 8px; }
.carousel-ctrl button { width: 44px; height: 44px; border: 1px solid #c5ced8; background: var(--white); color: var(--dark); border-radius: 50%; font-size: 13px; transition: var(--t); }
.carousel-ctrl button:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.carousel { overflow: hidden; margin: 0 -12px; }
.track { display: flex; transition: transform .5s ease; }
.card { flex: 0 0 33.3333%; padding: 0 12px; display: flex; flex-direction: column; }
.card-media { display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.1); }
.card-body { flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); position: relative; transition: border-color .5s, box-shadow .5s; }
.card-body::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.card:hover .card-body { box-shadow: 0 16px 32px rgba(16,42,67,.08); }
.card:hover .card-body::before { transform: scaleX(1); }
.card-code { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.card h4 { font-size: 22px; margin-bottom: 4px; }
.card h4 a:hover { color: var(--primary); }
.card-sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.card-body > p:not(.card-code):not(.card-sub) { font-size: 15px; margin-bottom: 20px; }
.card .link { margin-top: auto; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: s; border-top: 2px solid var(--line); }
.steps li { padding: 24px 20px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--primary); transition: width .5s; }
.steps li:hover::before { width: 100%; }
.step-n { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.steps h5 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--body); }

/* ---------- forms & panels ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.sec-light .panel { border-color: var(--white); }
.form .field { margin-bottom: 18px; }
.form h2 { font-size: 24px; margin-bottom: 4px; }
.form .hint { margin-bottom: 24px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.contact-rows li { display: flex; gap: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-rows li:first-child { border-top: 1px solid var(--line); }
.contact-rows i { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); transition: var(--t); background: var(--white); }
.contact-rows li:hover i { background: var(--primary); border-color: var(--primary); color: var(--white); }
.contact-rows small, .contact-rows h5 { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.contact-rows a:hover { color: var(--primary); }
.contact-split { align-items: start; }
.map { width: 100%; height: 400px; border: 0; margin-top: 64px; display: block; }

/* key/value lists */
.kv { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--dark); font-size: 15px; padding-right: 16px; }
.kv dd { color: var(--ink); overflow-wrap: anywhere; }
.stat-panel h4 { margin-bottom: 16px; }

/* ---------- page title bar ---------- */
.page-title.has-img { background-size: cover; background-position: center; border: 0; }
.page-title.has-img h2, .page-title.has-img .crumbs, .page-title.has-img .crumbs a, .page-title.has-img .page-lead { color: var(--white); }
.crumbs { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { text-decoration: underline; }
.page-title h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; }
.page-lead { font-size: 18px; margin-top: 10px; max-width: 760px; }

/* ---------- service detail / prose ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.prose h2 { margin-bottom: 6px; }
.prose .std-code { font-size: 15px; font-weight: 600; color: var(--primary); letter-spacing: .03em; margin-bottom: 24px; }
.prose h3 { font-size: 24px; margin: 40px 0 14px; scroll-margin-top: 24px; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { margin: 36px 0 14px; }
.prose p { margin-bottom: 16px; }
.prose-media { margin: 0 0 32px; overflow: hidden; }
.prose-media img { width: 100%; max-height: 420px; object-fit: cover; transition: transform .7s; }
.prose-media:hover img { transform: scale(1.05); }
.facts-box { margin: 28px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ticks li { position: relative; padding: 0 0 0 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.numbered { counter-reset: n; border-top: 1px solid var(--line); }
.numbered li { counter-increment: n; display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-weight: 600; color: var(--primary); font-size: 14px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.prose .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
.prose .steps li { padding-bottom: 4px; }
.cta-band { background: var(--dark); color: #c3cdd8; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-radius: var(--radius); }
.cta-band h4 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 15px; }
.cta-band .btn-primary:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.side-box { border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.side-box h4 { font-size: 17px; margin-bottom: 14px; }
.side-group { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.side-group:first-of-type { margin-top: 0; }
.side-list a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); font-size: 15px; color: var(--dark); transition: var(--t); }
.side-list a:hover { border-left-color: var(--primary); color: var(--primary); background: var(--light); }
.side-list a.active { border-left-color: var(--primary); color: var(--primary); font-weight: 600; background: var(--light); }
.side-dark { background: var(--dark); border-color: var(--dark); color: #c3cdd8; }
.side-dark h4 { color: var(--white); }
.side-dark p { font-size: 15px; margin-bottom: 8px; }
.side-dark a { color: var(--white); text-decoration: none; }
.side-dark a:hover { color: #c3cdd8; }

/* ---------- tiles / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { background: var(--white); border: 1px solid var(--line); position: relative; transition: box-shadow .5s; }
.sec-light .tile { border-color: var(--white); }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.tile:hover { box-shadow: 0 16px 32px rgba(16,42,67,.08); }
.tile:hover::before { transform: scaleX(1); }
.tile-n { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.tile h4 { margin-bottom: 8px; }
.tile p { font-size: 15px; }
.tile-links { display: flex; flex-direction: column; margin-top: 10px; }
.tile-links a { color: var(--primary); font-size: 15px; }
.empty h4 { margin-bottom: 10px; }

/* ---------- careers ---------- */
.narrow h2 { margin-bottom: 24px; }
.jobs { border-top: 1px solid var(--line); }
.job { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.job-meta { font-size: 14px; color: var(--primary); font-weight: 500; margin: 2px 0 8px; }

/* ---------- verification ---------- */
.verify-wrap { max-width: 760px; }
.verify-result { margin-top: 24px; }
.verify-wrap > .hint { margin-top: 24px; }
.result { border: 1px solid var(--line); border-left: 4px solid; padding: 24px 28px; animation: rise .4s ease; background: var(--white); }
.result.ok { border-left-color: #1a7f4b; }
.result.warn { border-left-color: #b7791f; }
.result.none { border-left-color: #b42318; }
.result-status { font-size: 19px; font-weight: 600; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.result.none .result-status { margin-bottom: 4px; }
.result.ok .result-status i { color: #1a7f4b; }
.result.warn .result-status i { color: #b7791f; }
.result.none .result-status i { color: #b42318; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.footer { color: #a9b7c6; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.3fr; gap: 48px; }
.footer h4 { color: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.f-about .wordmark { margin-bottom: 20px; }
.f-about .logo { margin-bottom: 20px; }
.f-about p { line-height: 1.7; }
.f-about p a { color: var(--white); }
.f-links li { margin-bottom: 10px; }
.f-links a { display: inline-block; position: relative; transition: var(--t); }
.f-links a::before { content: "\203A"; position: absolute; left: -12px; opacity: 0; transition: var(--t); color: var(--white); }
.f-links a:hover { color: var(--white); padding-left: 12px; }
.f-links a:hover::before { left: 0; opacity: 1; }
.f-col > p { margin-bottom: 16px; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 10px; line-height: 1.5; }
.f-contact i { width: 14px; padding-top: 4px; color: #6f849a; font-size: 13px; }
.f-contact a:hover { color: var(--white); }
.newsletter { margin-top: 22px; }
.newsletter label { color: var(--white); font-size: 14px; }
.nl-row { display: flex; }
.nl-row input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--white); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.nl-row input::placeholder { color: #8fa3b7; }
.nl-row input:focus { border-color: rgba(255,255,255,.5); box-shadow: none; }
.nl-row button { border: 0; background: var(--primary); color: var(--white); padding: 0 18px; font-weight: 600; font-size: 14px; border-radius: 0 var(--radius) var(--radius) 0; transition: var(--t); }
.nl-row button:hover { background: var(--white); color: var(--dark); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); font-size: 14px; }
.social a:hover { background: var(--white); color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dark); color: var(--white); padding: 14px 22px; border-left: 4px solid #1a7f4b; opacity: 0; visibility: hidden; transition: var(--t); z-index: 2000; max-width: calc(100% - 32px); font-size: 15px; }
.toast.bad { border-left-color: #b42318; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .utility-left li.u-addr { display: none; }
  .nav > ul > li > a { padding: 0 13px; font-size: 14.5px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .nav-row, .head-contacts { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead { border-bottom: 1px solid var(--line); }
  .masthead-in { min-height: 72px; }
  .fact { padding: 24px 18px; }
  .fact b { font-size: 19px; }
  .split, .with-side { grid-template-columns: 1fr; gap: 48px; }
  .side { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .card { flex-basis: 50%; }
  .sec { padding: 72px 0; }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .utility-left li:not(:first-child) { display: none; }
  .utility-in { font-size: 13px; }
  .wordmark-text { font-size: 18px; }
  .wordmark-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
  .facts-in { grid-template-columns: 1fr; }
  .fact, .fact:first-child { border-left: 0; padding: 18px 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .sec { padding: 56px 0; }
  .sec-head { flex-wrap: wrap; }
  .pillars > div { grid-template-columns: 1fr; gap: 6px; }
  .card { flex-basis: 100%; }
  .steps, .prose .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .grid-4, .grid-3, .two-col, .row-2 { grid-template-columns: 1fr; }
  .two-col { gap: 0; }
  .panel { padding: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .job { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { padding-top: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; }
  .qv-row { flex-direction: column; gap: 10px; }
  .qv-row input { border-right: 1px solid #c5ced8; border-radius: var(--radius); }
  .qv-row .btn { border-radius: var(--radius); }
  .page-title { padding: 36px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- accreditation mark, downloads ---------- */
.accr-logo { display: inline-block; margin-top: 20px; background: var(--white); padding: 8px 12px; border-radius: var(--radius); }
.accr-logo img { max-height: 56px; width: auto; }
.f-contact span { overflow-wrap: anywhere; }
.downloads { border-top: 1px solid var(--line); }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.downloads h4 { margin-bottom: 4px; }
.downloads p { font-size: 15px; }
@media (max-width: 767px) { .downloads li { flex-direction: column; align-items: flex-start; } }

/* ---------- verification result table ---------- */
.result-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.result-name { font-size: 24px; margin-bottom: 18px; }
.vt { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.vt th, .vt td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.vt th { width: 36%; background: var(--light); color: var(--dark); font-weight: 600; border-right: 1px solid var(--line); }
.vt td { color: var(--ink); overflow-wrap: anywhere; }
.vt tr:last-child th, .vt tr:last-child td { border-bottom: 0; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.vbadge.ok { color: #1a7f4b; } .vbadge.warn { color: #b7791f; } .vbadge.bad { color: #b42318; }
.print-btn { background: none; border: 0; padding: 0; margin-top: 16px; cursor: pointer; font-family: inherit; }
@media (max-width: 767px) { .vt th { width: 42%; } .vt th, .vt td { padding: 10px 12px; font-size: 14px; } }
@media print {
  .utility, .masthead, .nav-row, .footer, .page-title, .verify-form, .verify-wrap > .hint, .print-btn, .drawer, .drawer-overlay, .toast { display: none !important; }
  .sec { padding: 0; }
  .result { border: 0; padding: 0; animation: none; }
  body { font-size: 12pt; }
}

/* certification history */
.hist-title { font-size: 17px; margin: 28px 0 12px; }
.hist-wrap { overflow-x: auto; }
.hist { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 14.5px; }
.hist th { text-align: left; background: var(--light); color: var(--dark); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hist td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hist tr:last-child td { border-bottom: 0; }
.hist tr.current td { background: #eef0f2; font-weight: 600; }
.hist a { color: var(--primary); }

/* located-in line with country flag */
.result-name + .located { margin: -10px 0 18px; }
.located { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.located b { color: var(--ink); font-weight: 500; }
.located .flag { width: 24px; height: 18px; object-fit: cover; border: 1px solid rgba(0,0,0,.12); border-radius: 2px; }

/* big status banner (what a QR scan shows first) */
.vstatus { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: -4px 0 22px; border-radius: var(--radius); color: var(--white); }
.vstatus i { font-size: 30px; }
.vstatus b { display: block; font-size: 22px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; }
.vstatus span { display: block; font-size: 15px; opacity: .92; }
.vstatus.ok { background: #1a7f4b; }
.vstatus.warn { background: #b7791f; }
.vstatus.bad { background: #b42318; }
.verify-result.from-link { margin: 0 0 24px; }
@media (max-width: 767px) { .vstatus b { font-size: 19px; } .vstatus i { font-size: 26px; } }
@media print { .vstatus { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* solid status labels (verification table + history) */
.vt .vbadge, .hist .vbadge { color: #fff; padding: 3px 10px; border-radius: 2px; font-size: 14px; gap: 6px; }
.hist .vbadge { font-size: 12.5px; padding: 2px 8px; min-width: 64px; justify-content: center; }
.vt .vbadge.ok, .hist .vbadge.ok { background: #1a7f4b; }
.vt .vbadge.warn, .hist .vbadge.warn { background: #9a5b00; }
.vt .vbadge.bad, .hist .vbadge.bad { background: #b42318; }

/* =====================================================================
   DARK THEME — charcoal header, title strips, alternate sections, footer.
   Shades are derived from the "dark" colour set in the admin.
   ===================================================================== */
:root { --dark-0: color-mix(in srgb, var(--dark) 70%, #000); --dark-2: color-mix(in srgb, var(--dark) 90%, #fff); }
.utility { background: var(--dark-0); }
.masthead { background: var(--dark); border-bottom-color: rgba(255,255,255,.08); }
.masthead .wordmark-text { color: var(--white); }
.hc { color: var(--white); }
.hc small { color: #9aa3ae; }
.hc i { border-color: rgba(255,255,255,.2); color: var(--white); }
.hc:hover { color: var(--white); }
.hc:hover i { background: var(--primary); border-color: var(--primary); color: var(--white); }
.menu-toggle { background: transparent; border-color: rgba(255,255,255,.25); }
.menu-toggle span { background: var(--white); }
.nav-row { background: var(--dark-2); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
.nav > ul > li > a { color: #e9ebee; }
.nav > ul > li:hover > a, .nav > ul > li.focus > a { background: var(--dark-0); color: var(--white); }
.nav > ul > li > a.active { background: var(--primary); color: var(--white); }
.page-title { background: var(--dark); border-bottom: 0; }
.page-title h2 { color: var(--white); }
.page-lead { color: #b9c0c9; }
.crumbs { color: #9aa3ae; }
.crumbs a { color: var(--white); }
.sec-light { background: var(--dark); color: #c3c9d1; }
.sec-light .sec-head h2, .sec-light .split-text h2 { color: var(--white); }
.sec-light .split-text .lede, .sec-light .split-text p { color: #d5dae0; }
.sec-light .contact-rows li { color: var(--white); border-color: rgba(255,255,255,.12); }
.sec-light .contact-rows small { color: #9aa3ae; }
.sec-light .contact-rows i { background: transparent; border-color: rgba(255,255,255,.2); color: var(--white); }
.sec-light .contact-rows a:hover { color: var(--white); text-decoration: underline; }
.sec-light .sec-foot .link, .sec-light .split-text .link { color: var(--white); }
.sec-light .carousel-ctrl button { border-color: rgba(255,255,255,.25); background: transparent; color: var(--white); }
.sec-light .carousel-ctrl button:hover { background: var(--primary); border-color: var(--primary); }
.footer { background: var(--dark-0); }
/* white cards/forms inside dark sections keep normal dark text */
.sec-light .card-body, .sec-light .panel, .sec-light .tile { color: var(--body); }

/* service cards: large line-icon watermark per service (zooms on hover like the original cards) */
.card-body { overflow: hidden; }
.card-body > *:not(.card-wm) { position: relative; z-index: 1; }
.card-wm { position: absolute; right: -14px; bottom: -18px; font-size: 150px; line-height: 1; color: var(--dark); opacity: .06; transform: rotate(-10deg); transition: transform .7s, opacity .7s, color .7s; pointer-events: none; z-index: 0; }
.card:hover .card-wm { transform: rotate(-10deg) scale(1.1); color: var(--primary); opacity: .1; }

/* page scrollbar: red thumb on dark track (as the original site) */
html { scrollbar-color: var(--primary) var(--dark); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--primary) 82%, #000); }

/* phone menu: keep the logo clear of the close button */
.drawer-head { gap: 16px; }
.drawer-head .logo { max-height: 44px; max-width: calc(100% - 60px); object-fit: contain; object-position: left center; }

/* tighter spacing (matches the original site's 70px section spacing) */
.sec { padding: 70px 0; }
.sec-head { margin-bottom: 28px; }
.split { gap: 56px; }
.card-body { padding: 24px; }
.panel { padding: 28px; }
.tile { padding: 24px; }
.page-title { padding: 40px 0 36px; }
.footer-grid { padding: 56px 0 44px; }
.pillars > div { padding: 16px 0; }
.contact-rows li { padding: 14px 0; }
.cta-band { margin-top: 36px; padding: 26px 28px; }
@media (max-width: 1023px) { .sec { padding: 56px 0; } .split { gap: 40px; } }
@media (max-width: 767px) { .sec { padding: 44px 0; } .page-title { padding: 30px 0 26px; } .footer-grid { padding: 44px 0 32px; } }

/* banner: text on the left, DBC seal on the right */
.hero-slide { justify-content: flex-start; text-align: left; }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: min(640px, 56%); margin: 0; text-shadow: none; }
.hero-code { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.hero-code::before { content: ""; width: 32px; height: 2px; background: var(--primary); }
.hero-slide.active .hero-content > * { animation: hero-rise .6s ease-out both; }
.hero-slide.active .hero-content > :nth-child(2) { animation-delay: .06s; }
.hero-slide.active .hero-content > :nth-child(3) { animation-delay: .12s; }
.hero-slide.active .hero-content > :nth-child(4) { animation-delay: .18s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-text { margin: 20px 0 30px; max-width: 600px; }
@media (max-width: 767px) { .hero-content { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.active .hero-content > * { animation: none; } }

/* banner photos: framed on the right of each slide (fade with the slide) */
.hero-photo { position: absolute; z-index: 1; top: 50%; right: max(24px, calc((100% - 1240px) / 2 + 24px)); transform: translateY(-50%); margin: 0; }
.hero-photo::before { content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 2px solid var(--primary); }
.hero-photo-img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,17,20,0) 55%, rgba(16,17,20,.35)); }
.hero-slide.active .hero-photo-img { animation: photo-in .9s ease-out both; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .hero-photo { width: 36vw; } }
@media (max-width: 767px) {
  .hero-photo { top: 0; right: 0; bottom: 0; left: 0; width: auto; transform: none; aspect-ratio: auto; }
  .hero-photo::before { display: none; }
  .hero-photo::after { background: rgba(16,17,20,.72); }
  .hero-photo-img { box-shadow: none; }
}
/* service cards with a photo: hide the icon watermark */
.card-media + .card-body .card-wm { display: none; }
.card-media { height: 200px; }

/* soft, rounded photo edges everywhere (one consistent radius) */
:root { --photo-r: 14px; }
.hero-photo::before, .hero-photo-img, .hero-photo::after { border-radius: var(--photo-r); }
.hero-photo::before { border-width: 2px; opacity: .9; }
.card { border-radius: var(--photo-r); }
.card-media { border-radius: var(--photo-r) var(--photo-r) 0 0; }
.card-media + .card-body { border-radius: 0 0 var(--photo-r) var(--photo-r); border-top: 0; }
.card-body::before { border-radius: var(--photo-r) var(--photo-r) 0 0; }
.card-media + .card-body::before { display: none; }
.card .card-media img { border-radius: 0; }
.split-media, .split-media img, .prose-media, .prose-media img { border-radius: var(--photo-r); }
.prose-media, .split-media { overflow: hidden; box-shadow: 0 14px 34px rgba(16,17,20,.14); }

/* banner photo always fits inside the banner (sized by height on short screens) */
.hero-photo { width: auto; height: min(552px, calc(100% - 120px), calc(min(460px, 34vw) * 1.2)); aspect-ratio: 5 / 6; }
@media (max-width: 1023px) { .hero-photo { height: min(calc(36vw * 1.2), calc(100% - 120px)); } }
@media (max-width: 767px) { .hero-photo { height: auto; } }

/* hover + selected = red everywhere */
.nav > ul > li:hover > a, .nav > ul > li.focus > a, .nav > ul > li > a.active { background: var(--primary); color: var(--white); }
.nav .sub.small a:hover, .mega-col a:hover { background: var(--primary); color: var(--white); border-left-color: var(--primary); }
.mega-col a:hover b, .mega-col a:hover span { color: var(--white); }
.side-list a:hover, .side-list a.active { background: var(--primary); color: var(--white); border-left-color: var(--primary); }
.drawer-links a:hover, .drawer-links ul a:hover { background: var(--primary); color: var(--white); }
.drawer-links a:hover .caret { color: var(--white); }
