/* ============================================================
   BePro Solutions — Shared styles
   Headlines: Sora (free substitute for brand's "New Order")
   Body: Montserrat
   ============================================================ */

:root {
  --cobalt: #0548B4;
  --cobalt-deep: #033682;
  --cobalt-darker: #021a44;
  --bright-fern: #75C23E;
  --bright-fern-dark: #5ea531;
  --ocean-twilight: #4751B4;
  --slate-indigo: #5962A6;
  --pale-sky: #C2D4EC;
  --pale-sky-50: #E8EFFA;
  --ink: #0B1020;
  --ink-soft: #1a2240;
  --paper: #ffffff;
  --paper-warm: #f7f9fd;
  --line: rgba(11, 16, 32, 0.08);
  --line-dark: rgba(194, 212, 236, 0.12);
  --grad: linear-gradient(90deg, #0548B4 0%, #2c7aa6 45%, #75C23E 100%);
  --grad-dia: linear-gradient(135deg, #0548B4 0%, #4751B4 35%, #2c8a8c 65%, #75C23E 100%);
  --shadow-card: 0 1px 2px rgba(11,16,32,.04), 0 8px 28px rgba(11,16,32,.06);
  --shadow-card-hover: 0 2px 4px rgba(11,16,32,.06), 0 18px 48px rgba(5,72,180,.12);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

::selection { background: var(--cobalt); color: #fff; }
::-moz-selection { background: var(--cobalt); color: #fff; }
.dark ::selection, .site-footer ::selection, .hero ::selection, .page-hero ::selection {
  background: var(--bright-fern);
  color: var(--cobalt-darker);
}
.dark ::-moz-selection, .site-footer ::-moz-selection, .hero ::-moz-selection, .page-hero ::-moz-selection {
  background: var(--bright-fern);
  color: var(--cobalt-darker);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
.h-display, h1, h2, h3, h4 {
  font-family: "Sora", "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(40px, 5.4vw, 76px); }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--grad);
  display: inline-block;
}
.dark .eyebrow { color: var(--pale-sky); }
.dark .eyebrow::before { background: var(--grad); }

.lead { font-size: clamp(17px, 1.3vw, 20px); color: rgba(11,16,32,.72); max-width: 60ch; }
.dark .lead { color: rgba(232,239,250,.78); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 76px 0; position: relative; }
section.tight { padding: 56px 0; }

.dark {
  background: var(--cobalt-darker);
  color: var(--pale-sky-50);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* tech grid overlay for dark sections */
.dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(194,212,236,.05) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(194,212,236,.05) 1px, transparent 1px) 0 0 / 60px 60px;
  mask: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.dark > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--bright-fern);
  color: #06250a;
  box-shadow: 0 4px 18px rgba(117,194,62,.35), inset 0 -2px 0 rgba(0,0,0,.06);
}
.btn-primary:hover { background: var(--bright-fern-dark); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(117,194,62,.45); }
.btn-primary:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(117,194,62,.25); transition-duration: .08s; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(11,16,32,.04); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-ghost:active { transform: scale(0.98); transition-duration: .08s; }

.btn-arrow::after {
  content: "→";
  font-family: "Sora", sans-serif;
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--cobalt);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.link-arrow::after { content: "→"; transition: transform .25s ease; }
.link-arrow:hover { color: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.link-arrow:hover::after { transform: translateX(4px); }
.dark .link-arrow { color: #a3d973; }
.dark .link-arrow:hover { color: var(--bright-fern); border-color: var(--bright-fern); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; }
.site-header__logo img { height: 46px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.site-nav a {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--cobalt); background: rgba(5,72,180,.06); }
.site-nav a.active {
  color: var(--cobalt);
}
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.site-header__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-header__cta .btn { padding: 11px 18px; font-size: 14.5px; }

.menu-toggle { display: none; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .menu-toggle {
    display: inline-flex;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-left: auto;
  }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; position: relative; }
  .menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .site-header__cta .btn { padding: 10px 14px; font-size: 13.5px; }
  .site-header__cta .btn-ghost { display: none; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav.is-open a:last-child { border-bottom: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cobalt-darker);
  color: var(--pale-sky-50);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(194,212,236,.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(194,212,236,.04) 1px, transparent 1px) 0 0 / 80px 80px;
  mask: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  position: relative;
}
.site-footer__brand img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.site-footer__brand p { margin-top: 18px; font-size: 14px; color: rgba(232,239,250,.65); max-width: 32ch; line-height: 1.6; }
.site-footer h5 {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pale-sky);
  margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 14.5px; color: rgba(232,239,250,.78); transition: color .2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__socials { display: flex; gap: 10px; }
.site-footer__socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.site-footer__socials a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.site-footer__socials svg { width: 16px; height: 16px; fill: #fff; }
.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(232,239,250,.6);
  text-decoration: none;
  transition: color .2s;
}
.site-footer__email:hover { color: #fff; }
.site-footer__email svg { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; }
.site-footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(232,239,250,.55);
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.site-footer__bottom a { color: rgba(232,239,250,.7); }
.site-footer__bottom a:hover { color: #fff; }
@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; padding: 60px 24px 28px; }
}

/* ---------- WhatsApp floating ---------- */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #06250a;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(37,211,102,.42), 0 1px 2px rgba(0,0,0,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,.55); }
.wa-fab svg { width: 22px; height: 22px; fill: #06250a; }
@media (max-width: 600px) {
  .wa-fab span { display: none; }
  .wa-fab { padding: 12px; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(5,72,180,.18); }
.card--dark { background: rgba(255,255,255,.03); border-color: rgba(194,212,236,.12); }
.card--dark:hover { background: rgba(255,255,255,.05); border-color: rgba(117,194,62,.35); }

/* ---------- BP iso watermark ---------- */
.bp-mark {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}
.bp-mark img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Glow accents ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .55;
}
.glow--blue { background: radial-gradient(circle, #0548B4 0%, transparent 70%); }
.glow--green { background: radial-gradient(circle, #75C23E 0%, transparent 70%); }
.glow--mix { background: radial-gradient(circle, #4751B4 0%, #2c8a8c 50%, transparent 80%); }

/* ---------- Gradient border ---------- */
.grad-border {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  z-index: 0;
}
.grad-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Keyboard navigation focus */
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(11,16,32,.7);
}
.field label .req { color: #d33; margin-left: 2px; }
.field input, .field textarea, .field select {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(5,72,180,.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

/* page top spacer for fixed header */
main { padding-top: 72px; }

/* anchor targets: clear fixed header (72px) + breathing room */
section[id], .svc-block[id] { scroll-margin-top: 88px; }

/* ---------- Pretty wrap ---------- */
h1, h2, h3, p { text-wrap: pretty; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--cobalt-darker);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0 68px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(194,212,236,.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(194,212,236,.05) 1px, transparent 1px) 0 0 / 64px 64px;
  mask: radial-gradient(ellipse at 30% 60%, #000 0%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at 30% 60%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); margin: 18px 0 22px; }
.page-hero p.lead { color: rgba(232,239,250,.78); }
.page-hero .glow--blue { left: -150px; bottom: -100px; width: 480px; height: 480px; opacity: .35; }
.page-hero .glow--green { right: 10%; top: -80px; width: 320px; height: 320px; opacity: .25; }

/* ---------- CTA strip ---------- */
.cta-strip {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-strip__inner { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 28px; }
.cta-strip h2 { font-size: clamp(36px, 4.2vw, 56px); margin-bottom: 16px; color: #fff; }
.cta-strip p { margin-bottom: 32px; font-size: 17px; }
