/* ICC home hero - modern design.
   Loaded only when $heroStyle = 'modern' in index.php (set it to 'classic' to revert). */

.hm-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #16322e 0%, #234e48 48%, #2f6a61 100%);
  isolation: isolate;
}

/* ---------- background ---------- */
.hm-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hm-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.hm-orb-1 { width: 420px; height: 420px; top: -150px; right: -130px; background: #ff7a52; opacity: .22; animation: hm-drift 16s ease-in-out infinite alternate; }
.hm-orb-2 { width: 380px; height: 380px; bottom: -160px; left: -120px; background: #3fb7a3; opacity: .28; animation: hm-drift 20s ease-in-out infinite alternate-reverse; }
.hm-orb-3 { width: 240px; height: 240px; top: 40%; left: 38%; background: #ffd0a8; opacity: .10; animation: hm-drift 24s ease-in-out infinite alternate; }

.hm-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}

/* ---------- layout ---------- */
.hm-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 3rem;
  align-items: center;
}

.hm-copy { animation: hm-up .8s ease-out both; }
.hm-visual { animation: hm-up .8s ease-out .15s both; }

/* ---------- copy ---------- */
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd9c9;
}
.hm-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #f57450; animation: hm-pulse 2s ease-in-out infinite; }

.hm-title {
  margin: 1.2rem 0 1rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.6rem, 4.7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  color: #fff;
}
.hm-grad {
  display: inline-block;
  background: linear-gradient(90deg, #ff8f6b 0%, #ffd0a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hm-desc {
  max-width: 560px;
  margin: 0 0 2rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .8);
}

.hm-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.6rem; }

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hm-btn:hover, .hm-btn:focus-visible { transform: translateY(-3px); outline: none; }

.hm-btn-primary { background: linear-gradient(135deg, #f57450, #e8431e); color: #fff; box-shadow: 0 10px 26px rgba(245, 116, 80, .45); }
.hm-btn-primary:hover { box-shadow: 0 14px 32px rgba(245, 116, 80, .6); color: #fff; }

.hm-btn-glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hm-btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.hm-btn-give { background: linear-gradient(135deg, #ef4b5b, #d62839); color: #fff; box-shadow: 0 10px 26px rgba(214, 40, 57, .4); }
.hm-btn-give:hover { box-shadow: 0 14px 32px rgba(214, 40, 57, .55); color: #fff; }

.hm-btn-network { background: #fff; color: #234e48; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.hm-btn-network:hover { background: #fff3ec; color: #234e48; box-shadow: 0 14px 32px rgba(0, 0, 0, .3); }
.hm-btn-network i:first-child { color: #f57450; }
.hm-btn-arrow { font-size: .8rem; transition: transform .2s ease; }
.hm-btn-network:hover .hm-btn-arrow { transform: translateX(4px); }

/* ---------- visual ---------- */
.hm-visual { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }

.hm-badge-stage {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hm-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}
.hm-ring-1 { inset: 4%; animation: hm-spin 40s linear infinite; border-style: dashed; }
.hm-ring-2 { inset: -6%; border-color: rgba(245, 116, 80, .35); animation: hm-pulse-ring 5s ease-in-out infinite; }

/* soft, fully feathered white glow behind the (transparent, blue-lettered) logo - no hard edge */
.hm-badge-stage::before {
  content: "";
  position: absolute;
  inset: 0 -14%;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .92) 55%, rgba(255, 255, 255, .6) 80%, rgba(255, 255, 255, 0) 100%);
  filter: blur(12px);
  pointer-events: none;
}

.hm-badge-stage picture { display: block; width: 72%; }

.hm-badge {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: hm-float 5s ease-in-out infinite;
}

.hm-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; align-items: stretch; }

.hm-church-card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  text-align: left;
}

.hm-church-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 .75rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.hm-church-dot { width: 10px; height: 10px; border-radius: 50%; background: #3fb7a3; box-shadow: 0 0 0 4px rgba(63, 183, 163, .25); }
.hm-church-dot-new { background: #f57450; box-shadow: 0 0 0 4px rgba(245, 116, 80, .28); animation: hm-pulse 2s ease-in-out infinite; }

.hm-tag {
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(245, 116, 80, .22);
  border: 1px solid rgba(245, 116, 80, .5);
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd0bf;
}

.hm-church-meta { list-style: none; margin: 0 0 1rem; flex: 1; padding: 0; display: grid; gap: .55rem; }
.hm-church-meta li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.hm-church-meta i { flex-shrink: 0; width: 18px; margin-top: .2rem; text-align: center; color: #ff9b7a; }
.hm-church-meta strong { color: #fff; }

.hm-directions {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f57450, #e8431e);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(245, 116, 80, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hm-directions:hover,
.hm-directions:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 116, 80, .5); color: #fff; outline: none; }
.hm-directions .fa-arrow-right { font-size: .72rem; }

/* ---------- animation ---------- */
@keyframes hm-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hm-drift { from { transform: translate(0, 0); } to { transform: translate(50px, 36px); } }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hm-spin { to { transform: rotate(360deg); } }
@keyframes hm-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }
@keyframes hm-pulse-ring { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.04); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hm-hero { min-height: auto; padding: 8rem 0 3.5rem; }
  .hm-wrap { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .hm-desc { margin-left: auto; margin-right: auto; }
  .hm-ctas { justify-content: center; }
  .hm-badge-stage { width: min(60%, 200px); }
  .hm-info { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 520px) {
  .hm-hero { padding-top: 7.2rem; }
  .hm-chip { font-size: .68rem; letter-spacing: .05em; }
  .hm-btn { width: 100%; justify-content: center; }
  .hm-ctas { gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-hero *, .hm-hero *::before, .hm-hero *::after { animation: none !important; transition: none !important; }
}
