/* Compassion with Christelle — single stylesheet
   ----------------------------------------------------------------
   Warm, minimal, NVC-aligned. Yellow is reserved for the brand mark
   and interactive elements; everything else is calm and neutral. */

:root {
  /* --- colour --- */
  /* TODO: replace with Christelle's confirmed logo yellow hex */
  --accent: #F4C430;          /* the brand yellow — logo, button, active nav */
  --accent-soft: #FBE7A1;     /* warm wash — koha block, label pills */
  --link: #6F5300;            /* dark gold — passes WCAG AA on cream */

  --bg: #FAF7F2;              /* warm cream */
  --surface: #FFFFFF;
  --text: #36322E;            /* soft near-black */
  --muted: #6B655F;           /* secondary text */
  --line: #E7E0D6;            /* hairline borders */

  --scaffold-bg: #F4F0E8;     /* neutral editor-placeholder fill */
  --scaffold-line: #CBC3B4;   /* neutral dashed border */

  /* --- type scale (base 18px, ~1.27 ratio) --- */
  --fs-brand: clamp(2rem, 4.5vw, 2.7rem);
  --fs-hero:  clamp(1.55rem, 3.2vw, 2.05rem);
  --fs-h2:    1.6rem;
  --fs-body:  1.125rem;
  --fs-small: 0.875rem;

  /* --- layout --- */
  --frame: 60rem;             /* wide masthead / full-width elements */
  --measure: 44rem;           /* comfortable reading column for prose */
  --radius: 14px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* ---- Brand header: yellow circle above the centred title ---- */

.site-header {
  padding: 2.6rem 1rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

/* a clean solid disc sitting above the wordmark — no overlap */
.brand .logo-circle {
  width: 76px;
  height: 76px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}

.brand .brand-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-brand);
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin: 0;
}

.brand .brand-tagline {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0.4rem 0 0;
}

/* ---- Navigation ---- */

nav.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.main-nav a:hover { color: var(--text); }

nav.main-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* persistent booking CTA in the nav */
nav.main-nav a.nav-cta {
  background: var(--accent);
  color: #3a3a3a;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  border-bottom: none;
}
nav.main-nav a.nav-cta:hover { filter: brightness(0.96); color: #3a3a3a; }

/* ---- Layout: wide frame, centred reading column ---- */

main { padding: 0.5rem 0 2rem; }

/* prose sits in a comfortable centred measure within the wide frame */
section { margin: 2.2rem auto; max-width: var(--measure); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }

.hero {
  text-align: center;
  margin: 2rem auto 1.8rem;
}

.hero .lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 34rem;
}

.section-title {
  font-size: var(--fs-h2);
  margin: 0 0 0.7rem;
}

p { margin: 0 0 1.2rem; }

a { color: var(--link); }

/* ---- Cards / panels ---- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

/* needs / benefits list framed as feelings */
.needs {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.needs li {
  position: relative;
  padding-left: 1.4rem;
}

.needs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Call to action button ---- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #3a3a3a;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); }

.cta { text-align: center; margin: 2.2rem auto; }

/* ---- Editor placeholders (visible guidance for Christelle) ----
   Neutral on purpose so they never out-shout real content. */

.ph {
  border: 1px dashed var(--scaffold-line);
  background: var(--scaffold-bg);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
  text-align: left;
}

.ph-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: #ECE5D8;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.ph p { color: var(--muted); font-size: var(--fs-small); margin: 0 0 0.6rem; }
.ph p:last-child { margin-bottom: 0; }
.ph ul { color: var(--muted); font-size: var(--fs-small); margin: 0.2rem 0 0.6rem 1.1rem; }

.ph .suggested {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ph .suggested-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ph .suggested p {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.ph .suggested p:last-child { margin-bottom: 0; }

/* ---- Testimonials (real content → solid, quiet cards) ---- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card .quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.testimonial-card .who {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: auto;
}

/* ---- Koha / pricing note ---- */

.koha {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.note {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---- About photo ---- */

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--scaffold-bg);
  border: 1px dashed var(--scaffold-line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0 0.8rem;
}

/* ---- Booking (Calendly embed + graceful fallback) ---- */

.booking {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* loading hint, painted over by the iframe once it loads */
.booking::before {
  content: "Loading available times…";
  color: var(--muted);
  font-size: var(--fs-small);
}

.booking .calendly-inline-widget {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 320px;
  height: 640px;
}

/* shown when there is no live calendar yet / JS off */
.booking-fallback {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
}
.booking-fallback p { margin: 0 0 0.6rem; }
.booking-fallback p:last-child { margin: 0; }

/* ---- Focus + footer ---- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-small);
}

footer.site-footer a { color: var(--muted); }

/* ---- Responsive niceties ---- */

@media (max-width: 480px) {
  .brand .logo-circle { width: 64px; height: 64px; }
  .site-header { padding-top: 2.2rem; }
}
