/* Black Sheep InfoSec — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --panel: #131313;
  --panel-border: #262626;
  --white: #f5f5f5;
  --silver: #b8b8b8;
  --silver-dim: #7a7a7a;
  --hair: rgba(245, 245, 245, 0.12);
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

h2 .accent { color: var(--silver); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--silver-dim);
}

p { color: var(--silver); max-width: 62ch; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.brand-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--silver-dim);
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
}

nav.main-nav a.nav-cta,
nav.main-nav a.nav-cta:hover,
nav.main-nav a.nav-cta.active {
  border: 1px solid var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.15s, opacity 0.15s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  filter: drop-shadow(0 0 40px rgba(245, 245, 245, 0.06));
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  margin-bottom: 22px;
}

.hero h1 .accent { color: var(--silver); }

.hero p.lead {
  font-size: 18px;
  color: var(--silver);
  max-width: 46ch;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-solid {
  background: var(--white);
  color: var(--black);
}

.btn-solid:hover { background: var(--silver); }

.btn-outline {
  color: var(--white);
  border-color: var(--panel-border);
}

.btn-outline:hover { border-color: var(--white); }

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

section { padding: 96px 0; border-bottom: 1px solid var(--panel-border); }

section:last-of-type { border-bottom: none; }

.section-head { max-width: 640px; margin-bottom: 56px; }

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

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 36px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--white);
  border-left: 1px solid var(--white);
}

.card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 18px; height: 18px;
  border-bottom: 1px solid var(--white);
  border-right: 1px solid var(--white);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.card .num {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.card p { color: var(--silver); font-size: 15px; }

.card ul { margin-top: 16px; padding-left: 18px; color: var(--silver); font-size: 14px; }
.card ul li { margin-bottom: 8px; }

.list-check { list-style: none; padding: 0; margin-top: 20px; }
.list-check li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
  color: var(--silver);
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border: 1px solid var(--white);
  transform: rotate(45deg);
}

.stat-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat .num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 40px;
}

.stat .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 6px;
}

.callout {
  background: var(--panel);
  border-left: 3px solid var(--white);
  padding: 28px 32px;
  margin-top: 40px;
}

.callout p { color: var(--white); font-size: 16px; max-width: none; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 90px 0;
}

.cta-band h2 { margin-bottom: 18px; }
.cta-band p { margin: 0 auto 34px; }
.cta-band .btn-row { justify-content: center; }

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

.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--panel-border);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; width: 34px; }
.footer-brand .brand-text { font-size: 14px; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--silver); letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--white); }

.footer-nav-group { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

.footer-socials { display: flex; gap: 18px; align-items: center; }
.footer-socials a { color: var(--silver); transition: color 0.15s; }
.footer-socials a:hover { color: var(--white); }
.footer-socials svg { width: 18px; height: 18px; display: block; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--panel-border);
  font-size: 12px;
  color: var(--silver-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

form { max-width: 560px; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--white);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
}

.field textarea { resize: vertical; min-height: 140px; }

button.btn { cursor: pointer; background: var(--white); color: var(--black); border: 1px solid var(--white); }
button.btn:hover { background: var(--silver); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
}

.contact-info .card { margin-bottom: 20px; }
.contact-info .card p { font-size: 15px; }
.contact-info a.value {
  display: inline-block;
  margin-top: 6px;
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
}
.contact-info a.value:hover { border-color: var(--white); }

.form-note { font-size: 13px; color: var(--silver-dim); margin-top: 14px; }

/* ---------- Page hero (non-home) ---------- */

.page-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--panel-border);
}

.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 14px; }
.page-hero p { font-size: 17px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--black);
    border-bottom: 1px solid var(--panel-border);
    padding: 26px 32px 34px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav .nav-cta { margin-top: 4px; }
  .nav-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-badge { max-width: 220px; order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .footer-nav-group { align-items: flex-start; }
}
