/* Infirise Technologies (infirise.com): tokens, layout helpers, buttons, header, mobile menu and footer. */

:root {
  --navy: #1E2352;
  --navy-deep: #13163A;
  --indigo: #3E467C;
  --azure-logo: #2E7BBC;
  --azure: #2B72AF;
  --azure-hover: #235D91;
  --sky: #6CB8F0;
  --ink: #1A1D33;
  --muted: #4D5470;
  --line: #DDE2EE;
  --line-strong: #CDD3E3;
  --line-soft: #E5E8F2;
  --soft: #F3F5FB;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --sec-y: clamp(56px, 7vw, 96px);
  --shadow-card: 0 10px 28px rgba(30, 35, 82, 0.07);
  --shadow-lift: 0 20px 44px rgba(30, 35, 82, 0.14);
  --header-h: 72px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
p, blockquote { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

a { color: var(--azure); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.util :focus-visible, .dark :focus-visible, .ftr :focus-visible { outline-color: var(--sky); }

.nav-open { overflow: hidden; }

/* ---------- Layout helpers ---------- */

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: 900px; }
.sec { padding-block: var(--sec-y); }
.rel { position: relative; }
.bg-soft { background: var(--soft); }

.stack { display: flex; flex-direction: column; gap: 32px; }
.gap-20 { gap: 20px; }
.gap-22 { gap: 22px; }
.gap-24 { gap: 24px; }
.gap-36 { gap: 36px; }

.head { display: flex; flex-direction: column; gap: 10px; }
.mw-720 { max-width: 720px; }
.mw-760 { max-width: 760px; }

.h2 {
  font: 800 clamp(28px, 2.8vw, 38px)/1.15 var(--font-display);
  color: var(--navy);
  text-wrap: balance;
}
.h2-light { color: #ffffff; }
.lede { color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

.grid { display: grid; gap: 20px; padding: 0; list-style: none; }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* Inline text links: taller hit area without changing the line layout. */
.tap { padding-block: 11px; }

/* ---------- Cards ---------- */

.card { border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.card-link {
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-link:hover { color: var(--ink); }
.card-link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
@media (hover: hover) {
  .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--azure);
  color: #ffffff;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn svg { flex: none; }
.btn:hover { background: var(--azure-hover); color: #ffffff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-xs { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-glow { box-shadow: 0 10px 24px rgba(43, 114, 175, 0.28); }
.btn-glow:hover { box-shadow: 0 14px 30px rgba(43, 114, 175, 0.38); transform: translateY(-1px); }
.btn-ghost { padding: 0 22px; border: 1px solid var(--line-strong); background: #ffffff; color: var(--navy); }
.btn-ghost:hover { border-color: #9FB0C3; background: var(--soft); color: var(--navy); }

/* ---------- Utility bar ---------- */

.util { background: var(--navy); color: #C9D6E3; font-size: 13px; line-height: 1.4; }
.util-in { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; padding-block: 8px; }
.util a { color: var(--sky); }
.util a:hover { color: #ffffff; }

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.hdr[data-scrolled] { box-shadow: 0 8px 24px rgba(30, 35, 82, 0.08); }
.hdr-in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

/* Logo lockup: the mark, then the wordmark over a live "Technologies" label spaced to the wordmark's width. */
.brand { flex: none; display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { display: block; width: auto; }
.brand-mark { height: 40px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-word { height: 15px; }
.brand-sub {
  font: 600 10px/1 var(--font-body);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--indigo);
}

.hdr-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  white-space: nowrap;
}
.nav { display: flex; gap: 20px; font: 500 15px/1 var(--font-body); }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--azure); }

.hdr-mob { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.burger:hover { border-color: #9FB0C3; background: var(--soft); }
.burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: inline; }

/* ---------- Header dropdown menus (motion.js opens them on click, tap or keyboard) ---------- */

.nav a[aria-current="page"] { color: var(--azure); }
.dd { position: relative; }
.dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--azure); }
.dd-btn span { display: inline-block; transition: transform 0.2s ease; }
.dd-btn[aria-expanded="true"] span { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  z-index: 60;
  width: max-content;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-lift);
  white-space: normal;
  animation: dd-in 0.18s ease;
}
.dd-panel[hidden] { display: none; }
.dd-list { display: flex; flex-direction: column; gap: 2px; padding: 0; list-style: none; }
.nav .dd-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy);
  line-height: 1.35;
}
.dd-link b { font-weight: 600; }
.dd-link span { font-size: 13px; color: var(--muted); }
.nav .dd-link:hover, .nav .dd-link[aria-current="page"] { background: var(--soft); color: var(--azure); }
.nav .dd-foot { padding: 8px 12px; border-top: 1px solid var(--line-soft); color: var(--azure); font-size: 14px; }

@keyframes dd-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Mobile menu (a zero-height sticky anchor keeps the panel under the header) ---------- */

.mnav { position: sticky; top: var(--header-h); z-index: 45; height: 0; }
.mnav[hidden] { display: none; }
.mnav-in {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px var(--pad-x) 72px;
  background: #ffffff;
  animation: mnav-in 0.25s ease;
}
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
  font: 700 18px/1.3 var(--font-display);
  text-decoration: none;
}
.mnav-links a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #9FB0C3;
  border-right: 2px solid #9FB0C3;
  transform: rotate(45deg);
}
.mnav-links a:hover, .mnav-links a[aria-current="page"] { color: var(--azure); }
.mnav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy);
  font: 700 18px/1.3 var(--font-display);
  list-style: none;
  cursor: pointer;
}
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #9FB0C3;
  border-bottom: 2px solid #9FB0C3;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.mnav-group[open] summary::after { transform: rotate(-135deg); }
.mnav-group a { min-height: 48px; padding-left: 16px; font: 600 16px/1.3 var(--font-body); }

@keyframes mnav-in {
  from { opacity: 0; transform: translateY(-8px); }
}

@media (min-width: 1024px) {
  .hdr-nav { display: flex; }
  .hdr-mob, .mnav { display: none; }
}

@media (min-width: 1024px) and (max-width: 1159px) {
  .hdr-in { gap: 20px; }
  .hdr-nav { gap: 16px; }
  .nav { gap: 15px; }
}

@media (max-width: 1023px) {
  .brand { gap: 10px; }
  .brand-mark { height: 34px; }
  .brand-word { height: 14px; }
  .brand-text { gap: 5px; }
  .brand-sub { letter-spacing: 0.13em; }
}

@media (max-width: 389px) {
  .hdr-in { gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { height: 30px; }
  .brand-word { height: 13px; }
  .brand-sub { font-size: 9px; letter-spacing: 0.16em; }
}

/* ---------- Footer ---------- */

.ftr { background: var(--navy-deep); color: #9FB4CC; font-size: 14px; line-height: 1.6; }
.ftr-in { display: flex; flex-direction: column; gap: 36px; padding-block: 56px 28px; }
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.ftr-brand { display: flex; flex-direction: column; gap: 10px; }
.ftr .brand-sub { color: #9FB4CC; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-h { font: 600 14px/1.6 var(--font-body); color: #ffffff; }
.ftr-col ul { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.ftr a { color: #9FB4CC; text-decoration: none; transition: color 0.2s ease; }
.ftr a:hover { color: #ffffff; }
.ftr-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(159, 180, 204, 0.25);
}
.ftr-base a { color: var(--sky); }
/* Keep the legal line clear of the fixed preview bar. */
body:has(.pv-bar) .ftr-in { padding-bottom: 88px; }

@media (max-width: 1023px) {
  .ftr-col ul { gap: 0; }
  .ftr-col a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
}

@media (max-width: 639px) {
  .util-in { justify-content: center; text-align: center; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ftr-brand { grid-column: 1 / -1; }
}
