/*
Theme Name: EFP Kids - Exercise & Fitness Program
Theme URI: https://efpkids.org
Author: EFP Kids
Author URI: https://efpkids.org
Description: Official WordPress theme for the EFP Kids Exercise & Fitness Program for Kids. A vibrant, mobile-responsive summer fitness program website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: efp-kids
Tags: education, kids, fitness, sports, one-page, responsive, elementor
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue-600:  #2563eb;
  --blue-700:  #1d4ed8;
  --cyan-400:  #22d3ee;
  --green-400: #4ade80;
  --orange-500:#f97316;
  --orange-600:#ea6c10;
  --yellow-300:#fde047;
  --pink-400:  #f472b6;
  --green-300: #86efac;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;
  --white:     #ffffff;
  --radius-2xl:  1rem;
  --radius-3xl:  1.5rem;
  --radius-4xl:  2rem;
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,.25);
  --transition:  all 0.2s ease;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container--md { max-width: 1024px; }
.container--sm { max-width: 768px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-2xl);
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  text-decoration: none;
}

.btn--primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover { background: var(--orange-600); }

.btn--white {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-xl);
}
.btn--white:hover { transform: scale(1.05); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--blue-600);
}

.btn--outline-blue {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline-blue:hover {
  background: var(--white);
  color: var(--blue-700);
}

.btn--blue {
  background: var(--blue-600);
  color: var(--white);
}
.btn--blue:hover { background: var(--blue-700); }

.btn--full { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

.site-header__brand h1 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--blue-600);
  line-height: 1.1;
}

.site-header__brand p {
  font-size: 0.875rem;
  color: var(--orange-500);
  font-weight: 600;
}

/* WordPress nav menu */
.main-navigation { display: none; }
.main-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-navigation li { position: relative; }
.main-navigation a {
  font-weight: 500;
  color: var(--gray-800);
  transition: color 0.2s;
}
.main-navigation a:hover { color: var(--blue-600); }

/* Mobile hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  display: block;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(to right, #3b82f6, #22d3ee, #4ade80);
  color: var(--white);
  padding: 5rem 2rem;
  overflow: hidden;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero card grid */
.hero__card-grid {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero__card-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero__card {
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.hero__card--yellow  { background: var(--yellow-300); color: #000; }
.hero__card--pink    { background: var(--pink-400);   color: #fff; }
.hero__card--green   { background: var(--green-300);  color: #000; }
.hero__card--blue    { background: #1d4ed8;            color: #fff; }

.hero__card-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.hero__card h3 { font-weight: 900; font-size: 1.125rem; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-about {
  padding: 6rem 2rem;
  background: var(--gray-50);
}

.section__eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.section__eyebrow--orange { color: var(--orange-500); }
.section__eyebrow--blue   { color: var(--blue-600);   }
.section__eyebrow--orange2{ color: #ea580c; }

.section-about__center {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.15;
}

.section-about__desc {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.about-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
  text-align: center;
}

.about-card:hover { box-shadow: var(--shadow-xl); }

.about-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.about-card h3 { font-weight: 700; font-size: 1.25rem; }

/* ============================================================
   ACTIVITIES SECTION
   ============================================================ */
.section-activities {
  padding: 6rem 2rem;
  background: var(--white);
}

.section-activities__header {
  text-align: center;
  margin-bottom: 4rem;
}

.activities-grid {
  display: grid;
  gap: 2rem;
}

.activity-card {
  background: var(--white);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s, transform 0.2s;
}

.activity-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-0.5rem);
}

.activity-card__emoji { font-size: 3.75rem; margin-bottom: 1.5rem; }

.activity-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.activity-card p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.activity-card__link {
  color: var(--blue-600);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}
.activity-card__link:hover { text-decoration: underline; }

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
.section-schedule {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #fed7aa 0%, #fef9c3 100%);
}

.section-schedule__center {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.schedule-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 0;
}

.schedule-item {
  background: var(--white);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.schedule-item__info { text-align: left; }
.schedule-item__info h3 { font-size: 1.5rem; font-weight: 900; }
.schedule-item__info p  { color: var(--gray-600); margin-top: 0.25rem; }

.schedule-item__time {
  margin-top: 1rem;
  align-self: flex-start;
  background: var(--blue-600);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-2xl);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================================
   REGISTRATION SECTION
   ============================================================ */
.section-register {
  padding: 6rem 2rem;
  background: var(--blue-700);
  color: var(--white);
}

.section-register__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.section-register__eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  color: var(--yellow-300);
  margin-bottom: 0.75rem;
}

.section-register__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-register__desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.section-register__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Registration form card */
.register-form-card {
  background: var(--white);
  color: var(--gray-800);
  border-radius: 2.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-2xl);
}

.register-form-card h3 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-2xl);
  padding: 1rem;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-field:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* WordPress generated form wrappers */
.wpcf7-form .form-field,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-2xl);
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3.5rem 2rem;
}

.site-footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  color: var(--gray-400);
  line-height: 1.75;
}

.site-footer__col h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.site-footer__col ul li,
.site-footer__col p {
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

.site-footer__col a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.site-footer__col a:hover { color: var(--white); }

/* Footer WordPress menu */
.footer-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-navigation a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-navigation a:hover { color: var(--white); }

.site-footer__bottom {
  border-top: 1px solid #374151;
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BLOG / ARCHIVE / SINGLE PAGES
   ============================================================ */
.page-content-wrapper {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--gray-800);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.post-card__thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem 2rem 2rem;
}

.post-card__meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.post-card__title a { color: var(--gray-800); }
.post-card__title a:hover { color: var(--blue-600); }

.post-card__excerpt {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-card__readmore {
  color: var(--blue-600);
  font-weight: 700;
  transition: var(--transition);
}
.post-card__readmore:hover { text-decoration: underline; }

/* Single post */
.single-post__header { margin-bottom: 2rem; }
.single-post__featured-image {
  width: 100%;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  margin-bottom: 2rem;
}
.single-post__featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.single-post__content { line-height: 1.8; color: var(--gray-700); }
.single-post__content h2,
.single-post__content h3 { font-weight: 900; margin: 1.5rem 0 0.75rem; }
.single-post__content p  { margin-bottom: 1rem; }
.single-post__content ul,
.single-post__content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.single-post__content li { margin-bottom: 0.4rem; list-style: disc; }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--gray-100);
  transition: var(--transition);
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--blue-600);
  color: var(--white);
}

/* ============================================================
   WORDPRESS CORE OVERRIDES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { text-align: center; margin: 0 auto; }
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

/* Elementor compatibility */
.elementor-section { max-width: 100%; }
.elementor-widget-wrap { padding: 0 !important; }

/* ============================================================
   RESPONSIVE — TABLET (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .main-navigation { display: flex; }

  .hero__inner { grid-template-columns: 1fr 1fr; }

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

  .activities-grid { grid-template-columns: 1fr 1fr; }

  .schedule-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .schedule-item__time { margin-top: 0; align-self: center; }

  .section-register__inner { grid-template-columns: 1fr 1fr; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .about-cards { grid-template-columns: repeat(4, 1fr); }

  .activities-grid { grid-template-columns: repeat(3, 1fr); }

  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }

  .hero { padding: 7rem 2rem; }
}

/* ============================================================
   MOBILE MENU (open state toggled via JS)
   ============================================================ */
@media (max-width: 767px) {
  .main-navigation.is-open {
    display: flex;
  }
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem;
    z-index: 999;
  }
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  .site-header { position: relative; }
  .site-header__inner { flex-wrap: wrap; }
}
/* ============================================================
   SCROLL-REVEAL ANIMATION
   (appended to style.css via separate file or included inline)
   ============================================================ */
.efp-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.efp-visible {
  opacity: 1;
  transform: none;
}
