/* NetSec360 — shared styles */

/* Font: self-hosted Schibsted Grotesk (SIL Open Font License), variable, latin subset only */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme tokens. Light is the default; dark follows the device unless the visitor picks a theme. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #eef2f8;
  --panel: #eef2f8;
  --ink: #0f1720;
  --muted: #5b6673;
  --line: #e3e7ec;
  --line-strong: #c9d1dc;
  --accent: #2b4bff;
  --on-accent: #ffffff;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b111a; --band: #101a28; --panel: #152131;
    --ink: #eceff3; --muted: #9aa6b4; --line: #233041; --line-strong: #3a4a5e;
    --accent: #8ea2ff; --on-accent: #0b111a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b111a; --band: #101a28; --panel: #152131;
  --ink: #eceff3; --muted: #9aa6b4; --line: #233041; --line-strong: #3a4a5e;
  --accent: #8ea2ff; --on-accent: #0b111a;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 1120px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.band { background: var(--band); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.logo svg { width: 26px; height: 26px; }
.logo-light { font-weight: 400; color: var(--muted); }
.logo .ring { stroke: var(--ink); }
.logo .node { fill: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.nav-cta { padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; }
.nav a.nav-cta:hover { color: var(--bg); background: var(--accent); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding-top: 40px; padding-bottom: 96px; }
.hero-text { flex: 1.15 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 28px; max-width: 480px; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-art { flex: 1 1 460px; min-width: 0; }
.hero-art svg { width: 100%; height: auto; }
.art .ring { stroke: var(--accent); }
.art .node { fill: var(--accent); }

/* Services */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-title { font-size: 40px; margin-bottom: 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 40px; }
.svc-art { background: var(--panel); border-radius: 16px; padding: 12px 24px 0; }
.svc-art img { width: 100%; height: auto; }
.svc h3 { margin-top: 24px; margin-bottom: 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.svc p { color: var(--muted); }

/* Inner page intro */
.page-intro { padding-top: 56px; padding-bottom: 88px; }
.page-intro h1 { font-size: clamp(40px, 5vw, 56px); max-width: 760px; }
.page-intro .lead { margin-top: 20px; max-width: 560px; font-size: 19px; color: var(--muted); }

/* Service detail rows (Services page) */
.svc-rows { display: flex; flex-direction: column; gap: 104px; }
.svc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; scroll-margin-top: 24px; }
.svc-row .svc-art { flex: 1 1 400px; min-width: 0; }
.svc-row .svc-body { flex: 1 1 380px; min-width: 0; }
.svc-row:nth-child(even) .svc-art { order: 2; }
.svc-body h2 { font-size: 34px; }
.svc-body > p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 5px; top: 0.4em; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* About */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.fact { background: var(--panel); border-radius: 16px; padding: 28px; }
.fact strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { display: block; margin-top: 6px; color: var(--muted); }
.prose { max-width: 680px; margin-top: 0; display: grid; gap: 20px; font-size: 18px; }
.prose h2 { font-size: 28px; margin-top: 16px; }
.prose p { color: var(--muted); }

/* Contact form */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.contact-aside { flex: 1 1 280px; min-width: 0; }
.contact-aside h2 { font-size: 24px; margin-bottom: 12px; letter-spacing: -0.02em; }
.contact-aside p { color: var(--muted); }
.contact-direct { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.contact-direct span { display: block; font-size: 14px; color: var(--muted); }
.contact-direct a { font-size: 19px; font-weight: 500; text-decoration: none; color: var(--ink); }
.contact-direct a:hover { color: var(--accent); }
.form { flex: 2 1 520px; min-width: 0; display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Thank-you */
.thanks { padding-top: 72px; padding-bottom: 120px; min-height: 60vh; }
.thanks h1 { font-size: clamp(40px, 5vw, 56px); }
.thanks p { margin-top: 20px; max-width: 520px; font-size: 19px; color: var(--muted); }
.thanks p a { color: var(--ink); }
.thanks .eyebrow-404 { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--accent); }
.thanks-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.thanks-text { flex: 1.3 1 460px; min-width: 0; }
.thanks-card { margin-top: 32px; max-width: 520px; padding: 4px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.thanks-row { display: grid; gap: 2px; padding: 16px 0; }
.thanks-row + .thanks-row { border-top: 1px solid var(--line); }
.thanks-row span { font-size: 14px; color: var(--muted); }
.thanks-row strong { font-size: 17px; font-weight: 500; }
.thanks-row[hidden] { display: none; }
.thanks-row a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.thanks-row a:hover { color: var(--accent); }
.thanks-art { flex: 1 1 240px; max-width: 340px; margin: 0 auto; }
.thanks-art svg { width: 100%; height: auto; overflow: visible; }
.thanks-halo { fill: var(--accent); opacity: 0.1; }
.thanks-ring { stroke: var(--ink); }
.thanks-node { fill: var(--accent); transform-origin: 175.7px 64.3px; animation: node-pop 0.5s 0.15s ease-out both; }
.thanks-check { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; animation: check-draw 0.6s 0.45s ease-out forwards; }
@keyframes node-pop { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .thanks-node { animation: none; }
  .thanks-check { animation: none; stroke-dashoffset: 0; }
}

/* Closing call to action */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.cta p { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--ink); }

/* Small screens */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .nav { gap: 8px 18px; }
  .nav .nav-hide-sm { display: none; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .hero .lead { font-size: 17px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-title { font-size: 32px; margin-bottom: 32px; }
  .svc-grid { gap: 40px; }
  .cta p { font-size: 21px; }
  .page-intro { padding-top: 32px; padding-bottom: 56px; }
  .page-intro .lead { font-size: 17px; }
  .svc-rows { gap: 72px; }
  .svc-body h2 { font-size: 28px; }
  .thanks-art { max-width: 200px; }
}
@media (max-width: 860px) {
  .svc-row:nth-child(even) .svc-art { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
