/* ============================================================
   Rhythmically Rooted Family — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --teal:       #22c6b8;
  --tealDark:   #0fa39a;
  --tealLite:   #bff6f1;
  --sky:        #9fe2ff;
  --purple:     #7c3aed;
  --purpleMid:  #9b59f5;
  --purpleLite: #d8c8ff;
  --pink:       #f472b6;
  --pinkLite:   #fce7f3;
  --ink:        #1e1b4b;
  --muted:      #64748b;
  --cardBg:     rgba(255,255,255,.96);
  --border:     rgba(30,27,75,.09);
  --shadow:     0 16px 48px rgba(30,27,75,.11);
  --shadowSm:   0 6px 20px rgba(30,27,75,.08);
  --radius:     20px;
  --radiusSm:   12px;
  --max:        1100px;
  --font:       'Nunito', system-ui, -apple-system, sans-serif;
  --grad:       linear-gradient(135deg, var(--teal), var(--purple));
  --gradWarm:   linear-gradient(135deg, var(--purple), var(--pink));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
}

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

/* ── Fixed background gradient ─────────────────────────────── */
.page-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(800px 550px at 5% 5%,  rgba(34,198,184,.18), transparent 55%),
    radial-gradient(700px 500px at 95% 5%,  rgba(124,58,237,.16), transparent 55%),
    radial-gradient(700px 500px at 80% 95%, rgba(244,114,182,.12), transparent 55%),
    #fff;
}

/* Musical note pattern overlay */
.page-pattern {
  position: fixed; inset: -80px; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M70 40v85c0 16-16 28-34 28S2 141 2 125s16-28 34-28c10 0 19 3 24 8V40l80-18v78c0 16-16 28-34 28s-34-12-34-28 16-28 34-28c10 0 19 3 24 8V28z'/%3E%3Cpath d='M178 58v66c0 14-14 24-30 24s-30-10-30-24 14-24 30-24c9 0 16 2 20 6V58l40-10v52'/%3E%3Cpath d='M22 182c18-16 34-16 52 0s34 16 52 0 34-16 52 0 34 16 52 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 64px 0; }

/* ── Announcement bar ──────────────────────────────────────── */
.topbar {
  background: var(--grad);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .2px;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(30,27,75,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-name {
  display: block;
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
}
.brand-tagline {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .3px;
}

/* Nav links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navlinks a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
.navlinks a:hover,
.navlinks a.active { color: var(--ink); background: rgba(34,198,184,.1); }
.navlinks a.active { color: var(--tealDark); }

/* CTA button in nav */
.nav-cta {
  margin-left: 6px;
  background: var(--grad) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 9px 18px !important;
  box-shadow: 0 6px 18px rgba(124,58,237,.22);
  transition: transform .15s, box-shadow .15s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124,58,237,.30) !important;
  background: var(--grad) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

/* Mobile nav */
@media (max-width: 820px) {
  .hamburger { display: flex; align-items: center; }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: 0 10px 30px rgba(30,27,75,.10);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 8px; }
  .brand-name { font-size: 14px; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadowSm); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(34,198,184,.22);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(34,198,184,.35); }

.btn-purple {
  background: var(--gradWarm);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(124,58,237,.22);
}
.btn-purple:hover { box-shadow: 0 14px 36px rgba(124,58,237,.35); }

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--tealDark);
  background: rgba(34,198,184,.06);
}
.btn-outline:hover { background: rgba(34,198,184,.14); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ── Section header ─────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: rgba(34,198,184,.14);
  border: 1px solid rgba(34,198,184,.28);
  color: var(--tealDark);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-tag.purple {
  background: rgba(124,58,237,.10);
  border-color: rgba(124,58,237,.22);
  color: var(--purple);
}
.section-tag.pink {
  background: rgba(244,114,182,.10);
  border-color: rgba(244,114,182,.22);
  color: #c2185b;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 36px;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-swoosh {
  position: absolute; right: -40px; top: -50px;
  width: 180px; height: 180px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(34,198,184,.45), rgba(124,58,237,.25), transparent 70%);
  pointer-events: none;
}
.card-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card ul { color: var(--muted); padding-left: 18px; }
.card ul li { margin-bottom: 4px; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(700px 400px at 10% 50%, rgba(34,198,184,.22), transparent 60%),
    radial-gradient(600px 400px at 90% 50%, rgba(124,58,237,.18), transparent 60%),
    #f8f9ff;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%237c3aed' stroke-width='2' opacity='0.4'%3E%3Cpath d='M70 40v85c0 16-16 28-34 28S2 141 2 125s16-28 34-28c10 0 19 3 24 8V40l80-18v78c0 16-16 28-34 28s-34-12-34-28 16-28 34-28c10 0 19 3 24 8V28z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px; opacity: .05;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.6px;
  margin-bottom: 14px;
}
.page-hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: 28px;
}

/* ── Step cards ─────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
}
.step-num {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--grad);
  color: #fff; font-weight: 900; font-size: 20px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ── Schedule rows ──────────────────────────────────────────── */
.schedule { display: grid; gap: 12px; }
.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px;
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowSm);
  transition: box-shadow .18s;
}
.schedule-row:hover { box-shadow: var(--shadow); }
.schedule-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--teal);
  margin-right: 8px;
  flex-shrink: 0;
}
.schedule-row strong { font-size: 16px; font-weight: 900; }
.schedule-row span { color: var(--muted); font-size: 14.5px; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.testimonial {
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
  padding: 28px;
}
.testimonial blockquote {
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}
.testimonial .who { font-weight: 900; font-size: 15px; color: var(--ink); }
.testimonial .stars { color: #f59e0b; font-size: 18px; margin-bottom: 10px; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 72px 22px;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; }
.cta-band p { font-size: 18px; opacity: .88; max-width: 55ch; margin: 0 auto 28px; }
.btn-white {
  background: #fff;
  color: var(--purple);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.btn-white:hover { box-shadow: 0 16px 36px rgba(0,0,0,.22); }

/* ── Feature band (alternating) ─────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature.flip { direction: rtl; }
.feature.flip > * { direction: ltr; }

.feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(34,198,184,.2), rgba(124,58,237,.18));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
}
.feature-visual svg { width: 80%; height: auto; }

/* ── Contact form ───────────────────────────────────────────── */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 800; font-size: 14px; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(34,198,184,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Info card (contact page) ──────────────────────────────── */
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.info-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
}
.info-card .icon { font-size: 36px; margin-bottom: 12px; }
.info-card h3 { font-weight: 900; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 15px; }
.info-card a { color: var(--purple); text-decoration: none; font-weight: 800; }
.info-card a:hover { text-decoration: underline; }

/* ── Values grid ────────────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.value-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowSm);
}
.value-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(34,198,184,.12);
  display: grid; place-items: center;
}
.value-card h4 { font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: 14.5px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 56px 22px 32px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.footer-brand .logo { background: var(--grad); margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; max-width: 32ch; margin-top: 10px; }
footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: 14.5px;
  font-weight: 700;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--tealLite); text-decoration: none; font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip { direction: ltr; }
  .feature-visual { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 48px 0; }
  .page-hero { padding: 52px 0 44px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
