/* ============================================================
   County Kids Club — Shared Styles
   ============================================================ */

:root {
  --bg-soft: #f2f8fb;
  --bg-lime: #c9ff4f;
  --bg-blue: #41aacd;
  --bg-cyan: #00d0ff;
  --bg-pink: #ff4fd8;
  --bg-light: #f8fafc;
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent-yellow: #ffd93b;
  --accent-green: #2ecc71;
  --accent-red: #ef5741;
  --accent-blue: #4a7dff;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
  /* Primary palette — calm coastal */
  --primary: #2b7a9b;
  --primary-deep: #1d5b73;
  --primary-tint: #eaf4f9;
  /* Category palette */
  --cat-movement: #2b7a9b;
  --cat-stem: #6366f1;
  --cat-nature: #16a34a;
  --cat-fitness: #f97316;
  --cat-opengym: #d97706;
  --cat-niche: #db2777;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.page { width: 100%; min-height: 100vh; background: #ffffff; }

.container { padding: 0 3.2rem; }

@media (max-width: 900px) {
  .container { padding: 0 1.6rem; }
}

/* ── HEADER & NAV ── */
header {
  padding: 0.9rem 0;
  background: var(--bg-soft);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

header.scrolled {
  background: rgba(242, 248, 251, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(17, 24, 39, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 1px;
  transition: color 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted) !important;
  font-weight: 600;
}

.nav-back::after { display: none; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(17,24,39,0.15);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    padding: 0.5rem 1.6rem 1.2rem;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0;
  }

  .nav-links a::after { display: none; }

  .nav-divider { display: none; }
}

/* ── SECTIONS ── */
section { padding: 3.5rem 0; position: relative; }

.section-title { font-size: 2rem; margin-bottom: 0.4rem; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: background 0.18s;
}

.btn-primary:hover { background: #1f2937; }

.btn-outline {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #111827;
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: background 0.18s;
}

.btn-outline:hover { background: rgba(17,24,39,0.06); }

.btn-white {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.btn-white-outline {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

/* ── HERO (Hub) ── */
.hero {
  background: var(--bg-soft);
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-heading {
  font-size: 3rem;
  line-height: 1.1;
  margin: 2rem 0 1.4rem;
}

.hero-heading span { color: var(--accent-red); }

.hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 0.85rem;
}

.hero-cta-group {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
}

.hero-sub-link {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-sub-link a { color: var(--text-main); text-decoration: underline; }

@media (max-width: 768px) {
  .hero-heading { font-size: 2.3rem; }
}

/* ── PROGRAM PAGE HERO ── */
.program-hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.program-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.program-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.4rem;
}

.program-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: underline; }
.program-breadcrumb a:hover { color: #ffffff; }
.program-breadcrumb span { color: rgba(255,255,255,0.4); }

.program-hero-icon { font-size: 3.6rem; margin-bottom: 0.8rem; line-height: 1; }

.program-hero-heading {
  font-size: 3rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.program-hero-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin: 0 auto;
}

.program-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .program-hero-heading { font-size: 2.2rem; }
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--primary-deep);
  color: #ffffff;
  padding: 1.8rem 0;
}

.stats-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-yellow);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .stats-inner { gap: 2rem; }
  .stat-number { font-size: 1.5rem; }
}

/* ── ABOUT SECTION (Hub) ── */
.section-about-club { background: #ffffff; padding: 4.5rem 0; }

.about-club-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.about-club-text h2 { font-size: 2rem; margin-bottom: 1.2rem; }

.about-club-text p { font-size: 0.96rem; color: var(--text-muted); }
.about-club-text p + p { margin-top: 0.85rem; }

.values-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.values-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }

.values-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.value-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.value-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

@media (max-width: 900px) {
  .about-club-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── CATEGORY GRID (Hub Programs Section) ── */
.section-programs-hub { background: var(--primary-tint); padding: 4.5rem 0; }

.programs-hub-header { text-align: center; margin-bottom: 2.8rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.category-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.13);
}

.category-card-accent {
  height: 5px;
  width: 100%;
}

.category-card-body {
  padding: 1.8rem 1.6rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-icon { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1; }

.category-name { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }

.category-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; flex: 1; }

.category-card-footer {
  padding: 1rem 1.6rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(17,24,39,0.06);
  margin-top: 1.2rem;
}

.category-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-active { background: rgba(22,163,74,0.12); color: #15803d; }
.status-coming { background: rgba(17,24,39,0.07); color: var(--text-muted); }

.category-arrow { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

@media (max-width: 960px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ── FEATURES GRID ── */
.section-features { background: var(--bg-light); padding: 4rem 0; }

.features-title { text-align: center; margin-bottom: 2.4rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature-item {
  padding: 1.6rem 1.2rem;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.icon-pink   { background: rgba(255, 79, 216, 0.14); }
.icon-blue   { background: rgba(0, 140, 255, 0.11); }
.icon-green  { background: rgba(22, 163, 74, 0.12); }
.icon-purple { background: rgba(99, 102, 241, 0.12); }
.icon-orange { background: rgba(249, 115, 22, 0.12); }
.icon-yellow { background: rgba(255, 217, 59, 0.18); }
.icon-teal   { background: rgba(20, 184, 166, 0.13); }

.feature-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }

/* ── PROGRAMS SECTION (Program pages) ── */
.section-programs {
  background: var(--primary-tint);
  padding: 4rem 0;
}

.programs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2rem;
}

.schedule-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  font-size: 0.92rem;
}

.schedule-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.9rem; }

.schedule-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }

.schedule-label { font-weight: 600; width: 120px; flex-shrink: 0; }
.schedule-row > div:last-child { flex: 1; }

.pill-full {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.73rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.pill-open {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.73rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── MAILING LIST CTA CARD ── */
.mailing-cta-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.mailing-cta-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.mailing-cta-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── COMING SOON BLOCK ── */
.coming-soon-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.coming-soon-block h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.coming-soon-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.8rem;
}

/* ── TESTIMONIALS ── */
.section-testimonials {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fa 100%);
  padding: 4rem 0;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.testimonials-intro {
  padding: 2rem;
  border-radius: 28px;
  background: var(--primary-deep);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(29, 91, 115, 0.28);
}

.testimonials-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonials-intro .section-title { margin-top: 1rem; margin-bottom: 0.7rem; }
.testimonials-intro .section-subtitle { color: rgba(255, 255, 255, 0.8); }

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.testimonial-card {
  padding: 1.6rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.testimonial-card:nth-child(2) { background: #eef6fa; }
.testimonial-card:nth-child(3) { background: #edf6f3; }

.testimonial-quote-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(17, 24, 39, 0.08);
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonial-text { font-size: 0.98rem; line-height: 1.7; margin-bottom: 1.4rem; }
.testimonial-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-context { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 1050px) {
  .testimonials-layout { grid-template-columns: 1fr; }
  .testimonial-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .testimonials-intro, .testimonial-card { padding: 1.4rem; }
  .testimonial-list { grid-template-columns: 1fr; }
}

/* ── TEAM / FOUNDERS ── */
.section-team {
  background: var(--primary-deep);
  color: #f5f5f5;
  padding: 4.5rem 0;
}

.team-header { text-align: center; margin-bottom: 2rem; }
.team-header .section-title { color: #f5f5f5; }
.team-header p { max-width: 680px; margin: 0.6rem auto 0; font-size: 0.95rem; color: rgba(255,255,255,0.82); }

.coach-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.coach-profile { text-align: center; }

.coach-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.coach-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.coach-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; color: #f5f5f5; }
.coach-bio { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); line-height: 1.5; }

@media (max-width: 900px) {
  .coach-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .coach-roster { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ── INSTRUCTORS (Program pages) ── */
.section-instructors {
  background: var(--primary-deep);
  padding: 4.5rem 0;
}

.instructors-header { text-align: center; margin-bottom: 2rem; }
.instructors-header .section-title { color: #f5f5f5; }
.instructors-header p { max-width: 620px; margin: 0.6rem auto 0; font-size: 0.95rem; color: rgba(255,255,255,0.82); }

.instructor-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}

.instructor-coming-soon {
  text-align: center;
  padding: 3rem 2rem;
}

.instructor-coming-soon p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 1.4rem; }


/* ── FAQ ── */
.section-faq { background: #ffffff; padding: 4.5rem 0; }

.faq-list {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
}

.faq-item {
  padding: 1.1rem 1.2rem 1.1rem 1.5rem;
  border-radius: 18px;
  background: #f8fafc;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1rem;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.faq-answer {
  margin-top: 0.5rem;
  padding-left: 2.1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ── CONTACT ── */
.section-contact { background: var(--bg-light); padding: 4rem 0; text-align: center; }
.section-contact .section-subtitle { margin: 0.5rem auto 0; }
.section-contact a { color: var(--primary); text-decoration: underline; }

/* ── FOOTER ── */
footer {
  padding: 1.5rem 3.2rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-powered { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-logo { height: 42px; width: auto; }

.footer-social { display: inline-flex; align-items: center; color: var(--text-muted); transition: color 0.15s ease; }
.footer-social:hover { color: var(--primary); }
.footer-social svg { display: block; }

@media (max-width: 900px) { footer { padding: 1.5rem 1.6rem 2rem; } }
