/* =============================================================================
   SoftGoWay public website - design system
   Light, modern, brand colours taken from the SoftGoWay logo.
   Layout grid/utilities come from Bootstrap 5; everything visual lives here.
   ============================================================================= */

:root {
    /* brand (from the logo) */
    --brand: #13893a;          /* logo green */
    --brand-600: #0f7431;
    --brand-700: #0b5d27;
    --brand-50: #ecf8ef;
    --brand-100: #d4f0dc;
    --blue: #1257d6;           /* logo blue */
    --blue-50: #ebf2ff;
    --red: #e3261e;            /* logo red */
    --yellow: #f5b812;         /* logo yellow */
    --orange: #f2621c;         /* logo orange */

    /* neutrals */
    --ink: #0d1726;
    --ink-2: #334155;
    --muted: #5b6678;
    --line: #e4e8ee;
    --soft: #f5f7fa;
    --white: #ffffff;
    --ink-bg: #0d1726;        /* always-dark blocks: footer, CTA band, code */
    --surface: #ffffff;       /* cards, inputs */
    --header-glass: rgba(255, 255, 255, .82);
    --glass: rgba(255, 255, 255, .92);

    /* shape & depth */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(13, 23, 38, .06);
    --shadow: 0 8px 24px -8px rgba(13, 23, 38, .12), 0 2px 6px rgba(13, 23, 38, .04);
    --shadow-lg: 0 24px 60px -20px rgba(13, 23, 38, .22);

    --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --header-h: 76px;
}

/* ---------------------------------------------------------------- base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body.site {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.site a { color: var(--brand-600); text-decoration: none; }
.site a:hover { color: var(--brand-700); }
.site img { max-width: 100%; height: auto; }
.site ::selection { background: var(--brand-100); }
.site :focus-visible { outline: 3px solid rgba(19, 137, 58, .35); outline-offset: 2px; border-radius: 6px; }

.site-main { padding-top: var(--header-h); }

/* ---------------------------------------------------------------- buttons */
.btn-sgw, .btn-sgw-outline, .btn-sgw-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    white-space: nowrap; cursor: pointer;
}
.btn-sgw { background: var(--brand); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(19, 137, 58, .6); }
.btn-sgw:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(19, 137, 58, .6); }
.btn-sgw-outline { background: var(--surface); color: var(--ink) !important; border-color: var(--line); }
.btn-sgw-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sgw-ghost { background: transparent; color: var(--brand-600) !important; padding-left: 0; padding-right: 0; }
.btn-sgw-ghost:hover { color: var(--brand-700) !important; }
.btn-sgw-ghost i { transition: transform .2s ease; }
.btn-sgw-ghost:hover i { transform: translateX(3px); }
.btn-sgw.btn-lg, .btn-sgw-outline.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sgw.btn-light { background: #fff; color: #0d1726 !important; box-shadow: none; }
.btn-sgw.btn-light:hover { background: #ecf8ef; } /* always on a dark band */

/* ---------------------------------------------------------------- header */
.site-header {
    position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block of the fixed-position mobile menu and clip it to 76px. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--header-glass);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.site-logo img { height: 54px; width: auto; display: block; }

.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav > ul > li { position: relative; }
.site-nav .nav-a {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .85rem; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-2);
    background: none; border: 0;
}
.site-nav .nav-a:hover, .site-nav .nav-a.active { color: var(--ink); background: var(--soft); }
.site-nav .nav-a.active { color: var(--brand-700); background: var(--brand-50); }
.site-nav .nav-a .bi-chevron-down { font-size: .7rem; transition: transform .2s ease; }

/* services mega menu */
.mega {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
    width: min(760px, 92vw); padding: 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.has-mega:hover .bi-chevron-down, .has-mega.open .bi-chevron-down { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem; }
.mega-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 12px; color: var(--ink-2) !important; font-weight: 500; font-size: .92rem; }
.mega-item:hover { background: var(--soft); color: var(--ink) !important; }
.mega-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); font-size: 1rem; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; padding: .75rem .7rem 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 1.4rem; color: var(--ink); }

@media (max-width: 1199.98px) {
    .nav-toggle { display: inline-grid; place-items: center; }
    .site-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
        background: var(--surface); padding: 1rem 1.25rem 2rem; overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-nav.open { opacity: 1; visibility: visible; transform: none; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
    .site-nav .nav-a { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1rem; border-radius: 12px; }
    .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: .25rem 0 .5rem .5rem; display: none; opacity: 1; visibility: visible; }
    .has-mega.open > .mega { display: block; transform: none; }
    .has-mega:hover > .mega { transform: none; }
    .header-cta { margin-left: auto; }
    .header-cta .btn-sgw { display: none; }
    body.nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-ink { background: var(--ink-bg); color: #c5cedb; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-600); background: var(--brand-50); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.section-title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.75rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 3.25rem; }
.section-head.text-center .section-lead { margin-left: auto; margin-right: auto; }
.text-grad {
    background: linear-gradient(95deg, var(--brand) 0%, #1fae57 45%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(18, 87, 214, .08), transparent 60%),
        radial-gradient(700px 420px at 5% 30%, rgba(19, 137, 58, .10), transparent 60%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.07; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem; margin-bottom: 1.5rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero-badge b { background: var(--brand); color: #fff; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }
.hero-proof strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgba(13, 23, 38, .16)); }

.page-hero { position: relative; isolation: isolate; padding: 72px 0 56px; overflow: hidden; background: linear-gradient(180deg, var(--soft), var(--white)); border-bottom: 1px solid var(--line); }
/* Same soft glow + grid as the home hero, so inner pages match it in both themes. */
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(760px 380px at 92% 0%, rgba(18, 87, 214, .09), transparent 62%),
        radial-gradient(640px 360px at 0% 30%, rgba(19, 137, 58, .11), transparent 62%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); margin-bottom: .75rem; letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }

/* ---------------------------------------------------------------- logo strip / stats */
.trust-strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .label { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tech-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.tech-track span { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; color: #8792a3; font-size: 1.05rem; white-space: nowrap; }
.tech-track i { font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tech-track { animation: none; } }

.stat { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat .num small { font-size: .6em; color: var(--brand); }
.stat p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- cards */
.card-sgw {
    position: relative; height: 100%; padding: 1.75rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-sgw:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-sgw h3 { font-size: 1.2rem; margin: 1.1rem 0 .5rem; }
.card-sgw p { color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }
.card-sgw .btn-sgw-ghost { font-size: .9rem; }
.card-sgw.link-card { color: inherit; display: block; }

.icon-tile {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem;
    background: var(--brand-50); color: var(--brand-600);
}
.icon-tile.blue { background: var(--blue-50); color: var(--blue); }
.icon-tile.red { background: #fdeceb; color: var(--red); }
.icon-tile.yellow { background: #fef6dd; color: #b98700; }
.icon-tile.orange { background: #feefe6; color: var(--orange); }
.icon-tile.ink { background: var(--soft); color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand-600); font-size: .85rem;
}

/* feature split (image + text) */
.split-art { border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-50), var(--blue-50)); padding: 2rem; }
.split-art img { width: 100%; display: block; }

/* process steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.chip i { color: var(--brand-600); }

/* case studies */
.case { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.case-visual { aspect-ratio: 16 / 10; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.case-visual img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.case h3 { font-size: 1.3rem; margin: .5rem 0 .6rem; }
.case p { color: var(--muted); }
.case-metrics { display: flex; gap: 1.5rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.case-metrics strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--brand-600); line-height: 1.1; }
.case-metrics span { font-size: .82rem; color: var(--muted); }

/* FAQ (native details) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .75rem; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; font-size: 1.1rem; color: var(--brand-600); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* blog */
.post { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-thumb i { font-size: 3rem; color: #fff; position: relative; z-index: 1; opacity: .95; }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: url("../img/grid-pattern.svg") center / 600px auto; opacity: .18; }
.post-thumb.t-green { background: linear-gradient(135deg, #0f7431, #1fae57); }
.post-thumb.t-blue { background: linear-gradient(135deg, #0b3fa8, #3b82f6); }
.post-thumb.t-ink { background: linear-gradient(135deg, #0d1726, #334155); }
.post-thumb.t-orange { background: linear-gradient(135deg, #c2410c, #f5b812); }
.post-thumb.t-red { background: linear-gradient(135deg, #b91c1c, #f2621c); }
.post-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: .75rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta .cat { color: var(--brand-600); font-weight: 600; }
.post h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background: radial-gradient(600px 300px at 90% 0%, rgba(59, 130, 246, .35), transparent 60%),
                radial-gradient(500px 300px at 0% 100%, rgba(31, 174, 87, .35), transparent 60%), var(--ink-bg);
    color: #c5cedb;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.cta-band p { font-size: 1.1rem; }

/* contact */
.contact-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.info-row { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row h4 { font-size: .95rem; margin: 0 0 .2rem; }
.info-row p, .info-row a { margin: 0; color: var(--muted); font-size: .95rem; display: block; }
.info-row a:hover { color: var(--brand-600); }
.form-sgw .form-label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.form-sgw .form-control, .form-sgw .form-select {
    border-radius: 12px; border: 1.5px solid var(--line); padding: .8rem 1rem; font-size: .97rem; background: var(--surface); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-sgw .form-control:focus, .form-sgw .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(19, 137, 58, .12); }
.form-sgw .field-validation-error, .form-sgw .validation-summary-errors { color: var(--red); font-size: .85rem; display: block; margin-top: .3rem; }
.form-sgw .validation-summary-errors ul { margin: 0; padding-left: 1rem; }
.form-sgw .input-validation-error { border-color: var(--red); }
.captcha-box { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 12px; background: var(--soft); border: 1px dashed var(--line); }
.captcha-box .q { font-family: var(--font-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.alert-sgw { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-weight: 500; }

/* services page */
.svc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .svc-layout { grid-template-columns: 1fr; } }
.svc-side { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
@media (max-width: 991.98px) { .svc-side { position: static; } }
.svc-side h2 { font-size: 1rem; padding: 1.1rem 1.25rem; margin: 0; border-bottom: 1px solid var(--line); background: var(--soft); }
.svc-list { list-style: none; margin: 0; padding: .5rem; max-height: 60vh; overflow-y: auto; }
.svc-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .85rem; border-radius: 10px; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.svc-list a:hover { background: var(--soft); color: var(--ink); }
.svc-list a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.svc-list a i { opacity: 0; transition: opacity .15s ease; }
.svc-list a.active i, .svc-list a:hover i { opacity: 1; }
.svc-pager { display: flex; justify-content: center; gap: .35rem; padding: .75rem; border-top: 1px solid var(--line); }
.svc-pager a, .svc-pager span { min-width: 34px; height: 34px; padding: 0 .5rem; display: inline-grid; place-items: center; border-radius: 9px; font-size: .88rem; border: 1px solid var(--line); color: var(--ink-2); }
.svc-pager .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-pager .disabled { opacity: .45; pointer-events: none; }
.svc-cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.svc-cats a { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; }
.svc-cats a:hover { border-color: var(--ink-2); color: var(--ink); }
.svc-cats a.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.svc-detail { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: opacity .2s ease; }
.svc-detail.loading { opacity: .45; }
.svc-detail-img { aspect-ratio: 21 / 9; background: var(--soft); overflow: hidden; }
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-detail-body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.svc-detail-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.svc-detail-body .desc p { color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.feature-grid li { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: var(--soft); font-size: .94rem; color: var(--ink-2); }
.feature-grid li i { color: var(--brand-600); margin-top: .15rem; }

/* technologies (docs) */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 991.98px) { .docs-layout { grid-template-columns: 1fr; } }
.docs-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
@media (max-width: 991.98px) { .docs-nav { position: static; max-height: none; } }
.docs-nav > summary { list-style: none; cursor: pointer; }
.docs-nav > summary::-webkit-details-marker { display: none; }
.docs-nav h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem .85rem; }
.docs-nav ol { list-style: none; padding: 0; margin: 0; counter-reset: topic; }
.docs-nav li a { display: flex; gap: .65rem; padding: .6rem .85rem; border-radius: 10px; color: var(--ink-2); font-size: .93rem; border-left: 2px solid transparent; }
.docs-nav li a::before { counter-increment: topic; content: counter(topic); font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); min-width: 1.2rem; }
.docs-nav li a:hover { background: var(--soft); }
.docs-nav li a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.docs-nav li a.active::before { color: var(--brand-600); }
.docs-content { min-width: 0; }
.docs-content .doc-section { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.docs-content .doc-section:last-child { border-bottom: 0; }
.docs-content h2 { font-size: 1.6rem; }
.docs-content h3 { font-size: 1.25rem; margin-top: 1.25rem; }
.docs-content pre, .docs-content code { font-family: "JetBrains Mono", Consolas, monospace; font-size: .9rem; }
.docs-content pre { background: var(--ink-bg); color: #e2e8f0; padding: 1.1rem 1.25rem; border-radius: 12px; overflow-x: auto; }
.docs-content :not(pre) > code { background: var(--soft); padding: .15rem .4rem; border-radius: 6px; color: var(--red); }
.docs-content img { border-radius: 12px; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.docs-content th, .docs-content td { border: 1px solid var(--line); padding: .6rem .8rem; }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* empty state */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state img { max-width: 280px; margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-bg); color: #a3aebf; padding: 72px 0 28px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.site-footer a { color: #a3aebf; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-logo { display: inline-block; margin-bottom: 1.25rem; } /* logo_dark.png: white text for the dark footer */
.site-footer .foot-logo img { height: 50px; width: auto; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; font-size: .95rem; }
.site-footer .foot-contact li { display: flex; gap: .75rem; }
.site-footer .foot-contact i { color: #4ade80; margin-top: .15rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 1.05rem; transition: background-color .2s ease; }
.socials a:hover { background: var(--brand); }
.site-footer { padding-bottom: 88px; } /* room for the floating WhatsApp / back-to-top buttons */
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center; background: var(--brand); color: #fff !important; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.wa-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 1020; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff !important; font-size: 1.6rem; box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-y { animation: none; } }

/* ---------------------------------------------------------------- clients band */
.clients-band { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.clients-label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.75rem; }
.client-logo { flex: 0 0 auto; display: grid; place-items: center; width: 190px; height: 92px; padding: 1rem 1.5rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-logo img { max-height: 48px; max-width: 140px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.client-logo:hover img { filter: none; opacity: 1; }
.client-logo img:hover { filter: none; opacity: 1; }
.industry-chip { padding: .75rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; color: var(--ink-2); font-size: .98rem; }
.industry-chip i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); font-size: 1.05rem; }

/* ---------------------------------------------------------------- technology scroller */
.tech-scroller { display: grid; gap: 1.1rem; overflow: hidden; padding: .75rem 0 1.25rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tech-row { display: flex; gap: 1.1rem; width: max-content; animation: marquee 45s linear infinite; }
.tech-row.reverse { animation-direction: reverse; animation-duration: 52s; }
.tech-scroller:hover .tech-row { animation-play-state: paused; }
.tech-tile {
    flex: 0 0 auto; display: flex; align-items: center; gap: .8rem; padding: .95rem 1.4rem .95rem 1rem;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-tile img { width: 40px; height: 40px; object-fit: contain; padding: 6px; border-radius: 12px; background: var(--soft); transition: transform .35s ease; }
.tech-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -14px rgba(19, 137, 58, .45); border-color: var(--brand-100); }
.tech-tile:hover img { transform: rotate(-8deg) scale(1.12); }
@media (prefers-reduced-motion: reduce) { .tech-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .tech-row [aria-hidden] { display: none; } }

/* ---------------------------------------------------------------- photos */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft); }
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art .photo-frame { animation: floatTilt 7s ease-in-out infinite; }
@keyframes floatTilt { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-.5deg) translateY(-14px); } }
.split-art.photo { animation: floatY 8s ease-in-out infinite; }
.flex-lg-row-reverse .split-art.photo { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .hero-art .photo-frame, .split-art.photo { animation: none; } }
.hero-art .photo-frame img { aspect-ratio: 3 / 2; }
.split-art.photo { padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-art.photo img { aspect-ratio: 1100 / 864; object-fit: cover; }

/* ================================================================ motion polish */
/* scroll progress bar */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand), #1fae57, var(--blue)); }

/* hero: drifting colour glows + shimmering accent word */
.hero .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.hero .glow.g1 { width: 380px; height: 380px; background: #b9ebc9; top: -60px; left: -80px; animation: drift1 16s ease-in-out infinite; }
.hero .glow.g2 { width: 420px; height: 420px; background: #cfe0ff; top: 40px; right: -120px; animation: drift2 19s ease-in-out infinite; }
.hero .glow.g3 { width: 220px; height: 220px; background: #ffe9b0; bottom: -40px; left: 45%; animation: drift1 22s ease-in-out infinite reverse; }
@keyframes drift1 { 50% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-70px, 50px) scale(.9); } }
.hero h1 .text-grad { background-size: 200% auto; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* floating stat cards around the hero image */
.hero-art .float-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem;
    background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); line-height: 1.25;
}
.hero-art .float-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.hero-art .float-card .icon-tile { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
.hero-art .float-card.c1 { left: -22px; bottom: 14%; animation: floatY 5s ease-in-out infinite; }
.hero-art .float-card.c2 { right: -18px; top: 8%; animation: floatY 6s ease-in-out infinite -2s; }
@media (max-width: 575.98px) { .hero-art .float-card { display: none; } }

/* pulsing eyebrow dot */
.eyebrow .dot { position: relative; }
.eyebrow .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* shine sweep on primary buttons */
.btn-sgw { position: relative; overflow: hidden; }
.btn-sgw::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn-sgw.btn-light::after { background: linear-gradient(120deg, transparent, rgba(19, 137, 58, .15), transparent); }
@keyframes shine { 0%, 70% { left: -75%; } 100% { left: 130%; } }

/* card hover: gradient border glow + icon pop */
.card-sgw, .step, .post, .case { position: relative; }
.card-sgw::before, .step::before { pointer-events: none; }
.card-sgw::after, .step::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .3s ease;
    background: linear-gradient(135deg, var(--brand), #1fae57 40%, var(--blue));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-sgw:hover::after, .step:hover::after { opacity: 1; }
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-sgw .icon-tile { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.card-sgw:hover .icon-tile { transform: translateY(-3px) rotate(-8deg) scale(1.1); }

/* image zoom on hover */
.case-visual img, .post-thumb i { transition: transform .6s ease; }
.case:hover .case-visual img { transform: scale(1.06); }
.post:hover .post-thumb i { transform: scale(1.15) rotate(-6deg); }

/* CTA band: slowly moving gradient */
.cta-band { background-size: 160% 160%; animation: ctaMove 14s ease-in-out infinite alternate; }
@keyframes ctaMove { to { background-position: 100% 100%; } }

/* stagger reveal for grids */
.reveal.in .card-sgw, .reveal.in .step { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .hero .glow, .hero h1 .text-grad, .hero-art .float-card, .eyebrow .dot::after, .btn-sgw::after, .cta-band { animation: none !important; }
    .scroll-progress { display: none; }
}

/* illustrations (SVG) float gently like the photos */
.split-art:not(.photo) img { animation: floatY 7s ease-in-out infinite; }
.flex-lg-row-reverse .split-art:not(.photo) img { animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) { .split-art:not(.photo) img { animation: none; } }

/* ================================================================== dark theme
   Set by Scripts/app/theme.js (<html data-theme="dark">). Deep navy rather than black,
   brand colours slightly brighter so they keep their contrast. */
html[data-theme="dark"] {
    --brand: #22a94f;
    --brand-600: #1f9a48;
    --brand-700: #2bbd5b;
    --brand-50: rgba(34, 169, 79, .14);
    --brand-100: rgba(34, 169, 79, .24);
    --blue: #5b95f9;
    --blue-50: rgba(91, 149, 249, .15);

    --ink: #e8eef6;
    --ink-2: #c3cddb;
    --muted: #93a0b4;
    --line: #1f2b3e;
    --soft: #0f1829;
    --white: #0a111e;
    --surface: #111b2d;
    --ink-bg: #060b15;
    --header-glass: rgba(10, 17, 30, .8);
    --glass: rgba(17, 27, 45, .9);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 8px 24px -8px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
}
html[data-theme="dark"] body.site { color: var(--ink-2); }
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
html[data-theme="dark"] .form-sgw .form-control::placeholder { color: #66748a; }
html[data-theme="dark"] .form-sgw .form-control:focus,
html[data-theme="dark"] .form-sgw .form-select:focus { background: var(--surface); color: var(--ink); }
/* Client logos are drawn for white; keep a soft white tile so they stay readable. */
html[data-theme="dark"] .client-logo { background: #f3f5f8; border-color: transparent; }
/* Photos: tone down the brightest whites a little. */
html[data-theme="dark"] .photo-frame img,
html[data-theme="dark"] .case-visual img { filter: brightness(.92); }
/* Inner-page header band: deeper glow in dark mode, like the home hero. */
html[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0c1626, var(--white)); }
html[data-theme="dark"] .page-hero::before {
    background:
        radial-gradient(760px 380px at 92% 0%, rgba(59, 130, 246, .20), transparent 62%),
        radial-gradient(640px 360px at 0% 30%, rgba(34, 169, 79, .22), transparent 62%),
        url("../img/grid-pattern.svg") center top / 1400px auto no-repeat;
}
html[data-theme="dark"] .page-hero::before { opacity: .9; }
html[data-theme="dark"] .icon-tile.red { background: rgba(227, 38, 30, .16); }
html[data-theme="dark"] .icon-tile.yellow { background: rgba(245, 184, 18, .14); color: #f5b812; }
html[data-theme="dark"] .icon-tile.orange { background: rgba(242, 98, 28, .15); }
html[data-theme="dark"] .svc-cats a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
