/* ============================================================
   RedBlue Cyber — design system
   Colors, type, and reusable components used across all pages.
   ============================================================ */

:root {
  /* Core palette (extracted from the current site) */
  --bg:            #0B111E; /* deep navy page background */
  --bg-2:         #0E1626; /* slightly lifted section background */
  --text:          #F7F9FF; /* near-white body text */
  --muted:         #B8C3D8; /* secondary / supporting text */
  --muted-2:      #8A97AE; /* labels, footnotes */

  --red:           #B40014; /* primary accent */
  --red-deep:      #7A0516; /* darker red (bars, hovers) */
  --red-bright:    #E11532; /* hover / emphasis */

  --card-navy:     #182949; /* card tone A */
  --card-slate:    #1E323F; /* card tone B */
  --line:          rgba(255, 255, 255, 0.10); /* hairline borders */
  --line-strong:   rgba(255, 255, 255, 0.18);

  --radius:        4px;   /* sharper, more technical corners */
  --radius-sm:     3px;
  --maxw:          1180px;
  --gap:           clamp(1rem, 2vw, 1.75rem);

  --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.55);

  --font-display:  "Anton", Impact, "Haettenschweiler", sans-serif;
  --font-body:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:     ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.02; }

/* Display headings — Anton, condensed, uppercase */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.accent { color: var(--red); }
.text-muted { color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1rem;
}
.eyebrow::before { content: "// "; color: var(--red); }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(180, 0, 20, 0.8);
}
.btn--primary:hover { background: var(--red-bright); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--red); color: #fff; }

.link-arrow {
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.15s ease, color 0.15s ease;
}
.link-arrow:hover { gap: 0.6rem; color: var(--red-bright); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 30, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__tag {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
}
.brand__desc {
  font-size: 0.6rem;
  color: var(--muted-2);
  margin-top: 4px;
  line-height: 1.3;
  white-space: nowrap;
}
/* Keep the header uncluttered as it narrows */
@media (max-width: 1279px) { .brand__desc { display: none; } }
@media (max-width: 560px)  { .brand__tag  { display: none; } }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav__cta { margin-left: 0.4rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 42px; height: 40px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    margin: 0;
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 0.9rem clamp(1.1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 0.8rem clamp(1.1rem, 4vw, 2.5rem); text-align: center; justify-content: center; }
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
}
.hero__sub {
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 46ch;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Service cards (home right column) ---------- */
.service-cards { display: grid; gap: 1.1rem; }
.service-card {
  background: linear-gradient(180deg, var(--card-navy), rgba(24, 41, 73, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--red); }
.service-card__bar {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 0.5rem 1.3rem;
}
.service-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.service-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.service-card__desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; }

/* ============================================================
   Generic service-page hero
   ============================================================ */
.svc-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.svc-hero__label {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.svc-hero__label::before { content: "// "; }
.svc-hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1.5rem; }
.svc-hero__intro { max-width: 62ch; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.svc-hero__intro p + p { margin-top: 1rem; }
.svc-hero__cta { margin-top: 2rem; }

/* ---------- Tile grid (capabilities) ---------- */
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 2rem;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.tile {
  background: var(--card-slate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile__title {
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}
.tile__desc { color: var(--muted); font-size: 0.95rem; }

/* ---------- Numbered process steps ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(24, 41, 73, 0.35), transparent);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.step__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step__desc { color: var(--muted); font-size: 0.93rem; }

/* ---------- Pillars (about) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.pillar {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  background: rgba(24, 41, 73, 0.25);
}
.pillar__title {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.6rem;
}
.pillar__desc { color: var(--muted); font-size: 0.94rem; }

/* ---------- Advisory pillars (rich cards with an "Includes" list) ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.adv-card {
  background: linear-gradient(180deg, var(--card-navy), rgba(24, 41, 73, 0.5));
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.adv-card:hover { transform: translateY(-3px); border-color: var(--red); }
.adv-card__kicker {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.adv-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
.adv-card__desc { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.1rem; }
.adv-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.6rem;
}
.adv-includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.adv-includes li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }
.adv-includes li::before {
  content: "";
  flex: none;
  margin-top: 0.42rem;
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ---------- Checklist (used for outcomes / "who we serve") ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  flex: none;
  margin-top: 0.45rem;
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: center; }
.cta-band__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1.1rem;
}
.cta-band__text { color: var(--muted); max-width: 56ch; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Contact form
   ============================================================ */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-slate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-error { color: #ff8a9a; }
.form-status.is-ok { color: #7ee0a2; }
/* honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Booking (Cal.com embed)
   ============================================================ */
.booking-embed {
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-slate);
}

/* ============================================================
   Insights (blog)
   ============================================================ */
.post-list { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.7rem;
  background: linear-gradient(180deg, rgba(24, 41, 73, 0.3), transparent);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.post-card:hover { border-color: var(--red); transform: translateY(-2px); }
.post-card__tag {
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.post-card__title { font-size: 1.4rem; font-weight: 700; margin: 0.6rem 0 0.5rem; }
.post-card__meta { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.post-card__excerpt { color: var(--muted); margin: 0.8rem 0 1rem; }

/* ---------- Article ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article__meta { font-family: var(--font-mono); color: var(--muted-2); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.article__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.article__body { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.article__body h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 2.4rem 0 1rem;
}
.article__body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.7rem; }
.article__body p { margin: 0 0 1.2rem; color: var(--muted); }
.article__body strong { color: var(--text); }
.article__body ul, .article__body ol { color: var(--muted); padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article__body li { margin-bottom: 0.5rem; }
.article__body blockquote {
  border-left: 3px solid var(--red);
  margin: 1.5rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  color: var(--text);
  font-size: 1.1rem;
}
.article__body code {
  background: var(--card-slate);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: var(--line-strong); }
.footer-social a { color: var(--muted); }
.footer-social a:hover { color: var(--red); }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   Legal pages (Legal / Privacy / Terms)
   ============================================================ */
.legal-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.legal-eyebrow__badge {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  flex: none;
}
.legal-eyebrow__rule { flex: 1; height: 1px; background: var(--line); }

.legal-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.legal-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-hero__grid--single { grid-template-columns: 1fr; }
@media (max-width: 860px) { .legal-hero__grid { grid-template-columns: 1fr; } }

.legal-title { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.legal-lead { color: var(--muted); max-width: 48ch; margin-top: 1.3rem; font-size: clamp(1rem, 1.5vw, 1.1rem); }

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--card-navy), rgba(24, 41, 73, 0.5));
}
.legal-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
}
.legal-card__row { margin-bottom: 1.1rem; }
.legal-card__row:last-child { margin-bottom: 0; }
.legal-card__row b { color: var(--text); font-weight: 700; }
.legal-card__row span { color: var(--muted); }

/* Document body */
.legal-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(24, 41, 73, 0.14);
}
.legal-body { color: var(--muted); }
.legal-body > p:first-child { margin-top: 0; }
.legal-body h2 {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 2.2rem 0 0.9rem;
  line-height: 1.25;
}
.legal-body h2:first-of-type { margin-top: 0.5rem; }
.legal-body p { margin: 0 0 1.15rem; line-height: 1.75; }
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body a { color: var(--red); font-weight: 600; }
.legal-body a:hover { color: var(--red-bright); }
.legal-body ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.7rem; }
.legal-body li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--muted); line-height: 1.6; }
.legal-body li::before {
  content: "";
  flex: none;
  margin-top: 0.5rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.legal-contact {
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 6px 6px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0 1.4rem;
}
.legal-contact p { margin: 0 0 0.5rem; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-note { color: var(--muted-2); font-size: 0.92rem; }

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