/*
Theme Name: Capatiplism Black Water Hero
Template: twentytwentyfive
Version: 1.4.0
Description: Homepage aligned to PBX flyer — clean flyer, video below.
*/

@import url('../twentytwentyfive/style.css');

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bw-hero {
  background: #020818;
  padding: 1.5rem 6vw 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

body.capatiplism-bw-home {
  margin: 0;
  padding: 0;
  background: #000;
  color: #e2e8f0;
  overflow-x: hidden;
}

body.capatiplism-bw-home .site-header,
body.capatiplism-bw-home header.wp-block-template-part,
body.capatiplism-bw-home .wp-site-blocks > header {
  display: none !important;
}

.bw-home-top--minimal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.5rem 1rem;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: none;
}

.bw-home-auth-panel {
  position: fixed;
  top: 2.75rem;
  left: 0;
  right: 0;
  z-index: 19;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1rem 0.5rem;
}

/* Homepage = the PROMOTION flyer, shown full and centered as the page background */
.bw-home-flyer-main {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.4rem 1rem 1.75rem;
  background: #020818;
}

.cap-flyer-canvas.cap-home-flyer-canvas {
  width: auto;
  height: min(84vh, 84dvh);
  max-width: 96vw;
  aspect-ratio: 477 / 706;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.cap-flyer-canvas.cap-home-flyer-canvas .cap-flyer-canvas__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.cap-home-flyer-toolbar {
  width: 100%;
  max-width: 560px;
}

.bw-video-section {
  position: relative;
  z-index: 1;
}

.bw-home-top {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 1rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.bw-home-top__title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.04em;
}

.bw-home-top__sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.bw-home-login {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bw-home-login input {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #020818;
  color: #f8fafc;
  font-size: 0.88rem;
  min-width: 140px;
}

.bw-home-login-error {
  margin: 0.35rem 0 0;
  color: #f87171;
  font-size: 0.82rem;
  width: 100%;
}

.bw-home-auth-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  max-width: 420px;
}

.bw-home-member {
  text-align: right;
}

.bw-home-member__stats {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.bw-stat {
  background: rgba(2, 8, 24, 0.6);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  min-width: 64px;
  text-align: center;
}

.bw-stat__n {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.bw-stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bw-stat__hint {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
}

.bw-stat--ones .bw-stat__n,
.bw-stat--ones .bw-stat__label { color: #a3e635; }

.bw-stat--twos .bw-stat__n,
.bw-stat--twos .bw-stat__label { color: #fb923c; }

.bw-stat--rewards .bw-stat__n,
.bw-stat--rewards .bw-stat__label { color: #facc15; }

.bw-home-member__id {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.bw-home-member__actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bw-home-call-editor {
  width: min(100%, 520px);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.bw-home-call-editor__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 0.35rem;
}

.bw-home-call-editor__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.bw-video-heading {
  text-align: center;
  color: #e2e8f0;
  font-size: 1.35rem;
  margin: 0 auto 0.5rem;
  max-width: 720px;
}

.bw-video-intro {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.bw-hero__frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 682 / 1024;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.bw-hero__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bw-hero__url {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.2%;
  margin: 0;
  padding: 0 4%;
  text-align: center;
  font-size: clamp(9px, 2.1vw, 13px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  word-break: break-all;
}

.bw-hero__call {
  position: absolute;
  right: 4%;
  bottom: 11%;
  left: 28%;
  margin: 0;
  text-align: right;
  font-size: clamp(8px, 1.85vw, 11px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.35;
}

.bw-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Invisible click target over flyer "JOIN TODAY" button */
.bw-hero__join-hit {
  position: absolute;
  left: 4.5%;
  top: 49%;
  width: 36%;
  height: 6.5%;
  z-index: 2;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.bw-hero__join-hit:hover,
.bw-hero__join-hit:focus {
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
  outline: none;
}

.bw-video-section {
  background: #020818;
  padding: 0 6vw 5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.bw-video-wrap {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.bw-video-wrap video {
  width: 100%;
  display: block;
  background: #000;
  vertical-align: middle;
}

.bw-video-referrer {
  max-width: 720px;
  margin: 1.75rem auto 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bw-payments-note {
  max-width: 720px;
  margin: 1rem auto 0;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .bw-hero {
    padding: 1.5rem 4vw 2rem;
  }

  .bw-hero__frame {
    width: min(100%, 420px);
  }

  .bw-hero__join-hit {
    left: 6%;
    top: 47%;
    width: 44%;
    height: 7%;
  }

  .bw-video-section {
    padding: 0 4vw 4rem;
  }
}

/* --- Personalized flyer page (/flyer/ZZX0123/) --- */
body.cap-flyer-page {
  background: #020818;
  color: #e2e8f0;
  margin: 0;
}

.cap-flyer-toolbar {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  text-align: center;
}

.cap-flyer-toolbar__handle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.cap-flyer-call-editor {
  margin: 0 auto 1rem;
  max-width: 520px;
  text-align: left;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.cap-flyer-call-editor__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 0.4rem;
}

.cap-flyer-call-editor__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.9rem;
}

.cap-flyer-call-editor__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cap-flyer-call-editor__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.cap-flyer-toolbar__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cap-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cap-btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.cap-btn--gold {
  background: #facc15;
  color: #0f172a;
}

.cap-btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #475569;
}

/* Homepage hero — user's image exactly as provided */
.cap-hero-image-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
}

.cap-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cap-flyer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 2rem;
}

/* Personalized flyer — full template, only referral URL swapped at top */
.cap-flyer-canvas.cap-flyer-template-canvas {
  position: relative;
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__art {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* Referral band — solid navy strip that fully covers the baked-in sample link */
.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__url {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7.6%;
  margin: 0;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #02080f;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(10px, 3.2vw, 17px);
  font-weight: 700;
  color: #fff;
  text-shadow: none;
  line-height: 1;
}

.cap-flyer-canvas__url.is-hidden,
.cap-flyer-canvas__call.is-hidden {
  display: none !important;
}

/* Custom call line — covers the baked-in call block (lower-right over the globe) */
.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__call {
  position: absolute;
  left: 60%;
  right: 1.5%;
  top: 58%;
  bottom: 18.5%;
  margin: 0;
  padding: 0.4em 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(3, 8, 17, 0.95);
  border-radius: 6px;
  font-size: clamp(9px, 2.5vw, 13px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  word-break: break-word;
}

/* Clickable (tel:) hit area over the call number */
.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__call-hit {
  position: absolute;
  left: 60%;
  right: 1.5%;
  top: 58%;
  bottom: 18.5%;
  z-index: 4;
  display: block;
  background: transparent;
  cursor: pointer;
}

.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__call-hit:focus {
  outline: 2px solid rgba(250, 204, 21, 0.5);
  outline-offset: 2px;
}

.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__join-hit {
  position: absolute;
  left: 5%;
  top: 48%;
  width: 38%;
  height: 7%;
  z-index: 2;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
}

.cap-flyer-canvas.cap-flyer-template-canvas .cap-flyer-canvas__join-hit:focus {
  outline: 2px solid rgba(250, 204, 21, 0.5);
  outline-offset: 2px;
}

.bw-hero-join-row {
  display: none;
}

.cap-flyer-canvas {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 682 / 1024;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cap-flyer-canvas__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Referral URL — top center (matches your template) */
.cap-flyer-canvas__url {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.2%;
  margin: 0;
  padding: 0 4%;
  text-align: center;
  font-size: clamp(9px, 2.1vw, 13px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  word-break: break-all;
}

.cap-flyer-canvas__handle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Call line — bottom right over globe (personalizable) */
.cap-flyer-canvas__call {
  position: absolute;
  right: 4%;
  bottom: 11%;
  left: 28%;
  margin: 0;
  text-align: right;
  font-size: clamp(8px, 1.85vw, 11px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.35;
}

.cap-flyer-canvas__join-hit {
  position: absolute;
  left: 4.5%;
  top: 49%;
  width: 36%;
  height: 6.5%;
  z-index: 2;
  border-radius: 999px;
}

.cap-flyer-hint {
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

@media print {
  .no-print {
    display: none !important;
  }

  body.cap-flyer-page {
    background: #fff;
  }

  .cap-flyer-main {
    padding: 0;
  }

  .cap-flyer-canvas {
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    max-width: 6.5in;
  }
}
