/* ==========================================================================
   KCA Theme — Welcoming Community
   A warm, playful, child-focused design system
   ========================================================================== */

:root {
  /* Brand palette */
  --peach: #fef0e6;
  --sky: #e7f1fb;
  --mint: #e8f5ee;
  --sun: #fbe4a3;
  --rose: #f0a890;
  --berry: #c25b6e;
  --berry-dark: #a8485c;
  --leaf: #6aa97e;
  --blue: #5a8fc4;
  --cream: #fdfaf4;
  --ink: #2d2a26;
  --muted: #6e6a64;
  --border: #efe9df;

  /* Typography */
  --font-sans: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Layout */
  --maxw: 1200px;
}

/* ----------  Reset & base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--berry-dark); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin: 0 0 0.5em; }
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--berry); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ----------  Header  ---------- */
.site-header { background: var(--cream); padding: 22px 0; position: sticky; top: 0; z-index: 50; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 52px; height: 52px; background: var(--berry); color: #fff; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 22px; transform: rotate(-4deg); box-shadow: 4px 4px 0 var(--sun); flex-shrink: 0; }
.logo-text strong { display: block; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.logo-text small { font-size: 12px; color: var(--muted); }
.main-nav ul { display: flex; list-style: none; gap: 28px; font-size: 15px; font-weight: 700; align-items: center; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--berry); }
.apply-btn { background: var(--berry); color: #fff !important; padding: 12px 24px; border-radius: 999px; box-shadow: 4px 4px 0 var(--sun); transition: transform 0.15s, box-shadow 0.15s; }
.apply-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sun); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px auto; transition: 0.2s; }

/* Dropdown menu (submenus) */
.main-nav li { position: relative; }
.main-nav ul ul { display: none; position: absolute; top: 100%; left: -16px; background: #fff; border-radius: var(--r-md); box-shadow: 0 14px 40px rgba(0,0,0,0.1); padding: 12px; min-width: 220px; flex-direction: column; gap: 4px; z-index: 100; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }
.main-nav ul ul a { padding: 8px 14px; border-radius: 10px; display: block; font-size: 14px; }
.main-nav ul ul a:hover { background: var(--peach); color: var(--berry); }

/* ----------  Buttons  ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: all 0.15s; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--berry); }
.btn-secondary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--berry); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,0.3); }
.btn-sun:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0,0,0,0.3); }

/* ----------  Hero  ---------- */
.hero { padding: 60px 0 100px; background: var(--peach); position: relative; overflow: hidden; }
.hero .blob1, .hero .blob2 { position: absolute; border-radius: 50%; opacity: 0.6; pointer-events: none; }
.hero .blob1 { width: 280px; height: 280px; background: var(--sun); top: -50px; right: 10%; }
.hero .blob2 { width: 180px; height: 180px; background: var(--mint); bottom: 10%; left: -40px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--berry); margin-bottom: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.hero h1 { font-size: 58px; line-height: 1.1; margin-bottom: 20px; color: var(--ink); }
.hero h1 .squiggle { color: var(--berry); position: relative; display: inline-block; }
.hero h1 .squiggle::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' fill='none' stroke='%23fbe4a3' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M3 8 Q 20 -2 40 8 T 80 8 T 120 8 T 160 8 T 197 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 14px;
}
.hero .lead { font-size: 19px; color: var(--ink); opacity: 0.8; margin-bottom: 32px; max-width: 500px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.photo-stack { position: relative; aspect-ratio: 1; max-width: 500px; margin-left: auto; }
.photo { position: absolute; border-radius: var(--r-xl); overflow: hidden; border: 6px solid #fff; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a { top: 0; left: 5%; width: 60%; aspect-ratio: 4/5; transform: rotate(-4deg); }
.photo-b { top: 15%; right: 0; width: 55%; aspect-ratio: 1; transform: rotate(5deg); }
.photo-c { bottom: 0; left: 0; width: 50%; aspect-ratio: 4/3; transform: rotate(3deg); }
.doodle { position: absolute; font-size: 36px; pointer-events: none; }
.doodle.star { top: -10px; right: 40%; color: var(--berry); transform: rotate(15deg); }
.doodle.heart { bottom: 5%; right: -5%; color: var(--rose); transform: rotate(-10deg); }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero { padding: 60px 0 50px; background: var(--peach); position: relative; overflow: hidden; }
.page-hero::before, .page-hero::after { content:''; position: absolute; border-radius: 50%; opacity: 0.5; pointer-events: none; }
.page-hero::before { width: 200px; height: 200px; background: var(--sun); top: -60px; right: 5%; }
.page-hero::after { width: 140px; height: 140px; background: var(--mint); bottom: -40px; left: 8%; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--berry); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }
.page-hero h1 { font-size: 48px; margin: 0; }
.page-hero .subtitle { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 700px; }

/* ----------  Sections  ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: var(--cream); }
.section.sky { background: var(--sky); }
.section.peach { background: var(--peach); }
.section.berry { background: var(--berry); color: #fff; }
.section-head { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.section-head .label { color: var(--berry); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section.berry .section-head .label { color: var(--sun); }
.section.berry .section-head p { color: rgba(255,255,255,0.9); }

/* ----------  Values grid (homepage)  ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { padding: 32px 26px; border-radius: var(--r-lg); text-align: center; transition: transform 0.2s; }
.value-card:hover { transform: translateY(-6px); }
.value-card:nth-child(4n+1) { background: var(--peach); }
.value-card:nth-child(4n+2) { background: var(--sky); }
.value-card:nth-child(4n+3) { background: var(--mint); }
.value-card:nth-child(4n+4) { background: #fdf0d5; }
.value-icon { width: 64px; height: 64px; background: #fff; border-radius: var(--r-md); margin: 0 auto 18px; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.value-card h3 { font-size: 19px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ----------  Founder/feature split  ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.split.reverse { grid-template-columns: 1.3fr 1fr; }
.split-photo { aspect-ratio: 4/5; border-radius: var(--r-xl); background-size: cover; background-position: center; box-shadow: 12px 12px 0 var(--sun); transform: rotate(-2deg); }
.split.reverse .split-photo { box-shadow: -12px 12px 0 var(--rose); transform: rotate(2deg); }
.split-text .label { color: var(--berry); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.split-text blockquote { font-size: 19px; font-style: italic; padding: 20px 24px; background: #fff; border-radius: var(--r-md); margin: 20px 0; box-shadow: 4px 4px 0 var(--rose); border: 0; }
.split-text p { color: var(--muted); margin-bottom: 12px; }

/* ----------  Fees  ---------- */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.fee-card { background: #fff; padding: 36px 28px; border-radius: var(--r-lg); text-align: center; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.fee-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.fee-card.featured { background: var(--sun); }
.fee-card .grade { font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--berry); }
.fee-card .price { font-size: 46px; font-weight: 800; margin: 14px 0 4px; letter-spacing: -1px; }
.fee-card .price small { font-size: 16px; opacity: 0.6; font-weight: 600; }
.fee-card .total { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.fee-card .apply { display: inline-block; background: var(--berry); color: #fff; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.fee-card.featured .apply { background: var(--ink); }
.fee-card .apply:hover { color: #fff; opacity: 0.9; }

.extras-table { max-width: 700px; margin: 50px auto 0; background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.extras-table h3 { font-size: 20px; margin-bottom: 16px; text-align: center; }
.extras-table table { width: 100%; border-collapse: collapse; }
.extras-table td { padding: 14px 12px; border-bottom: 1px dashed var(--border); }
.extras-table td:last-child { text-align: right; font-weight: 700; color: var(--berry); }
.extras-table tr:last-child td { border-bottom: 0; }

/* ----------  Testimonial / Quote band  ---------- */
.quote-band { padding: 80px 0; background: var(--cream); text-align: center; }
.quote-band-inner { max-width: 800px; margin: 0 auto; }
.quote-band .quote-mark { font-size: 80px; color: var(--sun); line-height: 0.5; margin-bottom: 20px; font-family: Georgia, serif; }
.quote-band p { font-size: 24px; font-style: italic; color: var(--ink); line-height: 1.5; margin-bottom: 24px; }
.quote-band cite { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--berry); font-style: normal; }

/* ----------  CTA strip  ---------- */
.cta-strip { padding: 80px 0; background: var(--berry); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before, .cta-strip::after { content:''; position: absolute; border-radius: 50%; opacity: 0.1; background: #fff; pointer-events: none; }
.cta-strip::before { width: 300px; height: 300px; top: -100px; left: -50px; }
.cta-strip::after { width: 200px; height: 200px; bottom: -50px; right: 10%; }
.cta-strip .container { position: relative; z-index: 2; }
.cta-strip h2 { font-size: 44px; line-height: 1.15; margin-bottom: 16px; }
.cta-strip p { font-size: 18px; opacity: 0.95; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ----------  Content (default Markdown body)  ---------- */
.page-content { max-width: 820px; margin: 0 auto; padding: 60px 28px; font-size: 17px; line-height: 1.75; }
.page-content h1, .page-content h2, .page-content h3 { margin-top: 1.5em; }
.page-content h2 { color: var(--ink); font-size: 30px; }
.page-content h3 { color: var(--berry); font-size: 22px; }
.page-content h4 { color: var(--ink); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.page-content ul, .page-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.page-content li { margin-bottom: 0.5em; }
.page-content blockquote { background: var(--peach); border-left: 4px solid var(--berry); padding: 18px 22px; border-radius: var(--r-sm); margin: 1.5em 0; color: var(--ink); font-style: italic; }
.page-content blockquote p:last-child { margin-bottom: 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.page-content table td, .page-content table th { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.page-content table th { background: var(--peach); font-weight: 800; }
.page-content table tr:last-child td { border-bottom: 0; }
.page-content img { border-radius: var(--r-md); margin: 1em 0; }
.page-content a { font-weight: 700; }
.page-content a:hover { text-decoration: underline; }

/* ----------  Gallery  ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.gallery-grid a { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ----------  Cards (generic content card layout)  ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.content-card { background: #fff; padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid var(--border); transition: transform 0.2s; }
.content-card:hover { transform: translateY(-4px); }
.content-card h3 { color: var(--berry); margin-bottom: 10px; }
.content-card p { color: var(--muted); margin: 0; }

/* ----------  Steps (process list)  ---------- */
.steps { max-width: 800px; margin: 0 auto; padding: 0 28px; }
.step { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px dashed var(--border); }
.step:last-child { border-bottom: 0; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; background: var(--berry); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 4px 4px 0 var(--sun); }
.step h3 { margin: 4px 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* ----------  Forms  ---------- */
.form { max-width: 640px; margin: 0 auto; background: #fff; padding: 36px; border-radius: var(--r-lg); box-shadow: 0 6px 24px rgba(0,0,0,0.05); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--r-sm); font-family: inherit; font-size: 15px; background: var(--cream); transition: border 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--berry); background: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form .checkbox { display: flex; gap: 10px; align-items: flex-start; }
.form .checkbox input { width: auto; }
.form button { width: 100%; }

/* ----------  Info grid (contact, etc.)  ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.info-card { background: #fff; padding: 28px; border-radius: var(--r-lg); text-align: center; border: 1px solid var(--border); }
.info-card .icon { font-size: 32px; margin-bottom: 12px; }
.info-card h3 { font-size: 17px; margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { color: var(--berry); font-weight: 700; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.site-footer h4 { color: var(--sun); font-size: 16px; margin-bottom: 18px; font-weight: 800; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--sun); }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text small { color: rgba(255,255,255,0.5); }
.footer-bottom { max-width: var(--maxw); margin: 50px auto 0; padding: 24px 28px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; opacity: 0.6; font-size: 13px; }

/* ----------  Utilities  ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 40px; }
  .hero-inner, .split, .split.reverse { grid-template-columns: 1fr; }
  .split-photo { max-width: 400px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .fees-grid, .info-grid, .cards-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-stack { max-width: 100%; }

  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--cream); padding: 80px 28px 28px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.25s; overflow-y: auto; z-index: 60; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .main-nav ul ul { display: block; position: static; box-shadow: none; padding-left: 20px; background: transparent; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .page-hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .cta-strip h2 { font-size: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 540px) {
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: 32px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .quote-band p { font-size: 18px; }
}
