/* ===================================================================
   RCCG Eagles Wings Church — Phase 1 Launch Site
   Brand colors sampled from the parish's own flyer/logo assets.
=================================================================== */

:root {
  --purple-900: #2c0a45;
  --purple-800: #3d0f5f;
  --purple-700: #4f0c6f;
  --purple-600: #6a1f92;
  --purple-100: #f2e9f7;
  --gold-500: #f09800;
  --gold-400: #f5b23a;
  --gold-100: #fdf1dc;
  --ink: #1f1626;
  --ink-soft: #4a3f52;
  --paper: #faf8f6;
  --paper-alt: #f4eef7;
  --white: #ffffff;
  --line: #e6dfe9;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(44, 10, 69, 0.35);
  --shadow-card: 0 10px 30px -14px rgba(44, 10, 69, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--purple-900);
}

p { line-height: 1.65; margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--purple-700); text-decoration: none; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--purple-700);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--purple-800); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-outline {
  background: transparent;
  color: var(--purple-700);
  border-color: var(--purple-700);
}
.btn-outline:hover { background: var(--purple-700); color: #fff; }

.btn-give {
  background: var(--gold-500);
  color: var(--purple-900);
}
.btn-give:hover { background: var(--gold-400); }

.btn-give-lg { padding: 16px 36px; font-size: 1.05rem; margin: 14px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(44, 10, 69, 0);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 246, 0.98);
  box-shadow: 0 8px 24px -18px rgba(44, 10, 69, 0.5);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo { height: 64px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 52px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--purple-700); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple-900);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav a { color: var(--ink); font-weight: 600; }
.mobile-give { width: fit-content; margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44,10,69,0.78) 0%, rgba(44,10,69,0.88) 55%, rgba(44,10,69,0.96) 100%);
}

/* Subtle eagle-wing watermark, echoing the brand mark without competing with content */
.wing-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
}
.hero .wing-decor {
  width: min(48vw, 640px);
  aspect-ratio: 498 / 300;
  right: -4%;
  bottom: 6%;
  background-image: url('../assets/wing-motif.png');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
  color: #fff;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--purple-600); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

/* Hero entrance: each direct child fades/slides in with a short stagger */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 0.7s ease forwards;
  }
  .hero-content > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-content > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-content > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-content > *:nth-child(5) { animation-delay: 0.45s; }
}
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wing-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .wing-decor { animation: wing-float 9s ease-in-out infinite; }
}
.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-meta .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-right: 8px;
}

/* ---------- Dedication ---------- */
.dedication {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--purple-900);
}
.dedication-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.dedication-tag {
  display: inline-block;
  background: var(--purple-900);
  color: var(--gold-400);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dedication h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.dedication-date { font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.dedication-copy { color: var(--purple-900); opacity: 0.9; }
.dedication-note { font-size: 0.9rem; opacity: 0.85; margin-bottom: 0; }
.dedication-note a { color: var(--purple-900); text-decoration: underline; }

/* ---------- Services ---------- */
.services { background: var(--purple-900); }
.services .section-inner { padding: 72px 24px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
}
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { color: #fff; margin-bottom: 6px; }
.service-time { color: var(--gold-400); font-weight: 700; font-size: 1.05rem; }
.service-card p { color: rgba(255,255,255,0.78); }
.service-link { color: var(--gold-400); font-weight: 700; display: inline-block; margin-top: 6px; }
.service-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
blockquote {
  border-left: 3px solid var(--gold-500);
  margin: 28px 0 0;
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--purple-800);
}
blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pastor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pastor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.pastor-photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple-100), var(--gold-100));
  border: 1.5px dashed var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--purple-700);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.pastor-photo-frame.has-photo { border-style: solid; }
.pastor-photo-frame.has-photo span { display: none; }
.pastor-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pastor-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pastor-card p { margin: 0; font-size: 0.9rem; }

.rccg-badge {
  background: var(--paper-alt);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.rccg-badge img { width: 84px; margin: 0 auto 12px; }
.rccg-badge p { font-size: 0.85rem; margin: 0; font-weight: 600; color: var(--purple-700); }

/* ---------- Visit ---------- */
.visit { background: var(--paper-alt); }
.visit h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 34px; }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.visit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.visit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.visit-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--purple-800); }
.visit-card p { font-size: 0.92rem; margin-bottom: 0; }
.visit-cta { margin-top: 40px; }

/* ---------- Gallery ---------- */
.gallery h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.gallery-note { max-width: 620px; margin-bottom: 32px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.gallery-item:hover::before { transform: scale(1.08); }
.gallery-item:hover { box-shadow: var(--shadow-soft); }
.gallery-item span {
  position: relative;
  z-index: 1;
  background: rgba(44,10,69,0.55);
  padding: 6px 12px;
  border-radius: 100px;
  backdrop-filter: blur(3px);
}
.ph-1 { background: linear-gradient(160deg, #4f0c6f, #7a2ba8); }
.ph-2 { background: linear-gradient(160deg, #6a1f92, #f09800); }
.ph-3 { background: linear-gradient(160deg, #2c0a45, #6a1f92); }
.ph-4 { background: linear-gradient(160deg, #f09800, #f5b23a); }
.ph-5 { background: linear-gradient(160deg, #3d0f5f, #f09800); }
.ph-6 { background: linear-gradient(160deg, #7a2ba8, #2c0a45); }

/* ---------- Giving ---------- */
.giving {
  position: relative;
  overflow: hidden;
  background: var(--purple-900);
  background-image: radial-gradient(circle at 20% 20%, rgba(240,152,0,0.18), transparent 55%);
}
.giving .wing-decor {
  width: min(38vw, 480px);
  aspect-ratio: 498 / 300;
  left: -6%;
  top: -8%;
  background-image: url('../assets/wing-motif-left.png');
}
.giving-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; }
.giving .eyebrow { text-align: center; }
.giving h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.giving-copy { color: rgba(255,255,255,0.8); }
.giving-fineprint { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 10px; }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.location h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.location-address { font-size: 1.2rem; font-weight: 700; color: var(--purple-800); }
.location-copy .btn { margin-top: 8px; margin-right: 16px; }
.tel-link { font-weight: 700; }
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Connect (newsletter / contact / prayer) ---------- */
.connect { background: var(--paper-alt); }
.connect h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 34px; }
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.connect-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.connect-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.connect-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.connect-card p { font-size: 0.9rem; }
.newsletter-card { background: var(--purple-900); }
.newsletter-card h3, .newsletter-card p { color: #fff; }
.newsletter-card p { color: rgba(255,255,255,0.75); }

.form { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.form label { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.form input, .form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form input:focus, .form textarea:focus {
  border-color: var(--purple-600);
  outline: none;
}
.form button { margin-top: 12px; align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
.inline-form button { margin-top: 0; }

.form-status {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 8px 0 0;
  min-height: 1.2em;
}
.form-status.success { color: #2f9e57; }
.newsletter-card .form-status.success { color: var(--gold-400); }
.form-status.error { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--purple-900);
  color: rgba(255,255,255,0.75);
  padding-top: 60px;
}
.site-footer .wing-decor {
  width: min(42vw, 560px);
  aspect-ratio: 498 / 300;
  right: -6%;
  bottom: -4%;
  background-image: url('../assets/wing-motif.png');
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  height: 76px;
  margin-bottom: 14px;
  background: rgba(250, 248, 246, 0.95);
  padding: 10px 18px;
  border-radius: 12px;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-brand a { color: rgba(255,255,255,0.85); }
.footer-links h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  font-size: 0.82rem;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .header-cta .btn-give:not(.mobile-give) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-inner { padding: 64px 20px; }
  .hero-content { padding: 120px 20px 60px; }
  .footer-inner { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
}

/* ---------- Scroll-reveal ----------
   js/animations.js adds .in-view via IntersectionObserver. Elements with
   a data-animate-group get a small stagger across their direct children. */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  [data-animate].in-view { opacity: 1; transform: none; }

  [data-animate-group] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  [data-animate-group].in-view > *:nth-child(1) { transition-delay: 0.02s; }
  [data-animate-group].in-view > *:nth-child(2) { transition-delay: 0.09s; }
  [data-animate-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
  [data-animate-group].in-view > *:nth-child(4) { transition-delay: 0.23s; }
  [data-animate-group].in-view > *:nth-child(5) { transition-delay: 0.3s; }
  [data-animate-group].in-view > *:nth-child(6) { transition-delay: 0.37s; }
  [data-animate-group].in-view > * { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ----------
   Disables all decorative animation for visitors who ask for it, while
   leaving layout, color, and content transitions (focus states, etc.) intact. */
@media (prefers-reduced-motion: reduce) {
  .wing-decor { animation: none !important; }
  .hero-content > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .service-card:hover,
  .pastor-card:hover,
  .visit-card:hover,
  .connect-card:hover,
  .btn:hover {
    transform: none !important;
  }
  .gallery-item:hover::before { transform: none !important; }
  html { scroll-behavior: auto; }
}
