/* ==========================================================================
   ShujaSoft Solutions — design system (on top of Bootstrap 5.3)
   Colours come from the logo: blue #0D3384, green #1EA538.
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted, OFL — see /assets/fonts/LICENSE-OFL.txt) ---------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-var-latin.woff2") format("woff2-variations"), url("/assets/fonts/inter-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("/assets/fonts/manrope-var-latin.woff2") format("woff2-variations"), url("/assets/fonts/manrope-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    /* Brand */
    --ss-blue-900: #071430;   /* ink-950: darkest sections */
    --ss-blue-850: #0B1C40;   /* ink-900: dark cards */
    --ss-blue-800: #0A2968;   /* hover / pressed */
    --ss-blue-700: #0D3384;   /* LOGO BLUE: primary */
    --ss-blue-500: #2F63D0;   /* focus, accents on navy */
    --ss-blue-100: #E7EDF8;   /* tint */
    --ss-green-700: #167A2A;  /* green text on white */
    --ss-green-500: #1EA538;  /* LOGO GREEN: accents */
    --ss-green-100: #E6F5E9;

    /* Neutrals */
    --ss-ink: #0F1B33;        /* body headings */
    --ss-text: #3A4A63;       /* body text */
    --ss-muted: #5E6B7E;
    --ss-line: #E3E7EE;
    --ss-line-dark: #18295A;
    --ss-surface: #F3F5F9;    /* alternate section */
    --ss-paper: #FAFBFC;
    --ss-white: #FFFFFF;

    /* Type */
    --ss-font-display: "Manrope", system-ui, sans-serif;
    --ss-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ss-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

    /* Shape & motion */
    --ss-radius: 14px;
    --ss-radius-sm: 10px;
    --ss-shadow-hover: 0 10px 28px rgba(7, 20, 48, .08);
    --ss-ease: cubic-bezier(.2, .7, .2, 1);
    --ss-header-h: 76px;

    /* Section spacing */
    --ss-section-y: 128px;

    /* Bootstrap overrides */
    --bs-body-font-family: var(--ss-font-body);
    --bs-body-color: var(--ss-text);
    --bs-body-bg: var(--ss-paper);
    --bs-primary: var(--ss-blue-700);
    --bs-primary-rgb: 13, 51, 132;
    --bs-link-color: var(--ss-blue-700);
    --bs-link-color-rgb: 13, 51, 132;
    --bs-link-hover-color: var(--ss-blue-800);
    --bs-link-hover-color-rgb: 10, 41, 104;
    --bs-border-color: var(--ss-line);
    --bs-border-radius: var(--ss-radius-sm);
    --bs-success: var(--ss-green-500);
    --bs-success-rgb: 30, 165, 56;
    --bs-focus-ring-color: rgba(47, 99, 208, .35);
}

@media (max-width: 991.98px) { :root { --ss-section-y: 96px; --ss-header-h: 68px; } }
@media (max-width: 575.98px) { :root { --ss-section-y: 72px; } }

/* ---------- 2. Base ------------------------------------------------------- */
html { scroll-padding-top: calc(var(--ss-header-h) + 16px); }
body {
    font-size: 1.0625rem;      /* 17px */
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .display-heading {
    font-family: var(--ss-font-display);
    color: var(--ss-ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}
h1, .h1 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.01em; }
h4, .h4 { font-size: 1.125rem; letter-spacing: 0; }
p { margin-bottom: 1rem; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; color: var(--ss-text); font-weight: 400; }
.text-muted-ss { color: var(--ss-muted) !important; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--ss-blue-100); color: var(--ss-blue-900); }

.container { --bs-gutter-x: 3rem; max-width: 1240px; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

:focus-visible { outline: 3px solid var(--ss-blue-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--ss-blue-700); color: #fff; padding: .6rem 1rem; border-radius: var(--ss-radius-sm);
    text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Buttons ---------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--ss-font-body);
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: 1rem;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-border-radius: var(--ss-radius-sm);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px;
    transition: background-color .18s var(--ss-ease), border-color .18s var(--ss-ease), color .18s var(--ss-ease), transform .18s var(--ss-ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .bi { font-size: 1.05em; transition: transform .18s var(--ss-ease); }
.btn:hover .bi-arrow-right { transform: translateX(3px); }

.btn-primary {
    --bs-btn-bg: var(--ss-blue-700); --bs-btn-border-color: var(--ss-blue-700);
    --bs-btn-hover-bg: var(--ss-blue-800); --bs-btn-hover-border-color: var(--ss-blue-800);
    --bs-btn-active-bg: var(--ss-blue-900); --bs-btn-active-border-color: var(--ss-blue-900);
    --bs-btn-focus-shadow-rgb: 47, 99, 208;
}
.btn-outline-dark {
    --bs-btn-color: var(--ss-ink); --bs-btn-border-color: #C9D1DE;
    --bs-btn-hover-bg: var(--ss-ink); --bs-btn-hover-border-color: var(--ss-ink); --bs-btn-hover-color: #fff;
}
/* On dark backgrounds */
.btn-light-solid {
    --bs-btn-bg: #fff; --bs-btn-color: var(--ss-blue-700); --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: var(--ss-blue-100); --bs-btn-hover-color: var(--ss-blue-800); --bs-btn-hover-border-color: var(--ss-blue-100);
    --bs-btn-active-bg: var(--ss-blue-100); --bs-btn-active-color: var(--ss-blue-900);
}
.btn-outline-light-ss {
    --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.35);
    --bs-btn-hover-bg: rgba(255,255,255,.08); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255,255,255,.7);
    --bs-btn-active-bg: rgba(255,255,255,.12); --bs-btn-active-color: #fff;
}
.btn-sm-nav { --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.15rem; --bs-btn-font-size: .9375rem; min-height: 42px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; font-size: .9375rem; color: var(--ss-blue-700); text-decoration: none;
}
.link-arrow .bi { transition: transform .18s var(--ss-ease); }
.link-arrow:hover { color: var(--ss-blue-800); }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- 4. Small components ------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--ss-font-mono); font-size: .8125rem; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase; color: var(--ss-blue-700);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ss-green-500); border-radius: 2px; }
.on-dark .eyebrow { color: #9DB6EA; }

.icon-tile {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--ss-blue-100); color: var(--ss-blue-700); font-size: 1.45rem;
    transition: background-color .2s var(--ss-ease), color .2s var(--ss-ease);
}
.icon-tile--sm { width: 36px; height: 36px; border-radius: 9px; font-size: 1.05rem; }
.icon-tile--green { background: var(--ss-green-100); color: var(--ss-green-700); }

.section { padding-block: var(--ss-section-y); }
.section--surface { background: var(--ss-surface); }
.section--white { background: var(--ss-white); }
.section--dark { background: var(--ss-blue-900); color: #C5D0E3; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-bottom: 0; }
@media (max-width: 767.98px) { .section-head { margin-bottom: 2.5rem; } }

/* Image placeholder — shown until the Canva export is uploaded */
.img-placeholder {
    position: relative; width: 100%; border-radius: var(--ss-radius); overflow: hidden;
    background-color: var(--ss-blue-850);
    background-image: radial-gradient(rgba(157, 182, 234, .18) 1px, transparent 1px);
    background-size: 18px 18px;
    display: flex; align-items: flex-end; justify-content: flex-start;
}
.img-placeholder.ratio-16x9 { aspect-ratio: 16 / 9; }
.img-placeholder.ratio-4x3 { aspect-ratio: 4 / 3; }
.img-placeholder.ratio-3x2 { aspect-ratio: 3 / 2; }
.img-placeholder.ratio-4x5 { aspect-ratio: 4 / 5; }
.img-placeholder__label {
    margin: 1rem; padding: .3rem .65rem; border-radius: 6px;
    font-family: var(--ss-font-mono); font-size: .75rem; letter-spacing: .04em;
    color: #9DB6EA; background: rgba(7, 20, 48, .6);
}
.media-frame { border-radius: var(--ss-radius); overflow: hidden; border: 1px solid var(--ss-line); background: var(--ss-white); }
.media-frame img { display: block; width: 100%; height: auto; }

/* ---------- 5. Header & navigation --------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ss-ease), box-shadow .2s var(--ss-ease);
}
.site-header.is-scrolled { border-bottom-color: var(--ss-line); box-shadow: 0 4px 18px rgba(7, 20, 48, .05); }
.site-header .navbar { min-height: var(--ss-header-h); padding-block: .5rem; }
/* Logo: 60px desktop / 48px phones. The link's default padding is removed so the larger logo
   still fits the header height (--ss-header-h) and nothing below it moves. */
.navbar-brand { padding-block: 0; }
.navbar-brand img { height: 60px; width: auto; display: block; }
@media (max-width: 991.98px) { .navbar-brand img { height: 48px; } }

.site-header .nav-link {
    font-weight: 500; font-size: .9875rem; color: var(--ss-ink);
    padding: .55rem .9rem !important; border-radius: 8px;
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: var(--ss-blue-700); background: var(--ss-surface); }
.site-header .nav-link.active { color: var(--ss-blue-700); }
.site-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: .05em; margin-left: .35rem; }

.navbar-toggler { border: 1px solid var(--ss-line); border-radius: 10px; padding: .4rem .6rem; font-size: 1.5rem; color: var(--ss-ink); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }

.services-menu {
    --bs-dropdown-border-color: var(--ss-line);
    --bs-dropdown-border-radius: var(--ss-radius);
    padding: .75rem; margin-top: .6rem !important; min-width: 560px;
    box-shadow: 0 18px 40px rgba(7, 20, 48, .12);
}
.services-menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.services-menu__item {
    display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 10px;
    color: var(--ss-ink); font-weight: 500; font-size: .9375rem; text-decoration: none; line-height: 1.3;
}
.services-menu__item:hover, .services-menu__item:focus-visible { background: var(--ss-surface); color: var(--ss-blue-700); }
.services-menu__item:hover .icon-tile { background: var(--ss-blue-700); color: #fff; }
.services-menu__all {
    display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding: .75rem .8rem 0;
    border-top: 1px solid var(--ss-line); font-weight: 600; font-size: .9rem; text-decoration: none;
}

.mobile-nav { --bs-offcanvas-width: min(360px, 88vw); }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--ss-line); }
.mobile-nav .offcanvas-header img { height: 42px; width: auto; }
.mobile-nav__list, .mobile-nav__sub { list-style: none; padding: 0; margin: 0; }
.mobile-nav__list > li > a {
    display: block; padding: .85rem 0; font-family: var(--ss-font-display); font-weight: 700; font-size: 1.2rem;
    color: var(--ss-ink); text-decoration: none; border-bottom: 1px solid var(--ss-line);
}
.mobile-nav__list > li > a.active { color: var(--ss-blue-700); }
.mobile-nav__sub { padding: .4rem 0 .6rem .9rem; border-bottom: 1px solid var(--ss-line); }
.mobile-nav__sub a { display: block; padding: .35rem 0; color: var(--ss-text); text-decoration: none; font-size: .975rem; }

/* ---------- 6. Hero ------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background-color: var(--ss-blue-900);
    background-image: radial-gradient(rgba(157, 182, 234, .14) 1px, transparent 1px);
    background-size: 22px 22px;
    color: #C5D0E3;
    min-height: min(760px, calc(100svh - var(--ss-header-h)));
    display: flex; align-items: center;
    padding-block: 96px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ss-ease); }
.hero__video.is-playing { opacity: 1; }
/* keeps the text side readable regardless of the visual behind it */
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(7, 20, 48, .96) 0%, rgba(7, 20, 48, .85) 38%, rgba(7, 20, 48, .15) 70%, rgba(7, 20, 48, 0) 100%);
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.375rem, 1.5rem + 3.2vw, 4rem); line-height: 1.06; margin-bottom: 1.5rem; }
.hero .lead { color: #C5D0E3; margin-bottom: 2.25rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; }
.hero__points li { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: #AFC0DD; }
.hero__points .bi { color: var(--ss-green-500); font-size: 1.05rem; }
.hero__video-toggle {
    position: absolute; right: 24px; bottom: 24px; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
    background: rgba(7, 20, 48, .55); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.hero__video-toggle:hover { background: rgba(7, 20, 48, .85); }

@media (max-width: 767.98px) {
    .hero { align-items: flex-start; padding-block: 56px 72px; min-height: 0; }
    .hero__media img { object-position: center bottom; }
    .hero::after { background: linear-gradient(180deg, rgba(7, 20, 48, .97) 0%, rgba(7, 20, 48, .88) 55%, rgba(7, 20, 48, .55) 100%); }
    .hero__actions .btn { width: 100%; }
}

/* ---------- 7. Service cards ---------------------------------------------- */
.service-card {
    position: relative; height: 100%;
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.75rem; border-radius: var(--ss-radius);
    background: var(--ss-white); border: 1px solid var(--ss-line);
    transition: box-shadow .22s var(--ss-ease), border-color .22s var(--ss-ease), transform .22s var(--ss-ease);
}
.service-card h3 { font-size: 1.1875rem; margin: 0; }
.service-card p { font-size: .975rem; margin: 0; color: var(--ss-text); flex-grow: 1; }
.service-card .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.service-card:hover { border-color: #C9D5EC; box-shadow: var(--ss-shadow-hover); transform: translateY(-2px); }
.service-card:hover .icon-tile { background: var(--ss-blue-700); color: #fff; }
.service-card:focus-within { border-color: var(--ss-blue-500); }

/* ---------- 8. Benefits ---------------------------------------------------- */
.benefit { display: flex; gap: 1rem; }
.benefit h3 { font-size: 1.0625rem; margin: .2rem 0 .35rem; font-family: var(--ss-font-display); }
.benefit p { font-size: .95rem; margin: 0; color: var(--ss-text); }

/* ---------- 9. Process ----------------------------------------------------- */
.process { counter-reset: step; position: relative; }
.process-step { position: relative; padding-top: 1.75rem; height: 100%; }
.process-step::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ss-line);
}
.process-step::after {
    content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: var(--ss-green-500); box-shadow: 0 0 0 4px var(--ss-white);
}
.process-step__num { font-family: var(--ss-font-mono); font-size: .8125rem; color: var(--ss-blue-700); letter-spacing: .06em; display: block; margin-bottom: .5rem; }
.process-step h3 { font-size: 1.375rem; margin-bottom: .6rem; }
.process-step p { font-size: .975rem; margin: 0; }

/* ---------- 10. Technology stack ------------------------------------------ */
.tech-card {
    display: flex; align-items: flex-start; gap: 1rem; height: 100%;
    padding: 1.5rem; border-radius: var(--ss-radius); background: var(--ss-white); border: 1px solid var(--ss-line);
}
.tech-card__logo { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--ss-surface); }
.tech-card__logo img { width: 30px; height: 30px; }
.tech-card__cat { font-family: var(--ss-font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-muted); }
.tech-card h3 { font-size: 1.125rem; margin: .1rem 0 .35rem; }
.tech-card p { font-size: .9375rem; margin: 0; }

/* ---------- 11. Article cards --------------------------------------------- */
.article-card { height: 100%; display: flex; flex-direction: column; position: relative; }
.article-card__media { border-radius: var(--ss-radius); overflow: hidden; margin-bottom: 1.25rem; aspect-ratio: 3 / 2; background: var(--ss-surface); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ss-ease); }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8125rem; color: var(--ss-muted); margin-bottom: .6rem; }
.article-card__cat { font-family: var(--ss-font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ss-green-700); }
.article-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover h3 a { color: var(--ss-blue-700); }
.article-card p { font-size: .95rem; margin: 0; }

/* ---------- 12. CTA band -------------------------------------------------- */
.cta-band {
    position: relative; overflow: hidden;
    border-radius: calc(var(--ss-radius) + 6px);
    padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background-color: var(--ss-blue-900);
    background-image: radial-gradient(rgba(157, 182, 234, .13) 1px, transparent 1px);
    background-size: 22px 22px;
}
.cta-band::before { /* single green accent line */
    content: ""; position: absolute; left: clamp(2.5rem, 2rem + 3vw, 4.5rem); top: 0; width: 64px; height: 4px; background: var(--ss-green-500); border-radius: 0 0 4px 4px;
}
.cta-band h2 { color: #fff; max-width: 760px; }
.cta-band p { color: #C5D0E3; max-width: 640px; font-size: 1.0625rem; }

/* ---------- 13. Footer ---------------------------------------------------- */
.site-footer { background: var(--ss-blue-900); color: #AFC0DD; padding: 88px 0 32px; font-size: .9375rem; }
.site-footer img { height: 52px; width: auto; }
.site-footer__text { max-width: 360px; color: #AFC0DD; }
.site-footer__heading { font-family: var(--ss-font-mono); font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 1.1rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #C5D0E3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact li { display: flex; gap: .6rem; align-items: baseline; }
.site-footer__contact .bi { color: var(--ss-green-500); }
.site-footer__social { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.site-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--ss-line-dark); font-size: 1.05rem; }
.site-footer__social a:hover { border-color: #9DB6EA; text-decoration: none; }
.site-footer__bottom {
    margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ss-line-dark);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }

/* ---------- 14. Error pages ----------------------------------------------- */
.error-page { padding-block: 140px; text-align: center; }
.error-page__code { font-family: var(--ss-font-mono); color: var(--ss-green-700); letter-spacing: .08em; }

/* ---------- 15. Motion (subtle, first view only) --------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ss-ease), transform .5s var(--ss-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   Phase 5 — inner pages
   ========================================================================== */

/* ---------- Page hero (inner pages) --------------------------------------- */
.page-hero {
    background: var(--ss-surface);
    border-bottom: 1px solid var(--ss-line);
    padding: 40px 0 88px;
}
.page-hero--compact { padding-bottom: 64px; }
.page-hero__content { max-width: 780px; }
.page-hero h1 { margin-bottom: 1.25rem; }
@media (max-width: 767.98px) { .page-hero { padding: 28px 0 64px; } }

.breadcrumb-nav { margin-bottom: 2.5rem; }
.breadcrumb { --bs-breadcrumb-divider: "/"; --bs-breadcrumb-divider-color: #A3AEC0; margin: 0; font-size: .875rem; }
.breadcrumb a { color: var(--ss-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ss-blue-700); text-decoration: underline; }
.breadcrumb-item.active { color: var(--ss-ink); }

/* ---------- Text content -------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose--lead p { font-size: 1.125rem; }
.legal h2 { font-size: 1.375rem; margin: 2.25rem 0 .75rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }

/* ---------- Panels, lists, chips ------------------------------------------ */
.panel { background: var(--ss-white); border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 2rem; }
.section--white .panel { background: var(--ss-paper); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .bi { color: var(--ss-green-500); font-size: 1.2rem; line-height: 1.4; flex-shrink: 0; }

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list li {
    padding: .55rem 1rem; border-radius: 999px; font-size: .9375rem; font-weight: 500;
    background: var(--ss-blue-100); color: var(--ss-blue-800);
}

.benefit-card { height: 100%; padding: 1.75rem; border-radius: var(--ss-radius); background: var(--ss-white); border: 1px solid var(--ss-line); }
.section--white .benefit-card { background: var(--ss-paper); }
.benefit-card h3 { font-size: 1.125rem; margin: 1rem 0 .5rem; }
.benefit-card p { font-size: .95rem; margin: 0; }
.benefit-card--row { display: flex; gap: 1.25rem; align-items: flex-start; }
.benefit-card--row h3 { margin-top: .15rem; }

/* ---------- Services overview --------------------------------------------- */
.service-feature {
    height: 100%; display: flex; flex-direction: column; position: relative;
    border: 1px solid var(--ss-line); border-radius: var(--ss-radius); overflow: hidden; background: var(--ss-white);
    transition: box-shadow .22s var(--ss-ease), border-color .22s var(--ss-ease);
}
.service-feature__media .img-placeholder,
.service-feature__media img { border-radius: 0; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-feature__body { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-feature__body p { flex-grow: 1; }
.service-feature .link-arrow::after { content: ""; position: absolute; inset: 0; }
.service-feature:hover { border-color: #C9D5EC; box-shadow: var(--ss-shadow-hover); }

.service-link {
    display: flex; align-items: center; gap: .75rem; height: 100%;
    padding: 1rem; border-radius: var(--ss-radius-sm); background: var(--ss-white); border: 1px solid var(--ss-line);
    color: var(--ss-ink); font-weight: 600; font-size: .9375rem; text-decoration: none; line-height: 1.3;
}
.service-link:hover { border-color: var(--ss-blue-700); color: var(--ss-blue-700); }

.tech-inline { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; }
.tech-inline li {
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
    background: var(--ss-white); border: 1px solid var(--ss-line); border-radius: 10px;
    font-weight: 600; font-size: .9375rem; color: var(--ss-ink);
}

/* ---------- FAQ accordion -------------------------------------------------- */
.faq {
    --bs-accordion-border-color: var(--ss-line);
    --bs-accordion-border-radius: var(--ss-radius);
    --bs-accordion-inner-border-radius: calc(var(--ss-radius) - 1px);
    --bs-accordion-btn-padding-y: 1.15rem;
    --bs-accordion-btn-padding-x: 1.35rem;
    --bs-accordion-active-bg: var(--ss-white);
    --bs-accordion-active-color: var(--ss-blue-700);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--bs-focus-ring-color);
    --bs-accordion-body-padding-x: 1.35rem;
}
.faq .accordion-header { margin: 0; }
.faq .accordion-button { font-family: var(--ss-font-display); font-weight: 700; font-size: 1.0625rem; color: var(--ss-ink); }
.faq .accordion-button:not(.collapsed) { color: var(--ss-blue-700); box-shadow: none; }
.faq .accordion-body { padding-top: 0; color: var(--ss-text); }

/* ---------- About page ----------------------------------------------------- */
.principle { height: 100%; padding: 1.5rem; border: 1px solid var(--ss-line-dark); border-radius: var(--ss-radius); background: var(--ss-blue-850); }
.principle__num { font-family: var(--ss-font-mono); font-size: .8125rem; color: var(--ss-green-500); }
.principle h3 { font-size: 1.125rem; margin: .5rem 0; }
.principle p { margin: 0; font-size: .95rem; color: #AFC0DD; }
.link-arrow--light { color: #9DB6EA; }
.link-arrow--light:hover { color: #fff; }
.statement {
    height: 100%; padding: 2.5rem; border-radius: var(--ss-radius);
    background: var(--ss-paper); border: 1px solid var(--ss-line); border-top: 4px solid var(--ss-blue-700);
}
.statement h2 { margin-bottom: 1rem; line-height: 1.3; }
.statement p:last-child { margin: 0; }

/* ---------- Technology page ------------------------------------------------ */
.tech-group + .tech-group { margin-top: 3rem; }
.tech-group__title {
    font-family: var(--ss-font-mono); font-size: .875rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ss-muted); margin-bottom: 1.25rem; display: flex; gap: .5rem; align-items: center;
}
.tech-group__title .bi { color: var(--ss-blue-700); }
.tech-note { margin: 3rem 0 0; font-size: .875rem; color: var(--ss-muted); display: flex; gap: .5rem; max-width: 760px; }

/* ---------- Forms ----------------------------------------------------------- */
.form-label { font-weight: 600; color: var(--ss-ink); font-size: .9375rem; margin-bottom: .45rem; }
.form-label .req { color: #B42318; }
.form-label .optional { font-weight: 400; color: var(--ss-muted); }
.form-control, .form-select {
    min-height: 50px; border-radius: var(--ss-radius-sm); border-color: #CDD4E0; font-size: 1rem; color: var(--ss-ink);
    background-color: var(--ss-white); padding: .7rem .95rem;
}
textarea.form-control { min-height: 160px; }
.form-control:focus, .form-select:focus { border-color: var(--ss-blue-500); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.form-control::placeholder { color: #8A96A8; }
.form-text { color: var(--ss-muted); font-size: .85rem; }
.invalid-feedback { font-size: .875rem; }
.form-privacy { font-size: .875rem; color: var(--ss-muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 2.5rem; border-radius: var(--ss-radius); background: var(--ss-green-100); border: 1px solid #BFE5C7; }
.form-success:focus { outline: none; }

.next-steps { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.25rem; counter-reset: step; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
.next-steps li::before {
    content: counter(step); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--ss-blue-700); color: #fff; font-weight: 700; font-size: .875rem;
}
.next-steps strong { color: var(--ss-ink); }
.next-steps span { font-size: .95rem; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.contact-list li { display: flex; gap: .65rem; align-items: baseline; }
.contact-list .bi { color: var(--ss-blue-700); }

/* Phones: keep large row gutters inside the 16px container padding (no sideways scroll) */
@media (max-width: 575.98px) {
    .row.g-5, .row.gx-5, .row.g-lg-5 { --bs-gutter-x: 2rem; }
}

/* ==========================================================================
   Phase 6 — Insights (blog & news)
   ========================================================================== */

/* ---------- Listing: search and category navigation ------------------------ */
.search-form { position: relative; display: flex; gap: .5rem; }
.search-form .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ss-muted); pointer-events: none; }
.search-form .form-control { padding-left: 2.6rem; }
.search-form .btn { flex-shrink: 0; }

.category-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.category-nav a {
    padding: .5rem 1rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none;
    color: var(--ss-ink); background: var(--ss-white); border: 1px solid var(--ss-line);
}
.category-nav a:hover { border-color: var(--ss-blue-700); color: var(--ss-blue-700); }
.category-nav a.active { background: var(--ss-blue-700); border-color: var(--ss-blue-700); color: #fff; }
@media (max-width: 575.98px) {
    .category-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: thin; }
    .category-nav a { white-space: nowrap; }
}

.search-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--ss-line); }

/* ---------- Featured article ------------------------------------------------- */
.featured-article { position: relative; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); overflow: hidden; background: var(--ss-paper); transition: box-shadow .22s var(--ss-ease); }
.featured-article:hover { box-shadow: var(--ss-shadow-hover); }
.featured-article__media { height: 100%; }
.featured-article__media img, .featured-article__media .img-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 280px; }
.featured-article__body { padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.featured-article__label { font-family: var(--ss-font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-green-700); margin-bottom: .75rem; }
.featured-article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .85rem; }
.featured-article h2 a { color: inherit; text-decoration: none; }
.featured-article h2 a::after { content: ""; position: absolute; inset: 0; }
.featured-article:hover h2 a { color: var(--ss-blue-700); }

.article-card__author { font-size: .875rem; color: var(--ss-muted); margin-top: .75rem !important; }
.badge-news { font-family: var(--ss-font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 4px; background: var(--ss-blue-700); color: #fff; }

.empty-state { text-align: center; padding: 4rem 1rem; max-width: 520px; margin: 0 auto; }
.empty-state > .bi { font-size: 2.25rem; color: var(--ss-blue-700); display: block; margin-bottom: 1rem; }

.pagination-nav { margin-top: 4rem; display: flex; justify-content: center; }
.pagination { --bs-pagination-color: var(--ss-ink); --bs-pagination-active-bg: var(--ss-blue-700); --bs-pagination-active-border-color: var(--ss-blue-700); --bs-pagination-hover-color: var(--ss-blue-700); --bs-pagination-focus-box-shadow: 0 0 0 3px var(--bs-focus-ring-color); gap: .35rem; }
.pagination .page-link { border-radius: 10px !important; min-width: 44px; min-height: 44px; display: grid; place-items: center; }

/* ---------- Newsletter ---------------------------------------------------------- */
.newsletter { padding: clamp(2rem, 1.5rem + 2vw, 3rem); border-radius: calc(var(--ss-radius) + 6px); background: var(--ss-blue-100); }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter__row .form-control { background: #fff; }
.newsletter__msg { margin: .6rem 0 0; font-size: .9rem; min-height: 1.4em; }
.newsletter__msg.is-success { color: var(--ss-green-700); }
.newsletter__msg.is-error { color: #B42318; }
@media (max-width: 575.98px) { .newsletter__row { flex-direction: column; } }

/* ---------- Article page ----------------------------------------------------------- */
.article-header { background: var(--ss-surface); padding: 40px 0 120px; }
.article-header__inner { max-width: 820px; }
.article-header h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.125rem); margin-bottom: 1.25rem; }
.article-meta { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; color: var(--ss-muted); }
.article-meta li { display: flex; align-items: center; gap: .45rem; }
.article-meta .bi { color: var(--ss-blue-700); }
.article-figure { margin: -80px 0 3.5rem; border-radius: var(--ss-radius); overflow: hidden; border: 1px solid var(--ss-line); background: var(--ss-white); }
.article-figure img, .article-figure .img-placeholder { display: block; width: 100%; border-radius: 0; }
@media (max-width: 767.98px) { .article-header { padding-bottom: 88px; } .article-figure { margin-top: -56px; margin-bottom: 2.5rem; } }

.article-body { font-size: 1.125rem; line-height: 1.75; max-width: 70ch; color: #2C3A52; }
.article-body h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); margin: 3rem 0 1rem; scroll-margin-top: 100px; }
.article-body h3 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; scroll-margin-top: 100px; }
.article-body p { margin-bottom: 1.35rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: .6rem; }
.article-body li::marker { color: var(--ss-blue-700); font-weight: 700; }
.article-body strong { color: var(--ss-ink); }
.article-body a { color: var(--ss-blue-700); }
.article-body img { border-radius: var(--ss-radius); margin: 1rem 0; }
.article-body blockquote { border-left: 4px solid var(--ss-green-500); padding: .25rem 0 .25rem 1.25rem; margin: 2rem 0; font-size: 1.2rem; color: var(--ss-ink); }
.article-body > *:first-child { margin-top: 0; }

.article-aside { position: sticky; top: calc(var(--ss-header-h) + 24px); display: grid; gap: 2rem; }
.toc__title { font-family: var(--ss-font-mono); font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-muted); margin-bottom: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ss-line); }
.toc li a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .9rem; line-height: 1.4; color: var(--ss-text); text-decoration: none; }
.toc li.toc__level-3 a { padding-left: 1.75rem; font-size: .85rem; }
.toc li a:hover { color: var(--ss-blue-700); }
.toc li a.is-active { color: var(--ss-blue-700); border-left-color: var(--ss-blue-700); font-weight: 600; }
@media (max-width: 991.98px) { .article-aside { position: static; } .toc { display: none; } }

.share__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share__list a, .share__list button {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--ss-line); background: var(--ss-white); color: var(--ss-ink); font-size: 1.05rem; text-decoration: none;
}
.share__list a:hover, .share__list button:hover { border-color: var(--ss-blue-700); color: var(--ss-blue-700); }
.share__copied { font-size: .85rem; color: var(--ss-green-700); margin: .5rem 0 0; min-height: 1.2em; }

.source-note { display: flex; gap: .75rem; padding: 1rem 1.25rem; margin-bottom: 2rem; border-radius: var(--ss-radius-sm); background: var(--ss-blue-100); color: var(--ss-ink); font-size: .95rem; }
.source-note .bi { color: var(--ss-blue-700); margin-top: .2rem; }

.tag-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { display: inline-block; padding: .35rem .8rem; border-radius: 8px; background: var(--ss-surface); font-size: .875rem; color: var(--ss-text); text-decoration: none; }
.tag-list a:hover { background: var(--ss-blue-100); color: var(--ss-blue-800); }

.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); font-size: .95rem; }
.author-box__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ss-surface); display: grid; place-items: center; flex-shrink: 0; }
.author-box__name { font-weight: 700; color: var(--ss-ink); margin-bottom: .25rem; }

.article-cta { margin-top: 2.5rem; padding: 2rem; border-radius: var(--ss-radius); background: var(--ss-surface); border-left: 4px solid var(--ss-green-500); }

/* ==========================================================================
   Phase 10 — accessibility refinements
   ========================================================================== */

/* A clear, consistent focus outline for keyboard users (Bootstrap replaces it with a faint glow) */
.site-header .nav-link:focus-visible,
.services-menu__item:focus-visible,
.services-menu__all:focus-visible,
.btn:focus-visible,
.page-link:focus-visible,
.accordion-button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.category-nav a:focus-visible,
.share__list a:focus-visible,
.share__list button:focus-visible,
.navbar-toggler:focus-visible {
    outline: 3px solid var(--ss-blue-500);
    outline-offset: 2px;
    box-shadow: none;
}
/* Lighter outline where the background is navy */
.on-dark :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible {
    outline-color: #9DB6EA;
}

/* Service menu links use Bootstrap's dropdown-item (for arrow-key navigation) with our own look */
.services-menu__item.dropdown-item { white-space: normal; width: auto; }
.services-menu__item.dropdown-item:active,
.services-menu__item.dropdown-item:focus { background: var(--ss-surface); color: var(--ss-blue-700); }

/* Comfortable touch target for the mobile menu button (44 x 44px) */
.navbar-toggler { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }

/* Tablets: the wide hero image would sit behind the text, so use the phone treatment */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero::after { background: linear-gradient(180deg, rgba(7, 20, 48, .97) 0%, rgba(7, 20, 48, .88) 55%, rgba(7, 20, 48, .55) 100%); }
    .hero__media img { object-position: center bottom; }
}

/* WhatsApp chat button (shown when enabled in Admin → General settings) */
.whatsapp-chat {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    display: inline-flex; align-items: center; gap: .5rem;
    height: 52px; padding: 0 1.1rem 0 .95rem; border-radius: 999px;
    background: #0E7F45; color: #fff; font-weight: 600; font-size: .95rem; /* darker than WhatsApp green so white text passes WCAG AA (5.1:1) */
    box-shadow: 0 8px 24px rgba(7, 20, 48, .22);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.whatsapp-chat .bi { font-size: 1.5rem; line-height: 1; }
.whatsapp-chat:hover, .whatsapp-chat:focus-visible { color: #fff; background: #086B37; text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 20, 48, .28); }
.whatsapp-chat:focus-visible { outline: 3px solid #0D3384; outline-offset: 3px; }
/* Phones: icon only, so it never covers content */
@media (max-width: 575.98px) {
    .whatsapp-chat { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
    .whatsapp-chat__label { display: none; }
}
@media print { .whatsapp-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-chat { transition: none; } .whatsapp-chat:hover { transform: none; } }
/* Keep the hero video's pause button clear of the WhatsApp button (only when that button is shown) */
body:has(.whatsapp-chat) .hero__video-toggle { bottom: 88px; }

/* Contact form captcha */
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.captcha__image { display: block; width: 180px; height: 56px; border: 1px solid var(--ss-line); border-radius: 8px; background: #F3F5F9; }
.captcha__refresh { white-space: nowrap; }
.captcha__input { width: 160px; max-width: 100%; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
/* The input sits inside .captcha, so Bootstrap's "input ~ message" rule cannot show its error */
.captcha:has(.is-invalid) ~ .invalid-feedback { display: block; }
