/* ============================================================
   OpenEFA on the EFA family design
   Structure follows efasecurity.com's efa-family.css; colour is
   OpenEFA's own deep royal blue, taken from the ring logo and kept
   close to the EFA Security navy (company: shield + navy/azure,
   product: ring + royal blue).
   ============================================================ */
:root {
  --oe-ink: #0b1633;            /* one dark surface for every dark band */
  --oe-deep: #0b2257;
  --oe-mid: #1d45a3;
  --oe-light: #3162c9;
  --oe-accent: #2557d6;         /* links + buttons, 6.1:1 on white */
  --oe-accent-dark: #1c44ab;
  --oe-accent-soft: #e7edfb;
  --oe-soft-ground: #f5f7fc;
  --oe-border: #e3e8f0;
  --oe-text: #1f2937;
  --oe-muted: #5b6472;
  --oe-hero: linear-gradient(135deg, #0b2257 0%, #1d45a3 55%, #3162c9 100%);
  --oe-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Point Bootstrap's own palette at the OpenEFA blue */
  --bs-primary: #2557d6;
  --bs-primary-rgb: 37, 87, 214;
  --bs-primary-text-emphasis: #15357f;
  --bs-primary-bg-subtle: #e7edfb;
  --bs-primary-border-subtle: #b9c9f2;
  --bs-link-color: #2557d6;
  --bs-link-color-rgb: 37, 87, 214;
  --bs-link-hover-color: #1c44ab;
  --bs-link-hover-color-rgb: 28, 68, 171;
  --bs-focus-ring-color: rgba(37, 87, 214, .25);
}

html, body { font-family: var(--oe-font); color: var(--oe-text); }
body.bg-light { background: #fff !important; }
section.bg-light { background: var(--oe-soft-ground) !important; }
.display-5, .display-6, h2 { letter-spacing: -.01em; text-wrap: balance; }

/* Buttons follow the brand blue (Bootstrap ships its own #0d6efd) */
.btn-primary {
  --bs-btn-bg: var(--oe-accent); --bs-btn-border-color: var(--oe-accent);
  --bs-btn-hover-bg: var(--oe-accent-dark); --bs-btn-hover-border-color: var(--oe-accent-dark);
  --bs-btn-active-bg: #15357f; --bs-btn-active-border-color: #15357f;
  --bs-btn-disabled-bg: var(--oe-accent); --bs-btn-disabled-border-color: var(--oe-accent);
  --bs-btn-focus-shadow-rgb: 37, 87, 214;
  font-weight: 600;
}
.btn-outline-primary {
  --bs-btn-color: var(--oe-accent); --bs-btn-border-color: var(--oe-accent);
  --bs-btn-hover-bg: var(--oe-accent); --bs-btn-hover-border-color: var(--oe-accent);
  --bs-btn-active-bg: var(--oe-accent-dark); --bs-btn-active-border-color: var(--oe-accent-dark);
  --bs-btn-disabled-color: var(--oe-accent); --bs-btn-disabled-border-color: var(--oe-accent);
  --bs-btn-focus-shadow-rgb: 37, 87, 214;
  font-weight: 600;
}
.btn-light { font-weight: 600; color: var(--oe-accent); }
.btn-outline-light { font-weight: 600; }
.alert-info {
  --bs-alert-color: var(--bs-primary-text-emphasis);
  --bs-alert-bg: var(--bs-primary-bg-subtle);
  --bs-alert-border-color: var(--bs-primary-border-subtle);
}

/* ---------- Navbar ---------- */
.efa-navbar { border-bottom: 1px solid var(--oe-border); padding: .6rem 0; }
.efa-navbar .efa-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.efa-navbar .efa-brand img { height: 44px; width: auto; display: block; }
.efa-navbar .efa-tagline { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--oe-accent); margin-left: 3px; }
.efa-navbar .nav-link { color: var(--oe-text); font-weight: 500; padding-inline: .8rem !important; }
.efa-navbar .nav-link:hover, .efa-navbar .nav-link:focus { color: var(--oe-accent); }

/* ---------- Hero ---------- */
.oe-hero { background: var(--oe-hero); color: #fff; padding: 5rem 0 4.5rem; }
.oe-hero h1 { font-size: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin: 0 0 .75rem; }
.oe-hero h1 sup { font-size: .6em; letter-spacing: 0; }
.oe-hero .oe-statement { font-size: 2.9rem; line-height: 1.1; font-weight: 700; margin: 0 0 1rem; text-wrap: balance; }
.oe-hero .lead { font-size: 1.2rem; opacity: .95; }
.oe-hero p { max-width: 58ch; }
.oe-hero .btn-light { color: var(--oe-accent); }
.oe-hero .oe-login { color: #fff; opacity: .85; font-weight: 600; text-decoration: none; align-self: center; }
.oe-hero .oe-login:hover { opacity: 1; text-decoration: underline; color: #fff; }
.oe-hero .oe-caption { color: rgba(255,255,255,.7); font-size: .85rem; text-align: center; margin: .75rem 0 0; }
.oe-hero .oe-caption a { color: rgba(255,255,255,.85); }

/* Verdict card (the explained decision) */
.oe-verdict { background: #fff; color: var(--oe-text); border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 48px rgba(3, 10, 40, .38); font-size: .92rem; }
.oe-verdict .oe-v-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1.1rem; background: var(--oe-ink); color: #fff; }
.oe-verdict .oe-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.oe-verdict .oe-v-msg { padding: .9rem 1.1rem; background: #f8fafc; border-bottom: 1px solid var(--oe-border); }
.oe-verdict .oe-v-label { font-size: .7rem; letter-spacing: .12em; font-weight: 700; color: #6b7280; margin: 0; text-transform: uppercase; }
.oe-verdict .oe-sig { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-top: 1px solid #f1f5f9; }
.oe-verdict .oe-sig:first-of-type { border-top: 0; }
.oe-verdict .oe-sig .badge { font-variant-numeric: tabular-nums; min-width: 3.1rem; }
.oe-verdict .oe-v-actions { padding: .7rem 1.1rem; background: #f8fafc; border-top: 1px solid var(--oe-border); display: flex; flex-wrap: wrap; gap: .5rem; }

/* Report ribbon under the hero */
.oe-ribbon { background: var(--oe-ink); color: #d8e1f5; padding: .85rem 0; font-size: .95rem; }
.oe-ribbon .container { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.oe-ribbon .oe-k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; background: var(--oe-accent); color: #fff; padding: .2rem .5rem; border-radius: 4px; }
.oe-ribbon strong { color: #fff; }
.oe-ribbon a { color: #a9c1ff; font-weight: 600; margin-left: auto; }
.oe-ribbon a:hover { color: #fff; }

/* Trust strip */
.oe-pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px;
  background: var(--oe-accent-soft); color: #15357f; margin: 0 .25rem .35rem; }

/* One dark surface replaces the charcoal + slate gradients */
.oe-dark { background: var(--oe-ink) !important; color: #fff; }
.oe-dark .oe-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; padding: .4rem .8rem;
  border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cfdcff; margin-bottom: 1rem; }

/* Icons that replaced emoji */
.feature-icon { font-size: 2rem; line-height: 1; color: var(--oe-accent) !important; margin-bottom: .9rem; }
.feature-icon .bi { display: inline-flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--oe-accent-soft); font-size: 1.5rem; }
.oe-dark .oe-gap-icon { font-size: 1.4rem; color: #cfdcff; }

/* Stats: one calm style instead of four colours */
.oe-stat { background: #fff; border: 1px solid var(--oe-border); border-radius: 10px; }
.oe-stat .stat-number { color: var(--oe-mid) !important; font-variant-numeric: tabular-nums; }
.oe-stat p, .oe-stat small { color: var(--oe-muted); }

/* Cards */
.card { border-radius: 12px; }
.card.border-primary:not(.border-2) { border-color: var(--oe-border) !important; }
.card.border-primary .card-title { color: var(--oe-mid) !important; }

/* Deploy card (moved out of the hero) */
.oe-deploy { border: 1px solid var(--oe-border); border-radius: 14px; padding: 1.75rem; background: var(--oe-soft-ground); }
.oe-deploy h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.oe-deploy li { display: flex; gap: .6rem; margin-bottom: .55rem; }
.oe-deploy li .bi { color: var(--oe-accent); flex: none; margin-top: .15rem; }

/* Closing call to action */
.oe-cta { background: var(--oe-ink) !important; color: #fff; }
.oe-cta .card { border: 0; }

#scrollToTop { background-color: var(--oe-accent) !important; }
#scrollToTop:hover { background-color: var(--oe-accent-dark) !important; }

@media (max-width: 991.98px) {
  .oe-hero { padding: 3.5rem 0 3rem; }
  .oe-hero .oe-statement { font-size: 2.2rem; }
  .efa-navbar .navbar-nav { padding-top: .5rem; }
}
@media (max-width: 575.98px) {
  .oe-hero .oe-statement { font-size: 1.85rem; }
  .oe-ribbon a { margin-left: 0; }
}
.oe-verdict .oe-dim { color: rgba(255,255,255,.72); }
.oe-verdict .oe-v-sigs { padding: .8rem 1.1rem .6rem; background: #fff; }
.oe-verdict .oe-v-sigs > p { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #64748b; margin-bottom: .35rem; }
@media (min-width: 768px) { .oe-deploy ul { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; } }
