/* ============================================================
   Global Blessings — Home Page Styles
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% 0 0 0;
  will-change: transform;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(46, 111, 153, 0.55) 0%,
    rgba(46, 111, 153, 0.35) 55%,
    rgba(46, 111, 153, 0.1) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: var(--space-14);
}
.hero__text {
  max-width: 620px;
}
.hero__text h1 {
  color: var(--ivory);
  font-family: var(--font-display-en);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}
html[lang="ko"] .hero__text h1 {
  font-family: var(--font-display-kr);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.hero__sub {
  color: rgba(247, 242, 233, 0.88);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  max-width: 480px;
  margin-bottom: var(--space-6);
}
.hero__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero__services-tag {
  font-size: var(--text-sm);
  color: rgba(247,242,233,0.72);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(247, 242, 233, 0.4);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  70% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome__grid { gap: var(--space-14); }
.welcome__img-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  overflow: hidden;
}
.welcome__img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.welcome__img-frame::before {
  content: '';
  position: absolute;
  inset: -16px -16px auto auto;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--gold);
  z-index: -1;
}
.welcome__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(43,38,34,0.92) 0%, rgba(43,38,34,0.55) 60%, transparent 100%);
  padding: 3.5rem 1.5rem 1.4rem;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}
.welcome__badge::before {
  content: '';
  width: 2px;
  height: 30px;
  background-color: var(--gold);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 1px;
}
.welcome__badge p {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,242,233,0.9);
  line-height: 1.55;
  margin: 0;
}
.welcome__text h2 { margin-bottom: var(--space-4); }
.welcome__body + .welcome__body { margin-top: var(--space-3); }
.welcome__body p { color: #5C534B; }
.welcome__text .btn { margin-top: var(--space-6); }

@media (max-width: 768px) {
  .welcome__img-frame { max-width: 100%; aspect-ratio: 4/3; }
  .welcome__img-frame::before { display: none; }
  .welcome__badge { bottom: 0; left: 0; right: 0; padding: 2.5rem 1.25rem 1rem; }
  .welcome__text { padding-top: 1.5rem; }
}

/* ============================================================
   VALUES SECTION
   ============================================================ */
.values .section-header { margin-bottom: 0; }

/* ============================================================
   RCFE EXPLAINER
   ============================================================ */
.rcfe-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.rcfe-compare__item {
  padding: var(--space-6);
  background-color: var(--white);
  border: 1px solid var(--stone);
  border-radius: 4px;
  position: relative;
}
.rcfe-compare__item--active {
  background-color: var(--forest);
  border-color: var(--forest);
}
.rcfe-compare__item--active::before {
  content: 'Our Approach';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}
html[lang="ko"] .rcfe-compare__item--active::before { content: '추천 시설'; }

.rcfe-compare__icon {
  margin-bottom: var(--space-3);
  color: var(--gold);
}
.rcfe-compare__item:not(.rcfe-compare__item--active) .rcfe-compare__icon { color: var(--stone-mid); }

.rcfe-compare__item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.rcfe-compare__item--active h3 { color: var(--ivory); }

.rcfe-list { display: flex; flex-direction: column; gap: var(--space-2); }
.rcfe-list li {
  font-size: var(--text-base);
  color: rgba(247, 242, 233, 0.85);
  padding-left: 1.25rem;
  position: relative;
}
.rcfe-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}
.rcfe-list--muted li { color: #6B6259; }
.rcfe-list--muted li::before { color: var(--stone-mid); content: '—'; }

@media (max-width: 900px) {
  .rcfe-compare { grid-template-columns: 1fr; }
  .rcfe-compare__item--active::before { top: -12px; }
}

/* ============================================================
   RCFE PROMO BANNER
   ============================================================ */
.rcfe-promo-banner {
  padding: 0 0 var(--space-14);
}
.rcfe-promo-banner__wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.rcfe-promo-banner__wrap img {
  width: 100%;
  display: block;
  height: auto;
}
/* PC: 가로 이미지 표시, 세로 이미지 숨김 */
.rcfe-banner--mobile { display: none; }
/* 모바일: 세로 이미지 표시, 가로 이미지 숨김 */
@media (max-width: 768px) {
  .rcfe-banner--pc { display: none; }
  .rcfe-banner--mobile { display: block; }
}

/* Activities banner (shared with services page) */
.activities-banner__img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43,38,34,0.12);
}
.activities-banner__img img {
  display: block;
  width: 100%;
  height: auto;
}
.activities-banner__img--mobile { display: none; }
@media (max-width: 768px) {
  .activities-banner__img--pc { display: none; }
  .activities-banner__img--mobile { display: block; border-radius: 10px; }
}

@media (max-width: 768px) {
  .rcfe-promo-banner__wrap { border-radius: 10px; }
}

/* ============================================================
   SERVICES PREVIEW
   ============================================================ */
.services-preview__grid {
  gap: var(--space-4);
}

/* ============================================================
   FAITH SECTION
   ============================================================ */
.faith-section__grid { gap: var(--space-14); }
.faith-section__text { order: 1; }
.faith-section__image { order: 2; }
.faith-section__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
}

.faith-pillars {
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid rgba(184, 137, 59, 0.3);
}
.faith-pillars__item {}
.faith-pillars__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--gold-on-dark);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faith-pillars__item p {
  font-size: var(--text-sm);
  color: rgba(247, 242, 233, 0.65);
  line-height: 1.7;
}
.faith-pillars__item + .faith-pillars__item {
  border-top: 1px solid rgba(184, 137, 59, 0.15);
  padding-top: var(--space-4);
}

@media (max-width: 768px) {
  .faith-section__image { order: -1; }
  .faith-section__image img { aspect-ratio: 4/5; }
}

/* ============================================================
   GALLERY PREVIEW
   ============================================================ */
.gallery-preview__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 570px;
  border-radius: 10px;
  overflow: hidden;
}
.gallery-preview__item {
  position: relative;
  overflow: hidden;
}
.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-preview__item:hover img { transform: scale(1.05); }
.gallery-preview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 111, 153, 0);
  transition: background var(--duration-base) var(--ease-out);
}
.gallery-preview__item:hover .gallery-preview__overlay {
  background: rgba(46, 111, 153, 0.18);
}
.gallery-preview__item--tall { grid-row: 1 / 3; }

@media (max-width: 900px) {
  .gallery-preview__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    border-radius: 8px;
  }
  .gallery-preview__item--tall {
    grid-row: auto;
    grid-column: 1 / 3;
    aspect-ratio: 3/2;
  }
  .gallery-preview__item { aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .gallery-preview__grid { grid-template-columns: 1fr; }
  .gallery-preview__item--tall { grid-column: auto; aspect-ratio: 3/2; }
  .gallery-preview__item { aspect-ratio: 3/2; }
}

/* ============================================================
   MOBILE OVERRIDES (global home page)
   ============================================================ */
@media (max-width: 768px) {
  .hero__bg img,
  .hero__bg video {
    object-position: center center;
  }
  .hero__content { padding-top: 100px; padding-bottom: var(--space-10); }
  .hero__text h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero__sub { font-size: var(--text-base); max-width: 100%; }

  /* Values — hide number, show as cards */
  .editorial-values__item {
    padding: var(--space-4);
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--stone);
  }
  .editorial-values__num { font-size: 2rem; }

  /* Faith section image on mobile */
  .faith-section__image img { aspect-ratio: 4/5; }

  /* RCFE promo padding */
  .rcfe-promo-banner { padding: 0 0 var(--space-10); }
}

@media (max-width: 480px) {
  .hero__text h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .btn { font-size: var(--text-sm); padding: 0.8rem 1.5rem; }
}

/* ============================================================
   HERO WARM SHIMMER — "Caring Hearts,"
   ============================================================ */
@keyframes candleGlow {
  0%, 100% {
    text-shadow:
      0 0 1px rgba(255, 210, 170, 0),
      0 0 1px rgba(255, 190, 140, 0);
  }
  50% {
    text-shadow:
      0 0 14px rgba(255, 210, 170, 0.53),
      0 0 32px rgba(255, 190, 140, 0.22);
  }
}

.hero__glow-text {
  display: inline;
  animation: candleGlow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow-text { animation: none; }
}

