/* ============================
   SECURCOM — Shared Stylesheet
   ============================ */

/* ---- Self-hosted fonts (variable weight, latin subset) ---- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0F13;
  --bg-panel: #11161C;
  --bg-panel-2: #161D24;
  --line: #1E2830;
  --line-bright: #2E3D4A;
  --text: #EDF1F3;
  --text-dim: #8A9BA8;
  --text-faint: #7A8C99; /* min 4.5:1 on --bg (WCAG AA) — don't darken */
  --steel: #4E8FB8;
  --steel-dim: #2A5A7A;
  --amber: #D63012;
  --amber-dim: rgba(214,48,18,0.15);
  --green: #4CAF7D;
  --radius: 2px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--steel); color: #0B0F13; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #0B0F13;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ---- Grid overlay ---- */
.gridlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, black 30%, transparent 100%);
}

/* ---- Header / Nav ---- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,19,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 18px; letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .nav-logo { height: 36px; }
}

.nav-links {
  display: flex; align-items: center;
  gap: 28px; list-style: none;
}

.nav-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color .15s; white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.active {
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--amber);
}

.nav-right { display: flex; align-items: center; gap: 16px; }

.phone-pill {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); border: 1px solid var(--line-bright);
  padding: 8px 14px; border-radius: var(--radius);
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #0B0F13;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; padding: 10px 20px;
  border-radius: var(--radius); border: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214,48,18,0.3);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-bright);
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--steel); box-shadow: none;
  transform: translateY(-1px);
}

/* ---- Mobile menu ---- */
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  position: fixed; inset: 68px 0 0 0;
  background: var(--bg-panel); z-index: 99;
  border-top: 1px solid var(--line);
  padding: 28px;
  flex-direction: column; gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px; font-family: var(--font-head);
  color: var(--text-dim); padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* ---- Page Header ---- */
.page-header {
  position: relative; z-index: 1;
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
}
.breadcrumb span { color: var(--steel); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--steel); text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px;
  background: var(--steel);
}

.page-header h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  max-width: 820px;
}
.page-header h1 em {
  font-style: normal; color: var(--steel);
}

.page-header .lead {
  margin-top: 22px; max-width: 540px;
  color: var(--text-dim); font-size: 17px;
  line-height: 1.6;
}

/* ---- Sections ---- */
section {
  position: relative; z-index: 1;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
section.no-top { border-top: none; }

.section-tag {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--steel); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px;
  display: block;
}

.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 40px; margin-bottom: 52px; flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(24px, 3vw, 36px); max-width: 600px; }
.section-head p { color: var(--text-dim); max-width: 380px; font-size: 15px; }

/* ---- Vendor strip ---- */
.vendor-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0; position: relative; z-index: 1;
  background: var(--bg-panel);
}

.vendor-row {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}

.vendor-row span {
  font-family: var(--font-head); font-weight: 700;
  font-size: 16px; color: var(--text-faint);
  letter-spacing: 0.08em;
  transition: color .2s;
}
.vendor-row span:hover { color: var(--text-dim); }

/* ---- Service cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border: 1px solid var(--line);
}

.service-card {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.service-card:hover { background: var(--bg-panel); }

.service-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); margin-bottom: 14px;
  display: block;
}

.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--steel); margin-top: 14px;
  font-family: var(--font-mono);
  transition: gap .15s;
}
.service-card:hover .card-link { gap: 10px; }

/* ---- Project cards ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  background: var(--bg); padding: 28px 24px;
  min-height: 180px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: background .2s;
}
.project-card:hover { background: var(--bg-panel); }

.project-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .08em;
}
.project-card h3 { font-size: 18px; margin-top: 12px; }
.project-card .loc {
  font-size: 13px; color: var(--text-dim); margin-top: 6px;
}
.project-card .systems {
  font-size: 12px; font-family: var(--font-mono);
  color: var(--steel); margin-top: 10px;
}

/* ---- Stat grids ---- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--bg); padding: 28px 24px;
  transition: background .2s;
}
.stat:hover { background: var(--bg-panel); }

.stat .num {
  font-family: var(--font-head); font-size: 36px;
  font-weight: 700; color: var(--steel);
  line-height: 1;
}
.stat .lbl {
  font-size: 13px; color: var(--text-dim); margin-top: 8px;
}

/* ---- Process steps ---- */
.step-list { display: flex; flex-direction: column; }

.step {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-index {
  font-family: var(--font-mono); color: var(--amber);
  font-size: 14px; min-width: 32px; padding-top: 2px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---- License list ---- */
.license-list { display: flex; flex-direction: column; }

.license-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
}
.license-row:last-child { border-bottom: 1px solid var(--line); }
.license-row span:first-child { color: var(--text-dim); }
.license-row .badge {
  background: var(--bg-panel-2);
  border: 1px solid var(--line-bright);
  padding: 4px 10px; font-size: 11px;
  border-radius: var(--radius);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 52px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(22px, 2.5vw, 30px); max-width: 500px; }
.cta-banner p { color: var(--text-dim); font-size: 15px; margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: .06em;
}

input, select, textarea {
  width: 100%; background: var(--bg-panel);
  border: 1px solid var(--line-bright); color: var(--text);
  padding: 12px 14px; font-family: var(--font-body);
  font-size: 14px; border-radius: var(--radius);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--steel);
}
textarea { resize: vertical; min-height: 100px; }
select option { background: var(--bg-panel); }

/* ---- Highlight pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--steel); border: 1px solid var(--steel-dim);
  padding: 4px 10px; border-radius: 20px;
}
.pill-amber {
  color: var(--amber);
  border-color: rgba(214,48,18,0.3);
}
.pill-green {
  color: var(--green);
  border-color: rgba(76,175,125,0.3);
}

/* ---- Two-col layout ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}

/* ---- Feature list ---- */
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-list li {
  display: flex; gap: 12px;
  font-size: 14px; color: var(--text-dim);
}
.feature-list li::before {
  content: '→'; color: var(--steel);
  font-family: var(--font-mono); flex-shrink: 0;
}

/* ---- Tech card ---- */
.tech-products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}

.tech-product {
  background: var(--bg); padding: 22px 20px;
  transition: background .2s;
}
.tech-product:hover { background: var(--bg-panel); }
.tech-product h4 { font-size: 15px; margin-bottom: 6px; }
.tech-product p { font-size: 13px; color: var(--text-dim); }

/* ---- Plan cards ---- */
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}

.plan-card {
  background: var(--bg); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.plan-card.featured { background: var(--bg-panel-2); }

.plan-name {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .1em;
}
.plan-card h3 { font-size: 22px; }
.plan-card .plan-desc { font-size: 14px; color: var(--text-dim); }

.plan-includes {
  list-style: none; display: flex;
  flex-direction: column; gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.plan-includes li {
  display: flex; gap: 10px;
  font-size: 14px; color: var(--text-dim);
}
.plan-includes li::before {
  content: '✓'; color: var(--green);
  font-size: 12px; flex-shrink: 0; padding-top: 2px;
}

/* ---- Role cards ---- */
.roles-grid {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.role-row {
  background: var(--bg); padding: 24px 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  transition: background .2s;
  flex-wrap: wrap;
}
.role-row:hover { background: var(--bg-panel); }
.role-info { flex: 1; }
.role-info h3 { font-size: 18px; margin-bottom: 6px; }
.role-info p { font-size: 14px; color: var(--text-dim); }
.role-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
}

/* ---- Contact info ---- */
.contact-dl { display: flex; flex-direction: column; gap: 28px; }
.contact-dl dt {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 6px;
}
.contact-dl dd { font-size: 16px; line-height: 1.5; }
.contact-dl a:hover { color: var(--steel); }

/* ---- Schematic ---- */
.schematic {
  border: 1px solid var(--line); background: var(--bg-panel);
  border-radius: var(--radius); padding: 28px 24px 20px;
  overflow: hidden;
}
.schematic-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 20px;
}
.schem-node-label { font-family: 'JetBrains Mono', monospace; font-size:11px; fill:var(--text-faint); }
.schem-node-title { font-family: 'Space Grotesk', sans-serif; font-size:13px; font-weight:600; fill:#EDF1F3; }
.schem-line { stroke: #2E3D4A; stroke-width: 1.5; fill: none; }
.schem-box { fill: #161D24; stroke: #2E3D4A; stroke-width: 1; }
.pulse { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(214,48,18,0.9)); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: travel 4.5s linear infinite; }
}
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 32px;
  position: relative; z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}

.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-dim); }
.footer-col ul li a:hover { color: var(--text); }

.footer-logo-desc {
  font-size: 14px; color: var(--text-dim);
  margin-top: 16px; max-width: 260px; line-height: 1.55;
}

.footer-social-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-dim); margin-top: 18px;
}
.footer-social-link:hover { color: var(--steel); }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links, .phone-pill { display: none; }
  .menu-toggle { display: block; }
  .two-col, .three-col.break { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 28px; }
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .page-header { padding: 56px 0 52px; }
}
