/* ============================================================
   National IT, inner-page components
   Extends styles.css (same tokens). Loaded after styles.css.
   ============================================================ */

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal .updated { color: var(--ink-3); font-size: 15px; margin-top: 14px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 48px; }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { font-size: 21px; margin-top: 36px; }
.legal h4 { font-size: 17.5px; margin-top: 28px; }
.legal p { margin-top: 16px; color: var(--ink-2); }
.legal ul, .legal ol { margin: 16px 0 0; padding-left: 22px; color: var(--ink-2); }
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--ink-3); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.legal th, .legal td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink); }
.legal blockquote { margin: 20px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--cornflower); color: var(--ink-2); font-style: italic; }
/* article pages: text should follow the hero closely, unlike marketing sections */
.article-body { padding-top: clamp(36px, 4.5vw, 56px); }
.legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Nav dropdown (multi-page) ---------- */
.nav-item { position: relative; }
.nav-trigger {
  font-family: inherit;
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-weight: 400; font-size: 15px;
  line-height: inherit;
  padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-trigger:hover { color: var(--cobalt); }
.nav-trigger .chev { transition: transform .2s ease; display: inline-block; }
.nav-item:hover .nav-trigger .chev,
.nav-item:focus-within .nav-trigger .chev { transform: rotate(180deg); }
.nav-links a.is-active { color: var(--cobalt); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 660px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-lg);
  padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
/* below ~1220px a centred 660px panel would run off the left viewport edge -
   anchor it to the trigger instead */
@media (max-width: 1220px) {
  .dropdown { left: -80px; transform: translateY(6px); }
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown { transform: translateY(0); }
}
.drop-link {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px;
  transition: background .15s ease;
}
.drop-link:hover { background: var(--bg-tint); text-decoration: none; }
.drop-ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
  background: var(--cornflower-soft); color: var(--cobalt);
  display: grid; place-items: center;
}
.drop-ic svg { width: 18px; height: 18px; }
.drop-tt { font-weight: 500; font-size: 15px; color: var(--ink); line-height: 1.2; }
.drop-ds { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
@media (max-width: 900px) { .dropdown { display: none; } }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .ph-eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  max-width: 18ch;
}
.page-hero .ph-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 26px;
}
.page-hero .ph-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .ph-meta { margin-top: 28px; font-size: 14px; color: var(--ink-3); max-width: 70ch; }
.ph-rings {
  position: absolute; top: -180px; right: -160px;
  width: 620px; height: 620px; opacity: 0.5;
  pointer-events: none; z-index: 1;
}
@media (max-width: 700px) { .ph-rings { width: 420px; height: 420px; top: -120px; right: -180px; } }

/* ---------- Feature grid (static cards) ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid, .feature-grid.cols-2 { grid-template-columns: 1fr; } }

.fcard {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fcard:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: var(--sh-md); }
.fcard .sicon {
  width: 44px; height: 44px;
  background: var(--cornflower-soft); border-radius: 12px;
  display: grid; place-items: center; color: var(--cobalt);
}
.fcard .sicon svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 19px; }
.fcard p { color: var(--ink-2); font-size: 15px; }

/* ---------- Plans / pricing tiers ---------- */
.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 760px) { .plans-grid { grid-template-columns: 1fr; } }
.tier {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.tier.rec { border: 2px solid var(--cobalt); box-shadow: var(--sh-md); }
.tier .tier-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--cobalt); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.tier h3 { color: var(--cobalt); font-size: 24px; }
.tier .tier-tag { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.checklist.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
@media (max-width: 520px) { .checklist.two-col { grid-template-columns: 1fr; } }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
  padding: 9px 0;
}
.checklist li .ck {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  color: var(--cobalt);
}
.checklist li .ck svg { width: 18px; height: 18px; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Proven process (4 steps) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }
.pcard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.pcard .pnum { font-size: 28px; font-weight: 500; color: var(--cornflower); letter-spacing: -0.03em; }
.pcard h3 { margin-top: 12px; font-size: 19px; }
.pcard p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- Narrative block (2-col) ---------- */
.narrative { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .narrative { grid-template-columns: 1fr; gap: 36px; } }
.narrative .nb-body { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; color: var(--ink-2); font-size: 17px; }
.nb-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--sh-sm);
}
.nb-panel h3 { color: var(--cobalt); font-size: 20px; }
.nb-panel ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 0; }
.nb-panel ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
  padding: 12px 0; border-top: 1px solid var(--line);
}
.nb-panel ul li:first-child { border-top: 0; }
.nb-panel ul li .ck { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--cobalt); }
.nb-panel ul li .ck svg { width: 18px; height: 18px; }

/* the e8 "checklist panel" used on cyber */
.e8-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
@media (max-width: 900px) { .e8-grid { grid-template-columns: 1fr; gap: 32px; } }
.e8-grid .e8-lede h3 { font-size: 22px; }
.e8-grid .e8-lede p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; max-width: 44ch; }
.e8-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--sh-sm);
}

/* ---------- Stats band ---------- */
.statband {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--line);
  gap: 1px;
}
@media (max-width: 760px) { .statband { grid-template-columns: 1fr 1fr; } }
.statband .sb {
  background: #fff; padding: 30px 26px;
}
.statband .sb-v { font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; color: var(--cobalt); line-height: 1; }
.statband .sb-l { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ---------- Generic centered section heading ---------- */
.sec-head-center { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sec-head-center .eyebrow { justify-content: center; }
.sec-head-center h2 { margin-top: 18px; }
.sec-head-center p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* ---------- About: story + why + community ---------- */
.story { max-width: 760px; }
.form-row .field { margin-top: 0; }
.story .eyebrow { margin-bottom: 16px; }
.story h2 { margin-bottom: 22px; }
.story p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid h3 { font-size: 18px; }
.why-grid p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .community-grid { grid-template-columns: 1fr; } }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.ccard h3 { font-size: 18px; }
.ccard .since { color: var(--cobalt); font-size: 13px; font-weight: 500; margin-top: 4px; }
.ccard p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}

/* ---------- Case study ---------- */
.cs-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .cs-outcomes { grid-template-columns: 1fr; } }
.cs-outcomes .oc {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--sh-sm);
}
.cs-outcomes .oc-v { font-size: clamp(28px, 3vw, 38px); font-weight: 500; color: var(--cobalt); letter-spacing: -0.03em; line-height: 1.05; }
.cs-outcomes .oc-l { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.cs-story { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 52px; }
.cs-block .eyebrow { margin-bottom: 16px; }
.cs-block .cs-paras { display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.cs-quote { background: var(--bg-tint); }
.cs-quote figure { max-width: 800px; margin: 0 auto; text-align: center; }
.cs-quote blockquote { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.35; color: var(--ink); letter-spacing: -0.015em; }
.cs-quote figcaption { margin-top: 24px; font-size: 15px; color: var(--ink-3); }
.cs-meta { font-size: 14px; color: var(--ink-3); margin-top: 22px; max-width: 80ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--sh-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cornflower); box-shadow: 0 0 0 3px rgba(91,135,218,0.18); background: #fff;
}
.contact-details { display: flex; flex-direction: column; gap: 30px; }
.contact-details h2 { font-size: 20px; }
.contact-details ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 7px; font-size: 15px; color: var(--ink-2); }
.contact-details .note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.contact-details .note svg { width: 16px; height: 16px; color: var(--cobalt); }
.portal-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--cobalt); }
.portal-link svg { width: 16px; height: 16px; }

/* ---------- Case study cards (proof rows + hub) ---------- */
.proof-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-cases.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .proof-cases { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .proof-cases.cols-2 { grid-template-columns: 1fr; } }
.cscard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cscard:hover { border-color: var(--cobalt); transform: translateY(-2px); box-shadow: var(--sh-md); text-decoration: none; }
.cscard .cs-sector { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cscard .cs-title { font-size: 22px; font-weight: 500; color: var(--ink); margin-top: 6px; letter-spacing: -0.02em; }
.cscard .cs-metric { font-size: clamp(28px, 3vw, 34px); font-weight: 500; color: var(--cobalt); letter-spacing: -0.03em; margin-top: 22px; line-height: 1; }
.cscard .cs-mlabel { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.cscard .cs-go { margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--cobalt); display: inline-flex; gap: 6px; align-items: center; }
.cscard:hover .cs-go .arr { transform: translateX(4px); }
.cscard .cs-go .arr { transition: transform .2s ease; }

/* ---------- Related services / next steps strip ---------- */
.related { background: var(--bg-tint); }

/* dropdown link text, title/description separation */
.drop-link { align-items: flex-start; }
.drop-link > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drop-tt { display: block; font-weight: 500; font-size: 15px; color: var(--ink); line-height: 1.3; }
.drop-ds { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.drop-link:hover .drop-tt { color: var(--cobalt); }
/* Credential categories keep unlike claims from being presented as equivalents. */
.credential-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:34px;text-align:left}
.credential-group{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.credential-group h3{font-size:18px;margin-bottom:14px}
.credential-group .pill-row{justify-content:flex-start;gap:8px}
@media(max-width:900px){.credential-groups{grid-template-columns:1fr}}

/* ---------- Insights hub ---------- */
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.insight-card:hover { text-decoration: none; border-color: var(--cornflower); transform: translateY(-2px); }
.insight-card .ic-cat {
  font-family: 'HK Grotesk', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt);
}
.insight-card h3 { font-size: 20px; line-height: 1.25; }
.insight-card p { font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.insight-card .ic-meta { margin-top: auto; padding-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.insight-card:hover h3 { color: var(--cobalt); }

/* ---------- Service-page FAQ + related insights ---------- */
.svc-faq h2, .related-insights h2 { margin-bottom: 28px; }
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 18px 36px 18px 0; position: relative;
  font-family: 'HK Grotesk', sans-serif; font-weight: 500; font-size: 18px; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--cobalt); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 0 20px; color: var(--ink-2); max-width: 66ch; }
.insights-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .insights-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Booking page ---------- */
.book-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.book-aside h2 { font-size: 22px; margin: 0 0 16px; }
.book-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.book-points li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.book-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--cornflower-soft); box-shadow: inset 0 0 0 2px var(--cornflower); }
.book-support { background: var(--bg-tint); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.book-alt { font-size: 14px; color: var(--ink-3); margin: 0; }
.book-alt a { color: var(--cobalt); text-decoration: underline; }
.book-embed { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--sh-md); }
.book-embed .calendly-inline-widget { border-radius: 10px; overflow: hidden; }
@media (max-width: 820px) { .book-layout { grid-template-columns: 1fr; gap: 28px; } }
