/* Jeremy Lee · Counselling & CBT — shared styles */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --sand: #efe9df;
  --ink: #1d2528;
  --muted: #56626a;
  --line: #e1dbd0;
  --accent: #1f5f5b;
  --accent-hover: #174845;
  --accent-soft: #e1eeeb;
  --warm: #9a5532;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 37, 40, .05), 0 10px 28px rgba(29, 37, 40, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif TC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang HK", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1100px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 12px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.brand-text span { font-size: .8rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; text-decoration: none; }
.menu-toggle { display: none; font: 600 .95rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--accent); color: #fff; border: 2px solid var(--accent); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { padding: 9px 18px; font-size: .92rem; }

/* Sections */
section { padding: 76px 0; }
section[id] { scroll-margin-top: 72px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--warm); margin: 0 0 .9em; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.section-head { max-width: 660px; margin-bottom: 36px; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { font-size: .93rem; color: var(--muted); margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-bottom: .7em; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 54px; margin-bottom: 20px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Grids and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.topics { grid-template-columns: repeat(3, 1fr); }
.topic { display: block; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.topic h3 { margin-bottom: .35em; }
.topic p { color: var(--muted); font-size: .95rem; margin: 0; }

.process { counter-reset: process; }
.process .card { position: relative; box-shadow: none; }
.process .card::before { counter-increment: process; content: counter(process); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px; }
.process .card p { color: var(--muted); font-size: .96rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-photo { grid-template-columns: minmax(0, 380px) 1fr; }

/* CBT diagram */
.band .topic, .band .card, .band .stat { background: var(--bg); }
.cbt-diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0; }
.cbt-diagram svg { display: block; width: 100%; height: auto; }
.cbt-diagram line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; opacity: .55; }
.cbt-diagram rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.cbt-diagram text { fill: var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 600; }
.cbt-diagram figcaption { color: var(--muted); font-size: .93rem; margin-top: 16px; }

/* Photo placeholder */
.photo { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--sand) 0 14px, #e8e0d3 14px 28px); display: grid; place-items: center; color: var(--muted); font-size: .95rem; text-align: center; padding: 20px; }

/* Fees summary */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 18px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1.2; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .93rem; }

/* Call to action band */
.cta { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 56px 40px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d9e9e6; max-width: 34em; margin: 0 auto 28px; }
.cta .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-hover); }

/* Inner pages */
.page-head { padding: 68px 0 28px; }
.page-head + section { padding-top: 28px; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.35rem, 2.4vw, 1.65rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }

.notice { background: var(--accent-soft); border-radius: 12px; padding: 20px 24px; }
.notice p:last-child { margin-bottom: 0; }
.notice-warm { background: #f6e9df; }

.list-clean, .prose .list-clean { list-style: none; padding: 0; margin: 0 0 1em; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.list-clean small { display: block; color: var(--muted); font-size: .9rem; }

/* Fees table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand); }
.fee-table td small { display: block; color: var(--muted); font-size: .9rem; }
.fee-table .amount { font-weight: 700; white-space: nowrap; text-align: right; }
.fee-table th.amount { text-align: right; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 19px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding-bottom: 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 36px; }
.contact-grid .card { display: flex; flex-direction: column; align-items: flex-start; box-shadow: none; }
.contact-grid .card p { color: var(--muted); }
.contact-grid .card .btn { margin-top: auto; }
.contact-detail { font-weight: 600; color: var(--ink); }

/* Urgent help strip and footer */
.crisis { background: #f3e6dc; border-top: 1px solid #e7d4c5; padding: 18px 0; font-size: .93rem; }
.crisis p { margin: 0; }
.site-footer { background: var(--ink); color: #c5cfd2; padding: 44px 0 26px; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.15rem; margin-bottom: .3em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #98a5aa; }
.footer-legal p { margin: 0; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero-grid, .split, .split-photo { grid-template-columns: 1fr; gap: 36px; }
  .split-photo .photo { max-width: 340px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(29, 37, 40, .08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { text-decoration: none; font-weight: 600; }
  .site-nav a.btn { margin-top: 14px; border-bottom: 2px solid var(--accent); padding: 12px 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 52px 0 48px; }
  .page-head { padding: 48px 0 20px; }
  .stats, .topics { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .cta { padding: 44px 24px; }
  .hero-actions .btn { width: 100%; }
  .brand-text span { display: none; }
  .fee-table th, .fee-table td { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
