/* ═══════════════════════════════════════════════
   JCC UKWALA — Shared Stylesheet
   File: css/style.css
   Theme: White / Golden Yellow / Purple
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Golden yellow */
  --gold:      #b8860b;
  --gold-lt:   #e3b93c;
  --gold-dim:  rgba(184,134,11,.14);

  /* Purple */
  --purple:      #4a2b83;
  --purple-dp:   #2c1a4d;
  --purple-lt:   #7c5bb0;
  --purple-dim:  rgba(74,43,131,.10);
  --lavender:    #f4eefb;
  --lavender-dp: #6d5b96;

  /* Neutrals */
  --white:  #ffffff;
  --cream:  #fbf9f4;
  --ink:    #221a35;
  --text:   #34293f;
  --muted:  #766c8a;

  --radius: 14px;
  --card: #ffffff;

  /* signature gradient: dawn light — gold meeting purple */
  --gradient-dawn: linear-gradient(120deg, var(--gold) 0%, #cf9d2c 28%, #a7699c 62%, var(--purple) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .03s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .17s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .31s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .38s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .45s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .52s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: .59s; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: .66s; }
.reveal-stagger.in-view > *:nth-child(11) { transition-delay: .73s; }
.reveal-stagger.in-view > *:nth-child(12) { transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ═══ MOVING TEXT ANIMATION (portfolio-style) ═══
   .move-in / .move-in-1/2/3  → staggered slide-up + fade entrance,
   used on hero headings so the very first thing a visitor sees moves in.
   [data-text-split] → JS (main.js: initTextSplit) wraps each word in
   .text-word > span; this reveals them word-by-word, staggered, as the
   element scrolls into view. */
.move-in {
  opacity: 0;
  transform: translateY(26px);
  animation: jccMoveIn .8s cubic-bezier(.22,1,.36,1) forwards;
}
.move-in-1 { animation-delay: .15s; }
.move-in-2 { animation-delay: .4s; }
.move-in-3 { animation-delay: .65s; }
@keyframes jccMoveIn {
  to { opacity: 1; transform: translateY(0); }
}

.text-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.text-word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
[data-text-split].in-view .text-word > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .move-in { opacity: 1; transform: none; animation: none; }
  .text-word > span { transform: none !important; transition: none !important; }
}

/* ═══ TOPBAR ═══ */
.topbar { background: var(--purple-dp); padding: 8px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .76rem; font-weight: 600; color: var(--gold-lt); letter-spacing: .4px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--gold-lt); }
.topbar-right { display: flex; gap: 18px; align-items: center; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74,43,131,.12);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px,4vw,40px);
  gap: 16px;
  box-shadow: 0 2px 14px rgba(43,26,77,.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand img {
  width: 50px;
  height: auto;
  border: none;
  border-radius: 0;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-dp);
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .62rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  color: var(--ink);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .4px;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .18s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--purple);
  background: var(--purple-dim);
}

.nav-link.active {
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
}

.nav-give-btn {
  background: var(--gold);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-give-btn:hover {
  background: var(--purple);
  transform: translateY(-1px);
}
.nav-give-btn.active { background: var(--purple); }

/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--purple-dp);
  border-radius: 2px;
  transition: .25s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* Mobile Drawer */

.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid rgba(74,43,131,.14);
  padding: 12px 18px 18px;
  position: sticky;
  top: 74px;
  z-index: 490;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(43,26,77,.08);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-link {
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: .18s;
}

.mobile-nav-link:hover {
  background: var(--purple-dim);
  color: var(--purple);
}

.mobile-nav-link.active {
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
}
/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero { background: linear-gradient(160deg, var(--purple-dp) 0%, var(--purple) 65%, #3a2264 100%); padding: clamp(50px,8vw,90px) clamp(20px,5vw,60px) clamp(36px,5vw,60px); text-align: center; border-bottom: 1px solid rgba(227,185,60,.25); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(227,185,60,.16) 0%, transparent 70%); pointer-events: none; }
.page-hero .section-tag { font-size: .7rem; font-weight: 700; color: var(--gold-lt); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,5vw,3.4rem); font-weight: 700; color: var(--white); line-height: 1.12; margin-bottom: 14px; }
.page-hero h1 em { color: var(--gold-lt); font-style: normal; }
.page-hero p { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* ═══ SHARED SECTION STYLES ═══ */
.section { padding: clamp(48px,7vw,88px) clamp(20px,5vw,60px); }
.section-tag { font-size: .7rem; font-weight: 700; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem,4vw,2.8rem); font-weight: 700; color: var(--purple-dp); line-height: 1.15; margin-bottom: 14px; }
.section-desc { font-size: clamp(.88rem,1.8vw,1rem); color: var(--muted); line-height: 1.8; max-width: 560px; }
.section-line { width: 56px; height: 3px; background: var(--gradient-dawn); border-radius: 2px; margin: 16px 0; }
.container { max-width: 1160px; margin: 0 auto; }

/* ═══ BUTTONS ═══ */
.btn-primary { background: var(--gold); color: var(--white); font-weight: 700; font-size: .92rem; padding: 14px 30px; border-radius: 30px; border: none; cursor: pointer; transition: all .2s; letter-spacing: .3px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,43,131,.3); }
.btn-outline {
  background: var(--gold);
  color: #2E0854; /* Deep Purple */
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: 30px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
  background: var(--gold);
  color: #2E0854;
  border: 2px solid var(--gold);
  outline: none;
  box-shadow: none;
  transform: none;
}
.btn-ghost { background: var(--purple-dim); color: var(--purple); font-weight: 600; font-size: .84rem; padding: 10px 22px; border-radius: 22px; border: 1px solid rgba(74,43,131,.3); cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost:hover { background: var(--purple); color: var(--white); }

/* On dark (page-hero) backgrounds, outline buttons need light text */
.page-hero .btn-outline { color: var(--white); border-color: var(--gold-lt); }
.page-hero .btn-outline:hover { background: var(--gold-lt); color: var(--purple-dp); }

/* ═══ CARDS ═══ */
.card { background: var(--card); border: 1px solid rgba(74,43,131,.16); border-radius: var(--radius); overflow: hidden; transition: transform .22s, border-color .22s, box-shadow .22s; }
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(184,134,11,.16); }

/* ═══ LIGHTBOX ═══ */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(20,12,36,.94); z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: min(96vw,760px); max-height: 92vh; overflow-y: auto; border-radius: 12px; }
.lightbox-inner img { width: 100%; height: auto; display: block; border-radius: 12px; border: 2px solid var(--gold); }
.lightbox-close { position: fixed; top: 14px; right: 14px; background: rgba(227,185,60,.18); border: 1px solid var(--gold-lt); color: var(--gold-lt); width: 42px; height: 42px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 1001; }
.lightbox-close:hover { background: var(--gold); color: var(--white); }

/* ═══ CTA BANNER ═══ */
.cta-banner { background: var(--gradient-dawn); padding: clamp(36px,5vw,64px) clamp(20px,5vw,60px); text-align: center; }
.cta-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,4vw,2.8rem); font-weight: 700; color: var(--white); margin-bottom: 10px; text-shadow: 0 2px 14px rgba(0,0,0,.15); }
.cta-banner p { font-size: .95rem; color: rgba(255,255,255,.92); margin-bottom: 28px; line-height: 1.7; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-btn-dark { background: var(--purple-dp); color: var(--gold-lt); font-weight: 700; font-size: .92rem; padding: 14px 30px; border-radius: 30px; border: none; cursor: pointer; transition: .2s; text-decoration: none; }
.cta-btn-dark:hover { background: #1e1236; transform: translateY(-2px); }
.cta-btn-white { background: rgba(255,255,255,.95); color: var(--purple-dp); font-weight: 700; font-size: .92rem; padding: 14px 30px; border-radius: 30px; border: none; cursor: pointer; transition: .2s; text-decoration: none; }
.cta-btn-white:hover { background: var(--white); transform: translateY(-2px); }

/* ═══ FOOTER ═══ */
footer { background: var(--purple-dp); border-top: 1px solid rgba(227,185,60,.2); padding: clamp(32px,5vw,56px) clamp(20px,5vw,60px) 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(24px,4vw,48px); max-width: 1160px; margin: 0 auto 36px; }
.footer-brand img {
  width: 60px;
  height: auto;
  border: none;
  border-radius: 0;
  margin-bottom: 14px;
  object-fit: contain;
  display: block;
}
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.75; max-width: 280px; }
.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a, .footer-contact span { font-size: .82rem; color: rgba(255,255,255,.65); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .18s; }
.footer-contact a:hover { color: var(--gold-lt); }
.footer-col h4 { font-size: .75rem; font-weight: 700; color: var(--gold-lt); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.65); text-decoration: none; transition: color .18s; display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '\2013'; color: var(--gold-lt); }
.footer-links a:hover { color: var(--white); }
.footer-service-times { display: flex; flex-direction: column; gap: 12px; }
.service-day { font-size: .7rem; font-weight: 700; color: var(--gold-lt); text-transform: uppercase; letter-spacing: 1.5px; }
.service-time { font-size: .88rem; color: rgba(255,255,255,.85); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; text-align: center; font-size: .76rem; color: rgba(255,255,255,.55); max-width: 1160px; margin: 0 auto; }
.footer-bottom span { color: var(--gold-lt); }

/* ═══ FORM STYLES ═══ */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .75rem; font-weight: 600; color: var(--purple); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; background: var(--white); border: 1px solid rgba(74,43,131,.22); border-radius: 10px; padding: 12px 14px; color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: .88rem; transition: border-color .18s, box-shadow .18s; outline: none; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--muted); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.14); }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a2b83' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-row select option { background: var(--white); color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.form-check-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); margin-top: 2px; }
.form-submit { width: 100%; background: var(--gold); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: .92rem; font-weight: 700; padding: 14px 20px; border-radius: 30px; border: none; cursor: pointer; transition: all .2s; letter-spacing: .3px; margin-top: 6px; }
.form-submit:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,43,131,.3); }
.form-success { display: none; background: var(--purple-dim); border: 1px solid rgba(74,43,131,.3); border-radius: 12px; padding: 20px; text-align: center; margin-top: 10px; }
.form-success h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--purple); margin-bottom: 4px; }
.form-success p { font-size: .84rem; color: var(--muted); }

/* ═══ GIVE SECTION ═══ */
.give-account { background: var(--purple-dim); border: 1px solid rgba(74,43,131,.22); border-radius: 10px; padding: 14px 16px; }
.give-account-name { font-size: .7rem; font-weight: 700; color: var(--purple); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.give-account-num { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.give-account-bank { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.give-verse { background: var(--gold-dim); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 8px 8px 0; font-style: italic; font-size: .88rem; color: var(--ink); line-height: 1.7; }
.give-verse cite { display: block; margin-top: 6px; font-style: normal; color: var(--gold); font-size: .78rem; font-weight: 600; }

/* Star rating */
.star-rating { display: flex; gap: 6px; }
.star-rating span { font-size: 1.6rem; cursor: pointer; color: rgba(184,134,11,.28); transition: color .15s, transform .15s; user-select: none; }
.star-rating span.selected, .star-rating span.hover { color: var(--gold); transform: scale(1.15); }

/* ═══ PULSE ANIMATION ═══ */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .nav-links, .nav-give-btn { display: none; }
  .hamburger { display: flex; }
  .topbar-right { display: none; }
  .form-two-col { grid-template-columns: 1fr; }
}
@media (min-width: 661px) { .mobile-drawer { display: none !important; } .hamburger { display: none !important; } }