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

/* ============================================
   SC KIDS — Second Chance Church Kids Ministry
   Global Stylesheet
   ============================================ */

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

:root {
  --teal:        #3BA8B8;
  --teal-dark:   #2A8A98;
  --teal-light:  #E8F6F8;
  --red:         #C42032;
  --red-dark:    #A01A28;
  --red-light:   #FDEAEC;
  --dark:        #1A1A2E;
  --gray-900:    #222233;
  --gray-700:    #444466;
  --gray-500:    #777799;
  --gray-300:    #BBBBD0;
  --gray-100:    #F0F0F6;
  --white:       #FFFFFF;
  --font-main:   'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-display:'Baloo 2', 'Nunito', cursive, sans-serif;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.12);
  --radius:      12px;
  --radius-lg:   20px;
  --max-w:       1200px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
p  { font-size: 1.05rem; color: var(--gray-700); }

/* --- Utility --- */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section   { padding: 80px 0; }
.section--alt { background: var(--gray-100); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3, .section--teal p { color: var(--white); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.15); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); }
.btn--sm { padding: 10px 22px; font-size: .9rem; }

/* --- Badge --- */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge--red { background: var(--red-light); color: var(--red); }
.badge--teal { background: var(--teal-light); color: var(--teal-dark); }

/* ========================
   HEADER / NAV
   ======================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo img { height: 48px; width: 48px; object-fit: contain; }
.header__logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.header__logo-text span { color: var(--teal); }

.nav__list { display: flex; gap: 8px; align-items: center; }
.nav__link {
  padding: 8px 18px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover, .nav__link--active { background: var(--teal-light); color: var(--teal-dark); }
.nav__cta { background: var(--red); color: var(--white) !important; }
.nav__cta:hover { background: var(--red-dark); }

/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 6px 0; border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__list {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 4px;
    background: var(--white); padding: 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav__list.open { transform: translateX(0); }
  .nav__link { width: 100%; text-align: center; padding: 14px; font-size: 1.1rem; }
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath fill='%23ffffff' d='M0,30 Q300,60 600,30 Q900,0 1200,30 L1200,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center/cover;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p  { color: rgba(255,255,255,.9); font-size: 1.2rem; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero__actions { justify-content: center; }
}

/* ========================
   AGE GROUP CARDS (Home)
   ======================== */
.age-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.age-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.age-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.age-card__img { aspect-ratio: 16/10; overflow: hidden; }
.age-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.age-card:hover .age-card__img img { transform: scale(1.05); }
.age-card__body { padding: 28px; }
.age-card__body h3 { margin-bottom: 8px; }
.age-card__body p { font-size: .95rem; margin-bottom: 16px; }

/* ========================
   FEATURED VIDEO
   ======================== */
.featured {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.featured__video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--gray-100);
}
.featured__video img { width: 100%; height: 100%; object-fit: cover; }
.featured__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(196,32,50,.4);
  transition: transform var(--transition);
}
.featured__play:hover { transform: translate(-50%,-50%) scale(1.1); }
.featured__play svg { width: 28px; height: 28px; fill: var(--white); margin-left: 3px; }
.featured__info h3 { margin-bottom: 8px; }
.featured__info p { margin-bottom: 20px; }
.featured__meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

@media (max-width: 768px) {
  .featured { grid-template-columns: 1fr; gap: 24px; }
}

/* ========================
   VIDEO GRID
   ======================== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.video-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card__thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: var(--white);
  padding: 2px 8px; border-radius: 4px;
  font-size: .78rem; font-weight: 600;
}
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(196,32,50,.9); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.video-card:hover .video-card__play { opacity: 1; }
.video-card__play svg { width: 18px; height: 18px; fill: var(--white); margin-left: 2px; }
.video-card__body { padding: 18px; }
.video-card__body h4 { font-size: 1rem; margin-bottom: 4px; font-family: var(--font-main); font-weight: 700; }
.video-card__body p { font-size: .85rem; color: var(--gray-500); }
.video-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.video-card__tag {
  font-size: .72rem; padding: 3px 10px; border-radius: 50px;
  background: var(--teal-light); color: var(--teal-dark); font-weight: 600;
}

/* ========================
   SERIES BROWSER
   ======================== */
.series-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.series-tab {
  padding: 10px 24px; border-radius: 50px; font-weight: 600;
  font-size: .9rem; cursor: pointer; border: 2px solid var(--gray-300);
  color: var(--gray-500); background: var(--white);
  transition: all var(--transition);
}
.series-tab:hover, .series-tab--active {
  border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light);
}

/* ========================
   PAGE HERO (subpages)
   ======================== */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white); padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath fill='%23ffffff' d='M0,20 Q300,40 600,20 Q900,0 1200,20 L1200,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat center/cover;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; }
.page-hero .badge { margin-bottom: 12px; }

/* ========================
   INFO CARDS
   ======================== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.6rem;
}
.info-card h4 { margin-bottom: 8px; font-family: var(--font-display); }
.info-card p { font-size: .9rem; }

/* ========================
   PARENT CTA BANNER
   ======================== */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { max-width: 500px; }

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 0 30px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer__brand img { height: 48px; margin-bottom: 12px; }
.footer__brand p { font-size: .9rem; max-width: 280px; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; font-family: var(--font-main); text-transform: uppercase; letter-spacing: 1px; }
.footer a { display: block; padding: 4px 0; font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer a:hover { color: var(--teal-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .85rem; }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- end of stylesheet --- */
