/* ============================================================
   SP Cyber Security — styles.css
   Hand-built, no framework. Palette from the original brand.
   ============================================================ */

:root {
  --night: #080d15;
  --night-2: #0d1622;
  --night-3: #122036;
  --line-dark: #22344f;
  --blue: #5e8dff;
  --blue-light: #a9c2ff;
  --blue-dark: #2f5cc4;
  --orange: #ffad79;
  --orange-dark: #6e3410;
  --paper: #f3f6fa;
  --pale: #e9eff7;
  --green: #88e3b4;
  --green-dark: #1e7d4f;
  --ink: #16222f;
  --ink-soft: #43536a;
  --line-light: #d9e2ee;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(8, 13, 21, 0.05), 0 10px 30px -12px rgba(8, 13, 21, 0.18);
  --header-h: 68px;
  --font-head: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 900;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.band-light :focus-visible,
.band-pale :focus-visible,
.band-white :focus-visible {
  outline-color: var(--blue-dark);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue);
  color: var(--night);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(4.25rem, 9vw, 6.5rem);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Bands ---------- */
.band-dark {
  background: var(--night);
  color: var(--paper);
}

.band-light { background: var(--paper); }
.band-pale  { background: var(--pale); }
.band-white { background: var(--white); }
.band-orange {
  background: var(--orange);
  color: var(--night);
}

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 1rem;
}

.kicker-dark { color: var(--blue-dark); }
.kicker-on-orange { color: var(--orange-dark); }

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

.lede-dark { color: #c3d0e2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--night);
}

.btn-primary:hover {
  background: var(--blue-light);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 246, 250, 0.4);
}

.btn-ghost:hover {
  border-color: var(--paper);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 21, 0.97);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.7rem;
}

.nav-links a {
  color: #c9d5e6;
  text-decoration: none;
  font-size: 0.99rem;
  font-weight: 500;
  padding-block: 0.35rem;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 0.62rem 1.25rem;
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(94, 141, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding-block: clamp(3.75rem, 8vw, 6rem);
  scroll-margin-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.h1-accent { color: var(--blue-light); }

.hero-body {
  font-size: 1.22rem;
  line-height: 1.6;
  color: #d5dfec;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.9rem 0 1.4rem;
}

.hero-note {
  color: #aebdd2;
  font-size: 0.99rem;
  margin-bottom: 0.6rem;
}

.hero-local {
  color: var(--paper);
  font-size: 0.99rem;
  border-left: 3px solid var(--orange);
  padding-left: 0.9rem;
  max-width: 33rem;
  margin-bottom: 0;
}

/* Brief panel */
.brief-panel {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.65);
}

.brief-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.brief-title {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.brief-body {
  color: #c3d0e2;
  margin-bottom: 1.4rem;
}

.brief-rows li {
  display: flex;
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line-dark);
}

.brief-num {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--blue);
  font-size: 0.95rem;
  padding-top: 0.15rem;
}

.brief-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.brief-text span {
  color: #aebdd2;
  font-size: 0.97rem;
}

.brief-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
  margin: 0.4rem 0 0;
}

.brief-footer span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa2bb;
}

.brief-footer strong {
  font-family: var(--font-head);
  color: var(--green);
}

/* ---------- Signal bar ---------- */
.signal-bar {
  background: var(--orange);
  color: var(--night);
  padding-block: 0.95rem;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
}

.signal-sep {
  font-size: 0.7rem;
  opacity: 0.65;
}

/* ============================================================
   Pressure cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.card h3 { margin-bottom: 0.55rem; }

.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

/* ============================================================
   Security check
   ============================================================ */
.check-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.callout {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-card);
}

.callout h3 { margin-bottom: 0.45rem; }
.callout p { margin: 0; color: var(--ink-soft); }

.check-panel {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.basics-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.basics-list .basic + .basic {
  border-top: 1px solid var(--line-light);
}

.basic-label {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding-block: 1rem;
  cursor: pointer;
}

.basic-check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  margin: 0.15rem 0 0;
  border: 2px solid #a9bcd4;
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.basic-check:hover { border-color: var(--blue); }

.basic-check:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.basic-check:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 13px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.basic-check:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
}

.basic-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.35;
}

.basic-text span {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.check-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1.15rem;
  margin-top: 0.4rem;
}

.status-line {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.status-line strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue-dark);
}

.status-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #a9bcd4;
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dot-on {
  background: var(--green);
  border-color: var(--green-dark);
}

.closing-box {
  background: var(--night);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-top: 1.4rem;
}

.closing-box h3 { margin-bottom: 0.5rem; }
.closing-box p { margin: 0; color: #c9d5e6; }

.mid-cta {
  margin-top: 1.6rem;
  text-align: left;
}

.mid-cta-line {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* ============================================================
   Services
   ============================================================ */
.feature-panel {
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-top: 2.6rem;
}

.feature-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.feature-top-right { color: var(--orange); }

.feature-panel h3 { font-size: 1.6rem; }

.feature-panel p {
  color: #c9d5e6;
  max-width: 44rem;
}

.feature-tags {
  font-size: 0.92rem;
  color: var(--blue-light);
  margin: 1.1rem 0 0;
  letter-spacing: 0.02em;
}

.service-rows { margin-top: 1rem; }

.service-rows li {
  display: flex;
  gap: 1.4rem;
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--line-dark);
}

.service-rows li:first-child { border-top: 1px solid var(--line-dark); }

.row-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--blue);
  padding-top: 0.25rem;
  min-width: 2rem;
}

.row-text h3 { margin-bottom: 0.35rem; }

.row-text p {
  margin: 0;
  color: #b8c6da;
  max-width: 42rem;
}

.band-dark .row-text p { color: #b8c6da; }

/* ============================================================
   Approach
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.4rem;
}

.step {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.step p:last-child {
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   AI
   ============================================================ */
.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.ai-items li {
  display: flex;
  gap: 1.4rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line-dark);
}

.ai-items li:first-child {
  border-top: 1px solid var(--line-dark);
}

.ai-items .row-text p { color: #b8c6da; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { margin-top: 2.2rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.faq-item + .faq-item { margin-top: 0.9rem; }

.faq-heading { margin: 0; }

.faq-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue-dark);
  border-radius: 2px;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2.5px;
}

.faq-icon::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-button[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-panel {
  padding: 0 1.35rem 1.25rem;
}

.faq-panel p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* ============================================================
   Who you'd work with
   ============================================================ */
.cred-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.cred-list li {
  position: relative;
  padding: 1rem 0 1rem 1.6rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.05rem;
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.contact-body {
  font-size: 1.14rem;
  max-width: 32rem;
}

.area-line {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.4rem 0 0;
}

.contact-card {
  background: var(--night);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3.5vw, 2.4rem);
  box-shadow: 0 24px 50px -22px rgba(8, 13, 21, 0.55);
}

.contact-card h3 { font-size: 1.45rem; }

.contact-card p { color: #c9d5e6; }

.contact-list { margin: 1.2rem 0 1.7rem; }

.contact-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2rem;
}

.contact-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-weight: 700;
  color: var(--green);
}

.contact-card .btn { width: 100%; text-align: center; }

.under-btn {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--night);
  color: #aebdd2;
  padding-block: 2.6rem;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.5rem;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--paper);
  margin: 0;
}

.footer-name .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.footer-tag {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.footer-nav a {
  color: #c9d5e6;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover { color: var(--white); }

.footer-legal {
  margin: 0;
  font-size: 0.95rem;
  width: 100%;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.3rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  .hero-grid,
  .check-grid,
  .ai-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 3rem; }
}

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--night-2);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    margin-left: 0;
  }

  .nav-menu.open { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li { border-bottom: 1px solid var(--line-dark); }

  .nav-links a {
    display: block;
    padding-block: 0.85rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }

  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .mid-cta .btn {
    width: 100%;
    text-align: center;
  }

  .feature-top { flex-direction: column; gap: 0.25rem; }

  .signal-list { font-size: 0.92rem; }

  .btn { white-space: normal; }
}

/* ============================================================
   Motion / print
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero-actions,
  .mid-cta,
  .signal-bar {
    display: none !important;
  }

  body { font-size: 11pt; color: #000; }

  .band-dark,
  .closing-box,
  .contact-card,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .band-dark p, .band-dark li,
  .closing-box p, .contact-card p,
  .site-footer { color: #000 !important; }

  .section, .hero { padding-block: 1.5rem; }

  .faq-panel[hidden] { display: block !important; }
}

/* Contact form embed (added 2026-10-22) */
.form-embed { margin: 1rem 0 0.75rem; }
.form-embed iframe { width: 100%; height: 1250px; border: 0; border-radius: 10px; background: #ffffff; display: block; }
.alt-contact { margin-top: 0.75rem; }
.alt-contact a { color: #a9c2ff; text-decoration: underline; }
@media (max-width: 640px) { .form-embed iframe { height: 1350px; } }
