/* ============================================================
   Radiant Youth — Template #44 — style.css
   ============================================================ */

/* --- Google Fonts (fallback if <link> fails) --- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --ry-plum: #2d1b4e;
  --ry-cream: #faf8f5;
  --ry-orange: #f97316;
  --ry-plum-light: #3d2a63;
  --ry-plum-dark: #1e1134;
  --ry-orange-hover: #ea660c;
  --ry-text: #333;
  --ry-text-light: #666;
  --ry-white: #ffffff;
  --ry-radius: 12px;
  --ry-radius-sm: 8px;
  --ry-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --ry-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --ry-transition: 0.3s ease;
  --ry-font-heading: 'Bricolage Grotesque', serif;
  --ry-font-body: 'Inter', sans-serif;
  --ry-banner-h: 44px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ry-banner-h) + 72px); }

body {
  font-family: var(--ry-font-body);
  color: var(--ry-text);
  background: var(--ry-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

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

.ry-label {
  display: inline-block;
  font-family: var(--ry-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ry-orange);
  margin-bottom: 12px;
}

.ry-label-light { color: var(--ry-orange); }

/* --- Buttons --- */
.ry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--ry-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--ry-transition);
  cursor: pointer;
}

.ry-btn-primary {
  background: var(--ry-orange);
  color: var(--ry-white);
}
.ry-btn-primary:hover {
  background: var(--ry-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.ry-btn-outline {
  border: 2px solid var(--ry-white);
  color: var(--ry-white);
}
.ry-btn-outline:hover {
  background: var(--ry-white);
  color: var(--ry-plum);
}

.ry-btn-white {
  background: var(--ry-white);
  color: var(--ry-plum);
}
.ry-btn-white:hover {
  background: var(--ry-cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.ry-btn-outline-white {
  border: 2px solid var(--ry-white);
  color: var(--ry-white);
}
.ry-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ry-link {
  color: var(--ry-orange);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--ry-transition);
}
.ry-link:hover { color: var(--ry-orange-hover); }

/* ============================================================
   DEMO BANNER
   ============================================================ */
.ry-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ry-banner-h);
  background: var(--ry-plum-dark);
  color: var(--ry-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.8rem;
  z-index: 1000;
}
.ry-demo-banner a {
  color: var(--ry-orange);
  font-weight: 600;
  transition: opacity var(--ry-transition);
}
.ry-demo-banner a:hover { opacity: 0.8; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ry-nav {
  position: fixed;
  top: var(--ry-banner-h);
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 16px 0;
  transition: background var(--ry-transition), box-shadow var(--ry-transition), padding var(--ry-transition);
  background: transparent;
}

.ry-nav.scrolled {
  background: rgba(45, 27, 78, 0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.ry-nav-logo {
  font-family: var(--ry-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ry-white);
}
.ry-nav-logo span { color: var(--ry-orange); }

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

.ry-nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--ry-transition);
}
.ry-nav-links a:hover { color: var(--ry-white); }

.ry-nav-btn {
  background: var(--ry-orange) !important;
  color: var(--ry-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--ry-transition), transform var(--ry-transition) !important;
}
.ry-nav-btn:hover {
  background: var(--ry-orange-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.ry-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 950;
}
.ry-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ry-white);
  border-radius: 2px;
  transition: all var(--ry-transition);
}

/* ============================================================
   MOBILE PANEL
   ============================================================ */
.ry-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 910;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ry-transition), visibility var(--ry-transition);
}
.ry-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ry-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--ry-plum);
  z-index: 920;
  transform: translateX(100%);
  transition: transform var(--ry-transition);
  padding: 80px 32px 32px;
  overflow-y: auto;
}
.ry-mobile-panel.active { transform: translateX(0); }

.ry-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--ry-white);
  line-height: 1;
}

.ry-panel-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ry-panel-links a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--ry-transition);
}
.ry-panel-links a:hover { color: var(--ry-white); }

.ry-panel-links .ry-nav-btn {
  display: inline-block;
  text-align: center;
  margin-top: 16px;
  border-bottom: none;
}

/* ============================================================
   1. HERO
   ============================================================ */
.ry-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ry-hero-bg {
  position: absolute;
  inset: 0;
}
.ry-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ry-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 27, 78, 0.7) 0%,
    rgba(30, 17, 52, 0.85) 100%
  );
}

.ry-hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
  margin-top: var(--ry-banner-h);
}

.ry-hero-content h1 {
  font-family: var(--ry-font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--ry-white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.ry-hero-content h1 em {
  font-style: normal;
  color: var(--ry-orange);
}

.ry-hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 36px;
}

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

/* ============================================================
   2. ABOUT
   ============================================================ */
.ry-about {
  padding: 100px 0;
  background: var(--ry-cream);
}

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

.ry-about-image img {
  border-radius: var(--ry-radius);
  box-shadow: var(--ry-shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ry-about-text h2 {
  font-family: var(--ry-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ry-plum);
  margin-bottom: 20px;
}

.ry-about-text p {
  color: var(--ry-text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.ry-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.ry-stat {
  display: flex;
  flex-direction: column;
}

.ry-stat-number {
  font-family: var(--ry-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ry-orange);
}

.ry-stat-label {
  font-size: 0.85rem;
  color: var(--ry-text-light);
  font-weight: 500;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.ry-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.ry-section-header h2 {
  font-family: var(--ry-font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ry-plum);
  margin-bottom: 16px;
}

.ry-section-header p {
  color: var(--ry-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   3. SCHEDULE
   ============================================================ */
.ry-schedule {
  padding: 100px 0;
  background: var(--ry-white);
}

.ry-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ry-schedule-card {
  background: var(--ry-cream);
  border-radius: var(--ry-radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--ry-transition), box-shadow var(--ry-transition);
}
.ry-schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ry-shadow-lg);
}

.ry-schedule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ry-plum);
  color: var(--ry-orange);
  margin-bottom: 24px;
}

.ry-schedule-card h3 {
  font-family: var(--ry-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ry-plum);
  margin-bottom: 8px;
}

.ry-schedule-time {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ry-orange);
  margin-bottom: 16px;
}

.ry-schedule-card p {
  color: var(--ry-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   4. EVENTS
   ============================================================ */
.ry-events {
  padding: 100px 0;
  background: var(--ry-cream);
}

.ry-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ry-event-card {
  background: var(--ry-white);
  border-radius: var(--ry-radius);
  overflow: hidden;
  transition: transform var(--ry-transition), box-shadow var(--ry-transition);
}
.ry-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ry-shadow-lg);
}

.ry-event-image {
  position: relative;
  overflow: hidden;
}
.ry-event-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ry-event-card:hover .ry-event-image img {
  transform: scale(1.05);
}

.ry-event-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ry-orange);
  color: var(--ry-white);
  border-radius: var(--ry-radius-sm);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.1;
}

.ry-event-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ry-event-day {
  display: block;
  font-family: var(--ry-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.ry-event-body {
  padding: 24px;
}

.ry-event-body h3 {
  font-family: var(--ry-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ry-plum);
  margin-bottom: 8px;
}

.ry-event-body p {
  color: var(--ry-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ============================================================
   5. SMALL GROUPS
   ============================================================ */
.ry-groups {
  padding: 100px 0;
  background: var(--ry-plum);
  color: var(--ry-white);
}

.ry-groups .ry-section-header h2 { color: var(--ry-white); }
.ry-groups .ry-section-header p { color: rgba(255, 255, 255, 0.7); }

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

.ry-group-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--ry-radius);
  overflow: hidden;
  transition: transform var(--ry-transition), background var(--ry-transition);
}
.ry-group-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.ry-group-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ry-group-body {
  padding: 20px;
}

.ry-group-body h3 {
  font-family: var(--ry-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ry-group-meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ry-orange);
  margin-bottom: 10px;
}

.ry-group-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   6. SOCIAL CONNECT
   ============================================================ */
.ry-social {
  padding: 100px 0;
  background: var(--ry-white);
}

.ry-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ry-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ry-cream);
  border-radius: var(--ry-radius);
  padding: 40px 24px;
  transition: transform var(--ry-transition), box-shadow var(--ry-transition);
}
.ry-social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ry-shadow-lg);
}

.ry-social-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ry-plum);
  color: var(--ry-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ry-social-card h3 {
  font-family: var(--ry-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ry-plum);
  margin-bottom: 4px;
}

.ry-social-card p {
  color: var(--ry-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.ry-social-follow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ry-orange);
  transition: color var(--ry-transition);
}
.ry-social-card:hover .ry-social-follow { color: var(--ry-orange-hover); }

/* ============================================================
   7. PARENT RESOURCES / ACCORDION
   ============================================================ */
.ry-parents {
  padding: 100px 0;
  background: var(--ry-cream);
}

.ry-accordion {
  max-width: 760px;
  margin: 0 auto;
}

.ry-accordion-item {
  border-bottom: 1px solid rgba(45, 27, 78, 0.1);
}

.ry-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ry-plum);
  text-align: left;
  transition: color var(--ry-transition);
}
.ry-accordion-trigger:hover { color: var(--ry-orange); }

.ry-accordion-trigger svg {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--ry-transition);
  color: var(--ry-orange);
}

.ry-accordion-item.active .ry-accordion-trigger svg {
  transform: rotate(180deg);
}

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

.ry-accordion-item.active .ry-accordion-content {
  max-height: 300px;
  padding-bottom: 20px;
}

.ry-accordion-content p {
  color: var(--ry-text-light);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ============================================================
   8. CTA
   ============================================================ */
.ry-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--ry-plum) 0%, var(--ry-plum-dark) 100%);
  text-align: center;
}

.ry-cta h2 {
  font-family: var(--ry-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ry-white);
  margin-bottom: 20px;
}

.ry-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

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

/* ============================================================
   9. FOOTER
   ============================================================ */
.ry-footer {
  background: var(--ry-plum-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.ry-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.ry-footer-logo {
  font-family: var(--ry-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ry-white);
  display: inline-block;
  margin-bottom: 16px;
}
.ry-footer-logo span { color: var(--ry-orange); }

.ry-footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.ry-footer-col h4 {
  font-family: var(--ry-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ry-white);
  margin-bottom: 16px;
}

.ry-footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.ry-footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ry-transition);
}
.ry-footer-col ul a:hover { color: var(--ry-orange); }

.ry-footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.ry-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .ry-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .ry-footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .ry-nav-links { display: none; }
  .ry-hamburger { display: flex; }

  .ry-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ry-schedule-grid,
  .ry-events-grid,
  .ry-social-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .ry-about { padding: 72px 0; }
  .ry-schedule { padding: 72px 0; }
  .ry-events { padding: 72px 0; }
  .ry-groups { padding: 72px 0; }
  .ry-social { padding: 72px 0; }
  .ry-parents { padding: 72px 0; }
  .ry-cta { padding: 72px 0; }

  .ry-stats {
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --ry-banner-h: 38px;
  }

  .ry-demo-banner {
    font-size: 0.7rem;
    padding: 0 12px;
  }

  .ry-hero-content h1 {
    font-size: 2.5rem;
  }

  .ry-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .ry-btn {
    width: 100%;
    max-width: 280px;
  }

  .ry-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

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

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

  .ry-cta h2 { font-size: 1.75rem; }
  .ry-cta p { font-size: 0.95rem; }

  .ry-section-header { margin-bottom: 40px; }
}
