/* ==========================================================================
   Larström Technologies — larstrom.com
   Self-contained. No CDN, no webfonts, no third-party requests.

   Palette sampled directly from the brand shield:
     navy  #0B0F4F   41% of the logo   17.6:1 on white
     cyan  #01C8EF   16% of the logo    2.0:1 on white  <- graphic/dark ONLY
     lime  #8DDA50 / green #21A559      chevron gradient
   Cyan never carries small text on a light background.
   ========================================================================== */

:root {
  --navy:        #0B0F4F;
  --navy-800:    #141A63;
  --navy-700:    #1E2678;
  --cyan:        #01C8EF;
  --cyan-dim:    #0FA6C6;
  --lime:        #8DDA50;
  --green:       #21A559;

  --ink:         #10132E;
  --body:        #4A5069;
  --muted:       #6C7288;
  --line:        #E2E5EF;
  --tint:        #F4F6FB;
  --white:       #FFFFFF;

  --radius:      14px;
  --radius-lg:   22px;
  --wrap:        1160px;
  --shadow-sm:   0 1px 2px rgba(11, 15, 79, .06), 0 4px 12px rgba(11, 15, 79, .05);
  --shadow-md:   0 10px 30px rgba(11, 15, 79, .10), 0 2px 6px rgba(11, 15, 79, .06);
  --shadow-lg:   0 28px 60px rgba(11, 15, 79, .16);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.65rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1.05em; }
a  { color: var(--navy); text-decoration-color: rgba(11, 15, 79, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 .7rem;
}
.eyebrow-light { color: var(--cyan); }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .68rem; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: -.015em;
}
.brand-text em {
  font-style: normal; font-size: .625rem; font-weight: 650;
  letter-spacing: .215em; text-transform: uppercase; color: var(--muted);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  color: var(--ink); position: relative; padding: .35rem 0;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

/* Must out-specify `.nav a` (0,1,1) or the pill inherits `padding: .35rem 0`
   and the 999px radius crops its own label. */
.nav a.nav-cta {
  background: var(--navy); color: #fff; padding: .62rem 1.25rem;
  border-radius: 999px; font-size: .9rem; white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav a.nav-cta:hover { background: var(--navy-700); transform: translateY(-1px); }

.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 11px;
  cursor: pointer; padding: 0; place-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #EAECF7;
  background:
    radial-gradient(120% 130% at 88% 8%, rgba(1, 200, 239, .22), transparent 55%),
    radial-gradient(90% 110% at 8% 92%, rgba(33, 165, 89, .18), transparent 58%),
    linear-gradient(160deg, #0B0F4F 0%, #0D1259 48%, #090C40 100%);
}
/* circuit lattice echoing the shield's node network */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(75% 65% at 55% 40%, #000 35%, transparent 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3rem; align-items: center; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 8rem);
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero .eyebrow { color: var(--cyan); }
.lede { font-size: clamp(1.04rem, 1.7vw, 1.22rem); color: #BFC5E4; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero-art { display: grid; place-items: center; }
.hero-art img {
  width: min(100%, 330px);
  filter: drop-shadow(0 26px 55px rgba(1, 200, 239, .3));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-9px); }
  50%      { transform: translateY(9px); }
}

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .92rem 1.7rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 55%, var(--green) 165%);
  color: #05233B; box-shadow: 0 10px 26px rgba(1, 200, 239, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(1, 200, 239, .42); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(1, 200, 239, .1); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* on light sections the primary button flips to solid navy — cyan-on-white
   is only 2:1, nowhere near readable for a label */
.section:not(.section-dark) .btn-primary {
  background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(11, 15, 79, .22);
}
.section:not(.section-dark) .btn-primary:hover {
  background: var(--navy-700); box-shadow: 0 15px 34px rgba(11, 15, 79, .3);
}

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.section-dark {
  background: linear-gradient(165deg, #0B0F4F, #131A66);
  color: #C3C9E6;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { position: relative; padding-bottom: .5rem; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 62px; height: 4px;
  border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--lime));
}
.section-sub { font-size: 1.08rem; margin-top: 1.1rem; }

/* ── service cards ───────────────────────────────────────────────────────── */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.1rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.3rem;
  border-radius: 15px; color: var(--navy);
  background: linear-gradient(140deg, rgba(1, 200, 239, .16), rgba(141, 218, 80, .16));
}
.card-icon svg { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .97rem; }

/* ── approach steps ──────────────────────────────────────────────────────── */
.steps {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.steps li { position: relative; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.step-n {
  display: block; font-size: 2.5rem; font-weight: 800; line-height: 1;
  margin-bottom: .7rem; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { margin: 0; font-size: .98rem; }

/* ── about ───────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-copy .btn { margin-top: .8rem; }
.about-art { display: grid; place-items: center; }
.about-art img { width: min(100%, 340px); }

/* ── contact ─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-facts { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.fact-label {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.fact-value { display: block; color: var(--ink); font-weight: 550; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .87rem; font-weight: 650; color: var(--ink); margin-bottom: .42rem;
}
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .97rem; color: var(--ink);
  background: #FCFDFF; border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--cyan-dim);
  box-shadow: 0 0 0 4px rgba(1, 200, 239, .16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #D6455B; box-shadow: 0 0 0 4px rgba(214, 69, 91, .12);
}
.field-error { margin: .4rem 0 0; font-size: .84rem; color: #C23349; font-weight: 550; }

/* honeypot — hidden without display:none, which some bots detect */
.gotcha {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  padding: .95rem 1.1rem; border-radius: 11px; margin-bottom: 1.3rem;
  font-size: .94rem; font-weight: 550; border: 1.5px solid;
}
.form-status.is-ok    { background: #EDF9F1; border-color: #9BD8B2; color: #14663A; }
.form-status.is-error { background: #FDF0F2; border-color: #F0AFBA; color: #A32338; }
.form-note { margin: .95rem 0 0; font-size: .84rem; color: var(--muted); text-align: center; }

button[disabled] { opacity: .62; cursor: progress; transform: none !important; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #A9B0D6; padding: 3rem 0 2.2rem; }
.footer-inner { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
/* The shield's body is the same navy as this footer, so unbacked it collapses
   to a couple of floating cyan shapes at small sizes. A light chip keeps the
   mark legible. (The hero gets away with it at 330px, where the navy reads as
   depth rather than absence.) */
.footer-brand img {
  width: 34px; height: 34px; padding: 5px; box-sizing: content-box;
  background: #fff; border-radius: 10px;
}
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text em { color: #8990BD; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-nav a { color: #C3C9E6; text-decoration: none; font-size: .93rem; font-weight: 550; }
.footer-nav a:hover { color: var(--cyan); }
.footer-legal { margin: 0; font-size: .85rem; color: #7C84B4; }

/* Staff utility link (hosting panel) — deliberately the quietest thing on the
   page. Present for whoever needs it, not advertised to prospects. */
.footer-utility { margin: .35rem 0 0; font-size: .78rem; }
.footer-utility a {
  display: inline-flex; align-items: center; gap: .34rem;
  color: #5D6499; text-decoration: none; font-weight: 500;
  transition: color .2s var(--ease);
}
.footer-utility a:hover,
.footer-utility a:focus-visible { color: var(--cyan); }
.footer-utility svg { width: 11px; height: 11px; opacity: .8; }

/* Visually hidden but read aloud — the "opens in a new tab" warning. */
.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;
}

/* ── standalone notice page (contact.php no-JS fallback, 404) ───────────── */
/* Kept as classes rather than style="" so the CSP needs no 'unsafe-inline'. */
.notice { min-height: 72vh; display: grid; place-items: center; }
.notice-inner { max-width: 36rem; text-align: center; }
.notice-inner img { margin: 0 auto 1.5rem; }
.notice-inner h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.notice-inner p { font-size: 1.06rem; }
.notice-action { margin-top: 2rem; }

/* ── reveal-on-scroll (progressive: no JS = always visible) ──────────────── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(58%, 220px); }
  .about-art { order: -1; }
  .about-art img { width: min(62%, 240px); }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.4rem; box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.nav-cta { margin-top: .9rem; text-align: center; padding: .85rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  body.nav-open { overflow: hidden; }
}

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

@media print {
  .site-header, .nav-toggle, .hero-art, .contact-form, .site-footer { display: none; }
  body { color: #000; }
}
