/* =============================================================
   feat-hero-block.css — Bluworks v2
   Two-column feature hero: text left, screenshot right.
   ============================================================= */

/* ── Per-feature accent tokens (body class set in functions.php) */
body.feat-accent-mint   { --feat-accent: #00D6BD; --feat-accent-soft: rgba(0,214,189,.10); }
body.feat-accent-green  { --feat-accent: #04D07C; --feat-accent-soft: rgba(4,208,124,.10); }
body.feat-accent-amber  { --feat-accent: #EFAB3B; --feat-accent-soft: rgba(239,171,59,.12); }
body.feat-accent-purple { --feat-accent: #8F3ACC; --feat-accent-soft: rgba(143,58,204,.10); }
body.feat-accent-orange { --feat-accent: #FF772D; --feat-accent-soft: rgba(255,119,45,.10); }

/* ── Shared pill ──────────────────────────────────────────── */
.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg, #FAFBFD);
  border: 1px solid var(--line, #E4E8F3);
  border-radius: var(--r-full, 999px);
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid, #4B5068);
  line-height: 1;
  white-space: nowrap;
  margin-bottom: var(--s-5, 20px);
}

html[dir="rtl"] .feat-pill {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* Animated dot */
.feat-pill-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  color: var(--blu-primary, #1E50E5);
  animation: feat-dot-blink 2s infinite;
}

@keyframes feat-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Section ─────────────────────────────────────────────── */
.feat-hero {
  background: linear-gradient(180deg, var(--blu-soft, #EEF3FF) 0%, var(--bg, #FAFBFD) 100%);
  border-bottom: 1px solid var(--line, #E4E8F3);
  overflow: hidden;
}

.feat-hero .container {
  width: 100%;
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  box-sizing: border-box;
}

/* ── Inner grid ── */
.feat-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}

/* Split mode: text + screenshot */
.feat-hero--split .feat-hero-inner {
  grid-template-columns: 1fr 1fr;
  padding: clamp(72px, 9vw, 108px) 0 0;
}

/* Centred mode: text only */
.feat-hero--centered .feat-hero-inner {
  text-align: center;
  justify-items: center;
  padding: clamp(72px, 10vw, 112px) 0 clamp(56px, 7vw, 80px);
}

/* ── Text column ─────────────────────────────────────────── */
.feat-hero-text {
  padding-bottom: clamp(48px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feat-hero--centered .feat-hero-text {
  align-items: center;
}

/* H1 */
.feat-hero h1 {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink, #0A0F1E);
  margin: 0 0 var(--s-5, 20px);
  max-width: 620px;
}

html[dir="rtl"] .feat-hero h1 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
}

/* Blue highlight via <em> */
.feat-hero h1 em {
  font-style: normal;
  color: var(--blu-primary, #1E50E5);
}

/* Lead */
.feat-hero-lead {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid, #4B5068);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 var(--s-6, 28px);
}

html[dir="rtl"] .feat-hero-lead {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* ── CTA row ─────────────────────────────────────────────── */
.feat-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Primary button */
.feat-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--blu-primary, #1E50E5);
  color: #fff;
  border-radius: var(--r-full, 999px);
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 220ms ease, transform 220ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 220ms ease;
}

.feat-btn-primary:hover {
  background: var(--blu-dark, #0A2A8A);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 80, 229, 0.20);
}

.feat-btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1);
}

.feat-btn-primary:hover .feat-btn-arrow { transform: translateX(3px); }
html[dir="rtl"] .feat-btn-arrow { transform: scaleX(-1); }
html[dir="rtl"] .feat-btn-primary:hover .feat-btn-arrow { transform: scaleX(-1) translateX(3px); }

/* Ghost button */
.feat-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: transparent;
  color: var(--ink, #0A0F1E);
  border-radius: var(--r-full, 999px);
  border: 1.5px solid var(--line, #E4E8F3);
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.feat-btn-ghost:hover {
  border-color: var(--ink, #0A0F1E);
  background: var(--line-soft, #F0F3F9);
}

/* ── Visual column ───────────────────────────────────────── */
.feat-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Soft glow behind screenshot */
.feat-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--blu-soft, #EEF3FF) 0%, transparent 68%);
  pointer-events: none;
}

/* Browser frame */
.feat-hero-screen {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line, #E4E8F3);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 60px rgba(10,15,30,.09);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.feat-hero-screen-bar {
  background: #F2F4F8;
  border-bottom: 1px solid var(--line, #E4E8F3);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.feat-screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line, #E4E8F3);
}

.feat-screen-dot:nth-child(1) { background: #FF5F57; }
.feat-screen-dot:nth-child(2) { background: #FEBC2E; }
.feat-screen-dot:nth-child(3) { background: #28C840; }

.feat-hero-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .feat-hero--split .feat-hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .feat-hero-text { padding-bottom: clamp(48px, 8vw, 72px); }
}

@media (max-width: 540px) {
  .feat-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .feat-btn-primary, .feat-btn-ghost { width: 100%; justify-content: center; }
}

/* ── Reveal ─────────────────────────────────────────────── */
.feat-hero .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms cubic-bezier(0.2,0.8,0.2,1),
              transform 320ms cubic-bezier(0.2,0.8,0.2,1);
}
.feat-hero .reveal.in { opacity: 1; transform: none; }
.feat-hero .reveal-d2 { transition-delay: 90ms; }
.feat-hero .reveal-d3 { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .feat-hero .reveal,
  .feat-hero .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .feat-pill-dot { animation: none !important; }
  .feat-btn-primary, .feat-btn-ghost { transition: none !important; }
}

/* =============================================================
   UI CARD (right column) — replaces screenshot image
   ============================================================= */

.feat-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Soft glow */
.feat-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--blu-soft, #EEF3FF) 0%, transparent 68%);
  pointer-events: none;
}

/* Card wrapper */
.feat-hero-card {
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border: 1px solid var(--line, #E4E8F3);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 60px rgba(10, 15, 30, 0.09);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Browser bar */
.feat-card-bar {
  background: #F2F4F8;
  border-bottom: 1px solid var(--line, #E4E8F3);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-card-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.feat-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.feat-card-dots span:nth-child(1) { background: #FF5F57; }
.feat-card-dots span:nth-child(2) { background: #FEBC2E; }
.feat-card-dots span:nth-child(3) { background: #28C840; }

.feat-card-title {
  font-family: 'Neue Haas Grotesk Display', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted, #6B7088);
  margin-left: auto;
}

/* Card body */
.feat-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── KPI row ── */
.feat-kpi-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

/* 2 KPIs: center them so they don't leave an empty third slot */
.feat-kpi-row--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 1 KPI: fully centered */
.feat-kpi-row--1 {
  grid-template-columns: 1fr;
}

.feat-kpi {
  background: var(--bg, #FAFBFD);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.feat-kpi-val {
  font-family: 'Neue Haas Grotesk Display', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink, #0A0F1E);
  display: block;
  white-space: nowrap;
}

.feat-kpi-lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-muted, #6B7088);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feat-kpi-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* Tag colour variants */
.feat-kpi-tag.tg, .feat-emp-badge.tg { background: rgba(4, 208, 124, 0.13); color: #027A46; }
.feat-kpi-tag.tw, .feat-emp-badge.tw { background: rgba(239, 171, 59, 0.15); color: #9A5700; }
.feat-kpi-tag.tn, .feat-emp-badge.tn { background: var(--line, #E4E8F3);     color: var(--ink-mid, #4B5068); }

/* ── Employee rows ── */
.feat-emp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-emp-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: var(--bg, #FAFBFD);
  border-radius: 8px;
}

.feat-emp-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blu-soft, #EEF3FF);
  color: var(--blu-primary, #1E50E5);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-emp-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #0A0F1E);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-emp-val {
  font-size: 11px;
  color: var(--ink-mid, #4B5068);
  white-space: nowrap;
  flex-shrink: 0;
}

.feat-emp-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  /* Fake data card is too dense to be readable on mobile — hide it. */
  .feat-hero-visual--card { display: none; }

  /* Decorative glow blob was sized/positioned for the desktop card's
     height. On mobile the container is much shorter, so the blob
     overshoots upward and bleeds into the text above it. Not needed
     on mobile anyway — hide it. */
  .feat-hero-visual::before { display: none; }

  /* Real screenshot reads fine on mobile — keep it, just let it sit
     full-width under the text instead of the desktop card framing. */
  .feat-hero-visual--image {
    display: block;
    margin-top: var(--s-6, 28px);
  }
}

/* =============================================================
   BEZEL FRAMES — PC/monitor and phone, same dark-frame family
   ============================================================= */

/* PC/monitor: square-ish corners + stand, reads as a desktop monitor
   rather than a tablet. */
.feat-pc-frame {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto 50px;
  background: #0A0F1E;
  border-radius: 14px;
  padding: 14px 14px 14px;
  box-shadow: 0 20px 50px rgba(10, 15, 30, 0.22);
  box-sizing: border-box;
}

.feat-pc-cam {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4A5170;
  z-index: 2;
}

.feat-pc-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

/* Monitor stand — neck + base, on every PC frame (including the
   smaller overlapping front shot), sized proportionally via % so it
   scales down with whatever width that particular frame renders at. */
.feat-pc-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 7%;
  min-width: 18px;
  max-width: 34px;
  height: 26px;
  background: #0A0F1E;
  z-index: 0;
}

.feat-pc-frame::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 32px);
  transform: translateX(-50%);
  width: 26%;
  min-width: 90px;
  max-width: 200px;
  height: 10px;
  border-radius: 999px;
  background: #0A0F1E;
  z-index: 0;
}

/* Phone: Android-style — punch-hole camera dot instead of an iPhone
   notch/pill, slightly less rounded corners than before. */
.feat-phone-frame {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto;
  background: #0A0F1E;
  border-radius: 26px;
  padding: 8px 8px 10px;
  box-shadow: 0 20px 50px rgba(10, 15, 30, 0.22);
  box-sizing: border-box;
}

.feat-phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3A4058;
  z-index: 2;
}

.feat-phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

/* A lone shot (no overlapping front image) isn't sharing space with a
   second screenshot, so it can run bigger. */

.feat-hero-shot-stack:not(.feat-hero-shot-stack--pair) .feat-phone-frame { width: 280px; }
.feat-hero-shot-back .feat-phone-notch {
    display: none;
}

/* =============================================================
   PAIR LAYOUT — back screenshot + smaller one overlapping in front.
   Both use the same dark bezel family, so this stays consistent no
   matter which combination (web+web, web+mobile, mobile+mobile) is
   chosen. Sizing is percentage/max-width based throughout, so the
   whole composition scales down together on narrower screens instead
   of needing separate mobile-only rules or a separate mobile image.
   ============================================================= */
.feat-hero-shot-stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.feat-hero-shot-stack--pair {
  /* Room for the front shot to spill past the back shot's edges
     without getting clipped or crashing into surrounding content.
     Default ("auto"): mirrors with language — right in English,
     left in Arabic. */
  margin-inline-end: 8%;
  margin-bottom: 14%;
}

.feat-hero-shot-stack--pair .feat-hero-shot-back {
  position: relative;
  z-index: 1;
}

.feat-hero-shot-stack--pair .feat-hero-shot-front {
  position: absolute;
  z-index: 2;
  bottom: 0;
  inset-inline-end: -12%;
  margin: 0;
}

/* Manual override — forces a fixed side regardless of language.
   Physical left/right on purpose here, not logical, since the whole
   point is to pin it to one side no matter what. */
.feat-hero-shot-stack--side-left {
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-left: 8%;
  margin-right: 0;
}
.feat-hero-shot-stack--side-left .feat-hero-shot-front {
  inset-inline-start: auto;
  inset-inline-end: auto;
  left: -12%;
  right: auto;
}

.feat-hero-shot-stack--side-right {
  margin-inline-start: 0;
  margin-inline-end: 0;
  margin-left: 0;
  margin-right: 8%;
}
.feat-hero-shot-stack--side-right .feat-hero-shot-front {
  inset-inline-start: auto;
  inset-inline-end: auto;
  right: -12%;
  left: auto;
}

.feat-hero-shot-stack--pair .feat-pc-frame--front {
  width: 78%;
  max-width: 320px;
}

.feat-hero-shot-stack--pair .feat-phone-frame--front {
  max-width: 180px;
}

/* ── Arabic RTL font override (auto) ────────────────────────────── */
html[dir="rtl"] .feat-btn-primary,
html[dir="rtl"] .feat-btn-ghost,
html[dir="rtl"] .feat-card-title,
html[dir="rtl"] .feat-kpi-val {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}
@media (max-width: 767px) {
.feat-hero-shot-stack--pair .feat-phone-frame--front {
  width: 34%;
  max-width: 180px;
}
.feat-phone-frame {
    position: relative;
    display: block;
    max-width: 100%;
    margin: 0 auto;
    background: #0A0F1E;
    border-radius: 22px;
    padding: 5px 5px 7px;
    box-shadow: 0 20px 50px rgba(10, 15, 30, 0.22);
    box-sizing: border-box;
}
.feat-pc-frame {
    position: relative;
    display: block;
    width: 300px;
    max-width: 100%;
    margin: 0 auto 44px;
    background: #0A0F1E;
    border-radius: 14px;
    padding: 10px 10px 10px;
    box-shadow: 0 20px 50px rgba(10, 15, 30, 0.22);
    box-sizing: border-box;
}
.feat-hero-shot-stack--pair .feat-pc-frame--front {
    width: 60%;
    max-width: 320px;
}
.feat-hero-shot-stack:not(.feat-hero-shot-stack--pair) .feat-pc-frame {
    width: 330px;
}}