/* ============================================================
   SOLUA — Family Prayer
   Extends styles.css (header, footer, buttons, .wrap, .reveal,
   .together, .closing, .section scaffold).
   Anima design system: warm cream, soft charcoal, Plus Jakarta
   Sans, rotating liturgical accents.
   ============================================================ */

/* ---------- hero ---------- */
.fam-hero {
  position: relative; overflow: hidden;
  background: var(--hero-ink); color: var(--color-cream);
  padding: 156px 0 104px;
}
.fam-hero .hero-glow { top: -8%; right: -10%; }
.fam-hero .hero-glow.two { left: -14%; bottom: -26%; top: auto; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,123,158,0.40) 0%, transparent 66%); }
.fam-hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.fam-hero .eyebrow {
  color: rgba(250,247,242,0.62); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.fam-hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: rgba(250,247,242,0.4); }
.fam-hero h1 {
  font-weight: 300; font-size: clamp(42px, 5.6vw, 70px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 24px; text-wrap: balance;
}
.fam-hero h1 b { font-weight: 700; }
.fam-hero h1 i { font-style: italic; font-weight: 300; }
.fam-hero .fam-sub {
  font-size: 20px; line-height: 1.55; color: rgba(250,247,242,0.74);
  max-width: 31em; margin: 0 0 36px;
}
.fam-hero .hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* hero visual — framed illustration with a floating live chip */
.fh-visual { position: relative; }
.fh-frame {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.46), 0 0 0 1px rgba(250,247,242,0.08);
  aspect-ratio: 5 / 4.4;
}
.fh-frame img { width: 100%; height: 100%; object-fit: cover; }
.fh-frame .fh-scrim { position: absolute; inset: 0; background: linear-gradient(160deg, transparent 40%, rgba(20,16,14,0.28)); }
.fh-chip {
  position: absolute; left: 22px; bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(20,16,14,0.55); backdrop-filter: blur(12px);
  border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--radius-pill); padding: 9px 16px 9px 12px; color: var(--color-cream);
}
.fh-chip .stack { display: flex; }
.fh-chip .stack span { width: 26px; height: 26px; border-radius: 50%; margin-left: -9px; border: 2px solid rgba(20,16,14,0.75); }
.fh-chip .stack span:first-child { margin-left: 0; }
.fh-chip .txt { display: flex; flex-direction: column; line-height: 1.25; }
.fh-chip .txt b { font-size: 13px; font-weight: 600; }
.fh-chip .txt small { font-size: 11px; color: rgba(250,247,242,0.66); display: inline-flex; align-items: center; gap: 6px; }
.fh-chip .txt small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 rgba(123,146,121,0.6); animation: pulse 2s infinite; }

/* ---------- how it works — three steps ---------- */
.steps { background: var(--color-cream); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--color-surface-1); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 30px 28px 32px;
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step .num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--color-cream); color: var(--sage-deep); border: 1px solid var(--color-border);
  font-size: 18px; font-weight: 700; margin-bottom: 22px;
}
.step .ico { width: 24px; height: 24px; color: var(--sage); margin-bottom: 16px; display: block; }
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); margin: 0; text-wrap: pretty; }

/* ---------- moments of the day ---------- */
.moments { background: var(--color-surface-1); }
.moments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.moment {
  border-radius: var(--radius-lg); padding: 26px 24px 28px; color: var(--color-cream);
  display: flex; flex-direction: column; min-height: 280px; position: relative; overflow: hidden;
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.moment:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.moment .m-ico { width: 30px; height: 30px; margin-bottom: auto; opacity: .95; }
.moment .m-time {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: .8; margin: 26px 0 6px;
}
.moment h4 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; line-height: 1.12; }
.moment p { font-size: 14px; line-height: 1.5; margin: 0; color: rgba(250,247,242,0.82); text-wrap: pretty; }

/* ---------- deep feature (phone + points) ---------- */
.holds { background: var(--color-cream); }
.holds .wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 72px; align-items: center; }
.holds .group-visual { order: -1; }
.holds .group-phone-img { max-width: 460px; }

/* ---------- praying with little ones ---------- */
.children { background: var(--hero-ink); color: var(--color-cream); position: relative; overflow: hidden; }
.children .hero-glow { top: auto; bottom: -34%; right: -10%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(212,183,133,0.30) 0%, transparent 66%); }
.children .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.children .eyebrow { color: var(--color-christmas); }
.children h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.children h2 b { font-weight: 700; }
.children > .wrap > .children-text > p { font-size: 18px; line-height: 1.6; color: rgba(250,247,242,0.74); margin: 0 0 28px; max-width: 30em; }
.children-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.children-points li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; line-height: 1.5; color: rgba(250,247,242,0.88); }
.children-points .tick {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; background: rgba(212,183,133,0.22); color: var(--color-christmas);
}
.children-points .tick svg { width: 12px; height: 12px; }
.children-visual .fh-frame { aspect-ratio: 4 / 4.6; box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(250,247,242,0.08); }
.children-visual image-slot { width: 100%; height: 100%; display: block; }

/* ---------- featured quote ---------- */
.quote-band { background: var(--color-cream); text-align: center; }
.quote-band .wrap { max-width: 920px; }
.quote-mark {
  width: 56px; height: 56px; border-radius: 16px; background: var(--sage); color: var(--color-cream);
  display: inline-grid; place-items: center; margin: 0 auto 28px; font-size: 40px; font-weight: 700; line-height: 1; padding-top: 18px;
}
.quote-band blockquote {
  margin: 0 0 28px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 300; line-height: 1.28;
  letter-spacing: -0.02em; color: var(--color-text-primary); text-wrap: balance;
}
.quote-band blockquote b { font-weight: 600; }
.quote-who { display: inline-flex; align-items: center; gap: 13px; }
.quote-who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface-2); overflow: hidden; flex-shrink: 0; }
.quote-who .nm { text-align: left; }
.quote-who h5 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.quote-who p { margin: 0; font-size: 14px; color: var(--color-text-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .fam-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .fam-hero { padding: 132px 0 80px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .moments-grid { grid-template-columns: repeat(2, 1fr); }
  .holds .wrap { grid-template-columns: 1fr; gap: 44px; }
  .holds .group-visual { order: -1; }
  .children .wrap { grid-template-columns: 1fr; gap: 44px; }
  .children-visual { max-width: 460px; }
}
@media (max-width: 560px) {
  .fam-hero { padding: 116px 0 64px; }
  .moments-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .moment { min-height: 220px; }
}
