/* ==========================================================================
   Wild Minds — Stylesheet
   Plain CSS, no build step, no framework. Safe to host on any static host.
   ========================================================================== */

:root {
  --ivory: #FAF7F1;
  --cream: #F3EEE5;
  --charcoal: #2A2622;
  --charcoal-soft: #4A443D;
  --sage: #8A9A82;
  --sage-dark: #6E7F65;
  --sage-light: #E4E9DF;
  --taupe-light: #E9E2D6;
  --border: #E4DCCD;

  /* Deeper accent tones — used for section color-blocking */
  --deep-sage: #4B5B43;       /* rich forest-olive for dark bands */
  --deep-sage-soft: #5E6E54;
  --terracotta: #B36B45;       /* warm clay accent */
  --terracotta-light: #E9CDB6;
  --terracotta-tint: #F3E3D5;
  --taupe-deep: #D9CBB3;       /* deeper taupe band */
  --olive-tint: #DFE3D2;       /* muted olive band */

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-soft: 0 4px 24px rgba(42, 38, 34, 0.06);
  --shadow-card: 0 2px 16px rgba(42, 38, 34, 0.05);

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: #d7ddce; color: var(--charcoal); }

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; }

p { margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--sage-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(42,38,34,0.2);
}
.btn-secondary:hover { border-color: rgba(42,38,34,0.5); }
.btn-block { width: 100%; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { font-family: var(--font-serif); font-size: 1.4rem; color: var(--charcoal); }
.nav-links {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a { font-size: 0.9rem; color: var(--charcoal-soft); }
.nav-links a:hover { color: var(--charcoal); }
.nav-cta-desktop { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(250, 247, 241, 0.97);
  backdrop-filter: blur(10px);
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 420px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0 24px 24px; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 0.9rem 0; color: var(--charcoal-soft); }
.mobile-menu .mobile-cta { border: none; padding-top: 1rem; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(160deg, var(--taupe-light) 0%, var(--ivory) 45%, var(--ivory) 100%);
}
.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}
.hero-copy p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }

.hero-portrait-wrap { position: relative; max-width: 26rem; margin: 0 auto; }
.hero-portrait-bg {
  position: absolute;
  inset: -16px;
  background: var(--sage-light);
  border-radius: 1.25rem;
  transform: rotate(2deg);
  z-index: -1;
}
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--taupe-light);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  right: 1rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.25rem;
  width: max-content;
}
.hero-badge .num { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1; }
.hero-badge .label { font-size: 0.75rem; color: var(--charcoal-soft); margin-top: 0.25rem; white-space: nowrap; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3.4rem; }
  .hero-buttons { flex-direction: row; }
}

/* ---------- Credentials ---------- */
.credentials {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--taupe-deep);
}
.credentials h2 { text-align: center; font-size: 1.75rem; margin-bottom: 3rem; color: var(--charcoal); }
.cred-grid { display: grid; gap: 2.5rem; }
.cred-card { border-top: 2px solid var(--terracotta); padding-top: 1.5rem; text-align: center; }
.cred-card .num { font-family: var(--font-serif); font-size: 0.85rem; color: var(--terracotta); }
.cred-card h3 { font-size: 1.3rem; margin-top: 0.5rem; }
.cred-card p { font-size: 0.9rem; color: var(--charcoal-soft); margin-top: 0.35rem; }

@media (min-width: 640px) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
  .cred-card { text-align: left; }
}

/* ---------- About ---------- */
.about { padding: 5.5rem 0; background: var(--ivory); }
.about-grid { display: grid; gap: 3.5rem; align-items: center; }
.about-portrait-wrap { position: relative; max-width: 24rem; margin: 0 auto; }
.about-portrait-bg {
  position: absolute; inset: -16px;
  background: var(--taupe-light);
  border-radius: 1.25rem;
  transform: rotate(-2deg);
  z-index: -1;
}
.about-portrait {
  aspect-ratio: 4/5; border-radius: 1.25rem; overflow: hidden;
  box-shadow: var(--shadow-soft); background: var(--sage-light);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.about .role { color: var(--charcoal-soft); margin-bottom: 1.5rem; }
.about p.body-text { color: var(--charcoal-soft); line-height: 1.75; margin-bottom: 1.5rem; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.about-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.about-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage); margin-top: 0.5rem; flex-shrink: 0;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Philosophy ---------- */
.philosophy { padding: 6rem 0; background: linear-gradient(165deg, var(--charcoal) 0%, var(--deep-sage) 100%); color: var(--ivory); text-align: center; }
.philosophy-inner { max-width: 50rem; margin: 0 auto; }
.philosophy h2 {
  font-style: italic; font-size: 2.1rem; line-height: 1.3; margin-bottom: 1.25rem;
}
.philosophy > .philosophy-inner > p {
  color: rgba(250,247,241,0.7); max-width: 34rem; margin: 0 auto 4rem; line-height: 1.7;
}
.principles { display: grid; gap: 2.5rem; text-align: left; }
.principle { border-top: 1px solid rgba(250,247,241,0.2); padding-top: 1.5rem; }
.principle .num { font-family: var(--font-serif); font-size: 0.85rem; color: var(--terracotta-light); }
.principle h3 { font-size: 1.4rem; margin: 0.75rem 0; }
.principle p { color: rgba(250,247,241,0.65); font-size: 0.9rem; line-height: 1.65; }

@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
  .philosophy h2 { font-size: 2.75rem; }
}

/* ---------- Support Areas ---------- */
.support { padding: 5rem 0; background: var(--olive-tint); }
.support-head { max-width: 40rem; margin: 0 auto 3.5rem; text-align: center; }
.support-head h2 { font-size: 2rem; margin-bottom: 1.1rem; }
.support-head p { color: var(--charcoal-soft); line-height: 1.7; }
.support-grid { display: grid; gap: 1.25rem; }
.support-card {
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-left: 3px solid var(--sage);
}
.support-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.support-card p { font-family: var(--font-serif); font-size: 1.1rem; }

@media (min-width: 640px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- How It Works ---------- */
.how { padding: 5.5rem 0; background: var(--ivory); }
.how-head { max-width: 38rem; margin-bottom: 4rem; }
.how-head h2 { font-size: 2rem; margin-bottom: 1.1rem; }
.how-head p { color: var(--charcoal-soft); line-height: 1.7; }
.steps { display: grid; gap: 2.5rem; margin-bottom: 3.5rem; }
.step .num { font-family: var(--font-serif); font-size: 2.5rem; color: var(--terracotta-light); }
.step h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.step p { font-size: 0.9rem; color: var(--charcoal-soft); line-height: 1.65; }

@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Lead / Appointment section ---------- */
.lead { padding: 5.5rem 0; background: var(--taupe-deep); }
.lead-grid { display: grid; gap: 3.5rem; align-items: start; }
.lead-copy h2 { font-size: 2rem; margin-bottom: 1.1rem; }
.lead-copy p.lead-desc { color: var(--charcoal-soft); line-height: 1.7; margin-bottom: 2rem; max-width: 28rem; }
.lead-divider { width: 4rem; height: 1px; background: var(--sage); margin-bottom: 2rem; display: none; }
.lead-note { display: none; font-size: 0.85rem; color: rgba(74,68,61,0.8); max-width: 22rem; }

@media (min-width: 860px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-divider, .lead-note { display: block; }
}

.form-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
}
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-field input, .form-field select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: rgba(255,255,255,0.6);
  color: var(--charcoal);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus { background: #fff; border-color: var(--sage); outline: none; }
.form-field input.invalid, .form-field select.invalid { border-color: #f3a3a3; }
.field-error { font-size: 0.78rem; color: #e05555; margin-top: 0.4rem; }
.form-row-2 { display: grid; gap: 1.25rem; }
@media (min-width: 560px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-alert {
  border-radius: 0.75rem;
  background: #fdf1f1;
  border: 1px solid #fbdada;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}
.form-alert .title { font-size: 0.9rem; color: #e05555; font-weight: 600; margin-bottom: 0.2rem; }
.form-alert .desc { font-size: 0.78rem; color: #d67373; }

.form-footnote { font-size: 0.75rem; color: rgba(74,68,61,0.7); text-align: center; margin-top: 1rem; }

/* Success state */
.success-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 3.5rem 2rem;
  text-align: center;
}
.success-icon {
  margin: 0 auto 1.5rem;
  height: 3.5rem; width: 3.5rem;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--sage-dark);
  animation: scaleIn 0.4s ease-out;
}
.success-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.success-card p { color: var(--charcoal-soft); }
.hidden { display: none !important; }

/* ---------- FAQ ---------- */
.faq { padding: 5.5rem 0; }
.faq-inner { max-width: 42rem; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 3.5rem; }
.faq-head h2 { font-size: 2rem; margin-bottom: 1rem; }
.faq-head p { color: var(--charcoal-soft); }
.faq-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; text-align: left; padding: 1.5rem 0;
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--charcoal);
}
.faq-icon {
  flex-shrink: 0; height: 1.75rem; width: 1.75rem; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
  color: var(--charcoal); font-size: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { font-size: 0.9rem; color: var(--charcoal-soft); line-height: 1.7; padding-bottom: 1.5rem; padding-right: 2rem; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 6rem 0; background: linear-gradient(135deg, var(--sage-light) 0%, var(--terracotta-tint) 100%); text-align: center; }
.final-cta-inner { max-width: 34rem; margin: 0 auto; }
.final-cta h2 { font-size: 2.1rem; line-height: 1.25; margin-bottom: 1.1rem; }
.final-cta p { color: var(--charcoal-soft); margin-bottom: 2.25rem; }
@media (min-width: 640px) { .final-cta h2 { font-size: 2.75rem; } }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0; background: var(--charcoal); color: rgba(250,247,241,0.8); }
.footer-top {
  display: flex; flex-direction: column; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p.name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ivory); margin-bottom: 0.4rem; }
.footer-brand p.tagline { font-size: 0.9rem; color: rgba(250,247,241,0.6); max-width: 18rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ivory); }
.footer-contact { font-size: 0.9rem; }
.footer-contact p { color: rgba(250,247,241,0.6); margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(250,247,241,0.15); padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.75rem; color: rgba(250,247,241,0.5); margin-bottom: 0.5rem; }
.footer-bottom p:last-child { margin-bottom: 0; max-width: 40rem; }

@media (min-width: 860px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: #d8cfbe; border-radius: 8px; }
