/* ==========================================================================
   OmniGuard Defense — static site stylesheet
   No external dependencies. No webfonts. No frameworks.
   ========================================================================== */

:root {
  --ink:        #0E1A2B;
  --ink-2:      #17263C;
  --ink-3:      #22344E;
  --steel:      #4A6076;
  --steel-soft: #6C7F92;
  --line:       #D5DBE2;
  --line-soft:  #E8ECF0;
  --paper:      #F7F8F9;
  --white:      #FFFFFF;
  --brass:      #B8862F;
  --brass-lift: #D4A048;

  --wrap: 1180px;
  --gut: 1.5rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Liberation Sans", sans-serif;

  --t-display: clamp(2.1rem, 5.2vw, 3.5rem);
  --t-h2:      clamp(1.55rem, 3.2vw, 2.15rem);
  --t-h3:      clamp(1.15rem, 2vw, 1.35rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 700;
}

h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- Utility bar ---------------------------------------------- */

.util {
  background: var(--ink);
  color: #C9D4E0;
  font-size: 0.875rem;
}
.util .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding-block: 0.5rem;
}
.util a { color: #C9D4E0; text-decoration: none; }
.util a:hover { color: var(--brass-lift); text-decoration: underline; }

/* ---------- Masthead --------------------------------------------------- */

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: 0.75rem;
}
.brand { display: block; flex-shrink: 0; }
.brand img { max-height: 54px; width: auto; }
.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
  min-height: 44px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9688rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    padding-top: 0.5rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line-soft); }
  .masthead .wrap { flex-wrap: wrap; }
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-light { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-light:hover { background: var(--brass-lift); border-color: var(--brass-lift); color: var(--ink); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: #DCE4EC;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 4px solid var(--brass);
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  max-width: 60ch;
  color: #C3D0DD;
}
.hero-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  font-size: var(--t-small);
  color: #A9BACB;
}
.hero-meta strong { display: block; color: var(--white); font-size: 1.0625rem; }

.pagehead {
  background: var(--ink);
  color: #C3D0DD;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 4px solid var(--brass);
}
.pagehead h1 { color: var(--white); margin-bottom: 0.4em; }
.pagehead p { color: #C3D0DD; margin-bottom: 0; }

/* ---------- Sections --------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--paper); }
.section-ink { background: var(--ink); color: #C3D0DD; }
.section-ink h2, .section-ink h3 { color: var(--white); }

.section-intro { max-width: 62ch; margin-bottom: 2.5rem; }
.section-intro p:last-child { margin-bottom: 0; }

/* ---------- Capability register ---------------------------------------- */

.register { border-top: 1px solid var(--line); }
.register-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.register-row h3 { margin: 0; }
.register-row p { margin: 0; }
.section-ink .register,
.section-ink .register-row { border-color: rgba(255,255,255,.18); }

@media (max-width: 720px) {
  .register-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- Service cards ---------------------------------------------- */

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.svc {
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.svc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-body { padding: 1.5rem; }
.svc-body h3 { margin-bottom: 0.5rem; }
.svc-body p { margin-bottom: 0; font-size: var(--t-small); color: var(--steel); max-width: none; }

/* ---------- Split ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.split img { width: 100%; object-fit: cover; }

/* ---------- Facts ------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact { background: var(--white); padding: 1.5rem; }
.fact dt { font-size: var(--t-small); color: var(--steel); margin-bottom: 0.35rem; }
.fact dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.0625rem; }

/* ---------- Client logos ----------------------------------------------- */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.logos img { max-height: 62px; width: auto; }

/* ---------- FAQ -------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.0625rem;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1.1rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brass);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 1.35rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ------------------------------------------------------ */

.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: var(--t-small);
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--steel-soft);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink-2);
  border-radius: 0;
  min-height: 44px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--brass);
  outline-offset: 1px;
}
.form-note { font-size: var(--t-small); color: var(--steel); max-width: 46ch; }

/* ---------- Contact panel ---------------------------------------------- */

.contact-block { font-style: normal; }
.contact-block dt {
  font-size: var(--t-small);
  color: var(--steel);
  margin-bottom: 0.25rem;
}
.contact-block dd {
  margin: 0 0 1.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.section-ink .contact-block dt { color: #A9BACB; }
.section-ink .contact-block dd,
.section-ink .contact-block dd a { color: var(--white); }

/* ---------- CTA strip -------------------------------------------------- */

.cta-strip {
  background: var(--ink-2);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-strip h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-strip p { color: #C3D0DD; margin-bottom: 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Footer ----------------------------------------------------- */

.foot {
  background: var(--ink);
  color: #A9BACB;
  padding-block: 3rem 1.5rem;
  font-size: var(--t-small);
}
.foot h2 {
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 0.9rem;
  letter-spacing: 0;
}
.foot a { color: #C9D4E0; text-decoration: none; }
.foot a:hover { color: var(--brass-lift); text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.55rem; }
.foot p { max-width: 46ch; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.foot-logo img { max-height: 58px; width: auto; margin-bottom: 1.1rem; }
.foot-base {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: #8FA2B5;
}

/* ---------- Print ------------------------------------------------------ */

@media print {
  .util, .nav, .nav-toggle, .cta-strip { display: none; }
  body { color: #000; }
  .hero, .pagehead, .foot, .section-ink { background: #fff; color: #000; }
  .hero h1, .pagehead h1, .foot h2, .section-ink h2 { color: #000; }
}
