/* =========================================================
   Play to Grow Therapy — Brand Site Stylesheet
   Tokens pulled directly from the Brand Style Guide v1.0
   ========================================================= */

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

:root {
  /* Brand palette */
  --terracotta: #C97A62;
  --terracotta-deep: #B36249;
  --mustard: #E3AC5A;
  --sage: #8B9A78;
  --sage-deep: #74846260;
  --dusty-blue: #7C9AAE;
  --mauve: #93798F;
  --cream: #FAF6EF;
  --paper: #FFFFFF;
  --ink: #55584F;

  /* Derived surface tones */
  --cream-deep: #F2EADA;
  --sage-tint: #EDF0E7;
  --terracotta-tint: #F7E9E3;
  --blue-tint: #EAF0F3;
  --mauve-tint: #F1EAF0;
  --mustard-tint: #FBF0DD;
  --line: #E4DECE;

  /* Type */
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1120px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: #3F4239;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* -----------------------------------------
   Eyebrow labels — small caps, color-coded
   ----------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow.terracotta { color: var(--terracotta-deep); }
.eyebrow.sage { color: #5F6E4E; }
.eyebrow.blue { color: #4C7186; }
.eyebrow.mauve { color: var(--mauve); }
.eyebrow.mustard { color: #9C7325; }

/* -----------------------------------------
   Navigation
   ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #3F4239;
}
.nav-brand img { width: 52px; height: 44px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--terracotta-tint); color: var(--terracotta-deep); }
.nav-links a.active { background: var(--terracotta); color: var(--paper); }

.nav-cta {
  background: var(--sage);
  color: var(--paper) !important;
  padding: 11px 22px !important;
  border-radius: 999px;
  font-weight: 800 !important;
}
.nav-cta:hover { background: #7A8968 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 14px; }
}

/* -----------------------------------------
   Roofline signature motif
   The house-peak silhouette from the logo, used
   as a recurring section divider throughout the site.
   ----------------------------------------- */
.roofline {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
}
.roofline path { fill: var(--cream); }
.roofline.to-paper path { fill: var(--paper); }
.roofline.to-cream path { fill: var(--cream); }

/* -----------------------------------------
   Buttons
   ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--paper); box-shadow: 0 8px 20px -8px rgba(201,122,98,0.6); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-secondary { background: var(--paper); color: #3F4239; border: 2px solid var(--line); }
.btn-secondary:hover { border-color: var(--sage); }
.btn-outline-light { background: transparent; color: var(--paper); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* -----------------------------------------
   Hero
   ----------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.55;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow-heart {
  color: var(--terracotta);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 20px;
  box-shadow: 0 24px 48px -24px rgba(85,88,79,0.25);
}
.hero-art img { border-radius: var(--radius-md); width: 100%; }

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-item { font-size: 0.92rem; font-weight: 700; color: #6B6E62; display: flex; align-items: center; gap: 8px; }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* -----------------------------------------
   Section shells
   ----------------------------------------- */
section { position: relative; }
.section-pad { padding: 80px 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.align-left { margin: 0 0 48px; text-align: left; }

/* -----------------------------------------
   Cards — services / values
   ----------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Mega hero headline — lowercase, stacked, color-coded per word */
.hero-mega {
  text-transform: lowercase;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 0.4em;
}
.hero-mega span { display: block; }

/* Referral reassurance banner */
.referral-note {
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.referral-note .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(85,88,79,0.3); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}
.icon-terracotta { background: var(--terracotta-tint); }
.icon-sage { background: var(--sage-tint); }
.icon-blue { background: var(--blue-tint); }
.icon-mustard { background: var(--mustard-tint); }
.icon-mauve { background: var(--mauve-tint); }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 14px;
}
.tag-ages { background: var(--sage-tint); color: #5F6E4E; }

/* -----------------------------------------
   Team cards
   ----------------------------------------- */
.team-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-photo {
  aspect-ratio: 4/3.4;
  background: linear-gradient(135deg, var(--sage-tint), var(--blue-tint));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--paper);
}
.team-body { padding: 26px; }
.team-role { color: var(--terracotta-deep); font-weight: 800; font-size: 0.9rem; margin-bottom: 10px; }

/* -----------------------------------------
   FAQ accordion
   ----------------------------------------- */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #3F4239;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--terracotta-tint);
  color: var(--terracotta-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--terracotta); color: var(--paper); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 26px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 26px 24px; }
.faq-a p { color: #6B6E62; margin: 0; }

/* -----------------------------------------
   CTA banner
   ----------------------------------------- */
.cta-banner {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.site-footer {
  background: #3F4239;
  color: #D9D8CE;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand span { font-family: var(--display); font-weight: 700; color: var(--paper); font-size: 1.1rem; }
.site-footer h4 { color: var(--paper); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--mustard); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
  color: #A6A599;
}

/* -----------------------------------------
   Page hero (inner pages)
   ----------------------------------------- */
.page-hero {
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }

/* -----------------------------------------
   Forms
   ----------------------------------------- */
.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 800; font-size: 0.88rem; color: #3F4239; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--dusty-blue);
  box-shadow: 0 0 0 3px rgba(124,154,174,0.2);
}
.form-note { font-size: 0.85rem; color: #8A8D80; margin-top: 6px; }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--dusty-blue);
  outline-offset: 2px;
}

/* -----------------------------------------
   Info strip (contact page)
   ----------------------------------------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag-pill {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B6E62;
}
