/* ==========================================================
   Pulse Youth — Template #31
   Palette: Deep Midnight #0f172a | Crisp White #f8fafc
           Electric Emerald #10b981 | Cool Gray #94a3b8
   Fonts:  Urbanist (headings) + Inter (body)
   Prefix: py-
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Urbanist:ital,wght@0,500;0,600;0,700;0,800;1,700;1,800&display=swap');

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f8fafc;
  background: #0f172a;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Utility ---------- */
.py-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.py-section {
  padding: 100px 0;
}

.py-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.py-section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.py-section-header p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.py-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
}

.py-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.py-btn--primary {
  background: #10b981;
  color: #0f172a;
}

.py-btn--outline {
  background: transparent;
  color: #f8fafc;
  border: 2px solid #f8fafc;
}

.py-btn--outline:hover {
  background: #f8fafc;
  color: #0f172a;
}

.py-btn--white {
  background: #f8fafc;
  color: #0f172a;
}

.py-btn--white:hover {
  background: #e2e8f0;
}

/* ---------- Demo Banner ---------- */
.py-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: #10b981;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.py-demo-banner a {
  color: #0f172a;
  text-decoration: underline;
  font-weight: 700;
}

/* ---------- Navigation ---------- */
.py-nav {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: background 0.35s, box-shadow 0.35s;
}

.py-nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.py-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.py-logo {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.py-logo-icon {
  color: #10b981;
  font-size: 1.3rem;
}

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

.py-nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.3s;
}

.py-nav-links a:hover {
  color: #10b981;
}

.py-nav-cta {
  background: #10b981;
  color: #0f172a !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
}

.py-nav-cta:hover {
  background: #059669;
  color: #f8fafc !important;
}

/* Hamburger */
.py-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.py-hamburger span {
  width: 26px;
  height: 3px;
  background: #f8fafc;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.py-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.py-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.py-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  z-index: 850;
  background: #1e293b;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 100px 32px 40px;
}

.py-mobile-menu.open {
  right: 0;
}

.py-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.py-mobile-link {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8fafc;
}

.py-mobile-link:hover {
  color: #10b981;
}

.py-mobile-cta {
  display: inline-block;
  margin-top: 12px;
  background: #10b981;
  color: #0f172a;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  text-align: center;
}

/* ---------- 1. Hero ---------- */
.py-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.py-hero-bg {
  position: absolute;
  inset: 0;
}

.py-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.py-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.py-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.py-hero-heading {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.py-hero-heading em {
  color: #10b981;
  font-style: italic;
  font-family: 'Urbanist', sans-serif;
}

.py-hero-sub {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.7;
}

.py-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 2. About ---------- */
.py-about {
  background: #1e293b;
}

.py-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.py-stat-box {
  background: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.py-stat-box:hover {
  transform: translateY(-4px);
  border-color: #10b981;
}

.py-stat-number {
  display: block;
  font-family: 'Urbanist', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 4px;
}

.py-stat-label {
  font-size: 0.95rem;
  color: #94a3b8;
}

/* ---------- 3. Weekly Rhythm ---------- */
.py-rhythm {
  background: #0f172a;
}

.py-rhythm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.py-rhythm-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.py-rhythm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.py-rhythm-day {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #10b981;
  margin-bottom: 4px;
}

.py-rhythm-time {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.py-rhythm-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.py-rhythm-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ---------- 4. Events ---------- */
.py-events {
  background: #1e293b;
}

.py-events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.py-event-card {
  display: flex;
  gap: 24px;
  background: #0f172a;
  border-radius: 12px;
  padding: 28px;
  align-items: flex-start;
  transition: transform 0.3s;
}

.py-event-card:hover {
  transform: translateX(6px);
}

.py-event-date {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #10b981;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.py-event-month {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.py-event-day-num {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.py-event-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.py-event-info p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 10px;
}

.py-event-location {
  font-size: 0.85rem;
  color: #10b981;
}

/* ---------- 5. Small Groups ---------- */
.py-groups {
  background: #0f172a;
}

.py-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.py-group-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.py-group-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.py-group-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  margin-left: auto;
  margin-right: auto;
}

.py-group-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.py-group-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ---------- 6. Watch / Media ---------- */
.py-watch {
  background: #1e293b;
}

.py-watch-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.py-video-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.py-video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #0f172a;
  border-radius: 12px;
}

.py-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #10b981;
  color: #0f172a;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.py-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.py-video-placeholder span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #94a3b8;
}

.py-recent-talks h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.py-talk-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.py-talk-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.py-talk-date {
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* ---------- 7. Parent Info ---------- */
.py-parents {
  background: #0f172a;
}

.py-parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.py-parents-image {
  border-radius: 16px;
  overflow: hidden;
}

.py-parents-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.py-parents-info h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.py-parents-info > p {
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Accordion */
.py-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.py-accordion-item {
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

.py-accordion-trigger {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #f8fafc;
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.py-accordion-trigger:hover {
  color: #10b981;
}

.py-accordion-icon {
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: #10b981;
}

.py-accordion-item.active .py-accordion-icon {
  transform: rotate(45deg);
}

.py-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.py-accordion-content p {
  padding: 0 20px 18px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- 8. CTA ---------- */
.py-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  text-align: center;
}

.py-cta-section h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 16px;
}

.py-cta-section p {
  color: rgba(15, 23, 42, 0.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 9. Footer ---------- */
.py-footer {
  background: #0b1120;
  padding: 60px 0 0;
}

.py-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.py-footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #f8fafc;
}

.py-footer-col p,
.py-footer-col address {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: normal;
  line-height: 1.7;
}

.py-footer-col ul li {
  margin-bottom: 10px;
}

.py-footer-col ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.py-footer-col ul li a:hover {
  color: #10b981;
}

.py-footer-col address a {
  color: #10b981;
}

.py-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.py-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.py-social-icons a:hover {
  background: #10b981;
  color: #0f172a;
}

.py-footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.py-footer-bottom p {
  font-size: 0.82rem;
  color: #64748b;
}

/* ---------- Scroll Reveal ---------- */
.py-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.py-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */

/* 1024px */
@media (max-width: 1024px) {
  .py-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .py-watch-content {
    grid-template-columns: 1fr;
  }

  .py-parents-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .py-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 768px */
@media (max-width: 768px) {
  .py-nav-links {
    display: none;
  }

  .py-hamburger {
    display: flex;
  }

  .py-hero-heading {
    font-size: 2.8rem;
  }

  .py-section {
    padding: 70px 0;
  }

  .py-section-header h2 {
    font-size: 2rem;
  }

  .py-rhythm-cards {
    grid-template-columns: 1fr;
  }

  .py-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .py-event-card {
    flex-direction: column;
    align-items: stretch;
  }

  .py-event-date {
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px;
  }

  .py-cta-section h2 {
    font-size: 2rem;
  }

  .py-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 480px */
@media (max-width: 480px) {
  .py-hero-heading {
    font-size: 2.2rem;
  }

  .py-hero-sub {
    font-size: 1rem;
  }

  .py-stats {
    grid-template-columns: 1fr;
  }

  .py-stat-box {
    padding: 24px;
  }

  .py-groups-grid {
    grid-template-columns: 1fr;
  }

  .py-parents-info h2 {
    font-size: 1.8rem;
  }

  .py-cta-section {
    padding: 60px 0;
  }

  .py-cta-section h2 {
    font-size: 1.6rem;
  }

  .py-demo-banner {
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
  }
}
