/* Kerns Tech Solutions — brand colors taken from the logo */
:root {
  --navy: #052750;
  --navy-2: #0b3a70;
  --cyan: #0292c9;
  --cyan-dark: #01729e; /* AA contrast on white for text/links */
  --ink: #142235;
  --muted: #4a5a6e;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-dark); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--cyan-dark); font-weight: 800; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav .nav-cta { background: var(--navy); color: #fff; }
.nav .nav-cta:hover { background: var(--navy-2); color: #fff; }
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  .site-header { position: static; }
  .nav ul { gap: 2px; margin-left: -12px; }
  .nav a { padding: 6px 10px; font-size: .92rem; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(2,146,201,.10), transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-logo { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px -30px rgba(5,39,80,.35); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 8px; }
.hero-points li { padding-left: 26px; position: relative; color: var(--muted); }
.hero-points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(2,146,201,.15); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { max-width: 260px; order: -1; padding: 16px; }
}

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card ul { margin: .25rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.card li { margin-bottom: .3rem; }
.icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--feature { border-top: 4px solid var(--cyan); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--cyan-dark); font-size: .9rem; letter-spacing: .1em; margin-bottom: .4rem; }
.steps h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }
.about-card { background: var(--navy); color: #dfe9f5; border-radius: 20px; padding: 30px; }
.about-card h3 { color: #fff; margin-bottom: .2rem; }
.about-card .role { color: #7fd0f0; font-weight: 600; margin-bottom: 1rem; }
.about-card dl { margin: 0; display: grid; gap: 10px; }
.about-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb0d3; }
.about-card dd { margin: 0; color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--navy); }
form.card { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #b9c7d6; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(2,146,201,.35); border-color: var(--cyan); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); }
.page-head p { color: var(--muted); margin: 0; }
details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.faq[open] summary { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d8ea; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #7fd0f0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9fb6d1; font-size: .88rem; }

/* Utilities (kept out of inline styles so the CSP can forbid them) */
[data-gap] { margin-top: 2rem; }
.section--page { padding-top: 40px; }
.prose h2.flush { margin-top: 0; }
