/* ==========================================================================
   SWME — site theme (Bootstrap 5.3 overrides + components)
   ========================================================================== */
:root {
    --brand: #302E66;
    --brand-600: #26244f;
    --brand-800: #16152f;
    --brand-50: #f1f1f8;
    --brand-100: #e3e2f1;
    --accent: #F5A524;
    --accent-600: #de8d0b;
    --ink: #14142b;
    --muted: #5d6078;
    --line: #e7e7f0;
    --soft: #f6f6fb;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(20, 20, 43, .06), 0 2px 8px rgba(20, 20, 43, .04);
    --shadow: 0 10px 30px -12px rgba(48, 46, 102, .25);
    --shadow-lg: 0 30px 60px -20px rgba(48, 46, 102, .35);
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h: 76px;

    --bs-primary: var(--brand);
    --bs-primary-rgb: 48, 46, 102;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 48, 46, 102;
    --bs-link-hover-color: var(--accent-600);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--font-body);
    --bs-border-color: var(--line);
}

/* Stop sideways scrolling on phones. "clip" keeps the sticky header working; older Safari/Chrome don't know it, so they get "hidden" on body only. */
body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* Wide Bootstrap gutters are wider than the phone page margin and pushed the page 12px sideways */
@media (max-width: 575.98px) { .container > .row.g-5, .container > .row.gx-5 { --bs-gutter-x: 1.5rem; } }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); color: var(--ink); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
a { text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--brand-800); }
.skip-link { position: absolute; z-index: 2000; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.text-primary { color: var(--brand) !important; }
.bg-soft { background: var(--soft); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 999px; padding: .65rem 1.35rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: all .2s ease; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-800); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand-100); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }
.btn-accent { background: var(--accent); color: var(--brand-800); border: 0; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); color: var(--brand-800); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(245, 165, 36, .8); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: #fff; color: var(--brand); }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; color: var(--ink); background: var(--soft); }
.btn-icon:hover { background: var(--brand-50); color: var(--brand); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; color: var(--brand); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--brand-800); color: rgba(255, 255, 255, .75); font-size: .82rem; padding: .5rem 0; }
.topbar a { color: rgba(255, 255, 255, .8); }
.topbar a:hover { color: var(--accent); }
.topbar i { margin-right: .3rem; }

.site-header { position: sticky; top: 0; z-index: 1030; isolation: isolate; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(20, 20, 43, .18); border-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.navbar-brand img { height: 44px; width: auto; }
.offcanvas-header img { height: 36px; width: auto; }
.navbar-toggler { border: 0; padding: .6rem; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.navbar-nav .nav-link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .85rem !important; border-radius: 999px; display: flex; align-items: center; gap: .3rem; }
.navbar-nav .nav-link .caret { font-size: .7rem; transition: transform .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand); }
.navbar-nav .nav-link.active { background: var(--brand-50); }
.sub-menu { list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: var(--radius-sm); }
.sub-menu a { display: block; padding: .55rem .9rem; border-radius: 8px; color: var(--ink); font-size: .93rem; font-weight: 500; }
.sub-menu a:hover, .sub-menu a.active { background: var(--brand-50); color: var(--brand); }

@media (min-width: 992px) {
    .navbar-nav .nav-item { position: relative; }
    .navbar-nav .nav-item.is-mega { position: static; }
    .navbar-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; }
    .navbar-nav .has-sub.open > .sub-menu, .navbar-nav .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .navbar-nav .has-sub.open > .nav-link .caret { transform: rotate(180deg); }
    .no-js .navbar-nav .has-sub:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .navbar-nav .has-sub.open::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
    /* Last dropdown (Contact) opens to the left so it stays on screen on small laptops */
    .navbar-nav > .nav-item:last-child > .sub-menu:not(.mega-menu) { left: auto; right: 0; }
    .mega-menu { left: 0 !important; right: 0; width: 100%; border-radius: 0 0 var(--radius) var(--radius) !important; padding: 1.75rem 0 !important; border-top: 1px solid var(--line) !important; }
}
.mega-head { display: flex; align-items: center; gap: .75rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 0 0 .75rem !important; border-bottom: 1px solid var(--line); margin-bottom: .5rem; background: none !important; }
.mega-head img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mega-head:hover { color: var(--brand); }
.mega-list { list-style: none; padding: 0; margin: 0; }
.mega-list a { padding: .35rem 0 !important; font-size: .9rem; color: var(--muted) !important; background: none !important; }
.mega-list a:hover { color: var(--brand) !important; padding-left: .3rem !important; }
.mega-list .more { color: var(--brand) !important; font-weight: 600; }
.mega-extra { display: inline-flex !important; gap: .4rem; margin: 1.25rem .5rem 0 0; padding: .45rem .9rem !important; border-radius: 999px !important; background: var(--soft) !important; font-size: .85rem !important; }

@media (max-width: 991.98px) {
    .offcanvas-lg { max-width: 360px; }
    .navbar-nav .nav-item { position: relative; border-bottom: 1px solid var(--line); }
    .navbar-nav .nav-link { padding: .85rem 0 !important; border-radius: 0; background: none !important; }
    .sub-toggle { position: absolute; right: 0; top: .4rem; width: 40px; height: 40px; border: 0; background: var(--soft); border-radius: 10px; transition: transform .2s; }
    .nav-item.open > .sub-toggle { transform: rotate(180deg); }
    .navbar-nav .sub-menu { display: none; padding: 0 0 .75rem .5rem; }
    .nav-item.open > .sub-menu { display: block; }
    .mega-menu .container { padding: 0; }
    .mega-menu .row { --bs-gutter-y: .5rem; }
    .mega-head img, .mega-list { display: none; }
    .mega-head { border: 0; padding: .4rem 0 !important; margin: 0; font-weight: 600; font-size: .93rem; }
}

/* ---------- Search modal ---------- */
.search-modal { border: 0; border-radius: var(--radius); overflow: hidden; }
.search-modal form i { font-size: 1.3rem; color: var(--muted); padding-left: 1.5rem; }
.search-modal input { border: 0; box-shadow: none !important; padding: 1.5rem 1rem; font-size: 1.2rem; }
.search-big { position: relative; display: flex; gap: .5rem; }
.search-big i { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-big input { padding-left: 3rem; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-800); color: #fff; overflow: hidden; }
.hero .carousel-item { min-height: min(84vh, 760px); position: relative; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease; }
.carousel-item.active .hero-bg { transform: scale(1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 21, 47, .92) 0%, rgba(38, 36, 79, .72) 45%, rgba(38, 36, 79, .15) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: min(84vh, 760px); padding-top: 4rem; padding-bottom: 9rem; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 800; max-width: 14ch; letter-spacing: -.035em; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 560px; color: rgba(255, 255, 255, .8); margin-top: 1.25rem; }
.carousel-item.active .hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 5.5rem; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.hero .carousel-indicators { position: static; margin: 0; justify-content: flex-start; gap: .75rem; }
.hero .carousel-indicators [data-bs-target] { width: auto; height: auto; text-indent: 0; background: none; border: 0; opacity: 1; margin: 0; padding: .5rem 0; color: rgba(255, 255, 255, .5); font-family: var(--font-head); font-size: .8rem; font-weight: 600; }
.hero .carousel-indicators [data-bs-target] span { display: block; padding-top: .5rem; border-top: 2px solid rgba(255, 255, 255, .3); width: 64px; text-align: left; }
.hero .carousel-indicators .active { color: #fff; }
.hero .carousel-indicators .active span { border-color: var(--accent); }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; transition: all .2s; }
.hero-arrow:hover { background: #fff; color: var(--brand); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--accent); }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -4rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-head { margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 22ch; margin: 0; }
.section-head.text-center h2 { margin: 0 auto; }

.feature-cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 440px; color: #fff; isolation: isolate; }
.feature-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; z-index: -2; }
.feature-cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 21, 47, .05) 20%, rgba(22, 21, 47, .92) 100%); transition: background .4s; }
.feature-cat:hover img { transform: scale(1.07); }
.feature-cat:hover::before { background: linear-gradient(180deg, rgba(48, 46, 102, .35) 0%, rgba(22, 21, 47, .95) 100%); }
.fc-body { position: absolute; inset: auto 0 0 0; padding: 1.75rem; }
.fc-num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--accent); }
.fc-body h3 { color: #fff; font-size: 1.45rem; margin: .35rem 0 .5rem; }
.fc-body p { color: rgba(255, 255, 255, .75); font-size: .92rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: all .4s ease; }
.feature-cat:hover .fc-body p { max-height: 120px; opacity: 1; margin-bottom: .75rem; }
.fc-link { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; gap: .35rem; margin-top: .5rem; }
@media (hover: none) { .fc-body p { max-height: none; opacity: 1; margin-bottom: .75rem; } }

.about-media { position: relative; border-radius: var(--radius); }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; right: -1rem; bottom: -1.5rem; background: var(--accent); color: var(--brand-800); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); max-width: 220px; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.about-badge span { font-size: .85rem; font-weight: 500; }
@media (max-width: 575.98px) { .about-badge { right: .75rem; } }

.feature { height: 100%; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all .3s ease; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); color: var(--brand); margin-bottom: 1.25rem; transition: all .3s; }
.feature:hover .feature-icon { background: var(--brand); color: var(--accent); }
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

.logo-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 45s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { flex: 0 0 auto; width: 190px; height: 96px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; padding: 1rem 1.5rem; }
.logo-item img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .3s; }
.logo-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - .625rem)); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: var(--brand-800) var(--hero-img) center/cover no-repeat; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(22, 21, 47, .95) 0%, rgba(48, 46, 102, .82) 55%, rgba(48, 46, 102, .55) 100%); }
.page-hero::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(245, 165, 36, .12); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; margin: .5rem 0 0; max-width: 20ch; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 1rem 0 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4); --bs-breadcrumb-item-active-color: var(--accent); font-size: .88rem; margin: 0; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Prose (CMS content) ---------- */
.prose { color: #33354d; font-size: 1.03rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.25rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose h4, .prose h5 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose img { border-radius: var(--radius-sm); margin: .5rem 0; height: auto; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent-600); border-bottom: 2px solid var(--accent-600); transform: rotate(-45deg); }
.prose ol li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--brand-100); text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--soft); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .65rem .9rem; }
.prose th { background: var(--soft); font-family: var(--font-head); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
.lead-prose { font-size: 1.12rem; }

/* ---------- Side nav ---------- */
.side-nav { top: calc(var(--header-h) + 1.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; z-index: 1; }
.side-nav h6 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .75rem .5rem; }
.side-nav h6 a { color: var(--muted); }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav li a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 10px; color: var(--ink); font-size: .93rem; font-weight: 500; }
.side-nav li a i { font-size: .7rem; opacity: 0; transition: all .2s; }
.side-nav li a:hover { background: var(--soft); color: var(--brand); }
.side-nav li a:hover i { opacity: .6; }
.side-nav li a.active { background: var(--brand); color: #fff; }
.side-nav li a.active i { opacity: 1; }

/* ---------- Category card ---------- */
.cat-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: all .3s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.cat-img { aspect-ratio: 4/3; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-img i { font-size: 2.5rem; color: var(--brand-100); }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.cat-body p { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.cat-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.cat-meta i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); transition: all .3s; }
.cat-card:hover .cat-meta i { background: var(--accent); color: var(--brand-800); transform: rotate(-45deg); }

/* ---------- Product listing ---------- */
.product-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.product-toolbar > span { color: var(--muted); }
.toolbar-search { position: relative; min-width: min(320px, 100%); }
.toolbar-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar-search input { padding-left: 2.6rem; border-radius: 999px; background: var(--soft); border-color: transparent; }
.toolbar-search input:focus { background: #fff; }
.gate-note { display: flex; gap: .6rem; align-items: center; padding: .75rem 1rem; border-radius: var(--radius-sm); background: #fff8eb; color: #8a5a00; font-size: .9rem; margin-bottom: 1.5rem; border: 1px solid #fde7bd; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.pc-img { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--soft) 75%); display: grid; place-items: center; padding: 1.5rem; }
.pc-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s ease; }
.pc-img i { font-size: 2.5rem; color: var(--brand-100); }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-body { padding: 1rem 1.15rem .5rem; flex: 1; }
.pc-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.pc-body p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.5; }
.pc-foot { display: flex; gap: .5rem; padding: .85rem 1.15rem 1.15rem; }
.btn-ds { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .88rem; line-height: 1.2; transition: all .2s; }
.btn-ds i { font-size: 1.15rem; }
.btn-ds small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; opacity: .7; }
.btn-ds:hover { background: var(--brand); color: #fff; }
.btn-enquire { display: grid; place-items: center; flex: 0 0 42px; padding: 0; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-size: .85rem; font-weight: 500; }
.btn-enquire:hover { border-color: var(--accent); color: var(--brand); background: #fff8eb; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--brand-100); display: block; margin-bottom: 1rem; }

/* ---------- Datasheet modal ---------- */
.ds-modal { border: 0; border-radius: 24px; padding: 2.25rem; box-shadow: var(--shadow-lg); }
.ds-modal h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.ds-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-50); color: var(--brand); margin-bottom: 1.25rem; }
.ds-icon.success { background: #e8f8ef; color: #16a34a; margin: 0 auto 1.25rem; border-radius: 50%; }
.ds-product { display: inline-flex; gap: .5rem; align-items: center; font-size: .88rem; font-weight: 600; background: var(--soft); border-radius: 999px; padding: .35rem .9rem; margin: .5rem 0 1.25rem; }
.ds-product:empty, .ds-product span:empty { display: none; }
.ds-modal .form-control { border-radius: 12px; }

/* ---------- Principals ---------- */
.principal-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: all .3s; }
.principal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.pr-logo { height: 90px; display: flex; align-items: center; margin-bottom: 1.25rem; }
.pr-logo img { max-height: 80px; max-width: 200px; object-fit: contain; }
.pr-logo span { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--brand); }
.principal-card h3 { font-size: 1.1rem; }
.principal-card p { color: var(--muted); font-size: .93rem; flex: 1; }

/* ---------- Contact ---------- */
.office-card { height: 100%; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.office-card.primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-800) 100%); color: rgba(255, 255, 255, .85); border: 0; padding: 2.25rem; }
.office-card.primary h3 { color: #fff; font-size: 1.6rem; }
.office-card.primary a { color: #fff; }
.office-card.primary .contact-list i { background: rgba(255, 255, 255, .1); color: var(--accent); }
.office-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.office-region { font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent-600); }
.office-card.primary .office-region { color: var(--accent); }
.map-embed { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; background: rgba(255, 255, 255, .08); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .75rem; margin-bottom: .8rem; font-size: .93rem; align-items: flex-start; }
.contact-list i { flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: .9rem; }
.contact-list span, .contact-list a { padding-top: .3rem; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.info-card { background: var(--soft); border-radius: var(--radius); padding: 2rem; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.form-floating > .form-control { border-radius: 12px; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(48, 46, 102, .12); }

/* ---------- CTA & footer ---------- */
.cta-band { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.cta-inner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-800) 100%); color: #fff; }
.cta-inner::after { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(245, 165, 36, .15); }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.cta-inner p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 560px; }
.cta-inner > * { position: relative; z-index: 1; }

.site-footer { background: var(--brand-800); color: rgba(255, 255, 255, .65); padding: 4.5rem 0 0; font-size: .93rem; }
.footer-logo { filter: brightness(0) invert(1); height: 48px; width: auto; }
.site-footer h6 { color: #fff; font-size: .95rem; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--accent); }
.site-footer .contact-list i { background: rgba(255, 255, 255, .06); color: var(--accent); }
.social { display: flex; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: all .2s; }
.social a:hover { background: var(--accent); color: var(--brand-800); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--brand-800); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-bg { transition: none; } }

.search-pages .list-group-item { padding: 1rem 1.25rem; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .hero-arrow { display: none; }
    .hero-content { padding-bottom: 8rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .pc-img { padding: 1rem; }
    .pc-body { padding: .75rem .85rem .25rem; }
    .pc-foot { padding: .6rem .85rem .85rem; }
    .btn-ds small { display: none; }
    .btn-enquire { display: none; }
}
@media (max-width: 991.98px) {
    .side-nav { position: static; padding: .75rem; }
    .side-nav h6 { display: none; }
    .side-nav ul { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .side-nav ul::-webkit-scrollbar { display: none; }
    .side-nav li a { white-space: nowrap; background: var(--soft); border-radius: 999px; padding: .45rem .9rem; }
    .side-nav li a i { display: none; }
}

/* Dropdown overview link: only for touch screens and the mobile menu (desktop users click the top item) */
.sub-overview a { font-weight: 600; color: var(--brand) !important; display: flex !important; justify-content: space-between; align-items: center; }
.sub-overview { border-bottom: 1px solid var(--line); margin-bottom: .25rem; padding-bottom: .25rem; }
@media (hover: hover) and (min-width: 992px) { .sub-overview { display: none; } }

/* ---------- News & media ---------- */
.btn-reset { background: none; border: 0; padding: 0; }
.media-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.media-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.media-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--brand-800); overflow: hidden; cursor: pointer; }
.is-video .media-thumb { aspect-ratio: 16 / 9; }
.is-poster .media-thumb { aspect-ratio: 1.9 / 1; background: var(--soft); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.is-video .media-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 21, 47, .05) 40%, rgba(22, 21, 47, .55)); }
.media-thumb .play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--brand-800); font-size: 2.2rem; box-shadow: 0 0 0 10px rgba(245, 165, 36, .25); transition: transform .3s, box-shadow .3s; }
.media-thumb .play i { margin-left: 4px; }
.media-card:hover .play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(245, 165, 36, .2); }
.media-thumb .zoom { position: absolute; right: .9rem; top: .9rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brand); opacity: 0; transform: scale(.8); transition: all .25s; }
.media-card:hover .zoom, .media-thumb:focus-visible .zoom { opacity: 1; transform: none; }
.media-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.media-body h3 { font-size: 1.2rem; margin: .6rem 0 .4rem; }
.media-body p { color: var(--muted); font-size: .93rem; margin-bottom: .9rem; }
.media-body .link-arrow { margin-top: auto; align-self: flex-start; }
.media-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .82rem; color: var(--muted); }
.media-meta i { margin-right: .2rem; }
.media-badge { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .65rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; background: var(--brand-50); color: var(--brand); }
.media-badge.video { background: #fdecec; color: #c4302b; }
.media-badge.event { background: #fff4df; color: #9a5b00; }
.media-badge.upcoming { background: var(--accent); color: var(--brand-800); }
.media-modal { background: #0d0c1f; border: 0; border-radius: 18px; overflow: hidden; }
.media-stage { background: #000; }
.media-stage .ratio iframe { border: 0; }
.media-stage img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }

/* Verification code step */
.code-input { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: .6em; text-align: center; padding: .7rem .5rem .7rem 1.1rem; border-radius: 14px; }
.code-input::placeholder { color: var(--brand-100); letter-spacing: .5em; }
.btn-link-inline { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn-link-inline:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-bar { position: sticky; top: var(--header-h); z-index: 1010; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.blog-bar .container { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.blog-cats { display: flex; gap: .4rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: .6rem 0; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); background: var(--soft); border: 1px solid transparent; }
.blog-cats a span { font-size: .72rem; min-width: 1.4rem; padding: .05rem .4rem; border-radius: 999px; background: #fff; color: var(--muted); text-align: center; }
.blog-cats a:hover { border-color: var(--brand-100); color: var(--brand); }
.blog-cats a.active { background: var(--brand); color: #fff; }
.blog-cats a.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.blog-search { position: relative; flex: 0 0 260px; }
.blog-search i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: .55rem 1rem .55rem 2.4rem; font-size: .92rem; outline: none; transition: all .2s; }
.blog-search input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(48, 46, 102, .1); }
@media (max-width: 767.98px) {
    .blog-bar { position: static; }
    .blog-bar .container { flex-direction: column-reverse; align-items: stretch; gap: 0; padding-top: .75rem; }
    .blog-search { flex-basis: auto; }
}
.blog-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.blog-result-note { color: var(--muted); margin-bottom: 1.75rem; }

.post-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 575.98px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-ph { display: grid; place-items: center; height: 100%; font-size: 2.5rem; color: var(--brand-100); background: linear-gradient(135deg, var(--brand-50), #fff); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.5rem 1.5rem; }
.post-card h3 { font-size: 1.14rem; line-height: 1.35; margin: .75rem 0 .55rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; } /* whole card is clickable */
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .93rem; margin-bottom: 1.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { font-size: .9rem; align-self: flex-start; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-size: .8rem; color: var(--muted); }
.post-meta > span + span::before { content: '·'; margin-right: .75rem; opacity: .6; }
.post-cat { position: relative; z-index: 1; display: inline-flex; padding: .2rem .65rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.post-cat:hover { background: var(--brand); color: #fff; }
.post-flag { position: absolute; left: 1rem; top: 1rem; display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: var(--accent); color: var(--brand-800); font-family: var(--font-head); font-weight: 700; font-size: .75rem; }

@media (min-width: 992px) {
    .post-card-lg { display: grid; grid-template-columns: 1.15fr 1fr; }
    .post-card-lg .post-card-img { aspect-ratio: auto; min-height: 380px; }
    .post-card-lg .post-card-body { padding: 2.5rem 2.75rem; justify-content: center; }
    .post-card-lg h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.025em; margin: 1rem 0 .9rem; -webkit-line-clamp: 4; }
    .post-card-lg p { font-size: 1rem; -webkit-line-clamp: 4; margin-bottom: 1.5rem; }
}

.blog-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.blog-pager .btn-icon { font-family: var(--font-head); font-weight: 600; }
.blog-pager .btn-icon.active { background: var(--brand); color: #fff; }
.blog-pager .btn-icon.disabled { opacity: .4; pointer-events: none; }
.home-blog .post-card { box-shadow: var(--shadow-sm); }

/* ---------- Article ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1040; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-600)); }

.post-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); background: radial-gradient(1200px 400px at 85% -10%, rgba(245, 165, 36, .16), transparent 60%), linear-gradient(120deg, var(--brand-800) 0%, var(--brand) 100%); }
.post-hero::after { content: ''; position: absolute; right: -140px; bottom: -200px; width: 460px; height: 460px; border-radius: 50%; border: 64px solid rgba(255, 255, 255, .04); z-index: -1; }
.post-hero.has-cover { padding-bottom: clamp(7rem, 12vw, 10rem); }
.post-hero-inner { max-width: 860px; }
.post-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4); font-size: .88rem; margin-bottom: 1.5rem; }
.post-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.post-hero .breadcrumb a:hover { color: var(--accent); }
.post-hero h1 { color: #fff; font-size: clamp(1.85rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; margin: 0 0 1.75rem; }
.post-byline { display: flex; align-items: center; gap: .85rem; }
.post-byline .avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--brand-800); font-size: 1.1rem; }
.post-byline strong { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; }
.post-byline span { color: rgba(255, 255, 255, .7); font-size: .88rem; }

.post-cover { position: relative; z-index: 2; margin: clamp(-8.5rem, -10vw, -5.5rem) 0 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft); aspect-ratio: 1200 / 560; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) { .post-cover { border-radius: 16px; aspect-ratio: 16 / 10; } }
.post-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.post-body { font-size: 1.07rem; line-height: 1.8; color: #34364e; overflow-wrap: break-word; }
.post-body > p:first-child { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }
.post-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 2.75rem 0 1rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.post-body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.post-body strong { color: var(--ink); }
.post-body a:not(.btn) { color: var(--brand); text-decoration-color: rgba(48, 46, 102, .3); text-decoration-thickness: 1.5px; }
.post-body a:not(.btn):hover { color: var(--accent-600); text-decoration-color: currentColor; }
.post-body figure { margin: 2.25rem 0; text-align: center; }
.post-body figure img, .post-body > p > img { border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.post-body figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.post-body ol { padding-left: 1.3rem; }
.post-body ol li::marker { color: var(--brand); font-family: var(--font-head); font-weight: 700; }
.post-body hr { margin: 2.5rem 0; border-color: var(--line); opacity: 1; }
.post-body .post-btn { margin: 1.75rem 0; }
.post-body .post-btn a { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.35rem; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s; }
.post-body .post-btn a::before { content: '\F30A'; font-family: 'bootstrap-icons'; font-weight: 400; }
.post-body .post-btn a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-body .video-embed { position: relative; margin: 2.25rem 0; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.post-body .table-scroll { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.post-body .table-scroll table { margin: 0; min-width: 520px; }
.post-body .table-scroll th, .post-body .table-scroll td { border-width: 0 0 1px; }
.post-body .table-scroll tr:last-child td { border-bottom: 0; }
.post-body tbody tr:nth-child(even) td { background: #fafafd; }
.post-body blockquote p:last-child { margin: 0; }
/* Imported articles: neutralise site rules that share a class name with their components */
.post-legacy .stat { border-right: 0; padding: 0; }
.post-legacy .reason-header { cursor: pointer; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.5rem; color: var(--muted); }
.post-tags a { padding: .3rem .8rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .82rem; }
.post-tags a:hover { background: var(--brand-50); color: var(--brand); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-share > span { font-family: var(--font-head); font-weight: 700; }
.post-share div { display: flex; gap: .45rem; }
.post-share a, .post-share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .2s; }
.post-share a:hover, .post-share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.post-share button.copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: all .2s; }
.post-nav a:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.post-nav a span { font-size: .8rem; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.post-nav a strong { font-family: var(--font-head); font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

.post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.toc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.25rem 1.1rem; max-height: calc(100vh - var(--header-h) - 22rem); min-height: 180px; overflow-y: auto; scrollbar-width: thin; }
.toc-card h6 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.toc-card ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc-card li { counter-increment: toc; }
.toc-card a { position: relative; display: flex; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.toc-card a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-head); font-weight: 700; font-size: .75rem; padding-top: .1rem; color: var(--brand-100); }
.toc-card a:hover { color: var(--brand); background: var(--soft); }
.toc-card a.active { color: var(--brand); background: var(--brand-50); font-weight: 600; }
.toc-card a.active::before { color: var(--accent-600); }
.post-cta-card { position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--radius); background: linear-gradient(140deg, var(--brand) 0%, var(--brand-800) 100%); color: rgba(255, 255, 255, .78); }
.post-cta-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(245, 165, 36, .14); }
.post-cta-card > * { position: relative; z-index: 1; }
.post-cta-card h5 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.post-cta-card p { font-size: .92rem; margin-bottom: 1.25rem; }
.post-cta-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--accent); font-size: 1.35rem; margin-bottom: 1rem; }
.btn-whatsapp { background: #25d366; color: #fff; border: 0; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5b; color: #fff; transform: translateY(-1px); }
@media (max-width: 991.98px) { .post-aside { position: static; } .toc-card { display: none; } }

.post-inquiry h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.post-contact { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .75rem; }
.post-contact li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.post-contact i { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.post-contact a { color: var(--ink); }
.post-contact a:hover { color: var(--brand); }
.post-legacy .bad li::before { content: '\00D7'; border: 0; transform: none; width: auto; height: auto; top: -.05em; color: #c2410c; font-weight: 700; font-size: 1.15em; line-height: 1.4; }

/* Blog filter bar: categories wrap onto more lines instead of being cut off (desktop); swipe row on phones */
@media (min-width: 768px) {
    .blog-bar .container { align-items: flex-start; padding-top: .75rem; padding-bottom: .75rem; }
    .blog-cats { flex-wrap: wrap; overflow: visible; padding: 0; gap: .5rem; }
    .blog-search { flex: 0 0 240px; }
}

/* Article lists: centre the tick / cross on the first text line whatever the font size, and keep the same indent in imported layouts */
#postBody ul { margin-left: 0; padding-left: 0; list-style: none; }
#postBody ul > li { position: relative; padding-left: 1.75rem; }
#postBody ul > li::before { top: .55em; top: calc(.5lh - 6px); left: 1px; }
#postBody .bad li::before { top: 0; line-height: inherit; font-size: 1.1em; left: 2px; }
/* “Card” lists in imported articles (ul.app-list): tick inside the card, level with the first line */
#postBody ul.app-list > li { padding: .7rem 1.1rem .7rem 2.9rem; margin: .5rem 0; }
#postBody ul.app-list > li::before { left: 1.15rem; top: calc(.7rem + .5lh - 6px); }

/* ==========================================================================
   Services
   ========================================================================== */
.svc-intro-title { font-size: clamp(1.6rem, 3vw, 2.35rem); max-width: 24ch; margin-bottom: 1.25rem; }
.svc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-stats > div { background: #fff; padding: 1.6rem 1.4rem; }
.svc-stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.svc-stats span { color: var(--muted); font-size: .9rem; }

/* Overview: alternating feature rows */
.svc-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.svc-row.is-reverse .svc-row-media { order: 2; }
.svc-row-media { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-800); box-shadow: var(--shadow-lg); }
.svc-row-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(22, 21, 47, .55)); }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.svc-row:hover .svc-row-media img { transform: scale(1.04); }
.svc-row-ph { display: grid; place-items: center; height: 100%; font-size: 4rem; color: rgba(255, 255, 255, .25); }
.svc-num { position: absolute; z-index: 1; left: 1.5rem; bottom: 1rem; font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.04em; opacity: .9; }
.svc-row-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .9rem; }
.svc-row-body h2 a { color: var(--ink); }
.svc-row-body h2 a:hover { color: var(--brand); }
.svc-row-lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.4rem; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.svc-chips span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.svc-more { color: var(--muted); font-size: .9rem; }
@media (max-width: 991.98px) {
    .svc-row { grid-template-columns: 1fr; gap: 1.75rem; }
    .svc-row.is-reverse .svc-row-media { order: 0; }
}

/* Check list used on both templates */
.svc-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem 1.75rem; }
.svc-checks.two-col { grid-template-columns: 1fr 1fr; }
.svc-checks li { position: relative; padding-left: 2rem; line-height: 1.55; color: #34364e; }
.svc-checks li::before { content: '\F633'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .1em; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: #fff4df; color: var(--accent-600); }
.svc-row .svc-checks { grid-template-columns: 1fr 1fr; font-size: .95rem; }
@media (max-width: 767.98px) { .svc-checks.two-col, .svc-row .svc-checks { grid-template-columns: 1fr; } }

/* Process steps */
.svc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.svc-steps::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-100) 0 8px, transparent 8px 16px); }
.svc-steps li { position: relative; text-align: center; padding: 0 .5rem; }
.svc-step-num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 8px var(--soft), var(--shadow); }
.svc-steps li:last-child .svc-step-num { background: var(--accent); color: var(--brand-800); }
.svc-steps h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.svc-steps p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 991.98px) { .svc-steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } .svc-steps::before { display: none; } }
@media (max-width: 575.98px) { .svc-steps { grid-template-columns: 1fr; } }

/* Service detail hero */
.svc-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 0; background: var(--brand-800) var(--hero-img) center / cover no-repeat; }
.svc-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(22, 21, 47, .96) 0%, rgba(48, 46, 102, .86) 55%, rgba(48, 46, 102, .55) 100%); }
.svc-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4); --bs-breadcrumb-item-active-color: var(--accent); font-size: .88rem; margin-bottom: 1.5rem; }
.svc-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.svc-hero-inner { max-width: 760px; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.svc-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 1rem; }
.svc-hero .lead { color: rgba(255, 255, 255, .82); font-size: 1.15rem; margin: 0; }
.svc-hero-facts { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); }
.svc-hero-facts > div { flex: 1 1 180px; display: flex; align-items: center; gap: .85rem; padding: 1.35rem 1.5rem 1.35rem 0; }
.svc-hero-facts > div + div { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.svc-hero-facts strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.svc-hero-facts span { color: rgba(255, 255, 255, .78); font-size: .92rem; line-height: 1.3; }
@media (max-width: 575.98px) { .svc-hero-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); } }

/* Service detail body */
.svc-lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 2rem; }
.svc-gallery { display: grid; gap: .75rem; margin-bottom: 2.5rem; }
.svc-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.svc-gallery.count-3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(280px, 38vw, 420px); }
.svc-gallery.count-3 .svc-shot:first-child { grid-row: span 2; }
.svc-shot { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); cursor: zoom-in; min-height: 160px; }
.svc-gallery.count-1 .svc-shot, .svc-gallery.count-2 .svc-shot { aspect-ratio: 4 / 3; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-shot:hover img { transform: scale(1.05); }
.svc-shot span { position: absolute; right: .7rem; top: .7rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brand); font-size: .85rem; opacity: 0; transition: opacity .2s; }
.svc-shot:hover span, .svc-shot:focus-visible span { opacity: 1; }
#svcImageModal img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }

.svc-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.25rem; scroll-margin-top: calc(var(--header-h) + 20px); transition: box-shadow .3s, border-color .3s; }
.svc-group:hover { box-shadow: var(--shadow); border-color: transparent; }
.svc-group header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.svc-group-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(140deg, var(--brand) 0%, var(--brand-800) 100%); color: var(--accent); }
.svc-group h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 0; }
.svc-count { font-size: .82rem; color: var(--muted); }
.svc-group .prose { margin-bottom: 1rem; }

.svc-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.svc-aside .toc-card { max-height: none; min-height: 0; }
.svc-others { background: var(--soft); border-radius: var(--radius); padding: 1.25rem; }
.svc-others h6 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.svc-others a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.svc-others a:last-child { border-bottom: 0; }
.svc-others a:hover { color: var(--brand); }
.svc-others a i { transition: transform .2s; }
.svc-others a:hover i { transform: translateX(4px); }
@media (max-width: 991.98px) { .svc-aside { position: static; } .svc-aside .toc-card { display: none; } }

/* ==========================================================================
   Product mega menu (desktop): category tabs + picture panel
   ========================================================================== */
.mega-x { display: none; }
@media (min-width: 992px) {
    .mega-menu .mega-simple { display: none !important; }
    .navbar-nav .mega-menu { padding: 1.25rem 0 0 !important; }
    .mega-menu .mega-x { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 1.5rem; }

    /* Left rail */
    .mega-x .mega-rail { display: flex; flex-direction: column; gap: .3rem; padding-right: 1.5rem; border-right: 1px solid var(--line); padding-bottom: 1.25rem; }
    .mega-menu .mega-x a.mega-tab { position: relative; display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: 14px; color: var(--ink); background: transparent; transition: background .2s, box-shadow .2s; }
    .mega-menu .mega-x a.mega-tab:hover, .mega-menu .mega-x a.mega-tab.active { background: var(--brand-50); color: var(--ink); }
    .mega-menu .mega-x a.mega-tab.active { background: #fff; box-shadow: var(--shadow); }
    .mega-menu .mega-x a.mega-tab.active::before { content: ''; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--accent); }
    .mega-tab-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--soft); color: var(--brand); transition: all .2s; }
    .mega-tab.active .mega-tab-icon { background: linear-gradient(140deg, var(--brand) 0%, var(--brand-800) 100%); color: var(--accent); }
    .mega-tab-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
    .mega-tab-text strong { font-family: var(--font-head); font-size: .95rem; font-weight: 700; }
    .mega-tab-text small { color: var(--muted); font-size: .76rem; margin-top: .15rem; }
    .mega-tab-arrow { font-size: .75rem; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all .2s; }
    .mega-tab.active .mega-tab-arrow, .mega-tab:hover .mega-tab-arrow { opacity: 1; transform: none; color: var(--brand); }
    .mega-rail-links { margin-top: auto; padding-top: .9rem; }
    .mega-menu .mega-x .mega-rail-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: .83rem; font-weight: 600; }
    .mega-menu .mega-x .mega-rail-links a:hover { background: var(--brand); color: #fff; }

    /* Right panel */
    .mega-x .mega-panels { position: relative; min-height: 320px; padding-bottom: 1.25rem; }
    .mega-x .mega-panel { display: none; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; }
    .mega-x .mega-panel.active { display: grid; animation: megaIn .35s cubic-bezier(.2, .7, .2, 1); }
    @keyframes megaIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

    .mega-menu .mega-x a.mega-feature { position: relative; display: flex; align-items: flex-end; min-height: 300px; padding: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(150deg, var(--brand) 0%, var(--brand-800) 100%); color: #fff; isolation: isolate; }
    .mega-feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
    .mega-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 21, 47, .1) 0%, rgba(22, 21, 47, .55) 45%, rgba(22, 21, 47, .95) 100%); }
    .mega-feature:hover img { transform: scale(1.06); }
    .mega-feature-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; }
    .mega-feature-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--brand-800); font-size: 1rem; margin-bottom: .35rem; }
    .mega-feature-body strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
    .mega-feature-text { font-size: .82rem; color: rgba(255, 255, 255, .78); line-height: 1.45; }
    .mega-feature-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .45rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--accent); }
    .mega-feature:hover .mega-feature-cta i { transform: translateX(4px); }
    .mega-feature-cta i { transition: transform .2s; }

    .mega-x .mega-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; align-content: start; }
    .mega-menu .mega-x a.mega-tile { display: flex; align-items: center; gap: .75rem; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
    .mega-menu .mega-x a.mega-tile:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); background: #fff; color: var(--brand); }
    .mega-tile-img { flex: none; width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); overflow: hidden; color: var(--brand); font-size: 1.35rem; }
    .mega-tile-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; transition: transform .4s; }
    .mega-tile:hover .mega-tile-img img { transform: scale(1.08); }
    .mega-tile-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
    .mega-tile-text strong { font-family: var(--font-head); font-size: .86rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .mega-tile-text small { color: var(--muted); font-size: .74rem; margin-top: .15rem; }
    .mega-tile-more .mega-tile-img { background: var(--brand-50); }
    .mega-tile-more .mega-tile-img strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--brand); }

    /* Bottom bar */
    .mega-x .mega-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0 1.1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
    .mega-x .mega-bottom i.bi-patch-question { color: var(--accent-600); margin-right: .3rem; }
    .mega-menu .mega-x .mega-bottom a { display: inline-flex; align-items: center; gap: .35rem; padding: 0; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--brand); background: none; }
    .mega-menu .mega-x .mega-bottom a:hover { color: var(--accent-600); background: none; }
    .mega-menu .mega-x .mega-bottom a.mega-bottom-cta { padding: .45rem 1rem; border-radius: 999px; background: var(--accent); color: var(--brand-800); }
    .mega-menu .mega-x .mega-bottom a.mega-bottom-cta:hover { background: var(--accent-600); color: var(--brand-800); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mega-menu .mega-x { grid-template-columns: 240px minmax(0, 1fr); }
    .mega-x .mega-panel { grid-template-columns: 200px minmax(0, 1fr); }
    .mega-x .mega-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mega-x .mega-panel.active { animation: none; } }
@media (min-width: 992px) { .mega-tile-img.is-photo img { object-fit: cover; mix-blend-mode: normal; padding: 0; } }

/* Category cards: product cut-outs and small thumbnails are shown whole on white instead of stretched and cropped */
.cat-img.is-cutout { background: radial-gradient(circle at 50% 45%, #fff 0%, #fff 45%, var(--soft) 100%); padding: 1.25rem; }
.cat-img.is-cutout img { width: auto; height: auto; max-width: min(100%, 360px); max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-card:hover .cat-img.is-cutout img { transform: scale(1.04); }

/* Home slider: the slide photos are wide banners (≈3:1). On desktop the slider follows that shape so the photo is shown
   close to its real size instead of being enlarged ~1.5× to fill a tall box; the slow zoom is kept very subtle. */
.hero-bg { transform: scale(1.02); transition: transform 8s ease; }
@media (min-width: 992px) {
    .hero .carousel-item, .hero-content { min-height: clamp(500px, 34vw, 700px); }
    .hero-content { padding-top: 2.5rem; padding-bottom: 9.5rem; } /* room for the slide numbers/arrows (absolute, bottom 5.5rem) */
    .hero-title { font-size: clamp(2.2rem, 3.7vw, 3.6rem); max-width: 16ch; }
    .hero-sub { margin-top: 1rem; }
}

/* Home slider on wide screens (≥1400px): never stretch the 1400×450 photos to the full screen width.
   The photo is sized to the slider height (max ≈1.25× its real size), pinned right, and fades into the brand colour behind the headline. */
@media (min-width: 1400px) {
    .hero { --hero-h: clamp(500px, 34vw, 560px); }
    .hero-bg { --hero-img-w: calc(var(--hero-h) * var(--hero-ar, 3.111)); } /* --hero-ar: each slide image's width/height, set in home.php */
    .hero .carousel-item, .hero-content { min-height: var(--hero-h); }
    .hero-bg {
        background-size: auto 100%;
        background-position: right center;
        background-repeat: no-repeat;
        -webkit-mask-image: linear-gradient(90deg, transparent calc(100% - var(--hero-img-w)), #000 calc(100% - var(--hero-img-w) + 260px));
                mask-image: linear-gradient(90deg, transparent calc(100% - var(--hero-img-w)), #000 calc(100% - var(--hero-img-w) + 260px));
    }
    .hero .carousel-item { background: radial-gradient(900px 500px at 15% 50%, rgba(48, 46, 102, .9), transparent 70%), var(--brand-800); }
}
@media (min-width: 1400px) {
    .hero-title { font-size: clamp(2.4rem, 2.6vw, 3.2rem); }
    .hero-content { padding-top: 2rem; padding-bottom: 9rem; }
}
@media (max-width: 767.98px) { .hero-bg { background-position: 62% center; } } /* phones: keep the subject (right of centre in the slide photos) in view */

/* Stats bar: icon + number cards */
.stats { border: 1px solid rgba(255, 255, 255, .6); }
.stats .stat { display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: left; padding: 1.6rem 1.25rem; position: relative; transition: background .25s; }
.stats .stat:hover { background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%); }
.stats .stat::after { content: ''; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .3s ease; }
.stats .stat:hover::after { transform: scaleX(1); }
.stat-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(140deg, var(--brand) 0%, var(--brand-800) 100%); color: var(--accent); box-shadow: 0 10px 22px -12px rgba(48, 46, 102, .8); transition: transform .3s ease; }
.stats .stat:hover .stat-icon { transform: translateY(-3px) rotate(-6deg); }
.stat-text { display: flex; flex-direction: column; min-width: 0; }
.stats .stat strong { font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height: 1; }
.stats .stat .stat-text span { margin-top: .35rem; font-size: .88rem; line-height: 1.3; }
@media (max-width: 767.98px) {
    .stats .stat { flex-direction: column; text-align: center; gap: .6rem; padding: 1.25rem .75rem; }
    .stat-icon { width: 46px; height: 46px; font-size: 1.2rem; border-radius: 13px; }
}
.stats .stat .stat-icon { font-size: 1.5rem; color: var(--accent); margin: 0; }
@media (max-width: 767.98px) { .stats .stat .stat-icon { font-size: 1.2rem; } }

/* Home slider: 20% taller on desktop (e.g. 612px → 740px on wide screens, 566px → 680px on laptops) */
@media (min-width: 992px) {
    .hero .carousel-item, .hero-content { min-height: clamp(600px, 47vw, 740px); }
}
@media (min-width: 1400px) {
    .hero { --hero-h: clamp(600px, 47vw, 740px); }
}

/* ==========================================================================
   Stats bar — dark glass panel with rotating icon rings and gradient numbers
   ========================================================================== */
.stats.stats-x { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; background: radial-gradient(600px 220px at 12% 0%, rgba(245, 165, 36, .22), transparent 60%), radial-gradient(500px 240px at 100% 100%, rgba(99, 95, 190, .35), transparent 60%), linear-gradient(135deg, #1d1b3d 0%, var(--brand-800) 55%, #211f48 100%); box-shadow: 0 30px 60px -24px rgba(22, 21, 47, .65); }
.stats.stats-x::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.stats.stats-x .stat { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 1.1rem; text-align: left; padding: 1.9rem 1.75rem; border-right: 0; overflow: hidden; background: transparent; transition: background .3s; }
.stats.stats-x .stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .22), transparent); }
.stats.stats-x .stat::after { content: ''; position: absolute; left: 1.75rem; right: 1.75rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--accent), #ffd27a); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.stats.stats-x .stat:hover { background: rgba(255, 255, 255, .04); }
.stats.stats-x .stat:hover::after { transform: scaleX(1); }

/* Icon with a slowly rotating dashed ring */
.stats.stats-x .stat .stat-icon { position: relative; flex: none; width: 60px; height: 60px; margin: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: var(--accent); background: rgba(245, 165, 36, .1); box-shadow: inset 0 0 0 1px rgba(245, 165, 36, .35); transform: none; }
.stats.stats-x .stat .stat-icon::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(245, 165, 36, .45); animation: statSpin 14s linear infinite; }
.stats.stats-x .stat:hover .stat-icon::before { animation-duration: 3s; border-color: var(--accent); }
.stats.stats-x .stat:hover .stat-icon { transform: none; background: var(--accent); color: var(--brand-800); }
@keyframes statSpin { to { transform: rotate(360deg); } }

/* Big faded icon in the corner */
.stat-watermark { position: absolute; right: -.4rem; bottom: -1.4rem; font-size: 6.5rem; line-height: 1; color: rgba(255, 255, 255, .045); pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1), color .4s; }
.stats.stats-x .stat:hover .stat-watermark { transform: translateY(-6px) rotate(-8deg) scale(1.08); color: rgba(245, 165, 36, .09); }

/* Numbers and labels */
.stats.stats-x .stat strong { display: block; font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #ffd89a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats.stats-x .stat .stat-text span { margin-top: .45rem; color: rgba(255, 255, 255, .62); font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@media (min-width: 992px) { .stats.stats-x { grid-template-columns: repeat(var(--stat-cols, 4), 1fr); } }
@media (max-width: 991.98px) {
    .stats.stats-x { grid-template-columns: repeat(2, 1fr); }
    .stats.stats-x .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stats.stats-x .stat { padding: 1.5rem 1.25rem; }
    .stats.stats-x .stat:nth-child(3)::before { display: none; }
    .stats.stats-x .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 575.98px) {
    .stats.stats-x .stat { flex-direction: column; align-items: flex-start; gap: .9rem; }
    .stats.stats-x .stat .stat-icon { width: 48px; height: 48px; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .stats.stats-x .stat .stat-icon::before { animation: none; } }
