/* ==========================================================================
   Clarity Therapy, Julia Garden (mockup on the Joyful template)
   Layout, palette and type sampled from sunshinecounselingpllc.com.
   Fonts are an exact match: DM Serif Display + Karla (both Google Fonts).
   Botanical cutouts are original SVG symbols defined in index.html.
   ========================================================================== */

:root {
  --olive: #335100;          /* all text on light sections, wave lines */
  --butter: #f6db8c;         /* hero + footer */
  --moss: #607645;           /* intro band + contact */
  --sage: #afb88b;           /* welcome + FAQ */
  --sage-pale: #d5d7b7;      /* specialties */
  --mustard: #e5bd48;        /* quote band, submit */
  --terracotta: #ae6c4a;     /* header button, accents */
  --peach: #dca788;          /* decorative leaves */
  --cream: #f9f7e8;          /* values section, light text */

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --script: "Sacramento", cursive;

  --gutter: clamp(20px, 3.6vw, 50px);
  --max: 1300px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin: 0 auto; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--cream); padding: 8px 12px; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 300px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.btn:hover { filter: brightness(0.93); }
.btn--moss { background: var(--moss); min-height: 92px; min-width: 370px; }
.btn--mustard { background: var(--mustard); color: #000; min-height: 48px; }

/* Botanical decoration ---------------------------------------------------- */

.deco { position: absolute; pointer-events: none; z-index: 1; }
.deco svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Wavy section edges: each section owns a wave that overlaps the one above */
.band { position: relative; }
.wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 32px;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Header ------------------------------------------------------------------ */

.site-header { background: var(--butter); position: relative; z-index: 20; }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 124px;
}
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 19px; font-weight: 400; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header .btn { justify-self: end; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--olive); cursor: pointer; }

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  position: relative;
  padding-top: 12px;
}
.logo-sun { position: absolute; left: 4px; top: -4px; width: 34px; height: 20px; }
.nav .hide-lg { display: none; }
.logo-name { font-family: var(--serif); font-size: 40px; letter-spacing: -0.01em; }
.logo-script { font-family: var(--script); font-size: 40px; margin: -10px 0 0 48px; line-height: 1; }

/* Hero -------------------------------------------------------------------- */

.hero {
  background: var(--butter);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 90px 0 200px;
  text-align: center;
}
.hero .wrap { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.06; max-width: 820px; margin: 0 auto; }
.hero p { font-size: 22px; margin: 34px 0 0; }

/* Intro band -------------------------------------------------------------- */

.intro { background: var(--moss); color: var(--cream); padding: 110px 0 130px; }
.intro .sun { width: 44px; margin: 0 auto 26px; }
.intro h2 { font-size: clamp(34px, 3.5vw, 48px); margin-bottom: 38px; }
.intro p { margin: 0; }

/* Welcome ----------------------------------------------------------------- */

.welcome { background: var(--sage); padding: 110px 0 120px; }
.welcome .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.portrait { position: relative; width: min(470px, 100%); justify-self: center; }
.portrait img { width: 100%; aspect-ratio: 470 / 575; object-fit: cover; object-position: 50% 25%; position: relative; z-index: 2; }
.portrait .d1 { left: -8%; top: -6%; width: 34%; height: 30%; z-index: 3; }
.portrait .d2 { left: -12%; top: 16%; width: 16%; height: 16%; z-index: 3; }
.portrait .d3 { right: -14%; bottom: -1%; width: 30%; height: 33%; z-index: 3; }
.welcome h2 { font-size: clamp(48px, 5vw, 66px); margin-bottom: 30px; }
.welcome p { margin: 0 0 36px; }

.accordion { border-top: 1px solid var(--olive); }
.accordion details { border-bottom: 1px solid var(--olive); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 26px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { flex-shrink: 0; transition: transform 0.3s; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.accordion .answer { padding: 0 0 22px; font-size: 18px; }
.accordion .answer p { margin: 0 0 12px; }
.accordion .answer ul { margin: 0; padding-left: 20px; }

/* Values ------------------------------------------------------------------ */

.values { background: var(--cream); padding: 110px 0 130px; }
.values .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; max-width: 1180px; margin: 0 auto; }
.value { text-align: center; }
.value svg { width: 52px; height: 64px; margin: 0 auto 36px; display: block; }
.value h3 { font-size: 36px; margin-bottom: 28px; }
.value p { margin: 0; font-size: 16px; }

/* Specialties ------------------------------------------------------------- */

.specialties { background: var(--sage-pale); padding: 120px 0 110px; overflow-x: clip; }
.specialties .wrap { position: relative; z-index: 2; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; max-width: 1150px; margin: 0 auto; }
.card {
  background: var(--cream);
  border: 1px solid var(--olive);
  border-radius: 30px;
  padding: 56px 52px 50px;
}
.card h2 { font-size: 36px; margin-bottom: 36px; }
.card p { margin: 0 0 30px; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { position: relative; padding-left: 22px; }
.lines li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 12px; height: 1px; background: currentColor; }
.card .note { font-style: italic; font-size: 15px; margin: 34px 0 0; }
.specialties .cta { margin-top: 80px; }
.specialties .d1 { left: -2%; top: 58%; width: 150px; height: 180px; }
.specialties .d2 { right: -2%; top: 4%; width: 110px; height: 330px; }
.specialties .d3 { left: -40px; top: 80%; width: 140px; height: 140px; }
.specialties .d4 { right: -30px; top: 60%; width: 150px; height: 140px; }

/* Quote ------------------------------------------------------------------- */

.quote { background: var(--mustard); padding: 150px 0 140px; text-align: center; overflow-x: clip; }
.quote .rays { position: absolute; left: 50%; top: -28px; width: 200px; transform: translateX(-50%); z-index: 3; }
.quote blockquote { margin: 0 auto; max-width: 1050px; }
.quote blockquote p { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; margin: 0; }
.quote cite { display: block; font-style: normal; font-size: 22px; margin-top: 40px; }

/* FAQ --------------------------------------------------------------------- */

.faq { background: var(--sage); padding: 110px 0 140px; overflow-x: clip; }
.faq .narrow { max-width: 740px; position: relative; z-index: 2; }
.faq h2 { font-size: clamp(52px, 5.4vw, 72px); margin-bottom: 30px; }
.faq .lede { font-size: 22px; margin: 0 0 56px; }
.faq .lede a { font-style: italic; }
.faq .d1 { left: -20px; top: 20%; width: 120px; height: 180px; }
.faq .d2 { right: -40px; top: 55%; width: 120px; height: 140px; }

/* Contact ----------------------------------------------------------------- */

.contact { background: var(--moss); color: var(--cream); padding: 120px 0 0; overflow-x: clip; }
.contact h2 { font-size: clamp(52px, 5.4vw, 72px); }
.contact .lede { font-size: 22px; max-width: 600px; margin: 22px auto 56px; }
.form { max-width: 830px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; position: relative; z-index: 3; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 19px; margin-bottom: 6px; }
.form label small { font-size: 15px; opacity: 0.7; margin-left: 6px; }
.form input,
.form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(249, 247, 232, 0.8);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream);
  border-radius: 0;
}
.form textarea { min-height: 110px; resize: vertical; border: 1px solid rgba(249, 247, 232, 0.8); padding: 10px 12px; }
.form input:focus,
.form textarea:focus { outline: 2px solid var(--mustard); outline-offset: 3px; }
.form .submit { grid-column: 1 / -1; text-align: center; margin-top: 10px; }
.form-status { grid-column: 1 / -1; text-align: center; margin: 0; min-height: 1.5em; }

.garden { position: relative; height: 300px; margin-top: 30px; }
.garden svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max(1400px, 100%); height: 300px; }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--butter); padding: 60px 0 50px; font-size: 18px; border-top: 1px solid var(--olive); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .logo { padding-top: 16px; }
.site-footer .logo-name { font-size: 52px; }
.site-footer .logo-script { font-size: 52px; margin-left: 64px; }
.site-footer .logo-sun { width: 44px; height: 26px; }
.social { display: flex; gap: 10px; margin-top: 44px; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: var(--olive); color: var(--butter); display: grid; place-items: center; }
.social svg { width: 16px; height: 16px; }
.site-footer h3 { font-size: 24px; margin: 10px 0 30px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 2px; }
.site-footer address { font-style: normal; }
.site-footer .contact-lines p { margin: 0 0 14px; }
.credit { grid-column: 1 / -1; font-family: var(--serif); font-size: 15px; margin: 30px 0 0; }

/* Clarity Therapy additions ----------------------------------------------- */

.logo--mind { flex-direction: row; align-items: center; gap: 12px; padding-top: 0; }
.logo--mind > span { display: flex; flex-direction: column; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; }
.logo--mind .logo-script { margin: -8px 0 0 30px; }
.site-footer .logo-mark { width: 58px; height: 58px; }
.site-footer .logo--mind .logo-script { margin-left: 40px; }
.intro .mind-mark { width: 52px; height: 52px; }
.footer-badge { width: 230px; height: auto; margin-top: 34px; border-radius: 6px; }
.accordion .badge { width: 260px; height: auto; margin-top: 16px; border-radius: 6px; }

.portrait img { height: auto; }

.how-intro { max-width: 760px; margin: 0 auto 80px; }
.how-intro h2 { font-size: clamp(48px, 5vw, 66px); margin-bottom: 28px; }
.how-intro p { margin: 0; }

.card .fee-row { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--olive); }
.card .fee { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 0 0 10px; }
.card .fee span { font-family: var(--sans); font-size: 18px; }
.card .fee-note { margin: 0; font-size: 17px; }

.kind { background: var(--cream); padding: 110px 0 130px; }
.kind h2 { font-size: clamp(48px, 5vw, 66px); }
.kind-lede { margin: 18px 0 64px; font-size: 20px; }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1180px; margin: 0 auto; }
.kind-card { margin: 0; background: #fff; border: 1px solid var(--olive); border-radius: 30px; padding: 40px 36px; }
.kind-card h3 { font-size: 26px; margin-bottom: 20px; }
.kind-card blockquote { margin: 0; }
.kind-card p { margin: 0; font-size: 16px; }

.direct { display: flex; justify-content: center; gap: 20px 60px; flex-wrap: wrap; margin: 0 0 56px; }
.direct p { margin: 0; display: flex; flex-direction: column; }
.direct span { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.direct a { font-family: var(--serif); font-size: 28px; text-decoration: none; }
.contact-lines .social { margin-top: 20px; }

@media (max-width: 960px) {
  .logo-mark { width: 36px; height: 36px; }
  .logo--mind .logo-script { margin-left: 22px; }
  .how-intro { margin-bottom: 56px; }
  .kind { padding: 80px 0 90px; }
  .kind-grid { grid-template-columns: 1fr; max-width: 520px; }
  .direct a { font-size: 22px; }
}

/* Reveal ------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

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

@media (max-width: 960px) {
  body { font-size: 18px; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; min-height: 100px; }
  .menu-toggle { display: block; }
  .site-header .logo { grid-column: 2; justify-self: center; }
  .site-header .btn { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--butter);
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter) 24px;
    border-bottom: 1px solid var(--olive);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(51, 81, 0, 0.2); }
  .logo-name { font-size: 32px; }
  .logo-script { font-size: 32px; margin-left: 38px; }
  .logo-sun { width: 28px; height: 16px; }
  .nav .hide-lg { display: block; }

  .hero { padding: 60px 0 170px; min-height: 0; }
  .hero .deco.up, .faq .deco, .specialties .d1, .specialties .d4 { display: none; }
  .hero .deco { transform-origin: bottom; scale: 0.7; }
  .hero p { font-size: 19px; }

  .intro, .welcome, .values, .faq { padding: 80px 0 90px; }
  .welcome .wrap { grid-template-columns: 1fr; gap: 60px; }
  .portrait { width: min(380px, 84%); }

  .values .grid { grid-template-columns: 1fr; gap: 60px; max-width: 480px; }

  .specialties { padding: 90px 0; }
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .card { padding: 40px 28px; border-radius: 24px; }
  .btn--moss { min-width: 0; width: 100%; min-height: 76px; }
  .specialties .d2 { opacity: 0.4; }

  .quote { padding: 110px 0 100px; }

  .contact { padding-top: 90px; }
  .form { grid-template-columns: 1fr; gap: 24px; }
  .garden { height: 200px; }
  .garden svg { height: 200px; width: 940px; }

  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .site-footer .logo-name { font-size: 42px; }
  .site-footer .logo-script { font-size: 42px; margin-left: 50px; }
}

@media (max-width: 520px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .accordion summary { font-size: 22px; }
}

/* NCPS logo needs a light backing on dark footers */
.footer-badge, .accordion .badge { background: #fff; padding: 10px 16px; width: 200px; }

/* Accreditation bar (about section) */
.accred {
  margin: 28px 0; padding: 16px 22px 18px; background: #fff;
  border-radius: var(--accred-radius, 14px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  max-width: 460px; text-align: left;
}
.accred p.accred-label {
  margin: 0 0 10px; padding: 0; font-family: inherit; font-size: 0.72rem; line-height: 1.4; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5b5d5f; font-weight: 500;
}
.accred ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.accred li { margin: 0; padding: 0; border: 0; background: none; }
.accred li::before { content: none; }
.accred img {
  display: block; width: auto; max-width: none; position: static; aspect-ratio: auto;
  border-radius: 0; box-shadow: none; filter: none; object-fit: contain; margin: 0;
}
.accred-ncps { height: 40px; }
.accred-bacp { height: 30px; }
.accred-ukcp { height: 42px; }
@media (max-width: 420px) {
  .accred ul { gap: 18px; }
  .accred-ncps { height: 34px; }
  .accred-bacp { height: 25px; }
  .accred-ukcp { height: 36px; }
}

/* Keep decorative shapes from causing sideways scroll on phones */
html { overflow-x: clip; }

/* === Colour schemes === */
/* Picked from the demo bar. Each scheme only swaps the colour variables. */
:root { --linen: #ddd3b8; }
:root[data-scheme="coral-terracotta"] {
  --olive: #4a1c1c; --butter: #f6cdb9; --moss: #8a3a31; --sage: #d8a491; --sage-pale: #efd6c9;
  --mustard: #ea8152; --terracotta: #5f7f4f; --peach: #f0b37e; --cream: #fbf4ee; --linen: #e8d6cb;
}
:root[data-scheme="cornflower"] {
  --olive: #1f2f5a; --butter: #d2e2f3; --moss: #3d5a8a; --sage: #a0b7d6; --sage-pale: #d8e2ee;
  --mustard: #f2c35b; --terracotta: #c4685a; --peach: #e8b4a6; --cream: #f6f8fb; --linen: #dadde6;
}
:root[data-scheme="sand-teal"] {
  --olive: #12403f; --butter: #f3e3c4; --moss: #2b6f6b; --sage: #9cc7c0; --sage-pale: #d4e7e1;
  --mustard: #f0b44c; --terracotta: #cf6a4b; --peach: #f2b99c; --cream: #fbf7ee; --linen: #e6dccb;
}
/* === /Colour schemes === */
