@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap');

:root {
  --navy: #08223b;
  --blue: #123f73;
  --red: #c91f32;
  --gold: #f2b84b;
  --ink: #17212b;
  --muted: #637180;
  --soft: #f5f7f2;
  --white: #fff;
  --line: #e1e7eb;
  --shadow: 0 18px 48px rgba(8, 34, 59, .13);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "DM Sans", Arial, sans-serif; line-height: 1.62; background: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; }

.topbar { background: var(--navy); color: #e9f1f7; font-size: .86rem; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid rgba(8, 34, 59, .1); backdrop-filter: blur(16px); }
.nav-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 13px; font-family: Manrope, sans-serif; font-weight: 800; line-height: 1.03; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.menu { display: flex; align-items: center; gap: 24px; color: #24313d; font-size: .95rem; font-weight: 800; }
.menu a:not(.btn):hover { color: var(--red); }
.mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); font-size: 1.35rem; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 13px 22px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 12px 28px rgba(201, 31, 50, .22); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-outline { border: 1.5px solid currentColor; color: var(--white); background: transparent; }

.hero { min-height: 680px; display: grid; align-items: center; color: var(--white); background: linear-gradient(90deg, rgba(5, 22, 38, .92), rgba(5, 22, 38, .55) 54%, rgba(5, 22, 38, .25)), url("assets/gospel-worship-homepage.png") center / cover no-repeat; animation: heroDrift 16s ease-in-out infinite alternate; }
.hero-content { max-width: 790px; padding: 96px 0 120px; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .page-hero h1, h2 { font-family: Manrope, sans-serif; font-weight: 800; line-height: 1.03; letter-spacing: 0; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(3.15rem, 7.4vw, 6.6rem); max-width: 980px; }
.hero p { max-width: 690px; color: #edf5fb; font-size: 1.2rem; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.quick-links { margin-top: -64px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick-card { min-height: 150px; padding: 30px; border-right: 1px solid var(--line); }
.quick-card:last-child { border-right: 0; }
.quick-card b { display: block; margin-bottom: 8px; color: var(--navy); font-family: Manrope, sans-serif; font-size: 1.15rem; }
.quick-card span { color: var(--red); font-weight: 800; }

.section { padding: 96px 0; }
.section.alt { background: var(--soft); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-intro, .section-dark p { color: #cbd8e2; }
.section h2 { margin: 14px 0 20px; font-size: clamp(2.1rem, 4.2vw, 4.25rem); }
.section-intro { max-width: 790px; color: var(--muted); font-size: 1.12rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }

.photo-panel, .pastor-photo, .page-photo { min-height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); background: url("assets/pastor-olaniyan-opeyemi-rccg-lifeway-chapel-melbourne.jpg") center 18% / cover no-repeat; }
.photo-panel { display: flex; align-items: flex-end; padding: 32px; background: linear-gradient(180deg, rgba(8, 34, 59, .08), rgba(8, 34, 59, .9)), url("assets/pastor-olaniyan-opeyemi-rccg-lifeway-chapel-melbourne.jpg") center 18% / cover no-repeat; }
.gospel-panel { background: linear-gradient(180deg, rgba(8, 34, 59, .08), rgba(8, 34, 59, .9)), url("assets/scripture-light-bible.png") center / cover no-repeat; animation: sacredFloat 7s ease-in-out infinite alternate; }
.quote { max-width: 420px; color: var(--white); font-family: Manrope, sans-serif; font-size: 1.6rem; line-height: 1.22; }

.cards, .ministries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.card, .ministry, .belief, .event-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; }
.card { box-shadow: 0 10px 30px rgba(8, 34, 59, .06); }
.card h3, .ministry b, .belief h3, .event-card h3 { margin: 0 0 9px; color: var(--navy); font-family: Manrope, sans-serif; font-size: 1.15rem; }
.card p, .ministry p, .belief p, .event-card p { margin-bottom: 0; color: var(--muted); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px; border-radius: var(--radius); background: rgba(201, 31, 50, .1); color: var(--red); font-weight: 800; }

.step-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 36px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.step { min-height: 180px; padding: 28px; background: var(--white); }
.step strong { display: block; margin-bottom: 10px; color: var(--red); font-family: Manrope, sans-serif; font-size: 2rem; }

.media-band, .cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: var(--radius); padding: 40px; }
.media-band { background: #103a5d; color: var(--white); }
.media-band p { color: #d9e5ee; }
.cta { background: linear-gradient(120deg, var(--red), #8d1626); color: var(--white); }
.cta h2 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.5rem); }

.page-hero { color: var(--white); padding: 104px 0 94px; background: linear-gradient(90deg, rgba(8, 34, 59, .95), rgba(18, 63, 115, .76)), url("assets/pastor-olaniyan-opeyemi-rccg-lifeway-chapel-melbourne.jpg") center 20% / cover no-repeat; }
.page-hero h1 { margin: 15px 0 14px; font-size: clamp(2.7rem, 6vw, 5.5rem); }
.page-hero p { max-width: 760px; color: #dfeaf2; font-size: 1.15rem; }

.prose { max-width: 880px; }
.prose p { color: var(--muted); font-size: 1.06rem; }
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }
.pastor { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stat { padding: 18px; border-left: 4px solid var(--gold); background: var(--soft); border-radius: var(--radius); }
.stat strong { display: block; color: var(--navy); font-family: Manrope, sans-serif; }
.stat span { color: var(--muted); font-size: .92rem; }
.scripture-section { overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(242, 184, 75, .22), transparent 32%), var(--soft); }
.bible-scene { position: relative; min-height: 480px; display: grid; place-items: center; width: 100%; overflow: hidden; border: 0; border-radius: var(--radius); background: linear-gradient(140deg, rgba(8, 34, 59, .92), rgba(13, 54, 94, .7)), url("assets/scripture-light-bible.png") center / cover no-repeat; box-shadow: var(--shadow); cursor: pointer; perspective: 1100px; }
.bible-scene::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 180deg, transparent, rgba(242, 184, 75, .28), transparent 34%, rgba(255,255,255,.18), transparent 72%); animation: lightOrbit 8s linear infinite; opacity: .75; }
.bible-book { position: relative; width: min(360px, 72vw); height: 220px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-7deg); transition: transform .75s ease; filter: drop-shadow(0 28px 30px rgba(0,0,0,.35)); z-index: 1; }
.bible-cover, .bible-pages, .bible-spine { position: absolute; border-radius: 8px; }
.bible-cover { inset: 0; background: linear-gradient(135deg, #6e1021, #2d0711); border: 3px solid rgba(242,184,75,.55); transform: translateZ(18px); }
.bible-cover::after { content: ""; position: absolute; left: 50%; top: 35px; width: 38px; height: 100px; border-radius: 3px; background: rgba(242, 184, 75, .86); transform: translateX(-50%); box-shadow: 0 31px 0 -14px rgba(242, 184, 75, .86); }
.bible-pages { inset: 18px 26px; background: repeating-linear-gradient(90deg, #fff8e7 0 9px, #eadcbf 10px 11px); transform: translateZ(30px); opacity: .92; }
.bible-spine { left: 0; top: 18px; bottom: 18px; width: 30px; background: linear-gradient(#21060d, #8e1b2b); transform: translateZ(38px); }
.scripture-reveal { position: absolute; inset: auto 34px 34px; z-index: 2; display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.94); color: var(--navy); text-align: left; transform: translateY(28px) scale(.96); opacity: 0; transition: .55s ease; }
.scripture-reveal strong { color: var(--red); font-family: Manrope, sans-serif; font-size: 1.35rem; }
.bible-scene.is-open .bible-book { transform: rotateX(35deg) rotateZ(0) translateY(-54px) scale(1.22); }
.bible-scene.is-open .bible-cover { transform: translateZ(18px) rotateY(-32deg); transform-origin: left center; }
.bible-scene.is-open .scripture-reveal { transform: translateY(0) scale(1); opacity: 1; }
.go-section { background: #fff; }
.go-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--soft); }
.go-photo img { width: 100%; min-height: 520px; object-fit: cover; object-position: center; }
.vision-section .step { background: rgba(255, 255, 255, .96); color: var(--ink); }

@keyframes heroDrift { from { background-position: center; } to { background-position: center 45%; } }
@keyframes sacredFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes lightOrbit { to { transform: rotate(360deg); } }

.form { display: grid; gap: 13px; }
.input { width: 100%; min-height: 48px; padding: 13px 15px; border: 1px solid #d4dde4; border-radius: var(--radius); background: var(--white); font: inherit; }
.input:focus { outline: 3px solid rgba(201, 31, 50, .14); border-color: var(--red); }
.note { color: var(--muted); font-size: .9rem; }
.contact-list { display: grid; gap: 16px; margin: 26px 0; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item span { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: var(--radius); background: rgba(18, 63, 115, .09); }
.contact-item strong { display: block; color: var(--navy); }
.contact-item a { color: var(--blue); font-weight: 700; }

.footer { padding: 72px 0 26px; background: #06192b; color: #c6d3dd; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.35fr; gap: 40px; }
.footer .brand { color: var(--white); }
.footer .brand small { color: #aebdc8; }
.footer h4 { margin: 0 0 14px; color: var(--white); font-family: Manrope, sans-serif; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; }
.attribution { color: #9eb0bd; font-size: .78rem; }
.admin-body { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; background: #f2f5f7; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; background: #06192b; color: #d7e1e9; }
.admin-sidebar .brand { margin-bottom: 34px; color: var(--white); }
.admin-sidebar nav { display: grid; gap: 8px; margin-bottom: 24px; }
.admin-sidebar nav a { padding: 12px 14px; border-radius: var(--radius); font-weight: 800; }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, .09); color: var(--white); }
.admin-main { padding: 34px; }
.admin-top { margin-bottom: 24px; }
.admin-top h1 { margin: 8px 0 0; color: var(--navy); font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.notice { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius); background: #e9f7ef; color: #185334; font-weight: 700; }
.notice.error { background: #fdecec; color: #8d1626; }
.notice ul { margin: 8px 0 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat { padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(8, 34, 59, .06); }
.admin-stat strong { display: block; color: var(--navy); font-family: Manrope, sans-serif; font-size: 2rem; line-height: 1; }
.admin-stat span { color: var(--muted); font-weight: 700; }
.admin-panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-panel h2 { margin: 0; color: var(--navy); font-size: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--navy); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 800; }
.admin-form textarea { min-height: 140px; resize: vertical; }
.check-row { display: flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 800; }
.thumb { width: 86px; height: 64px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.muted { color: var(--muted); }

@media (max-width: 940px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar span:last-child { display: none; }
  .mobile-toggle { display: grid; place-items: center; }
  .menu { display: none; position: absolute; top: 76px; left: 20px; right: 20px; align-items: stretch; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
  .menu.open { display: flex; flex-direction: column; }
  .menu .btn { width: 100%; }
  .hero { min-height: 650px; background-position: 58% 18%; }
  .hero-content { padding: 76px 0 110px; }
  .quick-links { margin-top: 0; }
  .quick-grid, .cards, .ministries, .two-col, .beliefs, .pastor, .footer-grid, .step-strip { grid-template-columns: 1fr; }
  .quick-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-card:last-child { border-bottom: 0; }
  .section { padding: 76px 0; }
  .photo-panel, .pastor-photo, .page-photo { min-height: 480px; }
  .media-band, .cta { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-main { padding: 22px; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-table { display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-inner { min-height: 74px; }
  .brand img { width: 42px; height: 42px; }
  .brand { font-size: .9rem; }
  .brand small { font-size: .62rem; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 3.05rem; }
  .hero p, .section-intro { font-size: 1.03rem; }
  .hero-actions .btn, .action-row .btn { width: 100%; }
  .section, .page-hero { padding: 64px 0; }
  .card, .ministry, .belief, .event-card, .media-band, .cta { padding: 24px; }
  .footer-bottom { flex-direction: column; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel-header { align-items: flex-start; flex-direction: column; }
}
