/* imunshi labs — site styles */
:root {
    --orange: #FF4300;
    --orange-600: #E03B00;
    --orange-50: #FFF2EC;
    --navy: #002745;
    --navy-700: #0A3A63;
    --navy-900: #001A30;
    --ink: #0F1B2A;
    --muted: #51606F;
    --line: #E3E8EF;
    --surface: #FFFFFF;
    --surface-2: #F5F7FA;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(0, 39, 69, .06), 0 8px 24px rgba(0, 39, 69, .08);
    --shadow-lg: 0 2px 4px rgba(0, 39, 69, .06), 0 20px 48px rgba(0, 39, 69, .14);
    --container: 1160px;
    --header-h: 72px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 39, 69, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand img { height: 46px; width: auto; }

.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block; padding: .5rem .9rem; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-list a:hover { background: var(--surface-2); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--orange-600); background: var(--orange-50); }
.nav-list .btn { margin-left: .5rem; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy);
    border-radius: 2px; transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255, 67, 0, .28); }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-50); color: var(--navy); }
.btn-sm { padding: .55rem 1.05rem; font-size: .93rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(255, 67, 0, .10), transparent 60%),
        radial-gradient(40rem 24rem at -10% 110%, rgba(0, 39, 69, .08), transparent 60%),
        url("../images/grid.svg") center / 48px 48px,
        var(--surface);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--orange-600); background: var(--orange-50);
    padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 38ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 39, 69, .15)); }

.page-hero {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(50rem 22rem at 90% 0%, rgba(255, 67, 0, .10), transparent 60%),
        url("../images/grid.svg") center / 48px 48px,
        var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.page-hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #DCE6F0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #AFC3D6; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.8rem; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #FFD3C2; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-link { display: inline-flex; gap: .4rem; align-items: center; margin-top: 1rem; font-weight: 700; text-decoration: none; }
.icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--orange-50); color: var(--orange); font-size: 1.35rem; margin-bottom: 1.1rem;
}
.icon.navy { background: #E6EEF6; color: var(--navy); }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section-dark .card p { color: #AFC3D6; }
.section-dark .card:hover { border-color: rgba(255, 67, 0, .5); }
.section-dark .icon { background: rgba(255, 67, 0, .14); }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.tag-list li { font-size: .82rem; font-weight: 600; color: var(--navy); background: #E6EEF6; padding: .25rem .65rem; border-radius: 999px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
.quote {
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; line-height: 1.35; color: var(--navy);
    border-left: 5px solid var(--orange); padding: .3rem 0 .3rem 1.4rem; margin: 0;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
    content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.9rem;
    color: var(--orange); margin-bottom: .5rem; letter-spacing: -0.03em;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .service-title { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.service-block .service-title p { color: var(--muted); }
.service-block h3 { margin-top: 1.2rem; }
.service-block h3:first-child { margin-top: 0; }
.mini-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 1rem; }
.mini { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.mini h4 { margin: 0 0 .3rem; font-size: 1.02rem; color: var(--navy); }
.mini p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #FF6A2E 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; box-shadow: 0 20px 50px rgba(255, 67, 0, .25); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.cta-band p { margin: 0; color: #FFE7DC; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-points li { display: flex; gap: 1rem; align-items: center; }
.contact-points .icon { margin: 0; flex: none; }
.contact-points strong { display: block; color: var(--navy); }
.contact-points a, .contact-points span { color: var(--muted); text-decoration: none; }
.contact-points a:hover { color: var(--orange-600); }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    font: inherit; font-size: 1rem; color: var(--ink);
    padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 67, 0, .14); }
.field.has-error input, .field.has-error textarea { border-color: #D92D20; }
.field .error { color: #B42318; font-size: .87rem; min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.form-status.is-success { display: block; background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }
.form-status.is-error { display: block; background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #AFC3D6; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #AFC3D6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #8BA2B8; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero .container, .split, .contact-layout { grid-template-columns: 1fr; }
    .hero-art { max-width: 460px; margin-inline: auto; }
    .service-block { grid-template-columns: 1fr; }
    .service-block .service-title { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 39, 69, .12);
        padding: 1rem; transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav-list a { padding: .85rem 1rem; border-radius: 12px; }
    .nav-list .btn { margin: .5rem 0 0; }
    .brand img { height: 40px; }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
    .cta-band .btn { width: 100%; }
}

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