/* =====================================================================
   S.S. Solutions — site stylesheet
   Layers on top of Bootstrap 5.3. Tokens first, then layout, then
   components, then page sections.
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #071726;
  --navy: #102A43;
  --navy-700: #1B3A57;
  --royal: #1769AA;
  --royal-600: #125A93;
  --cyan: #00B8D9;
  --cyan-300: #7FDCEC;
  --white: #FFFFFF;
  --grey-50: #F4F7FA;
  --grey-100: #E9EEF3;
  --line: #DCE4EC;
  --charcoal: #202A35;
  --muted: #586776;
  --brand-red: #E4322C;
  --brand-green: #8DC63F;
  --brand-purple: #532A75;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(16, 42, 67, .06), 0 8px 24px rgba(16, 42, 67, .07);
  --shadow-lift: 0 2px 4px rgba(16, 42, 67, .06), 0 18px 40px rgba(16, 42, 67, .14);
  --header-h: 78px;
  --section-y: clamp(4rem, 8vw, 7rem);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--charcoal);
  --bs-link-color: var(--royal);
  --bs-link-color-rgb: 23, 105, 170;
  --bs-link-hover-color: var(--royal-600);
  --bs-primary: var(--royal);
  --bs-primary-rgb: 23, 105, 170;
  --bs-border-color: var(--line);
  --bs-focus-ring-color: rgba(0, 184, 217, .45);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.18; letter-spacing: -.015em; font-weight: 600; }
h1, .h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
p { max-width: 68ch; }
a { text-underline-offset: .2em; }
img, svg { max-width: 100%; }
::selection { background: var(--cyan); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

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

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.bg-grey { background: var(--grey-50); }
.bg-navy { background: var(--navy); color: #C9D6E3; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.text-muted-2 { color: var(--muted) !important; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); line-height: 1.7; }
.bg-navy .lead { color: #AFC2D4; }

.kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--royal); margin-bottom: .75rem; }
.bg-navy .kicker, .hero .kicker, .page-hero .kicker { color: var(--cyan-300); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.text-center { margin-inline: auto; }
.section-head.text-center p { margin-inline: auto; }

/* Thin rule in the three logo colours — used for brand moments only */
.brand-rule { display: flex; height: 4px; width: 100%; }
.brand-rule span { flex: 1; }
.brand-rule span:nth-child(1) { background: var(--brand-red); }
.brand-rule span:nth-child(2) { background: var(--brand-green); }
.brand-rule span:nth-child(3) { background: var(--brand-purple); }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: var(--radius-sm); padding: .8rem 1.4rem; letter-spacing: .005em; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .95rem; }
.btn-primary { --bs-btn-bg: var(--royal); --bs-btn-border-color: var(--royal); --bs-btn-hover-bg: var(--royal-600); --bs-btn-hover-border-color: var(--royal-600); --bs-btn-active-bg: var(--navy-700); --bs-btn-active-border-color: var(--navy-700); }
.btn-accent { background: var(--cyan); color: var(--navy-950); border: 1px solid var(--cyan); }
.btn-accent:hover, .btn-accent:focus-visible { background: #19C9E8; color: var(--navy-950); border-color: #19C9E8; box-shadow: 0 10px 28px rgba(0, 184, 217, .32); transform: translateY(-1px); }
.btn-ghost-light { color: var(--white); border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { color: var(--navy); background: var(--white); border-color: var(--white); }
.btn-outline-navy { color: var(--navy); border: 1px solid var(--navy); background: transparent; }
.btn-outline-navy:hover, .btn-outline-navy:focus-visible { color: var(--white); background: var(--navy); }
.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--royal); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover { color: var(--royal-600); text-decoration: underline; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background-color .3s, box-shadow .3s, transform .3s; }
.site-header .topbar { font-size: .84rem; color: #A9BCCD; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: margin-top .3s, opacity .3s; }
.site-header .topbar a { color: #D3E0EC; text-decoration: none; }
.site-header .topbar a:hover { color: var(--white); }
.site-header .topbar .container { min-height: 38px; }
.site-header .navbar { min-height: var(--header-h); padding-block: .5rem; --bs-navbar-color: #E3ECF4; --bs-navbar-hover-color: #FFFFFF; --bs-navbar-active-color: #FFFFFF; }
.navbar-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.navbar-brand img { width: 44px; height: auto; background: var(--white); border-radius: 10px; padding: 5px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word strong { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--white); letter-spacing: -.01em; }
.brand-word small { font-size: .72rem; color: #9FB4C7; letter-spacing: .02em; }

.site-header .nav-link { font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: #E3ECF4; padding: .55rem .72rem !important; border-radius: 6px; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link.show { color: var(--white); }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .15rem; height: 2px; background: var(--cyan); border-radius: 2px; }
.site-header .navbar-toggler { border: 1px solid rgba(255, 255, 255, .35); color: var(--white); padding: .45rem .6rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 184, 217, .45); }

/* Solid state after scrolling (and always on small screens once scrolled) */
.site-header.is-solid { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(16, 42, 67, .08); backdrop-filter: saturate(140%) blur(8px); }
.site-header.is-solid .topbar { margin-top: -39px; opacity: 0; pointer-events: none; }
.site-header.is-solid .brand-word strong { color: var(--navy); }
.site-header.is-solid .brand-word small { color: var(--muted); }
.site-header.is-solid .navbar-brand img { box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 1200px) {
  .site-header.is-solid .navbar { --bs-navbar-color: var(--charcoal); --bs-navbar-hover-color: var(--royal); --bs-navbar-active-color: var(--navy); }
  .site-header.is-solid .nav-link { color: var(--charcoal); }
  .site-header.is-solid .nav-link:hover, .site-header.is-solid .nav-link.show { color: var(--royal); }
}
.site-header.is-solid .navbar-toggler { color: var(--navy); border-color: var(--line); }

/* Mega dropdowns */
.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-link-active-bg: var(--grey-50); --bs-dropdown-link-active-color: var(--royal); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: .6rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .93rem; white-space: normal; }
.dropdown-item:hover { background: var(--grey-50); color: var(--royal); }
@media (min-width: 1200px) {
  .navbar .dropdown-menu { margin-top: .6rem !important; animation: dd-in .18s ease-out; }
  .mega-menu { width: min(860px, 92vw); padding: 1.25rem; }
  .mega-menu.mega-sm { width: min(620px, 92vw); }
  .navbar .dropdown-mega { position: static; }
  .navbar .dropdown-mega .dropdown-menu { left: 50%; transform: translateX(-50%); }
}
@keyframes dd-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.mega-title { font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--muted); padding: .25rem .75rem .5rem; }
.mega-link { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; color: var(--charcoal); }
.mega-link i { font-size: 1.1rem; color: var(--royal); width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; background: #E8F3FB; border-radius: 8px; }
.mega-link strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.3; }
.mega-link span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .1rem; }
.mega-link:hover { background: var(--grey-50); }
.mega-link:hover strong { color: var(--royal); }
.mega-footer { border-top: 1px solid var(--line); margin-top: .75rem; padding: .85rem .75rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

/* Mobile offcanvas navigation */
@media (max-width: 1199.98px) {
  .site-header .offcanvas { background: var(--navy-950); color: #E3ECF4; width: min(360px, 88vw); }
  .site-header .offcanvas .nav-link { font-size: 1.02rem; padding: .8rem .25rem !important; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; color: #E3ECF4; }
  .site-header .offcanvas .nav-link.active::after { display: none; }
  .site-header .offcanvas .nav-link.active { color: var(--cyan-300); }
  .site-header .offcanvas .dropdown-menu { background: rgba(255, 255, 255, .04); border: 0; box-shadow: none; padding: .25rem; margin: .25rem 0 .5rem; }
  .site-header .offcanvas .mega-link strong { color: #E3ECF4; }
  .site-header .offcanvas .mega-link span { color: #93A8BB; }
  .site-header .offcanvas .mega-link i { background: rgba(0, 184, 217, .12); color: var(--cyan-300); }
  .site-header .offcanvas .mega-link:hover { background: rgba(255, 255, 255, .06); }
  .site-header .offcanvas .mega-link span span { display: none; }
  .site-header .offcanvas .mega-link { padding: .45rem .5rem; }
  .site-header .offcanvas .mega-title { color: #93A8BB; }
  .site-header .offcanvas .mega-footer { border-color: rgba(255, 255, 255, .1); color: #93A8BB; }
  .site-header .offcanvas .mega-footer a { color: var(--cyan-300); }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy-950); color: #C9D6E3; overflow: hidden; padding-top: calc(var(--header-h) + 38px); isolation: isolate; }
.hero::before { /* ledger grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(127, 220, 236, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 220, 236, .055) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 85% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; right: -18vw; top: -22vw; background: radial-gradient(circle, rgba(23, 105, 170, .55), rgba(0, 184, 217, .12) 45%, transparent 70%); }
.hero-inner { min-height: min(88vh, 860px); display: grid; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5.5rem, 9vw, 8rem); }
.hero h1, .hero .h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 20ch; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
/* Stack slides in one grid cell so the hero never jumps in height between slides */
.hero-carousel .carousel-inner { display: grid; overflow: visible; }
.hero-carousel .carousel-item { display: block; grid-area: 1 / 1; float: none; margin-right: 0; }
.hero-carousel .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) { visibility: hidden; }
.hero .hero-sub { color: #AFC2D4; font-size: clamp(.95rem, 1.05vw, 1.05rem); max-width: 32rem; margin-bottom: 1.75rem; }
.hero-capabilities { list-style: none; padding: 0; margin: 0 0 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-capabilities li { font-size: .85rem; color: #D8E4EE; border: 1px solid rgba(255, 255, 255, .16); padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .03); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-carousel.carousel-fade .carousel-item { transition-duration: .7s; }
.hero-slide-nav { display: flex; gap: 1.25rem; margin-top: 2.75rem; }
.hero-slide-nav button { all: unset; cursor: pointer; flex: 1; max-width: 11rem; font-size: .82rem; color: #8FA6BA; line-height: 1.35; padding-top: .7rem; position: relative; }
.hero-slide-nav button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .16); }
.hero-slide-nav button::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--cyan); }
.hero-slide-nav button.active { color: var(--white); }
.hero-slide-nav button.active::after { width: 100%; transition: width 7s linear; }
.reduce-motion .hero-slide-nav button.active::after { transition: none; width: 100%; }
.hero-slide-nav button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* Signature visual: dashboard + label printing out + QR share card */
.hero-visual { position: relative; padding: 1.5rem 0 3.5rem; }
.hero-visual .mockup { box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 12px; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-label { position: absolute; left: -6%; bottom: 0; width: 46%; background: #FBFBF8; color: #111; border-radius: 6px; padding: .8rem .9rem .7rem; box-shadow: 0 24px 48px rgba(0, 0, 0, .4); transform-origin: top center; animation: print-out 1.1s .7s cubic-bezier(.2, .7, .2, 1) both; font-family: var(--font-body); }
.hero-label::before { content: ""; position: absolute; left: 10px; right: 10px; top: -6px; height: 8px; border-radius: 4px 4px 0 0; background: var(--navy-700); }
.hero-label .lbl-top { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: #222; }
.hero-label .lbl-name { font-size: .78rem; font-weight: 600; margin: .15rem 0 .35rem; color: #111; }
.hero-label svg { display: block; width: 100%; height: 44px; }
.hero-label .lbl-code { font-size: .62rem; letter-spacing: .25em; text-align: center; color: #333; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.hero-qr { position: absolute; right: -4%; top: 0; width: 34%; min-width: 150px; background: var(--white); border-radius: 14px; padding: .8rem; box-shadow: 0 24px 48px rgba(0, 0, 0, .4); animation: rise .9s 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-qr .qr-head { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; color: var(--navy); }
.hero-qr .qr-head i { color: var(--cyan); }
.hero-qr img { display: block; width: 100%; height: auto; margin: .5rem 0; }
.hero-qr .qr-timer { font-size: .68rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.hero-qr .qr-timer span { display: inline-block; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) 62%, var(--grey-100) 62%); }
/* Database-driven image slider (Admin → Home slider). Fixed 4:3 frame so slides never change the hero height. */
.hero-image-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-image-slider .carousel-item { aspect-ratio: 4 / 3; }
.hero-image-slider .carousel-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.5rem 2.6rem; background: linear-gradient(transparent, rgba(7, 23, 38, .88)); color: var(--white); }
.hero-slide-caption strong, .hero-slide-caption a { display: block; font-family: var(--font-head); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; line-height: 1.35; color: var(--white); text-decoration: none; max-width: 30rem; }
.hero-slide-caption a:hover { color: var(--cyan-300); }
.hero-slide-caption a:focus-visible { outline: none; }
.hero-slide-caption a:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: var(--radius-lg); }
.hero-slide-eyebrow { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-300); margin-bottom: .3rem; }
.hero-image-slider .carousel-indicators { margin-bottom: 1rem; justify-content: flex-start; margin-inline: 1.5rem; }
.hero-image-slider .carousel-indicators [data-bs-target] { width: 22px; height: 3px; border-radius: 2px; margin: 0 4px 0 0; border: 0; }
.hero-image-slider .carousel-control-prev, .hero-image-slider .carousel-control-next { width: 3.25rem; opacity: 0; transition: opacity .2s; z-index: 3; }
.hero-image-slider:hover .carousel-control-prev, .hero-image-slider:hover .carousel-control-next,
.hero-image-slider .carousel-control-prev:focus-visible, .hero-image-slider .carousel-control-next:focus-visible { opacity: .9; }
@media (hover: none) { .hero-image-slider .carousel-control-prev, .hero-image-slider .carousel-control-next { opacity: .75; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes print-out { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@media (max-width: 991.98px) {
  .hero-inner { min-height: 0; }
  .hero-visual { margin-top: 3rem; max-width: 620px; margin-inline: auto; }
  .hero-image-slider { margin-top: 2.5rem; max-width: 760px; margin-inline: auto; }
  .hero-label { left: 0; width: 52%; }
  .hero-qr { right: 0; }
}
@media (max-width: 575.98px) {
  .hero-qr { width: 42%; min-width: 0; padding: .55rem; top: -1rem; }
  .hero-qr .qr-timer { display: none; }
  .hero-label { width: 62%; padding: .55rem .6rem; }
  .hero-slide-nav { gap: .75rem; }
  .hero-slide-nav button { font-size: .74rem; }
}

/* Capability strip overlapping hero bottom */
.capability-strip { position: relative; z-index: 2; margin-top: -4.25rem; }
.capability-strip .strip { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.capability-strip .strip a { display: flex; gap: .9rem; align-items: flex-start; padding: 1.5rem 1.5rem 1.4rem; text-decoration: none; color: var(--charcoal); border-right: 1px solid var(--line); transition: background-color .2s; }
.capability-strip .strip a:last-child { border-right: 0; }
.capability-strip .strip a:hover { background: var(--grey-50); }
.capability-strip .strip i { font-size: 1.5rem; color: var(--royal); line-height: 1; margin-top: .15rem; }
.capability-strip strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.capability-strip span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
@media (max-width: 991.98px) {
  .capability-strip .strip { grid-template-columns: repeat(2, 1fr); }
  .capability-strip .strip a:nth-child(2) { border-right: 0; }
  .capability-strip .strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .capability-strip .strip { grid-template-columns: 1fr; }
  .capability-strip .strip a { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 1.25rem; }
  .capability-strip .strip a:last-child { border-bottom: 0; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--navy-950); color: #B9CADA; padding: calc(var(--header-h) + 38px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 4.75rem); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(127, 220, 236, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 220, 236, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -20rem; background: radial-gradient(circle, rgba(23, 105, 170, .5), transparent 65%); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.25rem); max-width: 22ch; margin-bottom: 1rem; }
.page-hero p { color: #AFC2D4; font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 44rem; margin: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #6E879D; --bs-breadcrumb-item-active-color: #C9D6E3; font-size: .86rem; margin-bottom: 1.25rem; }
.page-hero .breadcrumb a { color: #8FA6BA; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ---------- Mockups ---------- */
.mockup { display: block; width: 100%; height: auto; border-radius: 10px; }
.mockup-wrap { position: relative; }
.mockup-caption { font-size: .8rem; color: var(--muted); margin-top: .75rem; display: flex; align-items: center; gap: .4rem; }

/* ---------- About split ---------- */
.about-visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.about-visual .frame { position: absolute; left: 0; bottom: 0; width: 72%; height: 78%; border-radius: var(--radius-lg); background: var(--grey-50); border: 1px solid var(--line); z-index: 0; }
.about-visual .frame::after { content: ""; position: absolute; left: 1.25rem; bottom: 1.25rem; width: 4.5rem; height: 4px; background: linear-gradient(90deg, var(--brand-red) 33.3%, var(--brand-green) 33.3% 66.6%, var(--brand-purple) 66.6%); }
.about-visual .mockup { position: relative; z-index: 1; box-shadow: var(--shadow-lift); }
.check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list i { color: var(--cyan); font-size: 1.15rem; line-height: 1.4; }
.check-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 575.98px) { .check-cols { grid-template-columns: 1fr; } }

/* ---------- Services (divided grid, not floating cards) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { padding: 2rem 1.75rem 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; transition: background-color .25s; position: relative; }
.service-item::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--cyan); transition: width .3s ease; }
.service-item:hover::before, .service-item:focus-within::before { width: 100%; }
.service-item:hover { background: var(--grey-50); }
.service-icon { font-size: 1.6rem; color: var(--royal); margin-bottom: 1.25rem; line-height: 1; }
.service-item h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.service-item p { font-size: .93rem; color: var(--muted); margin-bottom: 1.25rem; flex: 1; }
@media (max-width: 1199.98px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .service-grid { grid-template-columns: 1fr; } .service-item { padding: 1.5rem 1.25rem; } }

/* ---------- Product cards ---------- */
.product-card { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.product-card .pc-media { background: var(--pc-tint, #EEF5FB); padding: 1.4rem 1.4rem 0; overflow: hidden; }
.product-card .pc-media .mockup { border-radius: 8px 8px 0 0; box-shadow: 0 10px 30px rgba(16, 42, 67, .14); transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom center; }
.product-card:hover .pc-media .mockup { transform: scale(1.035); }
.product-card .pc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { font-size: .8rem; font-weight: 600; color: var(--royal); margin-bottom: .45rem; display: flex; gap: .4rem; align-items: center; }
.product-card h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; flex: 1; }
.product-card .link-arrow { position: relative; }

/* ---------- Barcode band ---------- */
.barcode-band { position: relative; overflow: hidden; isolation: isolate; }
.barcode-band::before { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; z-index: 0; background: repeating-linear-gradient(90deg, rgba(127, 220, 236, .35) 0 2px, transparent 2px 5px, rgba(127, 220, 236, .35) 5px 6px, transparent 6px 11px, rgba(127, 220, 236, .35) 11px 14px, transparent 14px 17px); }
.barcode-list { list-style: none; padding: 0; margin: 0 0 2.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.barcode-list li { display: flex; gap: .8rem; align-items: flex-start; color: #D3DFEA; font-size: .95rem; line-height: 1.45; }
.barcode-list i { color: var(--cyan); font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 575.98px) { .barcode-list { grid-template-columns: 1fr; } }
.barcode-visual { position: relative; max-width: 520px; margin-inline: auto; }
.barcode-visual img { width: 100%; height: auto; display: block; }

/* ---------- IDBANKQR ---------- */
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; background: #0B1B2B; padding: 12px; box-shadow: 0 40px 80px rgba(16, 42, 67, .28), inset 0 0 0 2px #2A4058; margin-inline: auto; position: relative; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 12px; background: #0B1B2B; z-index: 2; }
.phone-screen { height: 100%; border-radius: 32px; background: var(--grey-50); overflow: hidden; display: flex; flex-direction: column; font-size: .74rem; }
.phone-top { background: linear-gradient(160deg, var(--navy) 0%, var(--royal) 100%); color: var(--white); padding: 3rem 1rem 1rem; }
.phone-top .app-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.phone-top small { color: #BFD6EA; }
.phone-docs { padding: .8rem; display: grid; gap: .5rem; }
.phone-doc { background: var(--white); border-radius: 12px; padding: .6rem .7rem; display: flex; gap: .6rem; align-items: center; box-shadow: 0 1px 2px rgba(16, 42, 67, .06); }
.phone-doc i { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 8px; background: #E5F7FB; color: var(--royal); font-size: .95rem; flex: 0 0 auto; }
.phone-doc b { display: block; font-weight: 600; color: var(--navy); font-size: .76rem; }
.phone-doc span { color: var(--muted); font-size: .66rem; }
.phone-doc .bi-qr-code { margin-left: auto; background: transparent; color: var(--cyan); }
.phone-share { margin: auto .8rem .9rem; background: var(--navy); color: var(--white); border-radius: 14px; padding: .7rem; display: flex; gap: .7rem; align-items: center; }
.phone-share img { width: 64px; height: 64px; background: var(--white); border-radius: 8px; padding: 4px; }
.phone-share b { display: block; font-size: .76rem; }
.phone-share span { font-size: .66rem; color: #AFC2D4; }
.idbank-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 2rem 0 2.25rem; }
.idbank-points div { display: flex; gap: .8rem; }
.idbank-points i { font-size: 1.25rem; color: var(--royal); line-height: 1.3; }
.idbank-points strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem; }
.idbank-points span { font-size: .88rem; color: var(--muted); }
@media (max-width: 575.98px) { .idbank-points { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.industry-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--charcoal); transition: border-color .2s, box-shadow .2s; }
.industry-tile i { font-size: 1.5rem; color: var(--royal); }
.industry-tile strong { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.industry-tile span { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.industry-tile:hover { border-color: var(--royal); box-shadow: var(--shadow-soft); }
.industry-tile:hover strong { color: var(--royal); }
@media (max-width: 1199.98px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Why choose ---------- */
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why-item { display: flex; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.why-item:nth-child(odd) { padding-right: 1.75rem; }
.why-item i { font-size: 1.35rem; color: var(--royal); line-height: 1.25; }
.why-item h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.why-item p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .why-list { grid-template-columns: 1fr; } .why-item:nth-child(odd) { padding-right: 0; } }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- Process timeline (a real sequence, so numbered) ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: 1.6rem; height: 2px; background: linear-gradient(90deg, var(--royal), var(--cyan)); opacity: .35; }
.process.process-4 { grid-template-columns: repeat(4, 1fr); }
.process li { position: relative; counter-increment: step; }
.process .step-no { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--royal); color: var(--royal); font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.process li:last-child .step-no { background: var(--royal); color: var(--white); }
.process h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.process p { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 991.98px) {
  .process, .process.process-4 { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 1.6rem; bottom: 1.6rem; left: 1.55rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--royal), var(--cyan)); }
  .process li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem; padding-bottom: 1.6rem; }
  .process .step-no { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy) 0%, var(--royal) 62%, #0E8FB8 100%); color: #D9E7F2; padding: clamp(2.25rem, 5vw, 3.75rem); isolation: isolate; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: #CFE0EE; margin: 0; }

/* ---------- Solutions catalogue ---------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search-box { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-box i { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-box input { padding-left: 2.6rem; height: 3rem; border-radius: var(--radius-sm); }
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cat-filter a { font-size: .87rem; font-weight: 500; text-decoration: none; color: var(--charcoal); border: 1px solid var(--line); background: var(--white); padding: .45rem .9rem; border-radius: 999px; display: inline-flex; gap: .4rem; align-items: center; transition: border-color .2s, background-color .2s, color .2s; }
.cat-filter a:hover { border-color: var(--royal); color: var(--royal); }
.cat-filter a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white); }
.empty-state i { font-size: 2rem; color: var(--muted); }

/* ---------- Product details ---------- */
.detail-hero-visual { margin-top: 2.5rem; }
.detail-hero-visual .mockup { box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.point-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.point-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.point-list li:last-child { border-bottom: 0; }
.point-list i { color: var(--royal); font-size: 1.05rem; line-height: 1.55; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.benefit { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 1.4rem; border-left: 3px solid var(--cyan); box-shadow: var(--shadow-soft); font-weight: 500; color: var(--navy); }
@media (max-width: 575.98px) { .benefit-grid { grid-template-columns: 1fr; } }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.side-card h2, .side-card h3 { font-size: 1.15rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2, .form-card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: .5rem; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.form-label .req { color: var(--brand-red); }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #CBD6E1; padding: .72rem .95rem; font-size: .97rem; }
.form-control:focus, .form-select:focus { border-color: var(--royal); box-shadow: 0 0 0 .22rem rgba(0, 184, 217, .25); }
.form-check-input:checked { background-color: var(--royal); border-color: var(--royal); }
.field-validation-error, .text-danger { color: #C0292F !important; font-size: .84rem; display: block; margin-top: .3rem; }
.input-validation-error { border-color: #C0292F !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.form-privacy { font-size: .8rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list i { width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border-radius: 12px; display: grid; place-items: center; background: #E8F3FB; color: var(--royal); font-size: 1.15rem; }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--charcoal); text-decoration: none; }
.contact-list a:hover { color: var(--royal); text-decoration: underline; }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.prose p, .prose li { color: #3A4856; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9FB3C5; font-size: .93rem; }
.site-footer .footer-main { padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; }
.site-footer h2 { font-family: var(--font-head); color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #C3D2DF; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .footer-brand p { max-width: 30rem; }
.site-footer .footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.site-footer .footer-contact i { color: var(--cyan); margin-top: .15rem; }
.site-footer .social a { width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); margin-right: .4rem; }
.site-footer .social a:hover { background: var(--cyan); color: var(--navy-950); border-color: var(--cyan); text-decoration: none; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.25rem 0; font-size: .85rem; }

/* Back-to-top */
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1020; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--royal); }

/* ---------- Scroll reveal (subtle; disabled for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--grey-50); }
.admin-nav { background: var(--navy); }
.admin-nav .navbar-brand, .admin-nav .nav-link { color: var(--white); }
.status-badge { font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }
.status-New { background: #E0F2FE; color: #075985; }
.status-Contacted { background: #EDE9FE; color: #5B21B6; }
.status-InProgress { background: #FEF3C7; color: #92400E; }
.status-Closed { background: #DCFCE7; color: #166534; }
.status-Spam { background: #F1F5F9; color: #475569; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .cta-banner, form { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; padding-top: 1rem; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* 16px side gutter on phones */
@media (max-width: 575.98px) {
  .container, .container-fluid { --bs-gutter-x: 2rem; }
}
