/* ==========================================================================
   SoundOfPraise — Christian Youth Karaoke Night, Lekki
   Vibrant, mobile-first, lightweight stylesheet
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --primary-purple: #6b3fd4;
  --primary-purple-deep: #4a24a8;
  --accent-blue: #3fa9ff;
  --accent-orange: #ff8a3d;
  --accent-pink: #ff5f8a;
  --accent-yellow: #ffd166;

  --text-dark: #14102b;
  --text-mid: #4b466b;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);

  --bg: #faf9ff;
  --bg-alt: #f2eeff;
  --surface: #ffffff;
  --border: rgba(20, 16, 43, 0.08);

  --grad-hero: linear-gradient(135deg, #4a24a8 0%, #6b3fd4 35%, #3fa9ff 70%, #ff8a3d 100%);
  --grad-divider: linear-gradient(90deg, var(--primary-purple), var(--accent-blue), var(--accent-orange));
  --grad-warm: linear-gradient(135deg, #ff8a3d, #ff5f8a);
  --grad-cool: linear-gradient(135deg, #6b3fd4, #3fa9ff);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(74, 36, 168, 0.10);
  --shadow-md: 0 10px 30px rgba(74, 36, 168, 0.16);
  --shadow-lg: 0 20px 50px rgba(74, 36, 168, 0.22);
  --shadow-glow: 0 0 0 6px rgba(107, 63, 212, 0.18);

  /* Spacing rhythm */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 2rem;
  --sp-4: 3rem;
  --sp-5: 4.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1120px;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  min-height: 100vh;
}

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

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent-orange);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- 3. Typography scale ---------- */
h1,
h2,
h3,
h4 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.15;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  margin: 0 0 var(--sp-2);
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-purple);
  margin: 0 0 var(--sp-1);
}

.gradient-text {
  background: var(--grad-divider);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

.section {
  padding: var(--sp-5) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  margin-bottom: var(--sp-3);
  max-width: 32ch;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary-purple);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* Focus ring */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.75rem var(--sp-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.05rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-cool);
  color: #fff;
  font-weight: 800;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.brand-note {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.site-nav ul {
  display: none;
  gap: var(--sp-3);
}
.site-nav a {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-divider);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover {
  color: var(--text-dark);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--primary-purple);
  --btn-color: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-bounce),
    box-shadow 0.25s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
  will-change: transform;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--grad-cool);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(107, 63, 212, 0.45);
  background: linear-gradient(135deg, #7a4bee, #4bb6ff);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}
.btn-ghost:hover {
  background: var(--primary-purple);
  color: #fff;
  transform: translateY(-1px);
}

/* Button state icons */
.btn-spinner,
.btn-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.btn-spinner::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}
.btn-check {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}
.btn.is-loading .btn-label {
  opacity: 0;
}
.btn.is-loading .btn-spinner {
  opacity: 1;
}
.btn.is-success {
  background: linear-gradient(135deg, #21c07a, #3fa9ff);
}
.btn.is-success .btn-label {
  opacity: 0;
}
.btn.is-success .btn-check {
  opacity: 1;
  animation: pop 0.5s var(--ease-bounce);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  color: var(--text-light);
  padding: var(--sp-5) 0 var(--sp-5);
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-hero);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0, 0, 0, 0.25), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}
.hero .eyebrow {
  color: var(--accent-yellow);
}
.hero-title {
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  margin-bottom: var(--sp-2);
}
.hero-tagline {
  font-size: 1.1rem;
  max-width: 42ch;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  font-weight: 600;
  color: var(--text-muted);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

/* Animated background blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.blob-1 {
  width: 380px;
  height: 380px;
  background: var(--accent-orange);
  top: -80px;
  right: -100px;
}
.blob-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-blue);
  bottom: -120px;
  left: -80px;
  animation-delay: -4s;
}
.blob-3 {
  width: 260px;
  height: 260px;
  background: var(--accent-pink);
  top: 40%;
  left: 45%;
  animation-delay: -8s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -30px) scale(1.08);
  }
}

/* ---------- 8. Details ---------- */
.details {
  background: var(--bg);
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.detail-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.detail-icon {
  font-size: 1.75rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--grad-warm);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
.detail-card h3 {
  font-size: 1.1rem;
  color: var(--primary-purple);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-card p {
  margin: 0;
  color: var(--text-mid);
}
.detail-strong {
  color: var(--text-dark) !important;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.25rem !important;
}
.details-copy {
  max-width: 60ch;
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ---------- 9. Countdown ---------- */
.countdown {
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 55%);
}
.countdown .container {
  position: relative;
}
.countdown .section-eyebrow {
  color: var(--accent-yellow);
}
.countdown .section-title {
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  max-width: 560px;
  margin: 0 auto var(--sp-2);
  position: relative;
}
.count-cell {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: var(--sp-2) 0.5rem;
  min-width: 0;
}
.count-value {
  display: block;
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  transition: transform 0.3s var(--ease-bounce);
}
.count-value.tick {
  transform: scale(1.15);
}
.count-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}
.countdown-note {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 10. Voices / Social proof ---------- */
.voices {
  background: var(--bg-alt);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  text-align: center;
}
.stat {
  padding: var(--sp-2) 0.5rem;
}
.stat-number {
  display: block;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  background: var(--grad-divider);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  display: block;
  color: var(--text-mid);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.testimonial {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  right: 1rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary-purple);
  opacity: 0.14;
  font-family: Georgia, serif;
}
.t-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-2);
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.t-name {
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
}
.t-role {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.85rem;
}
blockquote {
  margin: 0;
  color: var(--text-mid);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- 11. Gallery ---------- */
.gallery {
  background: var(--bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1);
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.lazy-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(110deg, #ece7fb 8%, #f5f2ff 18%, #ece7fb 33%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  transition: filter 0.4s var(--ease), background 0.4s var(--ease);
}
.lazy-img.loaded {
  animation: none;
  filter: saturate(1.1);
}
@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- 12. Register CTA ---------- */
.register {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  text-align: center;
}
.register-inner {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.register-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-divider);
}
.register-inner p {
  color: var(--text-mid);
  margin-bottom: var(--sp-3);
}
.register-inner .btn {
  margin-bottom: var(--sp-2);
}
.fine-print {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--sp-4) 0 var(--sp-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 30ch;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-2);
}
.footer-col ul {
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--accent-orange);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.footer-bottom {
  padding-top: var(--sp-2);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p {
  margin: 0;
}

/* ---------- 14. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 15. Responsive breakpoints ---------- */
/* Small tablets (>= 480px) */
@media (min-width: 480px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  :root {
    --sp-5: 6rem;
  }
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.6rem;
  }
  .site-nav ul {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .details-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
  .hero {
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-5);
  }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  h1 {
    font-size: 4.25rem;
  }
  .hero-tagline {
    font-size: 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }
  .countdown-grid {
    max-width: 720px;
    gap: var(--sp-2);
  }
  .count-cell {
    padding: var(--sp-3) var(--sp-2);
  }
}

/* Extra small (<= 340px safety) */
@media (max-width: 340px) {
  h1 {
    font-size: 2rem;
  }
  .btn-lg {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
