/* Hue Therapy — site styles */

@font-face { font-family: "Caprasimo"; src: url("../fonts/caprasimo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #f5ead8;
  --sand: #ebddc5;
  --paper: #fbf5ea;
  --ink: #201e1d;
  --muted: #4d4741;
  --line: #82796a;
  --terracotta: #c67139;
  --terracotta-text: #8c491a;
  --terracotta-dark: #643312;
  --sage: #7a8a5e;
  --sage-text: #56633f;
  --deep: #3d472b;
  --gold: #d9b25c;
  --heading: "Caprasimo", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(64px, 9vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--terracotta-text); }
a:hover { color: var(--terracotta-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--terracotta-text); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--cream); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.kicker { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--terracotta-text); }
.kicker--sage { color: var(--sage-text); }
.h2 { font-size: clamp(32px, 5.5vw, 44px); line-height: 1.1; }
.stack { display: flex; flex-direction: column; }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.pretty { text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 26px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; line-height: 1.3; }
.btn--primary { background: var(--terracotta); color: var(--ink); }
.btn--primary:hover { background: #b2622d; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: rgba(32, 30, 29, 0.06); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { flex: none; isolation: isolate; }
.brand-mark ellipse { mix-blend-mode: multiply; }
.brand-mark circle { fill: var(--cream); }
.brand-name { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name strong { font-family: var(--heading); font-weight: 400; font-size: 24px; white-space: nowrap; }
.brand-name small { margin-top: 4px; font-size: 13px; letter-spacing: 0.01em; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; }
.nav a:not(.btn) { color: inherit; text-decoration: none; padding-block: 6px; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: 12px 22px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 64px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section); }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.hero-lead { font-size: clamp(18px, 2.2vw, 20px); max-width: 560px; text-wrap: pretty; }
.hero-art { flex: 1 1 340px; min-width: 0; max-width: 480px; position: relative; height: clamp(380px, 48vw, 540px); }
.hero-art .circle { position: absolute; right: 0; top: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); opacity: 0.5; }
.hero-art .arch { position: absolute; left: 0; bottom: 0; width: 88%; height: 89%; border-radius: 999px 999px 28px 28px; background: var(--sand); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(32, 30, 29, 0.08); }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }

/* About */
.band { background: var(--sand); }
.band--deep { background: var(--deep); color: var(--cream); }
.band--deep .kicker { color: #f6a06b; }
.band--deep :focus-visible { outline-color: var(--cream); }
.band .crisis { background: var(--cream); }
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 64px); }
.about-head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-quote { font-family: var(--heading); font-size: 24px; line-height: 1.35; color: var(--terracotta-text); text-wrap: pretty; }
.about-body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chips { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--cream); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }

/* Person-centred therapy */
.pct { display: flex; flex-direction: column; gap: 40px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 280px; min-width: 0; background: var(--paper); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 1px rgba(32, 30, 29, 0.08); }
.card .dot { width: 48px; height: 48px; border-radius: 50%; }
.card h3 { font-size: 26px; line-height: 1.2; }
.card p { font-size: 16px; }

/* My approach */
.approach { display: flex; flex-direction: column; gap: 32px; }
.approach h2 { font-size: clamp(34px, 6vw, 48px); line-height: 1.08; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.tab { position: relative; overflow: hidden; font: inherit; font-size: 16px; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px 16px; cursor: pointer; background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.tab:hover { background: rgba(61, 71, 43, 0.08); }
.tab[aria-pressed="true"] { background: var(--deep); color: var(--cream); }
.tab-label { position: relative; }
.tab-progress { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 7px; height: 3px; border-radius: 2px; pointer-events: none; }
.tab-progress { background: #f6a06b; transform: scaleX(0); transform-origin: left center; }
.tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(245, 234, 216, 0.22); }
.tab[aria-pressed="false"] .tab-progress { visibility: hidden; }
.tab-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--deep); background: transparent; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(61, 71, 43, 0.45); }
.tab-toggle:hover { background: rgba(61, 71, 43, 0.08); }
.tab-toggle[hidden] { display: none; }
.tab-toggle .icon-play { display: none; }
.tab-toggle.is-paused .icon-play { display: block; }
.tab-toggle.is-paused .icon-pause { display: none; }
.panel { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 40px); background: var(--sand); border-radius: 40px; padding: clamp(28px, 5vw, 48px); }
.panel[hidden] { display: none; }
.panel-main { flex: 3 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel-main h3 { font-size: clamp(28px, 4vw, 34px); line-height: 1.12; }
.panel-aside { flex: 2 1 280px; min-width: 0; background: var(--cream); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.panel-aside ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 64px); }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.details { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 16px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; overflow-wrap: anywhere; }
/* Fees */
.fees { display: flex; flex-direction: column; gap: 32px; }
.price-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.price-card { flex: 1 1 320px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-amount { font-family: var(--heading); font-size: clamp(44px, 6vw, 56px); line-height: 1; color: var(--terracotta-text); }
.price-unit { font-size: 16px; font-weight: 600; }
.badge { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--sage-text); background: color-mix(in srgb, var(--sage) 22%, var(--paper)); border-radius: 14px; padding: 6px 14px; }
.fee-note { font-size: 15px; color: var(--muted); }
.crisis { font-size: 15px; background: var(--sand); border-radius: 20px; padding: 16px 20px; }
.form { flex: 1 1 400px; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 16px; background: var(--paper); border-radius: 32px; padding: clamp(24px, 4vw, 32px); box-shadow: inset 0 0 0 1px rgba(32, 30, 29, 0.1); }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field label, .form legend { font-weight: 600; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 16px; }
.checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--terracotta-text); }
.form .btn { align-self: flex-start; padding: 16px 30px; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Welcome animation */
.welcome { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; padding-bottom: var(--section); }
.welcome-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.welcome-head .stack { gap: 12px; max-width: 680px; }
.scene-scroll { overflow: hidden; border-radius: 40px; }
.scene-scroll.is-scaled { border-radius: 24px; }
.scene-scroll.is-scaled .bs-scene { width: 760px; transform-origin: top left; border-radius: 0; }
.bs-scene { position: relative; min-width: 760px; height: 420px; overflow: hidden; border-radius: 40px; background: var(--paper); }
.bs-scene > * { position: absolute; }
.bs-steam { opacity: 0; }
.bs-steam.is-on { animation: bsSteam 2.4s ease-out infinite; }
.bs-steam.is-on.late { animation-delay: 1.1s; }
.bs-say { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); white-space: nowrap; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 5px 13px; font-size: 15px; font-weight: 700; box-shadow: 0 3px 10px rgba(46, 43, 37, 0.18); }
.bs-say.is-on { animation: bsPop 0.35s ease-out both; }
.bs-person[data-who="counsellor"] .bs-say.is-on { animation-delay: 0.7s; }
.bs-knock span { animation: bsBlink 1.2s ease-in-out infinite both; }
.bs-knock span + span { animation-delay: 0.35s; }

@keyframes bsSwingA { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes bsSwingB { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes bsArm { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes bsKnock { from { transform: rotate(-100deg); } to { transform: rotate(-70deg); } }
@keyframes bsPop { from { opacity: 0; transform: translate(-50%, 8px) scale(0.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes bsBlink { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes bsSteam { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-20px); } }
@media (prefers-reduced-motion: reduce) { .bs-scene *, .bs-scene { animation: none !important; transition: none !important; } }

/* Footer */
.site-footer { border-top: 1px solid rgba(32, 30, 29, 0.14); }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; max-width: 720px; }
.simple h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; }

/* My approach on the deep sage band */
.band--deep .tab { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245, 234, 216, 0.7); }
.band--deep .tab:hover { background: rgba(245, 234, 216, 0.1); }
.band--deep .tab[aria-pressed="true"] { background: var(--cream); color: var(--deep); }
.band--deep .tab[aria-pressed="true"]::after { background: rgba(61, 71, 43, 0.18); }
.band--deep .tab-progress { background: var(--terracotta); }
.band--deep .tab-toggle { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(245, 234, 216, 0.55); }
.band--deep .tab-toggle:hover { background: rgba(245, 234, 216, 0.1); }
.band--deep .panel { color: var(--ink); }
.band--deep .panel :focus-visible { outline-color: var(--terracotta-text); }

/* Footer: deep sage to close the page */
.site-footer { background: var(--deep); color: var(--cream); border-top: 0; }
.site-footer a { color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--cream); }
