/*
 * LBF Static Split Hero — lbf-hero-static.css
 * Version : 20.0  — Clean rewrite fixing header/hero overlap
 *
 * Architecture:
 *  .lbf-top-shell         — full-width wrapper, sky-blue bg (shows behind transparent header)
 *  .lbf-hero-static       — constrained to 1200px, contains the photo and text
 *  .lbf-hs-bg-photo       — absolute fill of hero section, festival image
 *  .lbf-hs-bg-overlay     — gradient so left text remains readable
 *  .lbf-hs-inner          — text content grid, padded below fixed header
 */

/* ═══════════════════════════════════════════════════════════════════
   TOP SHELL — full-width sky backdrop
   The transparent fixed header sits over this, so the sky-blue
   background shows behind the nav links at page load.
   On scroll, body.is-scrolled makes the header go solid white.
═══════════════════════════════════════════════════════════════════ */
.lbf-top-shell {
  position: relative;
  width: 100%;
  background: transparent; /* outer card handles bg */
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION — constrained to content column
═══════════════════════════════════════════════════════════════════ */
.lbf-hero-static {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: clamp(480px, 56vw, 680px);
  overflow: hidden;
  background: transparent;
  display: block;
}

/* ── Festival photo — absolute fill of hero section ── */
.lbf-hs-bg-photo {
  position: absolute;
  inset: 0;                  /* fills entire hero section including padding-top zone */
  z-index: 0;
  overflow: hidden;
}
.lbf-hs-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── Gradient overlay — left text readable, right photo visible ── */
.lbf-hs-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(232,238,248,0.97)  0%,
    rgba(232,238,248,0.88) 24%,
    rgba(232,238,248,0.58) 42%,
    rgba(232,238,248,0.15) 60%,
    rgba(232,238,248,0.00) 74%
  );
  pointer-events: none;
}

/* Legacy decorative radial — hidden */
.lbf-hs-bg { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   INNER GRID — text left, photo shows through on right
═══════════════════════════════════════════════════════════════════ */
.lbf-hs-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 52% 48%;
  /* Full height minus the padding-top we already applied on hero */
  min-height: calc(clamp(520px, 60vw, 680px) - var(--header-h, 82px));
  align-items: center;
}

/* Right column — empty; photo shows through overlay */
.lbf-hs-visual { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   LEFT COLUMN — text content
═══════════════════════════════════════════════════════════════════ */
.lbf-hs-copy {
  padding: clamp(1.5rem, 3vw, 2.5rem)
           clamp(1rem, 2.5vw, 2rem)
           clamp(2.5rem, 4vw, 4rem)
           clamp(2rem, 6.5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── DATE BADGE ── */
.lbf-hs-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #17357b;
  background: rgba(24,65,173,0.09);
  border: 1px solid rgba(24,65,173,0.18);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
:not(body.lbf-home-v3) .lbf-hs-date svg { color: #1841ad; flex-shrink: 0; }

/* ── EYEBROW ── */
.lbf-hs-eyebrow {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 500;
  color: #3a5ea0;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0 0 0.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.55s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── YEAR / TOP LINE ── */
.lbf-hs-year {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 600;
  color: #17357b;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.05em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.55s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── MAIN HEADLINE ── */
.lbf-hs-headline {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(3.25rem, 5.5vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #1841ad;
  margin: 0.15em 0 0.3em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.6s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── TAGLINE PILL ── */
.lbf-hs-tagline-brush {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(90deg, #5d7be0 0%, #4b69d8 100%);
  padding: clamp(0.45rem, 0.7vw, 0.6rem) clamp(0.85rem, 1.5vw, 1.5rem);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(75,105,216,0.28);
  margin-bottom: 0.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.6s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── CTA BUTTON ROW ── */
.lbf-hs-actions {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.875rem);
  margin-top: clamp(1.1rem, 1.8vw, 1.5rem);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.6s cubic-bezier(0.22,0.61,0.36,1);
}

/* ── BUTTONS ── */
.lbf-hero-static .btn {
  height: clamp(44px, 4vw, 48px);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 clamp(1rem, 1.8vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(40,68,137,0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.lbf-hero-static .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(40,68,137,0.22); }
.lbf-hero-static .btn-blue  { background: linear-gradient(180deg,#2457da 0%,#1a40ab 100%); color:#fff; }
.lbf-hero-static .btn-blue:hover  { background: linear-gradient(180deg,#2d63f0 0%,#1e48c0 100%); }
.lbf-hero-static .btn-white { background:#fff; color:#17357b; border-color:#c8d4ef; }
.lbf-hero-static .btn-white:hover { background:#eef2fc; }
.lbf-hero-static .btn-green { background: linear-gradient(180deg,#5faa73 0%,#4a9060 100%); color:#fff; }
.lbf-hero-static .btn-green:hover { background: linear-gradient(180deg,#6bba80 0%,#539d6c 100%); }

/* ═══════════════════════════════════════════════════════════════════
   ENTRANCE ANIMATION
═══════════════════════════════════════════════════════════════════ */
.lbf-hs-visible { opacity:1!important; transform:translateY(0)!important; }

@media (prefers-reduced-motion: reduce) {
  .lbf-hs-date,.lbf-hs-eyebrow,.lbf-hs-year,.lbf-hs-headline,.lbf-hs-tagline-brush,.lbf-hs-actions {
    opacity:1!important; transform:none!important; transition:none!important;
  }
}


/* ── Admin bar: push hero content below both admin bar + header ── */
.admin-bar .lbf-hero-static {
  padding-top: calc(var(--header-h, 82px) + 32px);
}
@media screen and (max-width: 782px) {
  .admin-bar .lbf-hero-static {
    padding-top: calc(var(--header-h, 82px) + 46px);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   POST-HERO TRANSITION
═══════════════════════════════════════════════════════════════════ */
body.lbf-home-v2 .post-hero-first {
  margin-top: -2.5rem;
  padding-top: 4rem;
  background: linear-gradient(180deg,#f8f9fe 0%,#f0f2fa 100%) !important;
  border-radius: 40px 40px 0 0 !important;
  box-shadow: 0 -10px 42px rgba(24,65,173,0.07) !important;
  position: relative;
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET — ≤ 1100px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lbf-hs-inner    { grid-template-columns: 60% 40%; }
  .lbf-hs-copy     { padding-left: clamp(1.25rem,3.5vw,2.5rem); }
  .lbf-hs-headline { font-size: clamp(2.75rem,5vw,3.75rem); }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — ≤ 767px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .lbf-hero-static { padding-bottom: 3rem; }
  .lbf-hs-inner    { grid-template-columns: 1fr; min-height: auto; }
  .lbf-hs-visual   { display: none; }
  .lbf-hs-bg-photo img { object-position: 70% center; }
  .lbf-hs-bg-overlay { background: rgba(232,238,248,0.88); }
  .lbf-hs-copy { padding: 1.5rem 1.25rem 2.5rem; align-items: flex-start; }
  .lbf-hs-date    { font-size:0.75rem; padding:0.25rem 0.7rem; margin-bottom:0.75rem; }
  .lbf-hs-year    { font-size: clamp(1.5rem,6vw,2rem); }
  .lbf-hs-headline { font-size: clamp(2.5rem,11vw,3.5rem); line-height:0.92; }
  .lbf-hs-tagline-brush { font-size:0.875rem; padding:0.4rem 0.85rem; }
  .lbf-hs-actions { gap:0.45rem; margin-top:1rem; }
  .lbf-hero-static .btn { height:42px; font-size:0.8125rem; padding:0 0.875rem; }
  .lbf-hs-date,.lbf-hs-eyebrow,.lbf-hs-year,.lbf-hs-headline,.lbf-hs-tagline-brush,.lbf-hs-actions {
    opacity:1!important; transform:none!important; transition:none!important;
  }
  body.lbf-home-v2 .post-hero-first { margin-top:0; border-radius:24px 24px 0 0!important; }
}

/* ═══════════════════════════════════════════════════════════════════
   INLINE EDITOR — admin only
═══════════════════════════════════════════════════════════════════ */
.lbf-hs-visual--editable {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.lbf-hs-visual--editable img {
  opacity: 0;
  position: absolute;
  width: 1px; height: 1px;
  pointer-events: all;
}
