/* ================================================================
   Basilisk / Autonomous Pentesting — page-specific styles
   Devoteam Cyber Trust / Integrity.pt
   ================================================================ */

:root {
  --ap-red: #f8485e;
  --ap-ink: #3c3c3a;
  --ap-ink-2: #1a1817;
  --ap-mint: #d7ebe7;
  --ap-surface: #f8f9fa;
  --ap-border: #e4e4e2;
  --ap-line: #ececea;
  --ap-ease: cubic-bezier(.25, .46, .45, .94);
}

/* ── Section shared ────────────────────────────────────── */
.ap-section { padding: 80px 0; }
.ap-section--alt { background: var(--ap-surface); }
.ap-section--ink { background: var(--ap-ink-2); color: #fff; }
.ap-bg-section { position: relative; overflow: hidden; }
.ap-bg-section .ap-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ap-bg-section .ap-bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,24,23,.55), rgba(26,24,23,.75)); z-index: 1; }
.ap-bg-section .container { position: relative; z-index: 2; }

.ap-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--ap-red);
  margin: 0 0 12px;
}
.ap-hr {
  width: 110px;
  height: 1px;
  background: var(--ap-ink);
  border: 0;
  margin: 18px 0 24px;
}
.ap-hr--light { background: rgba(255,255,255,.4); }
.ap-h2 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--ap-ink-2);
  margin: 0;
}
.ap-h2 strong { font-weight: 700; }
.ap-section--ink .ap-h2 { color: #fff; }
.ap-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ap-ink);
  margin: 16px 0 0;
}
.ap-section--ink .ap-lead { color: rgba(255,255,255,.85); }

/* ── Hero actions ──────────────────────────────────────── */
.ap-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ── Stats bar (plain, no card) ────────────────────────── */
.ap-stats-section { background: var(--ap-surface); padding: 60px 0; }
.ap-stats-bar { background: #fff; border-radius: 3px; box-shadow: 0 3px 5px #ddd; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ap-stats-bar > div { padding: 34px 36px; border-right: 1px solid #f1f1f1; }
.ap-stats-bar > div:last-child { border-right: none; }
.ap-stat__n { font-size: 40px; font-weight: 700; color: var(--ap-red); line-height: 1; margin: 0; }
.ap-stat__n .unit { font-size: 22px; }
.ap-stat__l { font-size: 14px; color: var(--ap-ink); margin: 14px 0 0; }
.ap-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-tag { font-size: 13px; font-weight: 700; color: var(--ap-red); border: 1px solid var(--ap-red); border-radius: 20px; padding: 5px 12px; }

/* ── Generic card grid (problem / solution / quality / use-cases) ── */
.ap-cards-grid { display: grid; gap: 24px; margin-top: 40px; }
.ap-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ap-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ap-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ap-card {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,.06);
  padding: 30px;
}
.ap-card--accent { border-top: 3px solid var(--ap-red); }
.ap-card--flat {
  background: transparent;
  box-shadow: none;
  border-top: 1px solid var(--ap-border);
  border-radius: 0;
  padding: 26px 0 0;
}
.ap-sector-card { background: #fff; border-radius: 3px; box-shadow: 0 3px 5px #ddd; padding: 30px 26px; text-align: center; }
.ap-sector-avatar { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; box-shadow: 0 0 0 6px var(--ap-mint); overflow: hidden; }
.ap-sector-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.ap-sector-card h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--ap-ink-2); }
.ap-sector-rule { width: 30px; height: 2px; background: var(--ap-red); margin: 0 auto 14px; }
.ap-sector-card p { margin: 0; font-size: 14px; color: var(--ap-ink); }
.ap-card__icon { display: block; margin: 0 0 18px; color: var(--ap-red); }
.ap-card h3, .ap-card h4 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--ap-ink-2); }
.ap-card h4 { font-size: 17px; }
.ap-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ap-ink); }

/* ── Solution (cards + image) ──────────────────────────── */
.ap-solution-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: stretch; margin-top: 40px; }
.ap-solution-cards { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.ap-solution-cards .ap-card--flat { border-top: 1px solid var(--ap-border); padding-top: 26px; }
.ap-solution-image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 3px; }

/* ── Process steps (numbered) ─────────────────────────── */
.ap-process-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 40px; }
.ap-process-grid::before { content: ""; position: absolute; top: 31px; left: 32px; right: 32px; height: 2px; background: #f8d7dc; pointer-events: none; }
.ap-process { position: relative; }
.ap-process__n { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 6px var(--ap-surface); margin: 0 0 22px; }
.ap-process__n--filled { background: var(--ap-red); color: #fff; }
.ap-process__n--outline { background: #fff; border: 2px solid var(--ap-red); color: var(--ap-red); }
.ap-process__n--dark { background: var(--ap-ink-2); color: #fff; }
.ap-process h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ap-ink-2); }
.ap-process p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ap-ink); }

.ap-highlight {
  margin-top: 44px;
  background: var(--ap-mint);
  border-radius: 3px;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.ap-highlight .ap-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--ap-ink);
  color: #fff;
  padding: 7px 16px;
  border-radius: 100px;
}
.ap-highlight p { margin: 0; flex: 1 1 320px; font-size: 15px; color: var(--ap-ink-2); }

/* ── Security-ops dark grid ────────────────────────────── */
.ap-fw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.ap-fw-card { background: #fff; padding: 32px; border-radius: 3px; }
.ap-fw-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ap-ink-2); }
.ap-fw-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ap-ink); }

/* ── Deliverables + benefit cards ─────────────────────── */
.ap-deliver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 40px; }
.ap-deliver-list { list-style: none; padding: 0; margin: 0; }
.ap-deliver-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ap-line);
  font-size: 14.5px;
  color: var(--ap-ink);
}
.ap-deliver-list li:last-child { border-bottom: none; }
.ap-deliver-list .bullet-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ap-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-deliver-cards { display: flex; flex-direction: column; gap: 18px; }
.ap-deliver-cards .ap-card { padding: 22px 24px; border-left: 1px solid var(--ap-red); }
.ap-deliver-cards .ap-card h4 { margin: 0 0 6px; }
.ap-deliver-cards .ap-card p { font-size: 14px; }

/* ── Compare (consultant vs AI) ────────────────────────── */
.ap-compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.ap-compare-card { background: #fff; border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.06); padding: 36px; }
.ap-compare-card--dark { background: var(--ap-ink-2); }
.ap-compare-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
  background: var(--ap-mint);
  color: var(--ap-ink-2);
}
.ap-compare-card--dark .ap-compare-tag { background: var(--ap-red); color: #fff; }
.ap-compare-card h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--ap-ink-2); }
.ap-compare-card--dark h3 { color: #fff; }
.ap-compare-card ul { list-style: none; margin: 0; padding: 0; }
.ap-compare-card ul li { padding: 11px 0; border-top: 1px solid var(--ap-line); font-size: 14.5px; color: var(--ap-ink); }
.ap-compare-card--dark ul li { border-top: 1px solid #3c3c3a; color: rgba(255,255,255,.9); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ap-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .ap-solution-grid { grid-template-columns: 1fr; gap: 30px; }
  .ap-solution-image { min-height: 260px; }
  .ap-cards-grid--3, .ap-cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ap-process-grid { grid-template-columns: repeat(3, 1fr); }
  .ap-process-grid::before { display: none; }
  .ap-fw-grid { grid-template-columns: 1fr; }
  .ap-deliver-grid { grid-template-columns: 1fr; gap: 44px; }
  .ap-compare-grid { grid-template-columns: 1fr; }
  .ap-h2 { font-size: 28px; }
}

@media (max-width: 767px) {
  .ap-section { padding: 56px 0; }
  .ap-cards-grid--2, .ap-cards-grid--3, .ap-cards-grid--4 { grid-template-columns: 1fr; }
  .ap-process-grid { grid-template-columns: 1fr; }
  .ap-process__n { margin: 0 auto 22px; }
  .ap-process h3, .ap-process p { text-align: center; }
  .ap-h2 { font-size: 24px; }
  .ap-stats-bar { grid-template-columns: 1fr; }
  .ap-stats-bar > div { border-right: none; border-bottom: 1px solid #f1f1f1; }
  .ap-stats-bar > div:last-child { border-bottom: none; }
}