/* Glasgow Therapy one-pager
   Desktop is built on the 1440px Figma canvas: every .abs element carries its
   Figma x / y / width as --x / --y / --w, and each .stage is zoomed by --z
   (set in main.js) so the layout scales down proportionally to 900px.
   Below 900px a stacked mobile layout takes over. */

@font-face {
  font-family: "Faculty Glyphic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/faculty-glyphic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Faculty Glyphic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/faculty-glyphic-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --olive: #403c0e;
  --olive-dark: #33300b;     /* #403c0e with the 20% black overlay from Figma */
  --olive-line: #565117;
  --gold: #bab152;
  --cream: #f2ecdf;
  --cream-light: #eee9dd;
  --field: #f9f5ef;
  --z: 1;
  --font: "Faculty Glyphic", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; font-weight: 400; }
ol, ul { list-style: none; }
img { display: block; max-width: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Canvas system ---------- */
.sec { position: relative; }
.stage {
  position: relative;
  width: 1440px;
  height: calc(var(--h) * 1px);
  margin: 0 auto;
  zoom: var(--z);
}
.abs {
  position: absolute;
  z-index: 2;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: calc(var(--w) * 1px);
}

/* ---------- Dashed column lines ---------- */
.body { position: relative; }
.grid-lines {
  position: absolute;
  inset: 5px 0 0 0;          /* lines start at y=851 on the canvas */
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.grid-lines i {
  position: absolute; top: 0; bottom: 0; width: 1px;
  left: calc(50% + (var(--x) - 720) * var(--z) * 1px);
  background: repeating-linear-gradient(to bottom, rgba(86, 81, 23, .2) 0 5px, transparent 5px 10px);
}
.sec-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sec-lines i {
  position: absolute; width: 1px;
  left: calc(var(--x) * 1px);
  top: calc(var(--top) * 1px);
  height: calc(var(--len) * 1px);
  background: repeating-linear-gradient(to bottom, var(--lc) 0 5px, transparent 5px 10px);
}
.sec-lines.strong { --lc: rgba(86, 81, 23, .5); }
.sec-lines.gold { --lc: rgba(186, 177, 82, .15); }
.sec-lines.footer-lines { --lc: var(--olive-line); }

/* ---------- Type ---------- */
.eyebrow { font-size: 20px; line-height: 100.043px; height: 70px; text-transform: uppercase; color: var(--olive); }
.eyebrow.gold, .gold { color: var(--gold); }
.h48 { font-size: 48px; line-height: 62px; color: var(--olive); }
.h48.light { color: var(--cream-light); }
.h48.cream { color: var(--cream); }
.body20 { font-size: 20px; line-height: normal; }
.body20 p + p { margin-top: 1lh; }
.body20.light { color: var(--cream-light); }
.body20.tight { line-height: 27px; }
.num { display: flex; align-items: center; height: 24px; font-size: 20px; line-height: 100.043px; }

/* ---------- Hero ---------- */
.hero { background: #6b6b6b; color: #fff; overflow: hidden; }
.hero-bg, .contact-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img, .contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg img { object-position: 50% 18%; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 24, 8, .55) 0%, rgba(20, 24, 8, .38) 50%, rgba(20, 24, 8, .12) 100%); }
.hero .abs { color: #fff; }
.logo { display: flex; align-items: center; height: 37px; font-size: 24px; text-decoration: none; }
.btn-outline {
  display: flex; align-items: center; justify-content: center;
  height: 51px; border: 2px solid #fff; border-radius: 1000px;
  font-size: 16px; text-decoration: none; transition: background-color .25s, color .25s;
}
.btn-outline:hover { background: #fff; color: var(--olive); }
.scroll {
  left: -106.5px; top: 409.5px; width: 286px; height: 37px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transform: rotate(-90deg);
}
.hero-swoosh { height: auto; z-index: 1; }
.hero-name { font-size: 64px; line-height: .98905; }
.hero-role { font-size: 40px; line-height: .98905; }
.hero-meta { font-size: 20px; line-height: normal; }

/* ---------- About ---------- */
.about-h { height: 124px; }
.about-body { margin-top: 24px; width: 572px; }
.portrait { height: 512px; }
.portrait .ring { position: absolute; inset: 0; width: 512px; height: 512px; }
.portrait img { position: absolute; left: 4px; top: 3px; width: 505px; height: 505px; border-radius: 50%; }
.ring { overflow: visible; }
.ring circle { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 5 5; }
svg.abs.ring { height: auto; z-index: 1; }
.bio-name { display: flex; align-items: center; height: 31px; font-size: 20px; line-height: 100.043px; }
.bio-detail { display: flex; flex-direction: column; justify-content: flex-end; min-height: 119px; font-size: 16px; line-height: 1.5; }

/* ---------- Modality ---------- */
.dark { background: var(--olive-dark); }
.modality { border-top: 0; }
.modality::before { /* solid rule at the top of the section (Figma y=1984) */
  content: ""; position: absolute; left: 0; right: 0; top: calc(3px * var(--z)); height: 1px;
  background: var(--olive-line); z-index: 1;
}
.dot { height: 24px; border-radius: 50%; background: var(--gold); z-index: 1; }
.arch-img, .plant-img { height: auto; z-index: 3; }
.modality-h { height: 62px; margin-top: 0; }
.modality-body { width: 550px; margin-top: 10px; }

/* ---------- Commitment ---------- */
.commit-h { height: 107px; }
.pillar { display: flex; flex-direction: column; }
.pillar.gap5 .pillar-h { margin-top: 5px; }
.pillar .num + .pillar-h { margin-top: 0; }
.pillar-h { font-size: 36px; line-height: 43px; min-height: calc(var(--th) * 1px); }
.pillar-icon { position: absolute; left: 0; top: calc(var(--iy) * 1px); width: 100px; height: 100px; object-fit: contain; }

/* ---------- Packages (pinned) ---------- */
.packages { color: var(--cream); }
.pin-track { position: relative; }
.pin { position: sticky; z-index: 2; top: var(--pin-top, 0px); overflow: hidden; }
.pkg-h { height: 107px; }
.steps { margin-top: 43px; width: 445px; }
.step + .step { margin-top: 30px; }
.step { opacity: .5; transition: opacity .45s ease; }
.step.is-active { opacity: 1; }
.step-btn { display: block; width: 100%; }
.step-btn:hover .step-title { color: #fff; }
.step-title { display: block; height: 62px; font-size: 32px; line-height: 62px; white-space: nowrap; color: var(--cream); transition: color .2s; }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease; }
.step.is-active .step-body { grid-template-rows: 1fr; }
.step-body > div { overflow: hidden; }
.step[data-step="0"] .step-body p { width: 439px; }
.step-body p { width: 420px; padding-bottom: 2px; font-size: 20px; line-height: normal; color: var(--cream); }
.pkg-images { height: 637px; }
.pkg-images img {
  position: absolute; inset: 0; width: 520px; height: 637px;
  opacity: 0; transition: opacity .6s ease;
}
.pkg-images img.is-active { opacity: 1; }

/* ---------- Pricing ---------- */
.fees { height: 417px; }
.fees table {
  width: 570px; height: 417px;
  border: 1.25px solid var(--gold);
  border-spacing: 0;
  background: #f9f6ef;
  font-size: 20px; line-height: normal; color: var(--olive);
  table-layout: fixed;
}
.fees th, .fees td { padding: 0 0 0 23.75px; text-align: left; font-weight: 400; vertical-align: top; }
.fees th:first-child, .fees td:first-child { width: 373.75px; }
.fees td:last-child { border-left: 1.25px solid var(--gold); }
.fees thead th { height: 55px; background: var(--olive); color: #fff; vertical-align: middle; padding-bottom: 2px; }
.fees tbody td { height: 50px; padding-top: 10px; }
.fees tbody tr:first-child td { height: 55px; padding-top: 15px; }
.fees tbody tr:last-child td { height: auto; }
.fees tbody tr:nth-child(even) td {
  background: linear-gradient(to bottom, transparent 0 .4px, rgba(64, 60, 14, .05) .4px 48.4px, transparent 48.4px);
}

.pricing-h { height: 62px; }
.accordion { margin-top: 10px; width: 591px; }
.acc-item { padding: 0 10px 10px; transition: padding .4s ease; }
.acc-item.is-open { padding-top: 10px; }
.acc-item::after { content: ""; display: block; width: 575px; height: 1px; margin-top: 8px; background: var(--olive-line); }
.acc-item h3 { font-size: inherit; }
.acc-btn {
  display: flex; align-items: center; gap: 22px; width: 100%;
  padding: 12px 0 16px; transition: padding .4s ease;
}
.acc-item.is-open .acc-btn { padding: 0; }
.acc-btn span {
  display: flex; align-items: center; width: 530px; height: 49px;
  font-size: 32px; line-height: 100.043px; color: var(--olive);
}
.chev { width: 19px; height: 9px; flex: none; overflow: visible; transform: rotate(180deg); transition: transform .35s ease; }
.chev path { fill: none; stroke: var(--olive); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acc-item.is-open .chev { transform: none; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel > div > div, .acc-panel p { font-size: 20px; line-height: normal; color: rgba(64, 60, 14, .8); }
.acc-panel > div { width: 575px; }
.acc-panel > div::before { content: ""; display: block; height: 8px; }
.acc-panel > div > p:last-child { margin-bottom: 0; }
.acc-panel > div { min-height: 0; }
.acc-item.is-open .acc-panel > div { min-height: calc(var(--bh) * 1px + 8px); }
.acc-panel p + p { margin-top: 1lh; }

/* ---------- Contact ---------- */
.contact { background: #6b6b6b; z-index: 3; overflow: hidden; }
.panel { height: 739px; background: var(--cream); z-index: 1; }
.panel-line { height: 739px; z-index: 1; background: repeating-linear-gradient(to bottom, rgba(86, 81, 23, .25) 0 5px, transparent 5px 10px); }
.contact-swoosh { height: auto; z-index: 3; }
.contact-quote { font-size: 64px; line-height: 83px; text-align: center; color: #fff; }
.contact-form-wrap { display: flex; flex-direction: column; align-items: center; }
.contact-h { width: 549px; height: 52px; font-size: 40px; line-height: .98905; text-align: center; color: var(--olive); white-space: nowrap; }
.contact-sub { margin-top: 8px; width: 464px; min-height: 71px; display: block; padding-top: 0; font-size: 16px; line-height: 1.5; color: var(--olive); }
.contact-sub a { text-decoration: none; }
.contact-sub a:hover { text-decoration: underline; }
.enquiry { margin-top: 24px; width: 473px; display: flex; flex-direction: column; }
.field {
  display: block; width: 473px; height: 51px; margin: 0 0 16px;
  padding: 0 24px 0 25.77px;
  background: var(--field); border: 2px solid var(--olive-line); border-radius: 1000px;
  font: 16px/normal var(--font); color: var(--olive);
  appearance: none; transition: box-shadow .2s, border-color .2s;
}
.field::placeholder { color: var(--olive); opacity: 1; }
/* keep browser autofill from turning the fields blue */
.field:-webkit-autofill, .field:-webkit-autofill:hover, .field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--olive);
  box-shadow: 0 0 0 100px var(--field) inset;
  caret-color: var(--olive);
}
.field:focus { outline: none; box-shadow: 0 0 0 3px rgba(186, 177, 82, .45); }
.field.is-invalid { border-color: #9a3b1d; }
.field-area { height: 172px; padding-top: 18px; padding-bottom: 14px; border-radius: 24px; resize: none; margin-bottom: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-solid {
  width: 473px; height: 51px; border-radius: 1000px;
  background: var(--olive); border: 2px solid var(--olive-line);
  color: #fff; font-size: 16px; text-align: center;
  transition: background-color .25s;
}
.btn-solid:hover { background: #2c290a; }
.btn-solid[disabled] { opacity: .7; cursor: progress; }
.form-status { min-height: 0; margin-top: 12px; font-size: 15px; line-height: 1.4; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #9a3b1d; }
.form-status.is-ok { color: var(--olive); }

/* ---------- Footer ---------- */
.footer { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; height: 37px; font-size: 24px; text-decoration: none; color: var(--gold); }
.footer-email { display: flex; align-items: center; justify-content: flex-end; height: 37px; font-size: 24px; text-decoration: none; color: var(--gold); }
.footer-email:hover, .footer-small a:hover { text-decoration: underline; }
.footer-small { height: 70px; font-size: 13px; line-height: 100.043px; white-space: pre; color: var(--gold); }
.footer-small.right { text-align: right; }
.footer-small a { text-decoration: none; }

/* =====================================================================
   Mobile / small tablet: stacked layout
   ===================================================================== */
@media (max-width: 899px) {
  .stage { width: auto; height: auto; zoom: 1; padding: 0 24px; }
  .abs { position: relative; left: auto; top: auto; width: auto; }
  .grid-lines, .sec-lines, .scroll, .dot { display: none; }
  .modality::before { top: 0; }

  .h48 { font-size: 34px; line-height: 1.2; height: auto !important; }
  .eyebrow { font-size: 16px; line-height: 1.4; height: auto; margin-bottom: 10px; }
  .body20, .acc-panel p, .step-body p, .fees table { font-size: 17px; }

  /* hero */
  .hero .stage { min-height: max(560px, 88svh); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; }
  .hero .logo { position: absolute; top: 22px; left: 20px; font-size: 20px; width: auto; }
  .hero .btn-outline { position: absolute; top: 16px; right: 16px; width: 150px; height: 44px; font-size: 14px; }
  .hero-swoosh { position: absolute; left: 0; bottom: 120px; width: min(92vw, 520px); }
  .hero-name { font-size: clamp(28px, 8.8vw, 46px); white-space: nowrap; }
  .hero-role { font-size: 26px; margin-top: 10px; }
  .hero-meta { font-size: 16px; margin-top: 22px; }

  /* about */
  .about .stage { display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 56px; }
  .about-body, .bio-detail { width: auto; }
  .about-body { margin-top: 18px; }
  .portrait { order: 2; width: min(86vw, 360px); height: auto; aspect-ratio: 1; margin: 44px auto 0; }
  .portrait .ring { width: 100%; height: 100%; }
  .portrait img { left: 1%; top: .6%; width: 98.6%; height: 98.6%; }
  .bio { order: 3; margin: 22px auto 0; max-width: 360px; }
  .bio-detail { min-height: 0; }

  /* modality */
  .modality .stage { display: flex; flex-direction: column; padding-top: 56px; padding-bottom: 64px; }
  .modality .ring { display: none; }
  .arch-img { width: min(70vw, 320px); margin: 0 auto; }
  .plant-img { width: min(46vw, 210px); margin: -90px 0 0 0; }
  .modality-copy { margin-top: 40px; }
  .modality-body { width: auto; }

  /* commitment */
  .commitment .stage { padding-top: 64px; padding-bottom: 64px; }
  .commit-intro { margin-top: 18px; }
  .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; margin-top: 40px; }
  .pillar-h { font-size: 26px; line-height: 1.2; min-height: 0; margin-bottom: 8px; }
  .pillar .body20 { font-size: 16px; }
  .pillar-icon { position: static; width: 64px; height: 64px; margin-top: 16px; }

  /* packages: no pinning, all steps open */
  .pin { position: static; }
  .pin-track { height: auto !important; }
  .packages .stage { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; }
  .packages .ring { display: none; }
  .steps { width: auto; margin-top: 28px; }
  .step { opacity: 1; }
  .step .step-body { grid-template-rows: 1fr; }
  .step-title { font-size: 26px; line-height: 1.3; height: auto; white-space: normal; margin: 4px 0 6px; }
  .steps .step .step-body p { width: auto; }
  .pkg-images { order: -1; width: min(80vw, 360px); height: auto; aspect-ratio: 520 / 637; margin: 0 auto 36px; }
  .pkg-images img { width: 100%; height: 100%; }

  /* pricing */
  .pricing .stage { display: flex; flex-direction: column; padding-top: 64px; padding-bottom: 64px; }
  .pricing .ring { display: none; }
  .fees { order: 2; height: auto; margin-top: 40px; }
  .fees table { width: 100%; height: auto; }
  .fees th:first-child, .fees td:first-child { width: 62%; }
  .fees th, .fees td { padding-left: 14px; padding-right: 8px; }
  .fees thead th { height: 48px; }
  .fees tbody td, .fees tbody tr:first-child td { height: auto; padding-top: 10px; padding-bottom: 10px; }
  .fees tbody tr:nth-child(even) td { background: rgba(64, 60, 14, .05); }
  .accordion, .acc-item::after, .acc-panel > div { width: auto; }
  .acc-item { padding-left: 0; padding-right: 0; }
  .acc-btn span { width: auto; flex: 1; font-size: 24px; line-height: 1.2; height: auto; min-height: 49px; }
  .acc-item.is-open .acc-panel > div { min-height: 0; }

  /* contact */
  .contact .stage { padding: 0; }
  .contact-bg { height: 420px; bottom: auto; }
  .contact-bg::after { background: rgba(20, 24, 8, .42); }
  .contact-quote { display: flex; align-items: center; justify-content: center; padding: 0 24px; height: 420px; font-size: clamp(32px, 9.5vw, 44px); line-height: 1.15; }
  .contact-swoosh { position: absolute; left: 50%; top: 165px; width: min(92vw, 460px); transform: translateX(-50%); }
  .panel, .panel-line { display: none; }
  .contact-form-wrap { background: var(--cream); padding: 48px 24px 56px; }
  .contact-h { width: auto; height: auto; font-size: 32px; white-space: normal; }
  .contact-sub { width: auto; min-height: 0; margin-top: 12px; }
  .enquiry, .field, .btn-solid { width: 100%; }

  /* footer */
  .footer .stage { padding: 40px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
  .footer-logo, .footer-email { font-size: 20px; justify-content: flex-start; }
  .footer-small { height: auto; line-height: 1.6; white-space: normal; }
  .footer-small.right { text-align: left; }
}
