/* P-Nav Systems — shared stylesheet. No webfonts, no JS dependencies. */

:root {
  --ink:        #0f172a;
  --ink-soft:   #334155;
  --muted:      #5a6b82;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --bg:         #ffffff;
  --bg-alt:     #f7f9fc;
  --accent:     #1e40af;
  --accent-bg:  #eef3ff;
  --radius:     10px;
  --wrap:       1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #f1f5f9;
    --ink-soft:  #cbd5e1;
    --muted:     #94a3b8;
    --line:      #24334a;
    --line-soft: #1b2739;
    --bg:        #0b1220;
    --bg-alt:    #111b2e;
    --accent:    #7da2ff;
    --accent-bg: #16223c;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }

.brand {
  font-weight: 800; font-size: 1.16rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.03em; margin-right: auto;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand span { color: var(--accent); }

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding: 8px 12px; border-radius: 7px;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: .96rem; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.14); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(30,64,175,.26); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .11em; font-size: .74rem;
  font-weight: 700; color: var(--accent); margin-bottom: 12px;
}

/* ---------- hero ---------- */
.hero { padding: 76px 0 58px; }
.hero p.lede { font-size: 1.19rem; color: var(--muted); max-width: 620px; }

.trustbar {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.trustbar b { color: var(--ink); font-weight: 700; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent-bg);
  color: var(--accent); display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; margin-bottom: 14px;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; padding-left: 50px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .92rem;
}
.step h3 { margin-bottom: .3em; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .96rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-list li:first-child { padding-top: 0; }
.detail-list .label {
  display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700; margin-bottom: 3px;
}
.detail-list .value { font-size: 1.04rem; color: var(--ink); font-weight: 550; }
.detail-list a { text-decoration: none; }
.detail-list a:hover { text-decoration: underline; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-size: .88rem; font-weight: 650; color: var(--ink); }
input, textarea, select {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg);
}
textarea { min-height: 132px; resize: vertical; }
.form-note {
  font-size: .86rem; color: var(--muted); background: var(--bg-alt);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 0;
}

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: .35em; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 4px; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 44px 0 32px; font-size: .92rem; color: var(--muted);
}
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 30px; }
.foot-grid h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-tag { color: var(--ink); font-weight: 600; }
.foot-bar { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 52px 0 40px; }
  .head-inner { min-height: 60px; padding: 10px 0; }
  .brand { margin-right: 0; width: 100%; }
  .nav { width: 100%; margin-left: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}
