/* InfoSec Insights Consulting — static site styles
   No external fonts/CDNs on purpose (GDPR: no third-party requests). */

:root {
  --navy-900: #071a3d;
  --navy-800: #0a2350;
  --navy-700: #10336f;
  --ink: #1b2433;
  --muted: #5a6577;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --accent: #c9962f;
  --accent-dark: #8a6212;
  --accent-soft: #f8f0e0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 22, 38, 0.08);
  --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; scroll-padding-top: 80px; }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--navy-900); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-weight: 700; }
.brand-logo { height: 46px; width: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--accent-dark); }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a, .lang-switch span { padding: 4px 11px; font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.lang-switch span { background: var(--navy-900); color: #fff; }
.lang-switch a { color: var(--muted); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); margin: 5px 0; transition: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--navy-900); }
.btn-primary:hover { background: #ddb052; color: var(--navy-900); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201,150,47,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dfe6f1;
  padding: 96px 0 84px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: 1.18rem; max-width: 700px; color: #c3cedf; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(201,150,47,0.14); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12); list-style: none; padding-left: 0;
}
.trust li { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; color: #dfe6f1; }
.trust li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink); font-size: 0.95rem; }
.card ul li { margin-bottom: 4px; }
.card .meta { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent-dark); }
.card.featured { border: 2px solid var(--accent); position: relative; }
.badge {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; stroke: var(--accent-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-top: 54px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: 0.93rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.facts { background: var(--navy-900); color: #dfe6f1; border-radius: var(--radius); padding: 30px; }
.facts h3 { color: #fff; }
.facts dl { margin: 0; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin-top: 16px; }
.facts dd { margin: 2px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info p { color: var(--muted); }
.contact-info .direct { margin-top: 24px; font-weight: 600; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6e1; border-radius: 10px;
  font: inherit; font-size: 0.97rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,150,47,0.25);
}
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #c0392b; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #dfe6f1; padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #c3cedf; }

/* ---------- Footer ---------- */
.site-footer { background: #08111e; color: #8a96aa; padding: 34px 0; font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #c3cedf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Legal page ---------- */
.legal { padding: 64px 0; max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-3, .grid-2, .steps, form .row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .lang-switch { margin-top: 12px; }
  .nav .lang-switch a, .nav .lang-switch span { width: auto; padding: 6px 14px; }
  .nav .btn { margin-top: 6px; width: auto; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Sub-pages ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #c3cedf; padding: 72px 0 60px;
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { font-size: 1.12rem; max-width: 720px; margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.card .role { font-size: 0.85rem; font-weight: 600; color: var(--accent-dark); margin: -6px 0 10px; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.cred-list li:last-child { border-bottom: 0; }
.cred-list strong { color: var(--navy-900); }
.next-steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 44px; margin-bottom: 18px; color: var(--muted); }
.next-steps li strong { display: block; color: var(--ink); }
.next-steps li::before {
  counter-increment: ns; content: counter(ns); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; display: grid; place-items: center; font-size: 0.9rem;
}
.nav a[aria-current="page"] { color: var(--accent-dark); }
.notfound { padding: 120px 0; text-align: center; }

@media (max-width: 760px) { .brand-logo { height: 38px; } }
.notfound .brand-logo { height: 64px; margin: 0 auto 32px; }
.notfound .btn { margin: 4px; }
