/* Homepage — exact port of the Intro Church section styles, + Kids */

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding: 130px var(--side-pad) 90px;
  overflow: hidden;
}
.hero .welcome-lines {
  font-family: var(--font-heading); font-weight: 600;
  text-transform: lowercase;
  font-size: clamp(20px, 3.2vw, 42px);
  line-height: 1.25;
  color: var(--color-primary);
  opacity: 0.85;
}
.hero .welcome-lines div { overflow: hidden; }
.hero .welcome-lines span {
  display: inline-block; transform: translateY(110%);
  animation: riseUp 0.9s var(--ease) forwards;
}
.hero .welcome-lines div:nth-child(1) span { animation-delay: 0.25s; opacity: 0.35; }
.hero .welcome-lines div:nth-child(2) span { animation-delay: 0.4s; opacity: 0.6; }
.hero .welcome-lines div:nth-child(3) span { animation-delay: 0.55s; }
@keyframes riseUp { to { transform: translateY(0); } }

.hero h1 {
  font-size: clamp(64px, 14vw, 210px);
  font-weight: 900; text-transform: lowercase;
  letter-spacing: -0.04em; color: var(--color-dark);
  margin-top: 6px; overflow: hidden;
}
.hero h1 span {
  display: inline-block; transform: translateY(110%);
  animation: riseUp 1s var(--ease) 0.75s forwards;
}
.hero h1 em { font-style: normal; color: var(--color-primary); }

.hero .sub {
  margin-top: 30px; max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: rgb(30 27 22 / 0.8);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.15s forwards;
}
.hero .sub strong { color: var(--color-primary); }
.hero .cta-row {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.35s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero .star {
  position: absolute; right: -6vw; top: 50%;
  width: 46vw; max-width: 660px; opacity: 0.16;
  animation: floatStar 9s ease-in-out infinite;
}
@keyframes floatStar {
  0%, 100% { transform: translateY(-52%) rotate(-8deg); }
  50% { transform: translateY(-46%) rotate(8deg); }
}

.scroll-hint {
  position: absolute; bottom: 26px; left: var(--side-pad);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgb(30 27 22 / 0.55);
}
.scroll-hint .bar { width: 52px; height: 2px; background: rgb(30 27 22 / 0.2); overflow: hidden; position: relative; }
.scroll-hint .bar::after {
  content: ""; position: absolute; inset: 0; background: var(--color-primary);
  animation: slideBar 1.8s var(--ease) infinite;
}
@keyframes slideBar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .hero .welcome-lines span, .hero h1 span { transform: none; animation: none; }
  .hero .sub, .hero .cta-row { opacity: 1; animation: none; }
}

/* ============ Marquee ============ */
.marquee { background: var(--color-primary); color: var(--color-bg); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.marquee .track { display: inline-block; animation: marq 24s linear infinite; }
.marquee span {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(18px, 2.4vw, 28px);
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0 30px;
}
.marquee em { font-style: normal; background: var(--color-bg); color: var(--color-primary); padding: 2px 16px; border-radius: 999px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Church = people + collage ============ */
.people { background: var(--color-bg); text-align: center; }
.people h2 { font-size: clamp(36px, 6vw, 92px); max-width: 1100px; margin: 0 auto; text-transform: none; }
.people h2 .w {
  display: inline-block; opacity: 0;
  transform: translateY(40px) rotate(3deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.people h2.in .w { opacity: 1; transform: none; }
.people h2 em { font-style: italic; color: var(--color-primary); }

.collage { display: flex; justify-content: center; gap: 26px; margin-top: 70px; flex-wrap: wrap; }
.collage .ph {
  width: min(300px, 80vw); aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 25px 50px -20px rgb(30 27 22 / 0.35);
  transition: transform 0.5s var(--ease);
}
.collage .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.collage .ph:nth-child(1) { transform: rotate(-4deg); }
.collage .ph:nth-child(2) { transform: rotate(2deg) translateY(18px); }
.collage .ph:nth-child(3) { transform: rotate(5deg); }
.collage .ph:hover { transform: rotate(0) translateY(-10px) scale(1.03); z-index: 2; }
.collage .ph:hover img { transform: scale(1.08); }

/* ============ Sunday / visit (dark) ============ */
.visit { background: var(--color-dark); color: var(--color-bg); text-align: center; position: relative; overflow: hidden; }
.visit .tag { color: var(--color-bg); border-color: var(--color-bg); }
.visit h2 { font-size: clamp(40px, 7.5vw, 110px); text-transform: lowercase; line-height: 0.95; }
.visit h2 em { font-style: normal; color: var(--color-primary); }
.visit .info {
  margin: 30px auto 10px; font-size: clamp(16px, 1.8vw, 21px);
  max-width: 640px; line-height: 1.7; color: rgb(251 244 226 / 0.85);
}
.visit .info strong { color: var(--color-primary); }

.countdown { display: flex; gap: 14px; justify-content: center; margin: 46px 0 42px; flex-wrap: wrap; }
.cd {
  background: var(--color-bg); color: var(--color-dark);
  border-radius: 22px; padding: 22px 10px; min-width: 112px;
  transition: transform 0.35s var(--ease);
}
.cd:hover { transform: translateY(-8px) rotate(-2deg); }
.cd b {
  display: block; font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1; color: var(--color-primary);
}
.cd i {
  font-style: normal; font-family: var(--font-heading); font-weight: 700;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
}

/* ============ Community cards ============ */
.community { background: var(--color-bg); }
.community h2 { font-size: clamp(34px, 5vw, 70px); text-transform: lowercase; margin-bottom: 60px; }
.community h2 em { font-style: normal; color: var(--color-primary); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card {
  background: var(--color-white); border-radius: 28px; padding: 44px 32px;
  position: relative; overflow: hidden; display: block;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.card:hover { transform: translateY(-12px) rotate(-1deg); box-shadow: 0 30px 60px -22px rgb(232 88 38 / 0.45); }
.card::before {
  content: ""; position: absolute; inset: 0; background: var(--color-primary);
  transform: translateY(101%); transition: transform 0.45s var(--ease);
  border-radius: 28px;
}
.card:hover::before { transform: translateY(0); }
.card > * { position: relative; transition: color 0.45s; }
.card:hover > *, .card:hover h3, .card:hover p, .card:hover .go, .card:hover .ic { color: var(--color-bg); }
.card .ic { font-size: 34px; color: var(--color-primary); }
.card h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 18px 0 14px; text-transform: lowercase; font-weight: 800; }
.card p { font-size: 15px; line-height: 1.65; color: #4a443c; position: relative; }
.card .go {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-primary);
}
.card .gimgs { display: flex; gap: 10px; margin-top: 18px; position: relative; }
.card .gimgs img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }

/* ============ Grow list (orange) ============ */
.grow { background: var(--color-primary); color: var(--color-bg); }
.grow .tag { color: var(--color-bg); border-color: var(--color-bg); }
.grow h2 { font-size: clamp(34px, 5.5vw, 78px); text-transform: lowercase; max-width: 900px; margin-bottom: 60px; }
.grow h2 em { font-style: italic; font-weight: 600; color: inherit; }
.growlist { border-top: 1px solid rgb(251 244 226 / 0.35); }
.growitem {
  display: flex; justify-content: space-between; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid rgb(251 244 226 / 0.35);
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(22px, 3.4vw, 44px); text-transform: lowercase;
  transition: padding-left 0.4s var(--ease), color 0.3s;
}
.growitem:hover { padding-left: 26px; color: var(--color-dark); }
.growitem .ar { font-weight: 400; transition: transform 0.4s var(--ease); }
.growitem:hover .ar { transform: translateX(10px) rotate(-45deg); }

/* ============ Kids ============ */
.kids { background: var(--color-bg); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.kids .kmedia {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 25px 50px -20px rgb(30 27 22 / 0.35);
  transform: rotate(-3deg); transition: transform 0.5s var(--ease);
}
.kids .kmedia:hover { transform: rotate(0) scale(1.02); }
.kids .kmedia img { width: 100%; height: 100%; object-fit: cover; }
.kids h2 { font-size: clamp(32px, 4.5vw, 62px); text-transform: lowercase; margin-bottom: 24px; }
.kids h2 em { font-style: normal; color: var(--color-primary); }
.kids p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: rgb(30 27 22 / 0.8); margin-bottom: 32px; max-width: 480px; }
.kids .kchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.kids .kchip {
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 2px solid var(--color-primary); color: var(--color-primary);
  padding: 8px 18px; border-radius: 999px;
}
@media (max-width: 860px) { .kids { grid-template-columns: 1fr; } }

/* ============ Prayer ============ */
.prayer { background: var(--color-bg); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.prayer .starbox { display: flex; align-items: center; justify-content: center; }
.prayer .starbox svg { width: min(320px, 60%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.07) rotate(6deg); } }
.prayer h2 { font-size: clamp(32px, 4.5vw, 62px); text-transform: lowercase; margin-bottom: 24px; }
.prayer h2 em { font-style: normal; color: var(--color-primary); }
.prayer p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: rgb(30 27 22 / 0.8); margin-bottom: 32px; max-width: 480px; }
@media (max-width: 860px) { .prayer { grid-template-columns: 1fr; } }

/* ============ Giving (dark) ============ */
.giving { background: var(--color-dark); color: var(--color-bg); text-align: center; }
.giving .tag { color: var(--color-primary); border-color: var(--color-primary); }
.giving h2 { font-size: clamp(44px, 8vw, 120px); text-transform: lowercase; }
.giving h2 em { font-style: normal; color: var(--color-primary); }
.giving p { max-width: 560px; margin: 28px auto 38px; line-height: 1.7; color: rgb(251 244 226 / 0.8); font-size: clamp(15px, 1.5vw, 18px); }
.giving .heart { display: inline-block; animation: beat 1.6s ease-in-out infinite; font-size: 40px; }
@keyframes beat {
  0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); }
  24% { transform: scale(1); } 36% { transform: scale(1.18); } 48% { transform: scale(1); }
}
