/* ==========================================================================
   BPoint Security — home page design system
   Ported from the "Font E (IBM Plex Sans)" wireframe.
   Scoped under .bp-home so Flatsome's global styles are not affected.
   ========================================================================== */

.bp-home {
  /* Brand */
  --navy: #0a1f3c;
  --navy-700: #0b2447;
  --ink: #071629;
  --ink-900: #050f1f;

  /* Restrained steel-grey accent (per client feedback, was electric blue) */
  --blue: #41556b;
  --blue-bright: #94a7bc;
  --blue-600: #2f4256;
  --blue-soft: #e7ecf1;

  /* Neutrals */
  --white: #ffffff;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --slate: #475569;
  --slate-2: #64748b;
  --slate-3: #94a3b8;
  --ink-text: #0f1f33;

  /* Accents */
  --gold: #e8c87a;
  --green: #16a34a;

  /* Type — set from the site's Flatsome Customizer fonts by
     bp_home_font_vars() in functions.php, so changing the fonts in the
     Customizer updates this page too. Values below are the fallback. */
  --display: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Radius / shadow */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 20, 40, .06), 0 1px 3px rgba(8, 20, 40, .08);
  --shadow: 0 10px 30px -12px rgba(8, 20, 40, .25);
  --shadow-lg: 0 30px 60px -20px rgba(8, 20, 40, .35);

  --maxw: 1250px;

  font-family: var(--body);
  color: var(--ink-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.bp-home img { max-width: 100%; display: block; }
.bp-home a { color: inherit; text-decoration: none; }
.bp-home button { font-family: inherit; cursor: pointer; border: none; background: none; }

.bp-home h1,
.bp-home h2,
.bp-home h3,
.bp-home h4 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--navy);
  font-weight: 700;
}

.bp-home p { margin: 0; }
.bp-home ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.bp-home .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.bp-home .eyebrow {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.bp-home .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.bp-home .eyebrow.on-dark { color: var(--blue-bright); }
.bp-home .eyebrow.on-dark::before { background: var(--blue-bright); }

/* ---------- Buttons ---------- */
.bp-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .02em;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--r);
  transition: .18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.bp-home .btn [data-icon] { width: 16px; height: 16px; }
.bp-home .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 31, 51, .4); }
.bp-home .btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(15, 31, 51, .5); color: #fff; }
.bp-home .btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.bp-home .btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.bp-home .btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.bp-home .btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
/* All buttons share one size. .btn-lg / .btn-sm are kept so existing
   markup keeps working, but they no longer change the size. */
.bp-home .btn-lg,
.bp-home .btn-sm { padding: 14px 26px; font-size: 14px; }

/* ---------- Section scaffolding ---------- */
.bp-home section { position: relative; }
.bp-home .sec { padding: 80px 0; position: relative; }
.bp-home .sec-sm { padding: 56px 0; position: relative; }
.bp-home .sec.dark { background: var(--navy); color: #fff; }
.bp-home .sec.ink { background: var(--ink); color: #fff; }
.bp-home .sec.paper { background: var(--paper); }
.bp-home .sec.dark h2, .bp-home .sec.ink h2,
.bp-home .sec.dark h3, .bp-home .sec.ink h3 { color: #fff; }

.bp-home .sec-head { max-width: 760px; }
.bp-home .sec-head.center { margin: 0 auto; text-align: center; }
.bp-home .sec-head p { margin-top: 16px; font-size: 16px; color: var(--slate); }

/* ---------- Section heading pair (eyebrow + h2) ----------
   Applies wherever an eyebrow is followed by a heading, so the six sections
   that do not use a .sec-head wrapper get identical sizing and spacing. */
.bp-home .eyebrow { margin: 0; }

.bp-home .sec-head h2,
.bp-home .eyebrow + h2,
.bp-home .eyebrow + h3 {
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.12;
  margin: 14px 0 0;
}
.bp-home .sec.dark .sec-head p, .bp-home .sec.ink .sec-head p { color: #a9b8d0; }
.bp-home .lead { font-size: 17px; color: var(--slate); }

/* Blueprint texture for dark sections */
.bp-home .blueprint {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bp-home .radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 460px at 78% -10%, rgba(120, 140, 165, .24), transparent 60%);
  pointer-events: none;
}

/* ---------- Image placeholders (designed empty state) ---------- */
.bp-home .ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #7e93b4;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .06);
}
.bp-home .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 70% 0, rgba(120, 140, 165, .18), transparent 70%);
}
.bp-home .ph [data-icon] { width: 46px; height: 46px; color: #3f567c; position: relative; z-index: 1; }
.bp-home .ph .ph-lab {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ---------- Star helper ---------- */
.bp-home .gstars { display: inline-flex; align-items: center; gap: 8px; }
.bp-home .gstars .s { color: var(--gold); letter-spacing: 2px; font-size: 15px; }

/* ---------- Forms ---------- */
.bp-home .field { display: flex; flex-direction: column; gap: 6px; }
.bp-home .field label { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--navy); }
.bp-home .field input,
.bp-home .field select,
.bp-home .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-text);
  transition: .15s;
  width: 100%;
  box-shadow: none;
  margin: 0;
}
.bp-home .field textarea { resize: vertical; min-height: 84px; }
.bp-home .field input:focus,
.bp-home .field select:focus,
.bp-home .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 85, 107, .18);
}
.bp-home .field.err input,
.bp-home .field.err select,
.bp-home .field.err textarea { border-color: #dc2626; }
.bp-home .field .msg { font-size: 12px; color: #dc2626; display: none; }
.bp-home .field.err .msg { display: block; }
.bp-home .form-note { font-size: 12.5px; color: var(--slate-2); display: flex; align-items: center; gap: 8px; }
.bp-home .form-note [data-icon] { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* ---------- Staging tags (content-pending markers) ---------- */
.bp-home .stage-tag {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7a5a12;
  background: #fdf3d8;
  border: 1px dashed #d9b64e;
  border-radius: 5px;
  padding: 6px 11px;
}
.bp-home .stage-tag em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: none;
  font-size: 10.5px;
  color: #8a6a22;
}

/* ---------- Utilities ---------- */
.bp-home .mt8 { margin-top: 8px; }
.bp-home .mt16 { margin-top: 16px; }
.bp-home .mt24 { margin-top: 24px; }
.bp-home .mt32 { margin-top: 32px; }
.bp-home .mt40 { margin-top: 40px; }
.bp-home .center { text-align: center; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bp-home .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .bp-home .reveal.in { opacity: 1; transform: none; }
  .bp-home .reveal.d1 { transition-delay: .08s; }
  .bp-home .reveal.d2 { transition-delay: .16s; }
  .bp-home .reveal.d3 { transition-delay: .24s; }
  .bp-home .reveal.d4 { transition-delay: .32s; }
}

/* ---------- Icons ----------
   Icons render as <span data-icon><svg></svg></span>. The SPAN carries the
   size and the SVG fills it, so every size rule below targets the span.
   Default is 1em so an icon tracks the text it sits beside. */
.bp-home [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -.125em;
}
.bp-home [data-icon] > svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .bp-home .sec { padding: 60px 0; }
}
