/* Full-width homepage hero with admin-set backgrounds (includes/hero.php) */
body.home-page { overflow-x: hidden; }
body.home-page main.page { padding-top: 0; }

.hero-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 8px;
  padding: 0;
}
.hero-full .hero-slide { display: none; }
.hero-full .hero-slide.is-active { display: block; animation: heroFadeIn .5s ease; }
.hero-full.hero-slider { padding-bottom: 0; }

.hero-slide-bg {
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 24px 88px;
  text-align: center;
  /* Standard light design when no colour/image is set */
  background:
    radial-gradient(70% 120% at 12% -10%, rgba(79,70,229,.16) 0%, transparent 55%),
    radial-gradient(70% 120% at 88% 0%, rgba(8,145,178,.12) 0%, transparent 55%),
    var(--n-50, #f7f7fb);
  border-bottom: 1px solid var(--border);
}
.hero-slide-bg.hero-custom-bg { border-bottom: 0; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-inner h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero-inner .lede { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.hero-actions .btn { padding: 13px 26px; font-size: 1rem; }

/* White text for dark colours / photos */
.hero-theme-light, .hero-theme-light h1 { color: #fff; }
.hero-theme-light .lede { color: rgba(255,255,255,.9); }
.hero-theme-light .btn.secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.hero-theme-light a.btn.secondary:hover { background: rgba(255,255,255,.26); color: #fff; }
.hero-theme-light .btn:not(.secondary) { background: #fff; color: var(--primary-dark, #3730a3); }
.hero-theme-light a.btn:not(.secondary):hover { background: #eef0ff; color: var(--primary-dark, #3730a3); }
.hero-theme-light h1, .hero-theme-light .lede { text-shadow: 0 1px 12px rgba(0,0,0,.25); }

.hero-full .hero-dots { bottom: 26px; }
.hero-full .hero-dot { background: rgba(120,120,150,.35); }
.hero-full .hero-dot.is-active { background: var(--primary); }

@media (max-width: 700px) {
  .hero-slide-bg { min-height: 380px; padding: 52px 18px 76px; }
}

/* Admin form bits */
.hero-design { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 16px; }
.hero-design legend { font-weight: 750; padding: 0 6px; }
.hero-design input[type=color] { width: 70px; height: 38px; padding: 2px; border-radius: 8px; cursor: pointer; }
.hero-design label input[type=checkbox] { margin-right: 6px; }
.hero-bg-preview { width: 100%; max-width: 420px; height: 120px; border-radius: 10px; background-size: cover; background-position: center; margin: 6px 0 8px; border: 1px solid var(--border); }
