/* ============================================================
   Hero Portrait Block — scoped, drop-in replacement for the
   .hero__portrait on the main site. Lives as a cream "card"
   inside the existing dark hero grid. All vars/classes are
   .hpb-prefixed so it never collides with the host's tokens.
   ============================================================ */
.hpb {
  --hpb-cream: #f5ede0;
  --hpb-ink: #2a2620;
  --hpb-ink-2: #5d5648;
  --hpb-ink-3: #8a7d6e;
  --hpb-sage: #6e8a5a;
  --hpb-sage-deep: #57704a;
  --hpb-cream-card: #fdfaf2;
  --hpb-blob: #e8dec9;
  --hpb-line: #d8cdb4;

  position: relative;
  width: 100%;
  background: transparent;
  padding: 0;
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  color: var(--hpb-ink);
  margin-top: clamp(50px, 6vw, 90px);
  align-self: start;
  display: flex;
  flex-direction: column;
}

/* ── Photo block ───────────────────────────────────────── */
.hpb__photo-block {
  position: relative;
  width: 100%;
  aspect-ratio: 4/6.1;
  min-height: 480px;
}
.hpb__blob {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 18px;
  background: var(--hpb-blob);
  border-radius: 48% 52% 38% 62% / 55% 45% 55% 45%;
}
.hpb__photo-wrap {
  position: absolute;
  top: 18px; right: 24px; bottom: 80px; left: 64px;
  border-radius: 180px 180px 18px 18px;
  overflow: hidden;
  z-index: 2;
}
.hpb__photo {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 38%;
}

/* ── Booking pulse pill ────────────────────────────────── */
.hpb__pulse-pill {
  position: absolute;
  top: 40px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--hpb-sage);
  color: var(--hpb-cream);
  padding: 9px 14px 9px 13px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 10px 22px -10px rgba(87, 112, 74, 0.55);
}
.hpb__pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hpb-cream);
  animation: hpb-pulse 1.8s ease-in-out infinite;
}
@keyframes hpb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

/* ── Tara quote card ───────────────────────────────────── */
.hpb__quote-card {
  position: absolute;
  bottom: 28px; left: -6px;
  background: var(--hpb-cream-card);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 22px 50px -18px rgba(42, 38, 32, 0.22),
              0 2px 6px rgba(42, 38, 32, 0.06);
  max-width: 240px;
  z-index: 4;
}
.hpb__quote-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18.6px;
  line-height: 1.35;
  color: var(--hpb-ink);
  margin: 0 0 10px;
}
.hpb__quote-cite {
  font-size: 11.5px;
  color: var(--hpb-ink-2);
  letter-spacing: 0.02em;
}
.hpb__quote-cite strong {
  color: var(--hpb-ink);
  font-weight: 600;
}

/* ── Scrapbook polaroid (taped, like the receipt) ──────── */
.hpb__scrap {
  position: absolute;
  bottom: 8px; right: 0;
  width: 168px;
  background: var(--hpb-cream-card);
  padding: 10px 10px 34px;
  border-radius: 3px;
  transform: rotate(-4deg);
  box-shadow:
    0 22px 44px -18px rgba(42, 38, 32, 0.42),
    0 2px 6px rgba(42, 38, 32, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  z-index: 3;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
/* Washi tape strip at the top — matches the receipt section's tape */
.hpb__scrap::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-7deg);
  width: 72px;
  height: 22px;
  background: linear-gradient(
    180deg,
    rgba(212, 196, 144, 0.62) 0%,
    rgba(212, 196, 144, 0.48) 100%
  );
  border-left: 1px solid rgba(255,255,255,0.35);
  border-right: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 2px 5px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.18);
  z-index: 4;
  pointer-events: none;
}
.hpb__scrap:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 6;
}
.hpb__scrap img {
  width: 100%;
  aspect-ratio: 4/5;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: 40% 28%;
  border-radius: 2px;
}
.hpb__scrap-tag {
  position: absolute;
  bottom: 9px;
  left: 10px;
  right: 10px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--hpb-ink-2);
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: none;
  background: none;
  padding: 0;
}

/* ── Availability bar ──────────────────────────────────── */
.hpb__avail {
  margin: 16px 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--hpb-cream-card);
  padding: 14px 18px 14px 22px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -18px rgba(42, 38, 32, 0.14),
              0 1px 3px rgba(42, 38, 32, 0.04);
  flex-wrap: nowrap;
  width: 116%;
  max-width: none;
}
.hpb__avail-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hpb-ink-2);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hpb__avail-label::after {
  content: "";
  width: 14px; height: 1px;
  background: var(--hpb-line);
}
.hpb__avail-months {
  display: flex; gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.hpb__avail-m {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--hpb-ink-3);
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hpb__avail-m-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--hpb-blob);
  position: relative;
  transition: all .3s;
}
.hpb__avail-m.is-booked { color: var(--hpb-ink-2); }
.hpb__avail-m.is-booked .hpb__avail-m-dot { background: var(--hpb-ink); }
.hpb__avail-m.is-booked .hpb__avail-m-dot::after {
  content: "✓";
  position: absolute; inset: 0;
  font-size: 7.5px;
  color: var(--hpb-cream);
  text-align: center;
  line-height: 10px;
}
.hpb__avail-m.is-open .hpb__avail-m-dot {
  background: var(--hpb-cream);
  border: 1.5px solid var(--hpb-sage);
}
.hpb__avail-m.is-next { color: var(--hpb-sage); font-weight: 700; }
.hpb__avail-m.is-next .hpb__avail-m-dot {
  background: var(--hpb-sage);
  box-shadow: 0 0 0 4px rgba(110, 138, 90, 0.2);
  animation: hpb-pulse-soft 2.4s ease-in-out infinite;
}
@keyframes hpb-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 138, 90, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(110, 138, 90, 0.1); }
}
.hpb__avail-cta {
  background: transparent;
  color: var(--hpb-sage-deep);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--hpb-sage) 55%, transparent);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.hpb__avail-cta:hover { background: var(--hpb-sage); color: var(--hpb-cream); border-color: var(--hpb-sage); transform: translateY(-1px); }
.hpb__arrow { display: inline-block; width: 12px; height: 12px; }

/* ── Mobile: keep the desktop right-breakout from overflowing ─────────
   On desktop the .hpb__photo-block is forced to 560px (inline style on
   the component) and .hpb__avail is 116% width — both intentionally
   bleed right of their grid column. On phones we need them sized
   normally and the absolutely-positioned children (quote card, scrap
   polaroid) put back into normal flow so nothing overlaps or clips. */
@media (max-width: 720px) {
  .hpb {
    margin-top: 8px;
    max-width: 100%;
  }

  /* Photo block: ditch the fixed 560px and the absolute-position
     scaffolding. Use normal flow so the quote card naturally sits
     below the photo and grows the block to fit. */
  .hpb__photo-block {
    width: 100% !important;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Photo wrap back to a regular block, sized by aspect ratio */
  .hpb__photo-wrap {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    width: 88%;
    margin-left: 36px;
    aspect-ratio: 4 / 8.2;
    max-height: 820px;
    border-radius: 140px 140px 16px 16px;
  }

  /* Blob: shrink-wrap behind the photo */
  .hpb__blob {
    top: 0;
    left: 8px;
    right: 12%;
    bottom: 30%;
  }

  /* Pulse pill stays anchored to the photo (now its parent is the wrap) */
  .hpb__pulse-pill {
    top: 16px;
    right: -4px;
    font-size: 10px;
    padding: 7px 11px 7px 10px;
  }

  /* Scrap polaroid: pull it out of absolute positioning and into the
     flex flow, ordered between the photo and the quote card. Negative
     margin-top lets it overlap the bottom-right of the photo. */
  .hpb__scrap {
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    order: 1;
    align-self: flex-end;
    width: 124px;
    padding: 8px 8px 28px;
    margin-top: -125px; margin-right: 4px;
    margin-bottom: 4px;
    z-index: 5;
  }
  .hpb__scrap::before {
    width: 56px;
    height: 18px;
    top: -9px;
  }
  .hpb__scrap-tag { font-size: 10.5px; bottom: 7px; }
  .hpb__quote-card { order: 2; }

  /* Quote card: back into normal flow, full width, no absolute pos */
  .hpb__quote-card {
    position: static;
    top: auto; bottom: auto; left: auto; right: auto;
    max-width: 100%;
    margin-top: 5px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px -12px rgba(42, 38, 32, 0.18);
  }
  .hpb__quote-text { font-size: 15.5px; line-height: 1.4; }

  /* Availability bar: kill the 116% desktop breakout */
  .hpb__avail {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    margin: 8px 0 22px;
  }
  .hpb__avail-months {
    gap: 12px;
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .hpb__avail-cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}
