/* ============================================================
   HERO STYLES
   Extracted from style.css — all hero-related selectors
   ============================================================ */

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  background: var(--pb);
  min-height: calc(100vh - 70px - 44px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 32px 60px;
  position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; border-radius: 12px; background: var(--py); opacity: .06; transform: rotate(45deg); pointer-events: none; }
.hero::after  { content: ''; position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; border-radius: 10px; background: var(--db); opacity: .4; transform: rotate(45deg); pointer-events: none; }

/* Legacy hero dots (replaced by ph-crosses in v21) */
.hero-dots { position: absolute; top: 20px; right: 48px; display: grid; grid-template-columns: repeat(4,8px); gap: 6px; opacity: .15; pointer-events: none; }
.hero-dots span { display: block; width: 4px; height: 4px; background: var(--wh); border-radius: 50%; }

/* Cross/plus grid (brand v2.1 — replaces dot grid) */
.ph-crosses {
  position: absolute; top: 18px; right: 40px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 5px;
  width: 64px; height: 64px; pointer-events: none; z-index: 1;
}
.ph-cross { position: relative; width: 12px; height: 12px; }
.ph-cross::before, .ph-cross::after { content: ''; position: absolute; border-radius: 1px; background: currentColor; }
.ph-cross::before { width: 1.5px; height: 100%; left: 50%; transform: translateX(-50%); }
.ph-cross::after { height: 1.5px; width: 100%; top: 50%; transform: translateY(-50%); }
.page-hero .ph-crosses, .hero .ph-crosses { color: rgba(255,255,255,.15); }
.page-hero.hero-cream .ph-crosses { color: rgba(52,88,124,.07); }

.hero-eyebrow { position: relative; z-index: 1; font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(228,191,69,.75); margin-bottom: 20px; animation: fadeUp .7s ease both; }
/* The hero <h1> is wrapped in .sec-title-wrap. Because the wrap is a
   direct child of [data-anim-stagger], the global motion.css rule sets
   it to opacity:0 until JS adds .cp-revealed. Every sibling has its
   own fadeUp animation that overrides the opacity:0 — but the wrap
   didn't, so when .cp-revealed was missing (load race or JS error)
   the entire vision statement vanished. Fixed by giving the wrap its
   own fadeUp so it never depends on the stagger toggle. */
.hero .sec-title-wrap { animation: fadeUp .85s .08s ease both; }
.hero-title { position: relative; z-index: 1; font-family: var(--ft); font-size: clamp(3.2rem,8vw,7.2rem); text-transform: uppercase; letter-spacing: 1px; line-height: .92; color: var(--wh); }
.hero-title em { color: var(--py); font-style: normal; }
.hero-body { position: relative; z-index: 1; margin-top: 28px; font-family: var(--fb); font-size: clamp(.9rem,1.8vw,1.05rem); color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.72; animation: fadeUp 1s .22s ease both; }
.hero-btns { position: relative; z-index: 1; margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fadeUp 1.1s .3s ease both; }
.hero-scroll { position: relative; z-index: 1; margin-top: 56px; color: rgba(255,255,255,.28); font-size: 1.3rem; animation: bounce 2.5s 1.2s infinite; }
.hero-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; animation: fadeUp 1s .18s ease both; }
.htag { font-family: var(--fb); font-size: .74rem; font-weight: 700; color: rgba(228,191,69,.8); text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.htag:hover { color: var(--py); }

/* ============================================================
   PAGE HERO (shared across CPT singles & archive pages)
   ============================================================ */
.page-hero { background: var(--pb); padding: 64px 48px 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; border-radius: 14px; background: var(--py); opacity: .06; transform: rotate(45deg); }
.page-hero::after  { content: ''; position: absolute; bottom: -60px; left: -60px; width: 220px; height: 220px; border-radius: 10px; background: var(--db); opacity: .5; transform: rotate(45deg); }
.ph-dots { position: absolute; top: 20px; right: 48px; display: grid; grid-template-columns: repeat(4,8px); gap: 6px; opacity: .15; pointer-events: none; z-index: 0; }
.ph-dots span { display: block; width: 4px; height: 4px; background: var(--wh); border-radius: 50%; }
.ph-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.page-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.ph-eyebrow { font-family: var(--fb); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(228,191,69,.75); margin-bottom: 10px; }
.ph-title   { font-family: var(--ft); font-size: clamp(3rem,7vw,6rem); text-transform: uppercase; letter-spacing: 1px; line-height: .9; color: var(--wh); }

/* v7.55.49 — icon-on-the-LEFT title row.
   Used by single-cp_faq (and any page hero passing `icon` to
   cove_render_page_hero) to anchor the question with its emoji
   badge instead of a standalone faq-icon-mark below the hero. */
.ph-title-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}
.ph-title-row .ph-title { margin: 0; flex: 1; min-width: 0; }
.ph-title-icon {
    flex-shrink: 0;
    width: clamp(56px, 7vw, 84px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--py);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    box-shadow:
        0 2px 4px   rgba(15, 37, 71, 0.10),
        0 10px 24px rgba(15, 37, 71, 0.18),
        0 0 0 6px rgba(255, 255, 255, 0.06);
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.page-hero:hover .ph-title-icon {
    transform: scale(1.06) rotate(-4deg);
}
@media (max-width: 640px) {
    .ph-title-row { gap: 14px; }
}
.ph-ksh     { font-family: var(--fs); font-size: clamp(1.2rem,2.5vw,2rem); color: var(--py); transform: rotate(-6deg); transform-origin: left center; margin: .15em 0 0; display: block; width: fit-content; }

/* v7.55.69 — single-column ("stacked") hero variant.
   Used by page-service-times.php so the title, Kaushan and intro
   read as one coherent column instead of being split across the
   default 2-col grid. Kaushan sits UNDER the title per brand rule. */
.ph-inner--stacked          { display: block; max-width: 880px; text-align: left; }
.page-hero--stacked         { padding: clamp(64px, 8vw, 96px) clamp(24px, 5vw, 48px) clamp(56px, 7vw, 80px); }
.ph-inner--stacked .ph-title { margin: 6px 0 0; font-size: clamp(2.75rem, 7vw, 5.5rem); }
.ph-ksh--below              { display: block; margin: .25em 0 0; margin-left: 0; transform: rotate(-6deg); transform-origin: left center; width: fit-content; }
.ph-body--stacked           { max-width: 60ch; margin-top: 28px; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.78); }
.ph-sub     { font-family: var(--fs); font-size: clamp(1.2rem,2.5vw,2rem); color: var(--py); transform: rotate(-6deg); transform-origin: left bottom; margin-top: -.17em; margin-left: .06em; display: inline-block; }
.ph-body    { margin-top: 20px; font-family: var(--fb); font-size: .95rem; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.75; }
.ph-meta    { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ph-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; min-width: 220px; }
.ph-icon { margin-right: .15em; }

/* ── Hero subscribe variant ── */
.ph-subscribe { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ph-subscribe-label { font-family: var(--fb); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(228,191,69,.6); text-align: right; }

/* ── Hero stat pills (Bookings page) ── */
.ph-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.ph-stat  { text-align: center; }
.ph-stat-n { font-family: var(--ft); font-size: 2.2rem; color: var(--py); letter-spacing: 1px; line-height: 1; }
.ph-stat-l { font-family: var(--fb); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 3px; }
.ph-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ── Hero columns / stat grid (Home Groups page) ── */
.ph-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; align-items: start; }
.ph-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-stat { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); border-radius: 10px; padding: 14px 16px; text-align: center; }
.ps-num { font-family: var(--ft); font-size: 2.4rem; text-transform: uppercase; color: var(--py); line-height: 1; }
.ps-label { font-family: var(--fb); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ============================================================
   CREAM HERO VARIANT (Newcomers page)
   ============================================================ */
.page-hero.hero-cream { background: var(--cr); }
.page-hero.hero-cream .ph-title { color: var(--pb); }
.page-hero.hero-cream .ph-eyebrow { color: rgba(52,88,124,.6); }
.page-hero.hero-cream .ph-ksh { color: var(--pb); opacity: .55; }
.page-hero.hero-cream .ph-sub { color: var(--pb); opacity: .55; }
.page-hero.hero-cream .ph-body { color: var(--sb); }
.page-hero.hero-cream .meta-pill { background: rgba(52,88,124,.08); border-color: rgba(52,88,124,.15); }
.page-hero.hero-cream .pill-label { color: var(--sb); }
.page-hero.hero-cream .pill-value { color: var(--pb); }
.page-hero.hero-cream .pill-icon { background: rgba(52,88,124,.1); }
.page-hero.hero-cream .htag { color: var(--pb); opacity: .6; }
.page-hero.hero-cream .htag:hover { opacity: 1; }
.page-hero.hero-cream::before { background: var(--py); opacity: .12; }
.page-hero.hero-cream::after { background: var(--db); opacity: .18; }
/* Ensure ALL button variants are readable on cream background */
.page-hero.hero-cream .btn-ghost,
.page-hero.hero-cream .btn-secondary { color: var(--pb); border-color: var(--pb); }
.page-hero.hero-cream .btn-ghost:hover,
.page-hero.hero-cream .btn-secondary:hover { background: var(--pb); color: var(--wh); border-color: var(--pb); }

/* BEM variant aliases (mockups use double-dash, templates may use single-dash) */
.page-hero.hero--blue   { background: var(--pb); }
.page-hero.hero--cream  { background: var(--cr); }
.page-hero.hero--cream .ph-title { color: var(--pb); }
.page-hero.hero--cream .ph-eyebrow { color: rgba(52,88,124,.6); }
.page-hero.hero--cream .ph-ksh { color: var(--pb); opacity: .55; }
.page-hero.hero--cream .ph-sub { color: var(--pb); opacity: .55; }
.page-hero.hero--cream .ph-body { color: var(--sb); }
.page-hero.hero--cream .meta-pill { background: rgba(52,88,124,.08); border-color: rgba(52,88,124,.15); }
.page-hero.hero--cream .pill-label { color: var(--sb); }
.page-hero.hero--cream .pill-value { color: var(--pb); }
.page-hero.hero--cream .pill-icon { background: rgba(52,88,124,.1); }
.page-hero.hero--cream .htag { color: var(--pb); opacity: .6; }
.page-hero.hero--cream .htag:hover { opacity: 1; }
.page-hero.hero--cream::before { background: var(--py); opacity: .12; }
.page-hero.hero--cream::after { background: var(--db); opacity: .18; }
.page-hero.hero--cream .ph-crosses { color: rgba(52,88,124,.07); }
.page-hero.hero--cream .btn-ghost,
.page-hero.hero--cream .btn-secondary { color: var(--pb); border-color: var(--pb); }
.page-hero.hero--cream .btn-ghost:hover,
.page-hero.hero--cream .btn-secondary:hover { background: var(--pb); color: var(--wh); border-color: var(--pb); }

.page-hero.hero--teal   { background: var(--teal); }
.page-hero.hero--teal .ph-title { color: var(--wh); }
.page-hero.hero--teal .ph-eyebrow { color: rgba(255,255,255,.65); }
.page-hero.hero--teal .ph-body { color: rgba(255,255,255,.6); }
.page-hero.hero--teal::before { background: var(--py); opacity: .06; }
.page-hero.hero--teal::after { background: #0a4a40; opacity: .45; }

.page-hero.hero--foodbank { background: var(--tg); }
.page-hero.hero--foodbank .ph-title { color: var(--wh); }
.page-hero.hero--foodbank .ph-eyebrow { color: rgba(255,255,255,.65); }
.page-hero.hero--foodbank .ph-body { color: rgba(255,255,255,.6); }
.page-hero.hero--foodbank::before { background: var(--py); opacity: .06; }
.page-hero.hero--foodbank::after { background: var(--tg-dk); opacity: .45; }

.page-hero.hero--christmas,
.page-hero.hero--easter {
  background-size: cover; background-position: center;
  position: relative;
}
.page-hero.hero--christmas::before,
.page-hero.hero--easter::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,82,.75), rgba(30,58,82,.55));
  border-radius: 0; width: auto; height: auto; transform: none; opacity: 1;
}

/* Diamond decoration */
.ph-diamond { position: absolute; top: 50%; right: 200px; transform: translateY(-50%) rotate(45deg); width: 180px; height: 180px; border: 24px solid rgba(228,191,69,.08); border-radius: 8px; pointer-events: none; }

/* Newcomers hero grid variant */
.ph-inner--newcomers { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }

/* Hero CTA buttons */
.ph-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================
   PERSON HERO (Who/person profile)
   ============================================================ */
.person-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.person-hero-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--py);
  box-shadow: var(--sh-lg);
  flex-shrink: 0;
}
.person-hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   RESPONSIVE — Hero rules
   ============================================================ */

/* ── <= 900px  (tablet portrait / large phone landscape) ── */
@media (max-width: 900px) {
  .page-hero-inner,
  .ph-inner { grid-template-columns: 1fr; }
  .ph-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .person-hero-inner { grid-template-columns: 1fr; }
  .person-hero-portrait { width: 100px; height: 100px; margin-top: 16px; }
  .ph-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ── <= 768px  (phone landscape / small tablet) ── */
@media (max-width: 768px) {
  /* Homepage hero */
  .hero { min-height: auto; padding: 60px 24px 40px; }
  .hero-title { font-size: clamp(2.4rem,10vw,5rem); }

  /* Page hero */
  .page-hero { padding: 40px 20px; }
  .ph-title { font-size: clamp(2.4rem,9vw,4.5rem); }
  .ph-sub { font-size: clamp(.9rem,3.5vw,1.4rem); }
  .ph-meta { gap: 8px; }
  .ph-meta { display: none; }

  /* Person hero */
  .person-hero-portrait { width: 80px; height: 80px; border-width: 3px; }
}

/* ── <= 520px  (small phones) ── */
@media (max-width: 520px) {
  /* Homepage hero */
  .hero { padding: 32px 16px 28px; min-height: auto; }
  .hero-title { font-size: clamp(2.4rem,8vw,3.4rem); line-height: .96; }
  .hero-eyebrow { font-size: .64rem; }
  .hero-tags { gap: 5px; }
  .htag { font-size: .68rem; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-btns .btn-primary, .hero-btns .btn-secondary, .hero-btns .btn-donate { text-align: center; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 32px 16px; }
  .ph-title { font-size: clamp(2rem,10vw,3.5rem); }
  .ph-actions { flex-direction: column; align-items: stretch; }

  /* Person hero */
  .person-hero-inner { grid-template-columns: 1fr; }
  .person-hero-portrait { width: 80px; height: 80px; }
}

/* ── <= 1100px  (Newcomers page) ── */
@media (max-width: 1100px) {
  .ph-inner--newcomers { grid-template-columns: 1fr; gap: 32px; }
  .ph-diamond { display: none; }
}
