/* ============================================================
   VisiHost — Photo Heroes layer (loaded LAST on wired pages)
   Adds page photography behind heroes + section photo figures.
   Scoped via body classes ph-<page> so it cannot leak.
   NOTE: photo+scrim go on the section element itself —
   orbix-design.css kills hero ::before/::after pseudos with
   display:none !important, so pseudo layers are unusable here.
   ============================================================ */

/* ---------- shared: section photo figure ---------- */
.photo-figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(14, 20, 32, 0.08);
  box-shadow: 0 24px 60px -24px rgba(14, 20, 32, 0.38);
  background: #fff;
}
.photo-figure img { display: block; width: 100%; height: auto; }
.photo-figure figcaption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #475569;
  padding: 0.8rem 1.15rem 0.9rem;
}
.section-figure {
  width: min(var(--content-width, 1160px), calc(100% - 2rem));
  margin: 0 auto 2.25rem;
}

/* ---------- base treatment for mini-hero pages ---------- */
body[class*="ph-"] .mini-hero {
  position: relative !important;
  background-color: #0e1420 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center 38% !important;
  padding-top: 5.5rem !important;
  padding-bottom: 4.25rem !important;
}
body[class*="ph-"] .mini-hero h1 { color: #ffffff !important; }
body[class*="ph-"] .mini-hero p  { color: rgba(255, 255, 255, 0.86) !important; }
body[class*="ph-"] .mini-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #d9f2fb !important;
}
body[class*="ph-"] .mini-hero a { color: #cfeaf5; }

/* ---------- per-page photo + scrim (scrim: brand ink -> teal) -- */
body.ph-pricing .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url("/assets/photos/pricing-hero.jpg") !important;
}
body.ph-xero .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url("/assets/photos/xero-hero.jpg") !important;
}
body.ph-registration .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url("/assets/photos/registration-hero.jpg") !important;
}
body.ph-creative .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(156,21,66,.55) 100%),
    url("/assets/photos/creative-hero.jpg") !important;
}
body.ph-contact .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url("/assets/photos/contact-hero.jpg") !important;
}
body.ph-apply .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url("/assets/photos/apply-hero.jpg") !important;
}

/* ---------- home page hero (uses .hero, not .mini-hero) ---------- */
body.ph-home .hero {
  position: relative !important;
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.78) 48%, rgba(0,131,167,.55) 100%),
    url("/assets/photos/home-hero.jpg") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center 40% !important;
  background-color: #0e1420 !important;
  padding-top: 5.5rem !important;
  padding-bottom: 4.5rem !important;
}
body.ph-home .hero .eyebrow {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #d9f2fb !important;
}

/* ---------- CRM page (own inline hero: .hero with gradient) ----------
   !important is required to beat the page's inline background. */
body.ph-crm .hero {
  background: linear-gradient(120deg, rgba(0,116,148,.92) 0%, rgba(156,21,66,.86) 55%, rgba(14,20,32,.92) 100%),
    url("/assets/photos/crm-hero.jpg") center 38% / cover no-repeat,
    #0e1420 !important;
}

/* ---------- character figures (Vera / Vusi / Byte) ---------- */
.character-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}
.character-figure img {
  display: block;
  width: auto;
  height: clamp(220px, 30vw, 380px);
  filter: drop-shadow(0 18px 32px rgba(14, 20, 32, 0.28));
}


/* text legibility on darkened heroes (home + crm use .hero, not .mini-hero) */
body.ph-home .hero h1,
body.ph-crm  .hero h1 { color: #ffffff !important; }
body.ph-home .hero p,
body.ph-crm  .hero p  { color: rgba(255, 255, 255, 0.87) !important; }
body.ph-home .hero .hero-copy h2,
body.ph-home .hero .hero-copy h3 { color: #ffffff !important; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body[class*="ph-"] .mini-hero,
  body.ph-home .hero {
    background-position: center 30% !important;
  }
  body[class*="ph-"] .mini-hero {
    padding-top: 4rem !important;
    padding-bottom: 3.25rem !important;
  }
  .section-figure { margin-bottom: 1.5rem; }
}

/* ---------- character placements (Vera / Vusi / Byte) ---------- */
.character-figure.in-card {
  justify-content: flex-start;
  margin: 0 0 0.9rem;
}
.character-figure.in-card img {
  height: clamp(140px, 15vw, 195px);
}
.character-figure.in-form {
  justify-content: flex-start;
  margin: 0 0 1.1rem;
}
.character-figure.in-form img {
  height: clamp(140px, 15vw, 185px);
}
.character-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(120deg, rgba(0, 131, 167, 0.10), rgba(156, 21, 66, 0.08));
  border: 1px solid rgba(14, 20, 32, 0.08);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.75rem;
}
.character-spotlight .spotlight-copy strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--brand-dark, #0e1420);
}
.character-spotlight .spotlight-copy span {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}
.character-spotlight .character-figure img {
  height: clamp(110px, 11vw, 155px);
}
@media (max-width: 640px) {
  .character-spotlight { flex-direction: row; flex-wrap: wrap; }
  .character-spotlight .spotlight-copy { flex: 1 1 240px; }
}

/* ============================================================
   CTA-banner button shape — force pill for Orbix consistency.
   Loaded LAST, so this wins source-order ties; specificity
   (0,6,2) beats the visihost-professional.css a[class*="btn"]
   catch-all (0,5,2) that otherwise flattens these to 10px.
   Only targets the CTA-banner component, so no other buttons
   are affected.
   ============================================================ */
html body .site-shell .vp-cta-banner .vp-cta-banner__inner .vp-cta-banner__btns .vp-cta-banner__btn,
html body .site-shell .vp-cta-banner .vp-cta-banner__inner .vp-cta-banner__btns .vp-cta-banner__btn--primary,
html body .site-shell .vp-cta-banner .vp-cta-banner__inner .vp-cta-banner__btns .vp-cta-banner__btn--secondary {
  border-radius: 9999px !important;
}

/* ============================================================
   Batch 2 (2026-11-21) — dmarc page hero + crew story cards
   ============================================================ */

/* ---------- dmarc page hero (reserved slot #2, now wired) ---------- */
body.ph-dmarc .mini-hero {
  background-image: linear-gradient(112deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.80) 46%, rgba(0,131,167,.58) 100%),
    url('/assets/photos/dmarc-hero.jpg') !important;
}

/* ---------- crew story cards (home #crew section) ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.crew-card {
  background: #fff;
  border: 1px solid rgba(14, 20, 32, 0.08);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.7rem;
  text-align: center;
  box-shadow: 0 24px 60px -30px rgba(14, 20, 32, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crew-figure { margin: 0; }
.crew-figure img {
  height: clamp(150px, 16vw, 210px);
  width: auto;
}
.crew-card h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.15rem;
  color: var(--brand-dark, #0e1420);
}
.crew-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
@media (max-width: 900px) {
  .crew-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Batch 3 (2026-11-21) — Vera floating widget over the home hero
   Absolute layer at the hero's right edge (in front of the hero,
   slightly overlapping its bottom boundary). Below 900px it drops
   into normal flow as a compact row so it can never cover the
   search form, metrics, or the fixed chat launcher.
   ============================================================ */
body.ph-home .hero {
  position: relative !important;
  overflow: visible !important;
}
body.ph-home .hero-inner {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (min-width: 901px) {
  /* reserve Vera's lane so copy never slides under the widget */
  body.ph-home .hero-copy { padding-right: min(360px, 30vw); }
}
.vera-float {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  bottom: -34px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  animation: veraFloat 6s ease-in-out infinite;
}
@keyframes veraFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .vera-float { animation: none; }
}
.vera-bubble {
  background: #fff;
  border: 1px solid rgba(14, 20, 32, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 55px -22px rgba(14, 20, 32, 0.35);
  padding: 1rem 1.1rem 1.05rem;
  max-width: 300px;
  position: relative;
  margin-bottom: 0.6rem;
}
.vera-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid rgba(14, 20, 32, 0.08);
  border-bottom: 1px solid rgba(14, 20, 32, 0.08);
  transform: translateX(-50%) rotate(45deg);
}
.vera-bubble-who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0083a7;
  margin-bottom: 0.35rem;
}
.vera-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.vera-bubble strong {
  display: block;
  color: #0e1420;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.vera-bubble p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.vera-bubble-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.vera-float-figure { margin: 0; position: relative; }
.vera-float-figure img {
  height: clamp(220px, 30vw, 330px);
  width: auto;
  display: block;
}
/* soft shadow "hovering" under her feet */
.vera-float-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 58%;
  height: 18px;
  border-radius: 50%;
  background: rgba(14, 20, 32, 0.30);
  filter: blur(7px);
}
@media (max-width: 900px) {
  .vera-float {
    position: static;
    width: auto;
    right: auto;
    bottom: auto;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.8rem;
    animation: none;
  }
  .vera-float-figure img { height: clamp(150px, 26vw, 210px); }
  .vera-bubble { flex: 1 1 260px; margin-bottom: 0; }
  .vera-bubble::after { display: none; }
}
