/* ==========================================================================
   Eastside Therapy London: site styles
   Palette: warm sand / ink / deep teal / soft clay accent
   ========================================================================== */

:root {
  --sand: #faf7f2;
  --card: #ffffff;
  --ink: #26312e;
  --ink-soft: #55625e;
  --teal: #2c6e6a;
  --teal-dark: #1f524f;
  --teal-tint: #e8f1f0;
  --clay: #b65c38;
  --line: #e6dfd4;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(38, 49, 46, 0.07);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
}

img { max-width: 100%; display: block; }

/* ---- typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 550; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); }
a  { color: var(--teal); }
ul.checklist { list-style: none; margin: 0 0 1rem; }
ul.checklist li { padding: 0.3rem 0 0.3rem 1.8rem; position: relative; color: var(--ink-soft); }
/* A scan list: two columns on wider screens so a long list of presenting
   concerns stays compact above the detailed sections. */
ul.scanlist { max-width: 780px; }
@media (min-width: 720px) {
  ul.scanlist { columns: 2; column-gap: 2.2rem; }
  ul.scanlist li { break-inside: avoid; }
}

ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.72rem;
  width: 0.95rem; height: 0.55rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: start; }

/* ---- header / nav ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; }
.brand .mono {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.brand .full { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; }
nav.links { display: flex; gap: 1.4rem; align-items: center; }
nav.links a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav.links a:hover, nav.links a[aria-current="page"] { border-bottom-color: var(--teal); }
nav.links a.cta { background: var(--teal); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; border: none; }
nav.links a.cta:hover { background: var(--teal-dark); }
#nav-toggle { display: none; }
label.burger { display: none; cursor: pointer; width: 28px; height: 22px; position: relative; }
label.burger span, label.burger span::before, label.burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 3px; background: var(--ink); border-radius: 2px; transition: 0.2s;
}
label.burger span { top: 9px; }
label.burger span::before { top: -8px; }
label.burger span::after { top: 8px; }

@media (max-width: 800px) {
  label.burger { display: block; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; gap: 1rem; align-items: flex-start;
  }
  #nav-toggle:checked ~ nav.links { display: flex; }
}

/* ---- hero ---- */
.hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--teal-tint) 0%, var(--sand) 100%); }
.hero .kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--teal); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { max-width: 17ch; margin-bottom: 1.2rem; }
.hero p { max-width: 52ch; font-size: 1.15rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
/* Calming animated background, original, no stock media. Two soft drifting blobs. */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.55; z-index: 0; pointer-events: none;
}
.hero::before { width: 46vw; max-width: 520px; aspect-ratio: 1; background: #bfe3df; top: -14%; left: -6%; animation: drift-a 20s ease-in-out infinite; }
.hero::after  { width: 40vw; max-width: 460px; aspect-ratio: 1; background: #f2e4cd; bottom: -22%; right: -4%; animation: drift-b 26s ease-in-out infinite; }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 5%) scale(1.08); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%, -6%) scale(1.06); } }
/* Optional full-bleed video hero: drop an OWNED or free-licensed clip at assets/hero.mp4 and add class "has-video". */
.hero.has-video { background: var(--ink); min-height: 540px; display: flex; align-items: center; }
.hero.has-video video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-video::before, .hero.has-video::after { display: none; }
.hero.has-video .kicker { color: #d9ede0; }

/* Over video the hero is centred, so the copy sits beside the subject rather than on it,
   and the ghost button needs a light outline: teal on dark fails contrast. */
.hero.has-video .wrap { text-align: center; }
.hero.has-video h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero.has-video p.lede { max-width: 46ch; margin-left: auto; margin-right: auto; color: #f3efe8; }
.hero.has-video .actions { justify-content: center; }
.hero.has-video .btn.ghost { border-color: #ffffff; color: #ffffff; }
.hero.has-video .btn.ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero.has-video h1 { color: #fff; }
.hero.has-video p { color: #eef4f3; }
.hero.has-video .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(31,82,79,0.45), rgba(38,49,46,0.72)); }
/* soft wave divider */
.wave { display: block; width: 100%; height: 48px; margin-top: -1px; color: var(--sand); }
/* full-bleed calming image band */
.imgband { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center; }
.imgband::before { content: ""; position: absolute; inset: 0; background: rgba(31,82,79,0.42); }
.imgband .inner { position: relative; z-index: 1; max-width: 640px; padding: 2rem 1.5rem; }
.imgband h2 { color: #fff; }
.imgband p { color: #eef4f3; margin-bottom: 0; }
.credit { font-size: 0.75rem; color: var(--ink-soft); text-align: center; padding: 0.4rem 0; opacity: 0.7; }

/* ---- buttons ---- */
.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 0.8rem 1.6rem; font-weight: 600; font-size: 1rem; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.ghost { border: 1.5px solid var(--teal); color: var(--teal); }
.btn.ghost:hover { background: var(--teal-tint); }

/* ---- trust band ---- */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; justify-content: center; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.trust span { font-size: 0.88rem; color: var(--ink-soft); letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.5rem; }
.trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.card h3 { color: var(--teal-dark); }
.card .tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 0.6rem; }
.card a.more { font-weight: 600; text-decoration: none; }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before {
  content: counter(step);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--teal);
  display: block; margin-bottom: 0.5rem;
}

/* ---- pricing ---- */
table.fees { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.fees th, table.fees td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
table.fees th { background: var(--teal); color: #fff; font-weight: 600; font-size: 0.95rem; }
table.fees tr:last-child td { border-bottom: none; }
table.fees td.price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--teal-dark); white-space: nowrap; }
.note { font-size: 0.92rem; color: var(--ink-soft); background: var(--teal-tint); border-radius: var(--radius); padding: 1rem 1.3rem; }

/* ---- FAQ ---- */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; overflow: hidden; }
details.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 3rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); }
details.faq[open] summary::after { content: "−"; }
details.faq .a { padding: 0 1.4rem 1.2rem; }
details.faq .a p:last-child { margin-bottom: 0; }

/* ---- credentials ---- */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cred { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: 0.95rem; }
.cred strong { display: block; color: var(--teal-dark); }

/* ---- banner CTA ---- */
.banner { background: var(--teal); border-radius: var(--radius); padding: 2.6rem 2rem; text-align: center; color: #fff; }
.banner h2 { color: #fff; }
.banner p { color: #d9e8e7; max-width: 55ch; margin: 0.5rem auto 1.5rem; }
.banner .btn.primary { background: #fff; color: var(--teal-dark); }
.banner .btn.primary:hover { background: var(--teal-tint); }

/* ---- forms ---- */
form.contact { display: grid; gap: 1rem; }
form.contact label { font-weight: 600; font-size: 0.95rem; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--card); color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
form.contact button { justify-self: start; cursor: pointer; border: none; }

/* ---- booking tabs + embed ---- */
.booktabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.booktab {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  border: 1.5px solid var(--teal); background: transparent; color: var(--teal);
}
.booktab:hover { background: var(--teal-tint); }
.booktab.active { background: var(--teal); color: #fff; }
.cal-holder { min-height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ---- blog ---- */
.post-meta { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
article.post h2 a { text-decoration: none; color: var(--ink); }
article.post h2 a:hover { color: var(--teal); }

/* ---- footer ---- */
footer.site { background: var(--ink); color: #cfd8d5; margin-top: 4rem; }
footer.site .wrap { padding: 3rem 1.25rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
footer.site a { color: #cfd8d5; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 0.45rem; font-size: 0.95rem; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid #3a4643; padding-top: 1.2rem; font-size: 0.85rem; color: #9fb0ac; }
.crisis { background: #f3ece0; border-left: 4px solid var(--clay); padding: 0.9rem 1.2rem; border-radius: 0 10px 10px 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---- utility ---- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--ink-soft); font-size: 0.95rem; }
.placeholder-img {
  border-radius: var(--radius); background: linear-gradient(135deg, var(--teal-tint), #f0e9dd);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.9rem; border: 1px dashed var(--line); text-align: center; padding: 1rem;
}
.portrait {
  width: 240px; max-width: 100%; height: 240px; object-fit: cover; object-position: 50% 30%;
  border-radius: 20px; box-shadow: var(--shadow); display: block;
}
@media (max-width: 700px) { .portrait { margin-left: auto; margin-right: auto; } }
figure.portrait-fig { margin: 0; }
figure.portrait-fig figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
