/* Nurturing Connections OT - site styles
   1. Tokens  2. Fonts + base  3. Layout  4. Header  5. Buttons  6. Section themes
   7. Components (hero, split, cards, quotes, marquee, accordion)  8. Forms  9. Blog
   10. Footer  11. Motion + print */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --pink: #d0868b;        /* accent: section backgrounds, headings */
  --pink-light: #e08f95;  /* header button, nav hover */
  --pink-deep: #b76a70;   /* hover on pink buttons */
  --teal: #156d67;
  --teal-deep: #0f514c;
  --yellow: #ffb030;
  --yellow-deep: #e39a1e;
  --ink: #4a4a4a;         /* body text, "black" sections */
  --cream: #f6f4f2;       /* light sections */
  --white: #ffffff;
  --line: #000000;        /* thin rules between sections and down the page edges */

  --font-head: "Histeagin", Georgia, "Times New Roman", serif;
  --font-label: "brandon-grotesque", "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --maxw: 1500px;
  --gutter: clamp(1.5rem, 10vw, 10rem);        /* Squarespace: 145px at 1440 */
  --section: clamp(3rem, 6.6vw, 6rem);         /* 95px at 1440 */
  --section-sm: clamp(2rem, 3.3vw, 3rem);      /* 48px at 1440 */
  --gap: clamp(1.5rem, 3vw, 3rem);
  --flow: 1em;
  --measure: 40rem;
  --radius: 0;             /* the live site has square corners on every image and box */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Fonts + base ------------------------------------------------------ */
@font-face {
  font-family: "Histeagin";
  src: url("../fonts/histeagin.woff2") format("woff2"), url("../fonts/histeagin.woff") format("woff");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
iframe { max-width: 100%; border: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2, h4, .display {
  font-family: var(--font-head);
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 2rem + 2.2vw, 4rem); line-height: 0.97; }
h2 { font-size: clamp(2rem, 1.5rem + 1.65vw, 3rem); line-height: 1.02; }
h4 { font-size: clamp(1.6rem, 1.25rem + 1.05vw, 2.2rem); line-height: 1.06; }
/* Squarespace used h3 for the small uppercase labels: keep the look, not the level */
h3, .label, .vert, .menu-list li, .panel li, .quote cite, .faq summary, .nav-list a, .footer-nav a, .footer-cell .label, .post-card .meta, .post-header .meta, .post-nav, .pagination {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead, .lg p:not(.label):not(.vert), .lg li { font-size: 1rem; line-height: 1.6; }   /* one body size everywhere (Clare, 13 Nov) */
.small { font-size: 0.9rem; }
p, ul, ol { margin: 0; }
.flow > * + * { margin-top: var(--flow); }
.flow > h2 + *, .flow > h1 + *, .flow > h4 + * { margin-top: 2rem; }
.flow > .label, .flow > .label + * { margin-top: 2rem; }
.flow > .label + h1, .flow > .label + h2 { margin-top: 0.5rem; }
.flow > .label:first-child { margin-top: 0; }
.flow > img + h2, .flow > img + h1 { margin-top: 0.75rem; }
ul { padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
em { font-style: italic; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--pink-light); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: 0.5rem 1rem; background: var(--teal); color: var(--white); z-index: 100; }
.skip-link:focus { top: 1rem; }

/* 3. Layout ------------------------------------------------------------ */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
main, .site-footer { border-inline: 1px solid var(--line); }
@media (max-width: 47.99rem) { main, .site-footer { border-inline: 0; } }
.section { position: relative; border-bottom: 1px solid var(--line); padding-block: var(--section); overflow: clip; }
.section.flush { padding-block: 0; }
.section.tight { padding-block: var(--section-sm); }
.section.roomy { padding-block: clamp(4rem, 8vw, 7rem); }
.center { text-align: center; }
.measure { max-width: var(--measure); }
.center .measure { margin-inline: auto; }
.stack { display: grid; gap: var(--gap); }

/* two columns: text + image */
.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 48rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.wide-media { grid-template-columns: 1.15fr 1fr; }
  .split.narrow-media { grid-template-columns: 1.3fr 1fr; }
  .split > .media.first { order: -1; }
  .split.top { align-items: start; }
}
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.media.square img { aspect-ratio: 1; }
.media.portrait img { aspect-ratio: 3 / 4; }
.media.tall img { aspect-ratio: 2 / 3; }
.media.plain img { border-radius: 0; }

/* full-bleed image column that reaches the page edge */
.bleed { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 48rem) {
  .bleed { grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
  .bleed.middle { align-items: center; }
  .bleed > .bleed-media { height: 100%; min-height: 32rem; }
  .bleed > .bleed-media img { width: 100%; height: 100%; max-height: 56rem; object-fit: cover; object-position: center top; border-radius: 0; }
  .bleed > .bleed-body { padding: 4.5rem var(--gutter) 4.5rem 4.5rem; }
  .bleed.media-26 > .bleed-body, .bleed.media-46 > .bleed-body { padding-right: 13.4vw; }
  /* media on the right, bleeding to the page edge (About hero, "How I can help" panel) */
  .bleed.media-right { grid-template-columns: minmax(0, 1fr) 43%; }
  .bleed.media-right.media-50 { grid-template-columns: minmax(0, 1fr) 50%; }
  .bleed.media-right > .bleed-body { padding: var(--section) 4rem var(--section) var(--gutter); }
  .bleed.media-right > .bleed-media, .bleed.media-right > .bleed-panel { order: 2; }
  .bleed.has-vert.media-29 { grid-template-columns: 29% auto minmax(0, 1fr); }
  .bleed.media-39 { grid-template-columns: 39% minmax(0, 1fr); }
  .bleed > .bleed-panel { height: 100%; border-radius: 0; padding: 6rem 4rem 6rem 6rem; display: grid; align-content: center; }
  .split.inset { padding-left: calc(16.8vw - var(--gutter)); }
}
@media (max-width: 47.99rem) {
  .bleed > .bleed-body { padding: var(--section) var(--gutter); }
  .bleed > .bleed-media img { width: 100%; max-height: 32rem; object-fit: cover; object-position: center top; }
}

/* vertical "We are Nurturing Connections" caption: its own slim column between the two halves */
.vert { line-height: 1; margin: 0; align-self: start; color: var(--yellow); white-space: nowrap; height: max-content; }
.t-bright-inverse .vert, .t-light .vert { color: var(--pink); }
@media (min-width: 48rem) {
  .vert { writing-mode: vertical-rl; text-orientation: mixed; padding-block: 2.25rem; }
  .split.has-vert { grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr); }
  .split.has-vert.vert-first { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
  .bleed.has-vert { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .bleed.has-vert > .vert { padding: 7.3rem 0.75rem 1rem; }
  .bleed.has-vert.media-26 { grid-template-columns: 26% auto minmax(0, 1fr); }
  .bleed.has-vert.media-46 { grid-template-columns: 46% auto minmax(0, 1fr); }
  .bleed.has-vert.media-46 > .vert { padding-top: 2.25rem; }
  .bleed.media-73 { grid-template-columns: 73% minmax(0, 1fr); }
  .bleed.media-73 > .bleed-body { padding-left: 4rem; }
}
@media (max-width: 47.99rem) { .vert { display: none; } }

/* icons */
.branch { width: clamp(3rem, 5vw, 4.5rem); }
.branch.lg { width: clamp(4rem, 8vw, 6rem); }

/* 4. Header ------------------------------------------------------------ */
/* Sticky header that shrinks once the page has scrolled 6rem. Scroll-driven CSS, no JavaScript:
   --scrolled flips from 0 to 1 and the style query below applies the compact state.
   Browsers without support keep the full-size sticky header. */
@property --scrolled { syntax: "<integer>"; inherits: true; initial-value: 0; }
@keyframes page-scrolled { from { --scrolled: 0; } to { --scrolled: 1; } }
@supports (animation-timeline: scroll()) {
  html {
    animation: page-scrolled 1ms linear both;
    animation-timeline: scroll(root);
    animation-range: 0 6rem;
  }
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid #333;
  transition: box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: clamp(5rem, 11.4vw, 10.25rem);
  transition: min-height 0.5s var(--ease);
}
.logo { flex: 0 1 auto; min-width: 0; }
.logo img { width: clamp(11rem, 7.5rem + 14vw, 21rem); transition: width 0.5s var(--ease); }
@container style(--scrolled: 1) {
  .site-header { background-color: rgb(255 255 255 / 0.92); box-shadow: 0 6px 24px -6px rgb(0 0 0 / 0.18); }
  .header-inner { min-height: clamp(4rem, 6vw, 5.5rem); }
  .logo img { width: clamp(8.5rem, 6rem + 6vw, 12rem); }
}
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-block; padding: 0.4rem 0;
  font-family: var(--font-label); font-weight: 300; font-size: 0.9rem; letter-spacing: 0; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  transition: color 0.3s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--pink-light); text-decoration: underline; text-underline-offset: 8px; }
.nav-list a[aria-current="page"] { color: var(--pink-light); }
.header-right { display: flex; align-items: center; gap: clamp(0.75rem, 1.5vw, 1.5rem); }
.header-right .btn { --btn-bg: var(--pink-light); --btn-fg: var(--white); --btn-hover: var(--pink-deep); white-space: nowrap; }
.social { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.social li, .social li + li { margin: 0; }
.social a {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--ink); color: var(--white);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.social a:hover, .social a:focus-visible { background: var(--pink-light); color: var(--white); transform: translateY(-2px); }
.social svg { width: 1.05rem; height: 1.05rem; }

.nav-mobile { display: none; }
@media (max-width: 65.99rem) {
  .nav-desktop, .header-right { display: none; }
  .nav-mobile { display: block; }
  .header-inner { justify-content: center; position: relative; }
  .nav-mobile summary { position: absolute; right: 0; top: 50%; translate: 0 -50%; }
}
.nav-mobile summary {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  cursor: pointer; list-style: none; color: var(--ink);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; display: block; width: 1.4rem; height: 1.4rem; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform 0.3s var(--ease);
}
.menu-icon::after { transform: rotate(90deg); }          /* the "+" on the live site */
.nav-mobile[open] .menu-icon::before { transform: rotate(45deg); }
.nav-mobile[open] .menu-icon::after { transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0.5rem var(--gutter) 1.5rem; background: var(--white);
  border-bottom: 1px solid #333; box-shadow: 0 12px 24px rgb(0 0 0 / 0.1);
}
.nav-mobile .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav-mobile .nav-list a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--cream); font-size: 1rem; }
.nav-mobile .nav-list a.btn { margin-top: 1rem; border-bottom: 0; text-align: center; --btn-bg: var(--pink-light); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }
.nav-mobile .social { justify-content: center; margin-top: 1.25rem; }

/* 5. Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--white); --btn-hover: var(--teal-deep);
  display: inline-block; padding: 0.6rem 1.3rem;
  border: 0; border-radius: 300px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-label); font-weight: 400; font-size: 1rem; line-height: normal;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--btn-hover); color: var(--btn-fg); transform: translateY(-2px); }
.btn.lg { padding: 0.9rem 2rem; }
.btn-pink   { --btn-bg: var(--pink);   --btn-fg: var(--white); --btn-hover: var(--pink-deep); }
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--white); --btn-hover: var(--yellow-deep); }
.btn-teal   { --btn-bg: var(--teal);   --btn-fg: var(--white); --btn-hover: var(--teal-deep); }
.btn-white  { --btn-bg: var(--white);  --btn-fg: var(--pink);  --btn-hover: var(--cream); }
.btn-white-teal { --btn-bg: var(--white); --btn-fg: var(--teal); --btn-hover: var(--cream); }
.btn-white-ink  { --btn-bg: var(--white); --btn-fg: var(--ink);  --btn-hover: var(--cream); }
.flow > .btn, .flow > p > .btn { margin-top: 3.5rem; }
.flow > ul + .btn { margin-top: 1.5rem; }

/* 6. Section themes (Squarespace colour themes, same names) ------------ */
.t-white        { background: var(--white); color: var(--ink); }
.t-white h2, .t-white h4 { color: var(--ink); }
.t-white .btn   { --btn-bg: var(--teal); --btn-fg: var(--white); --btn-hover: var(--teal-deep); }

.t-white-bold   { background: var(--white); color: var(--ink); }
.t-white-bold h1, .t-white-bold h2, .t-white-bold h4 { color: var(--pink); }
.t-white-bold .btn { --btn-bg: var(--yellow); --btn-fg: var(--white); --btn-hover: var(--yellow-deep); }

.t-light        { background: var(--cream); color: var(--ink); }
.t-light h1     { color: var(--pink); }
.t-light h2, .t-light h4 { color: var(--ink); }
.t-light .btn   { --btn-bg: var(--pink); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }

.t-bright       { background: var(--pink); color: var(--white); }
.t-bright h1, .t-bright h2, .t-bright h3, .t-bright h4 { color: var(--white); }
.t-bright .btn  { --btn-bg: var(--white); --btn-fg: var(--pink); --btn-hover: var(--cream); }
.t-bright a:hover { color: var(--cream); }

.t-bright-inverse { background: var(--white); color: var(--ink); }
.t-bright-inverse h1, .t-bright-inverse h2 { color: var(--pink); }
.t-bright-inverse .btn { --btn-bg: var(--pink); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }

.t-dark         { background: var(--teal); color: var(--white); }
.t-dark h1, .t-dark h2, .t-dark h3, .t-dark h4 { color: var(--white); }
.t-dark .btn    { --btn-bg: var(--white); --btn-fg: var(--teal); --btn-hover: var(--cream); }
.t-dark a:hover { color: var(--cream); }

.t-yellow       { background: var(--yellow); color: var(--ink); }

.btn.btn-pink, .btn.btn-yellow, .btn.btn-teal, .btn.btn-white, .btn.btn-white-teal, .btn.btn-white-ink { /* explicit variants win over the theme */ }
.t-white .btn-pink, .t-light .btn-teal, .t-light .btn-yellow, .t-white-bold .btn-pink, .t-white-bold .btn-teal, .t-bright-inverse .btn-white, .t-dark .btn-yellow {
  --btn-bg: initial;
}
.t-white .btn-pink, .t-white-bold .btn-pink { --btn-bg: var(--pink); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }
.t-light .btn-teal, .t-white-bold .btn-teal { --btn-bg: var(--teal); --btn-fg: var(--white); --btn-hover: var(--teal-deep); }
.t-light .btn-yellow, .t-dark .btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--white); --btn-hover: var(--yellow-deep); }
.t-bright-inverse .btn-white { --btn-bg: var(--white); --btn-fg: var(--pink); --btn-hover: var(--cream); }
a.btn:hover, a.btn:focus-visible, button.btn:hover { color: var(--btn-fg); }   /* theme link-hover colours must never win over the button's own text colour */

/* dotted pattern background (icon-pattern-grey.png on the live site) */
.bg-dots::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../images/icon-pattern-grey.png") center / cover;
  opacity: var(--dots, 1);
}
.bg-dots.faint { --dots: 0.3; }   /* on coloured backgrounds only; white sections run the pattern at full strength */
.bg-dots > * { position: relative; z-index: 1; }

/* 7. Components -------------------------------------------------------- */
/* hero with photo + dark overlay */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: start;
  min-height: clamp(28rem, 58.7vw, 53rem); padding-block: var(--section);
  color: var(--white); background: var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bg) center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(74 74 74 / 0.65); }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero .btn { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-hover: var(--cream); }
.hero .flow { max-width: 62%; }
@media (max-width: 47.99rem) { .hero .flow { max-width: none; } }
.hero.soft::after { background: rgb(246 244 242 / 0.8); }
.hero.soft { color: var(--ink); }
.hero.soft h1 { color: var(--pink); }
.hero.soft .btn { --btn-bg: var(--pink); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }

/* photo panel with a heading laid over the bottom */
.overlay-media { position: relative; isolation: isolate; min-height: 22rem; display: grid; align-items: end; border-radius: var(--radius); overflow: hidden; }
.overlay-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overlay-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0) 60%); }
.overlay-media .display { padding: clamp(1.5rem, 4vw, 3rem); color: var(--white); font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1; }
.overlay-media.plain { border-radius: 0; }
@media (min-width: 48rem) { .overlay-media { min-height: 100%; } }

/* service grid (home, OT page) */
.cards { display: grid; gap: var(--gap) 0.75rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { text-align: center; }
.card .round { width: 10.5rem; aspect-ratio: 1; margin: 0 auto 0.6rem; border-radius: 50%; object-fit: cover; }
.card h4 { margin-bottom: 2rem; }
.card h4 a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.card h4 a:hover { color: var(--cream); }
.card p + p { margin-top: 1rem; }
.card.link { position: relative; }
.card.link h2 a { text-decoration: none; }
.card.link h2 a::after { content: ""; position: absolute; inset: 0; }
.card.link img { transition: transform 0.6s var(--ease); }
.card.link:hover img { transform: scale(1.04); }

/* list of uppercase points inside a pink dotted panel (home "Why choose") */
.panel {
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius);
  background: var(--pink) url("../images/bg_sml_dot-pattern-pink.webp") center / cover; color: var(--white);
}
.panel ul { list-style: none; padding: 0; }
.panel li { line-height: 1.6; }
.panel li + li { margin-top: 2rem; }
.panel .btn { margin-top: 1.75rem; --btn-bg: var(--pink); --btn-fg: var(--white); --btn-hover: var(--pink-deep); }
.panel.yellow { background: var(--yellow) url("../images/bg_sml_dot-pattern-yellow.webp") center / cover; }
.panel.yellow h2, .panel.yellow h3 { color: var(--white); }

/* uppercase list used as a menu of services */
.menu-list { list-style: none; padding: 0; }
.menu-list li + li { margin-top: 2rem; }
.menu-list a { text-decoration: none; }
.menu-list a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* quotes */
.quotes { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(2, 41%); justify-content: space-between; } }
.quote { text-align: center; margin: 0; }
.quote .round { width: 8.25rem; height: 8.25rem; margin: 0 auto 1.5rem; border-radius: 50%; object-fit: cover; }
.quote .branch { margin: 0 auto 1.5rem; }
.quote blockquote { margin: 0; max-width: 34rem; margin-inline: auto; }
.quote blockquote p + p { margin-top: 1em; }
.quote cite { display: block; margin-top: 2rem; font-style: normal; }
.quote.single blockquote { max-width: 52rem; }

/* marquee (CSS only) */
.marquee { display: flex; overflow: hidden; padding-block: 0.5rem; border-block: 1px solid var(--line); }
.section > .marquee:last-child { border-bottom: 0; } /* the section already draws that line */
.marquee ul { display: flex; flex: 0 0 auto; gap: 0; margin: 0; padding: 0; list-style: none; animation: marquee 110s linear infinite; }
.marquee li { margin: 0; padding-inline: 2rem; white-space: nowrap; font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.4; color: var(--white); }
.marquee li::after { content: ""; display: inline-block; width: 0.4rem; height: 0.4rem; margin-left: 2rem; border-radius: 50%; background: currentColor; vertical-align: middle; }
.marquee.ink li { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* accordion (FAQ, training) */
.faq { list-style: none; padding: 0; margin: 0; }
.faq li, .faq li + li { margin: 0; }
.faq details { border-bottom: 1px solid var(--ink); }
.faq li:first-child details { border-top: 1px solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-label); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--pink); }
.faq .answer { padding: 0 0 1.75rem; max-width: 48rem; }
.faq .answer > * + * { margin-top: 0.75em; }

/* two-column definition style list (supervision page "Who is this for" columns) */
.cols { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.cols h3 { margin-top: 1.5rem; font-weight: 700; }
.cols h3:first-child { margin-top: 0; }
.fees li { margin-top: 0.75em; }

/* arrows list on the Aligned Leader block */
.shifts p + p { margin-top: 0.75em; }

/* home: "Why choose" - text inset to 16.8vw, caption, photo bleeding to the right edge */
.why { display: grid; gap: var(--gap); }
@media (min-width: 48rem) {
  .why { grid-template-columns: minmax(0, 1fr) auto clamp(16rem, 32.8vw, 30rem); gap: 0; align-items: start; padding-left: calc(16.8vw - var(--gutter)); }
  .why > .flow { padding-right: 4rem; padding-top: 5rem; padding-bottom: 4rem; }
  .why > .vert { padding-top: 2.25rem; padding-inline: 1rem; }
  .why > .media img { height: 100%; aspect-ratio: auto; border-radius: 0; }
  .why > .media { height: 100%; }
}
.section.why-section { padding-block: 0; }
.section.why-section > .wrap { width: auto; margin-left: var(--gutter); margin-right: 0; }
@media (max-width: 47.99rem) { .section.why-section > .wrap { margin-right: var(--gutter); padding-block: var(--section); } }
@media (min-width: 48rem) {
  .split.guest { grid-template-columns: 37% 1fr; gap: 5%; }
  .split.news { grid-template-columns: 41% 45%; justify-content: space-between; }
}

/* 8. Forms ------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.field label, .field legend { font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.req { color: var(--pink); }
.hint { font-size: 0.85rem; }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input[type="date"] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--teal); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: grid; gap: 0.5rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2rem; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.choices input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; }
.map { aspect-ratio: 16 / 7; min-height: 18rem; width: 100%; }

/* Kit signup forms: the embed code from Kit is pasted inside .signup unchanged */
.signup { background: var(--white); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.signup .placeholder { border: 1px dashed var(--ink); padding: 1.5rem; text-align: center; font-size: 0.9rem; }
.t-dark .signup, .t-bright .signup { color: var(--ink); }
.signup h4 { color: var(--pink); margin-bottom: 0.5rem; }

/* 9. Blog ---------------------------------------------------------------- */
.post-list { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.post-card { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 48rem) { .post-card { grid-template-columns: 2fr 3fr; gap: var(--gap); } }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post-card .meta { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-label); }
.post-card h2 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); margin: 0.4rem 0 0.75rem; }
.post-card h2 a { text-decoration: none; color: var(--pink); }
.post-card h2 a:hover { text-decoration: underline; }
.post-card .more { display: inline-block; margin-top: 0.75rem; font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.post { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
.post-header { text-align: center; margin-bottom: 2rem; }
.post-header .meta { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.post-header h1 { color: var(--pink); margin-top: 0.75rem; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
.post-featured { margin: 0 0 2.5rem; }
.post-featured img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: var(--radius); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { color: var(--pink); margin-top: 1.6em; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); }
.post-body h3 { margin-top: 1.4em; font-weight: 700; font-size: 1rem; }
.post-body h4 { margin-top: 1.4em; font-size: 1.4rem; }
.post-body img { margin-inline: auto; border-radius: var(--radius); }
.post-body figure { margin: 1.5em 0; }
.post-body figcaption { font-size: 0.85rem; text-align: center; margin-top: 0.5rem; }
.post-body blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--pink); font-style: italic; }
.post-body a { color: var(--teal); }
.post-body iframe { width: 100%; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.post-body td, .post-body th { border: 1px solid #ccc; padding: 0.5rem; text-align: left; vertical-align: top; }
.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); font-family: var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.pagination { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; font-family: var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; }

/* 10. Footer ------------------------------------------------------------ */
.site-footer { background: var(--white); color: var(--ink); }
.footer-top { display: grid; }
@media (min-width: 48rem) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-cell { padding: clamp(2rem, 4vw, 3rem) var(--gutter); display: grid; place-items: center; text-align: center; }
.footer-cell + .footer-cell { border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .footer-cell + .footer-cell { border-top: 0; border-left: 1px solid var(--line); } }
.footer-cell .label { max-width: 24rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.footer-nav li { margin: 0; }
.footer-nav a { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem; }
.footer-badge { border-top: 1px solid var(--line); padding: clamp(2rem, 4vw, 3rem) var(--gutter); display: grid; place-items: center; }
.footer-badge img { width: clamp(6rem, 10vw, 8rem); }
.footer-base { padding: 0 var(--gutter) 2rem; text-align: center; font-size: 0.85rem; }
.footer-base p + p { margin-top: 0.5rem; }
.footer-base a { color: var(--pink-light); text-decoration: none; }
.footer-base a:hover { text-decoration: underline; }

/* 11. Motion + print ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .social a, .nav-list a, .card.link img, .menu-icon::before, .menu-icon::after, .faq summary::after, .site-header, .header-inner, .logo img { transition: none; }
  .btn:hover, .social a:hover, .card.link:hover img { transform: none; }
  .marquee { flex-wrap: wrap; }
  .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
}
@media print {
  .site-header, .site-footer .footer-nav, .skip-link, .marquee { display: none; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .hero h3 { color: var(--ink); }
  .section { border: 0; }
}

/* text colours that Squarespace set with inline spans (sqsrte-text-color--accent / darkAccent / white). Doubled class beats theme rules. */
.c-teal.c-teal, .c-teal.c-teal > a { color: var(--teal); }
.c-pink.c-pink, .c-pink.c-pink > a { color: var(--pink); }
.c-yellow.c-yellow, .c-yellow.c-yellow > a { color: var(--yellow); }
.c-ink.c-ink, .c-ink.c-ink > a { color: var(--ink); }
.c-white.c-white, .c-white.c-white > a { color: var(--white); }
.testimonials h2, .testimonials blockquote, .testimonials cite { color: var(--teal); }
.guest h2 { color: var(--pink); }
.marquee.sm li { font-size: 1.375rem; }

/* link cards: title sits over the image in white, as on the live site */
.card.link { position: relative; }
.card.link h2 { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--white); background: rgb(74 74 74 / 0.25); }
.card.link h2 a { color: var(--white); text-decoration: none; }
.card.link h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Services hero: image fills the right half, flush to the right edge and the bottom, starting below the label */
@media (min-width: 48rem) {
  .bleed.services-hero { grid-template-columns: minmax(0, 1fr) 50%; min-height: 75vw; align-items: stretch; }
  .bleed.services-hero > .bleed-body { padding: 23vw 4rem 5vw var(--gutter); }
  .bleed.services-hero > .bleed-body > * { max-width: 32vw; }
  .bleed.services-hero > .bleed-media { order: 2; min-height: 0; height: auto; display: grid; align-items: end; }
  .bleed.services-hero > .bleed-media img { height: 60vw; max-height: none; object-position: center; }
  /* About "My Approach": text column starts at 57% and is 29% wide, as on the live site */
  .bleed.approach { grid-template-columns: 31% auto minmax(0, 1fr); min-height: 75vw; }   /* the live section is as tall as its portrait image */
  .bleed.approach > .bleed-body { padding: 3.4vw 14vw 5vw 20vw; }
}

/* each section fades up as it enters the viewport (scroll-driven, no script) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main > section { animation: section-in linear both; animation-timeline: view(); animation-range: entry 0% entry 25%; }
  }
}
@keyframes section-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
