/* =====================================================================
   ISM — shared stylesheet
   Light + dark theme via [data-theme] on <html>. Corporate-blue palette.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #1f5fe0;
  --brand-600: #1a52c4;
  --brand-700: #163f96;
  --accent: #15b6c9;
  --brand-grad: linear-gradient(120deg, #1f5fe0 0%, #15b6c9 100%);

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --border: #e3e9f2;
  --text: #0e1726;
  --text-soft: #43526b;
  --muted: #6b7a93;
  --shadow: 0 14px 40px -18px rgba(20, 40, 80, .28);
  --shadow-sm: 0 6px 20px -12px rgba(20, 40, 80, .35);
  --ring: rgba(31, 95, 224, .18);
  --nav-bg: rgba(255, 255, 255, .82);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 12px;
  --space: clamp(64px, 9vw, 120px);

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

html[data-theme="dark"] {
  --bg: #080c16;
  --bg-alt: #0c1322;
  --surface: #101a2c;
  --surface-2: #0e1726;
  --border: #1e2c45;
  --text: #eaf0fb;
  --text-soft: #b6c2d9;
  --muted: #8595b1;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .65);
  --ring: rgba(33, 130, 255, .35);
  --nav-bg: rgba(10, 16, 28, .72);
}

/* ---------- Accessibility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { color: var(--text-soft); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: var(--space); }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
.section__head { max-width: 660px; margin: 0 auto 52px; }
.section__head.left { margin-inline: 0; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 12px 28px -12px var(--brand); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px var(--brand); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.footer .brand__mark { width: 46px; height: 46px; }
.brand__dim { color: var(--brand); }
html[data-theme="dark"] .brand__dim { color: var(--accent); }

.nav__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__links a.navlink {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--text-soft); padding: 8px 14px; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav__links a.navlink:hover, .nav__links a.navlink.active { color: var(--brand); background: var(--surface-2); }
html[data-theme="dark"] .nav__links a.navlink:hover, html[data-theme="dark"] .nav__links a.navlink.active { color: var(--accent); }

.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.lang-switch {
  display: inline-flex; align-items: center; font-family: var(--font-head);
  font-weight: 600; font-size: .82rem; border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden;
}
.lang-switch a { padding: 7px 12px; color: var(--muted); transition: background .18s, color .18s; }
.lang-switch a.on { background: var(--brand); color: #fff; }

.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 10vw, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__orb.a { width: 480px; height: 480px; background: radial-gradient(circle, rgba(31,95,224,.5), transparent 70%); top: -160px; right: -120px; }
.hero__orb.b { width: 420px; height: 420px; background: radial-gradient(circle, rgba(21,182,201,.42), transparent 70%); bottom: -180px; left: -120px; }
.hero__grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%); }
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 620px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  margin-bottom: 18px;
}
html[data-theme="dark"] .card__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--brand); }
html[data-theme="dark"] .card__link { color: var(--accent); }
.card__link svg { width: 16px; transition: transform .18s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Detailed service block */
.svc {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px;
}
.svc .card__icon { margin: 0; }
.svc h3 { font-size: 1.4rem; margin-bottom: 8px; }
.svc__list { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.svc__list li { position: relative; padding-left: 28px; color: var(--text-soft); font-size: .98rem; }
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  background: var(--brand-grad); border-radius: 5px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-family: var(--font-head); font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--muted); }

/* ---------- Feature / about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.feature-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list .fi { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
html[data-theme="dark"] .feature-list .fi { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.feature-list h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 3px; }
.feature-list p { font-size: .96rem; }
.media-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--brand-grad); min-height: 360px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.media-card__inner { position: absolute; inset: 1px; border-radius: calc(var(--radius) - 1px); background: var(--surface); display: grid; place-items: center; padding: 36px; text-align: center; }
/* Photo cards size to their image so the whole illustration is visible (no crop) */
.media-card:has(> .media-card__img) { min-height: 0; background: var(--surface); }
.media-card__img { display: block; width: 100%; height: auto; }
.media-card svg { width: 96px; height: 96px; color: var(--brand); opacity: .9; }
html[data-theme="dark"] .media-card svg { color: var(--accent); }

/* ---------- Vendors strip ---------- */
.vendors { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.vendor { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text-soft); padding: 11px 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); transition: .18s; }
.vendor:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(40px, 6vw, 68px); background: var(--brand-grad); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 14px auto 28px; }
.cta-band .btn--primary { background: #fff; color: var(--brand-700); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.1rem; margin: 12px 0 7px; }
.step p { font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info .ci { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center; }
.contact-info .fi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
html[data-theme="dark"] .contact-info .fi { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.contact-info .ci small { display: block; color: var(--muted); font-size: .82rem; }
.contact-info .ci strong { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__success { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 10px; background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; font-size: .92rem; font-weight: 600; }
.form__success.show { display: block; }
.form__error { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 10px; background: color-mix(in srgb, #dc2626 14%, transparent); color: #dc2626; font-size: .92rem; font-weight: 600; }
.form__error.show { display: block; }
.form__error a { text-decoration: underline; }
/* Honeypot: hidden from humans, visible to naive bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(60px, 8vw, 96px); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero .hero__orb.a { opacity: .35; }
.page-hero__inner { position: relative; z-index: 1; max-width: 740px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer p { font-size: .95rem; }
.footer h4 { font-family: var(--font-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a, .footer__contact span { color: var(--text-soft); font-size: .95rem; transition: color .18s; }
.footer ul a:hover { color: var(--brand); }
.footer__contact { display: grid; gap: 10px; }
.footer__contact span { display: flex; gap: 9px; align-items: flex-start; }
.footer__contact svg { width: 18px; flex: none; color: var(--brand); margin-top: 3px; }
html[data-theme="dark"] .footer__contact svg { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer__grid { grid-template-columns: 1fr; }
  .footer__grid { gap: 28px; }
  .media-card { min-height: 280px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 22px 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a.navlink { padding: 12px 10px; }
  .nav__toggle { display: block; }
  .nav__tools { margin-left: auto; }
  .grid-3, .grid-4, .stats, .steps, .grid-2, .form__row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc .card__icon { margin-bottom: 4px; }
  body { font-size: 16px; }
}
