/* ==========================================================================
   Carey Therapies — website styles
   Colours are taken directly from the business card and logo.
   ========================================================================== */

:root {
  /* Teals */
  --frame: #00859D;        /* side borders — same teal as the business card */
  --banner: #05617B;       /* banner, footer and body text (“dark teal”) */
  --deep: #03495D;         /* hover / pressed states */
  --mist: #EAF5F7;         /* quiet panels */
  --rule: #CDE5EA;         /* dividers in the FAQ */
  --white: #FFFFFF;

  /* Neon, from the three speech lines in the logo.
     Text uses the pale “core” with a coloured glow (as the logo draws it),
     which keeps it readable on dark teal (WCAG AA). */
  --neon-green: #C2F7A6;   --glow-green: 123 234 70;   --line-green: #4FC61F;
  --neon-orange: #FFCB9E;  --glow-orange: 255 154 82;  --line-orange: #FF7A2B;
  --neon-magenta: #F6C6FC; --glow-magenta: 227 107 245; --line-magenta: #D240EA;

  /* Type — Aptos as briefed, with the closest system fonts as fall-backs */
  --font-text: Aptos, "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
               system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", Aptos, "Segoe UI Variable Display", "Segoe UI", -apple-system,
               BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale: body text about 14pt (18px on phones, 19px on larger screens) */
  --fs-small: 1rem;                                         /* 12pt      */
  --fs-body: clamp(1.125rem, 1.03rem + 0.35vw, 1.1875rem);  /* 13.5–14pt */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem);      /* 15–16.5pt */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.35vw, 1.375rem);      /* 15–16.5pt */
  --fs-h2: clamp(1.75rem, 1.45rem + 1vw, 2.125rem);         /* 21–25.5pt */
  --fs-h1: clamp(2.25rem, 1.6rem + 2.1vw, 3.375rem);        /* 27–40.5pt */
  --fs-hero: clamp(2.25rem, 1.45rem + 2.7vw, 3.625rem);

  /* Layout */
  --frame-w: clamp(10px, 3.4vw, 1.5cm);   /* 1.5cm on desktop, slimmer on phones */
  --banner-h: 3cm;
  --measure: 44rem;                        /* comfortable centred line length */
  --measure-wide: 58rem;
  --radius: 0.5rem;

  /* “Contact” buttons: neon orange from the logo, dark teal writing (4.7:1) */
  --contact-bg: #FF9A52;
  --contact-bg-hover: #FFB27A;
  --contact-ink: #03495D;
  --heading-orange: #C2620A;   /* the button orange, deepened to stay readable on pale panels */
  /* Neon pink and green buttons, same dark teal writing (4.7:1 and 6.5:1) */
  --pink-bg: #F08CFA;
  --pink-bg-hover: #F6B0FB;
  --green-bg: #7BEA46;
  --green-bg-hover: #9CF07A;

  /* The big logo in the top-left corner, overlapping banner and page */
  --banner-pad: clamp(1rem, 2.4vw, 2rem);
  --badge-left: clamp(0.75rem, 1.6vw, 1.5rem);
  --badge-top: 0.75rem;
  --badge-d: clamp(15.12rem, min(22.09vw, 38.37vh), 25.58rem);
}

/* ---------- Base ---------- */

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

html {
  background: var(--frame);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--frame);
  color: var(--banner);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1.15em; }

a {
  color: var(--banner);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--frame);
  outline-offset: 3px;
  border-radius: 3px;
}

strong { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--banner);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- The frame: pale teal borders at the sides ---------- */

.frame {
  margin-inline: var(--frame-w);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

main { flex: 1 0 auto; }

/* Signature face: subset of TeX Gyre Chorus, renamed as the GUST licence asks.
   Self-hosted so the site still makes no third-party requests. */
@font-face {
  font-family: "Carey Script";
  src: url("fonts/carey-script.woff") format("woff");
  font-display: swap;
}

.signature {
  font-family: "Carey Script", "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem);
  line-height: 1.1;
  color: var(--frame);
}

/* ---------- Neon text ---------- */

.neon-green   { --core: var(--neon-green);   --glow: var(--glow-green); }
.neon-orange  { --core: var(--neon-orange);  --glow: var(--glow-orange); }
.neon-magenta { --core: var(--neon-magenta); --glow: var(--glow-magenta); }

.neon-green, .neon-orange, .neon-magenta {
  color: var(--core);
  text-shadow: 0 0 0.45em rgb(var(--glow) / 0.55);
}
/* keep the neon colour on hover (the general link hover colour would hide it) */
.neon-green:hover, .neon-orange:hover, .neon-magenta:hover {
  color: var(--core);
  text-shadow: 0 0 0.6em rgb(var(--glow) / 0.8);
}

/* ---------- Banner ---------- */

.banner {
  position: relative;
  z-index: 3;                    /* so the logo can hang over the page below */
  background: var(--banner);
  color: var(--white);
}

.banner-inner {
  position: relative;
  min-height: var(--banner-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem var(--banner-pad);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding-left: calc(var(--badge-left) + var(--badge-d) + 1.15rem - var(--banner-pad));
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
}
.brand:hover { color: var(--white); }

.brand-badge {
  position: absolute;
  z-index: 1;
  left: var(--badge-left);
  top: var(--badge-top);
  width: var(--badge-d);
  height: var(--badge-d);
  border-radius: 50%;
  background: var(--white);
  overflow: visible;
  /* ring in the business-card teal, and a soft shadow where it sits over the page */
  box-shadow: 0 0 0 5px var(--frame), 0 12px 28px rgb(3 73 93 / 0.28);
  --speech-delay: 0.35s;         /* the logo speaks first… */
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.003em;
}

.tagline {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.tagline span { display: block; }   /* the three words stack, like the three speech lines */

/* Main navigation */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
}

.site-nav a,
.footer-nav a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-nav { position: relative; z-index: 2; }   /* never sits under the logo */

/* grows with the window: 17px on a narrow laptop, about 22px at 1700px, 26px max */
.site-nav a { font-size: clamp(1.0625rem, 0.15rem + 1.15vw, 1.625rem); }

/* The “you are here” mark: a dashed neon line, like the speech lines in the logo */
.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: 0.1rem;
  height: 4px;
  background: rgb(var(--glow));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4'%3E%3Crect x='0' y='0' width='8' height='4' rx='2'/%3E%3C/svg%3E") repeat-x left center;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4'%3E%3Crect x='0' y='0' width='8' height='4' rx='2'/%3E%3C/svg%3E") repeat-x left center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.site-nav a:hover::after,
.footer-nav a:hover::after,
.site-nav a[aria-current="page"]::after { opacity: 1; }

.site-nav a:focus-visible,
.footer-nav a:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible,
.menu-toggle:focus-visible {
  outline-color: var(--white);
}

/* Menu button (small screens) */

.menu-toggle {
  position: relative;
  z-index: 3;            /* always clickable, whatever else is on the banner */
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.15rem;
  padding: 0.5rem 1rem;
  border: 2px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font: 700 1.3125rem/1 var(--font-text);
  cursor: pointer;
}
.menu-toggle:hover { border-color: rgb(255 255 255 / 0.7); }

/* Three bars in the logo’s three neon colours */
.menu-icon { position: relative; display: block; width: 1.65rem; height: 1.2rem; }
.menu-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3.5px;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-icon i:nth-child(1) { top: 0;               background: rgb(var(--glow-green)); }
.menu-icon i:nth-child(2) { top: calc(50% - 1.5px); background: rgb(var(--glow-orange)); }
.menu-icon i:nth-child(3) { bottom: 0;            background: rgb(var(--glow-magenta)); }

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

@media (max-width: 1239px) {
  :root { --badge-d: clamp(9.88rem, 22.09vw, 15.12rem); }
  .brand { max-width: calc(100% - 10.5rem); }   /* keep room for the menu button */
  .js .menu-toggle { display: inline-flex; }
  .site-nav.is-open { background: var(--banner); }

  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }

  .site-nav { padding-bottom: 0.5rem; }
  .site-nav ul { flex-direction: column; gap: 0; text-align: center; }
  .site-nav li + li { border-top: 1px solid rgb(255 255 255 / 0.12); }
  .site-nav a {
    display: block;
    padding: 0.95rem 0.5rem;
    font-size: 1.125rem;
  }
  .site-nav a::after {
    left: 50%;
    right: auto;
    width: 4rem;
    bottom: 0.4rem;
    transform: translateX(-50%);
  }
}

/* The menu button also takes over when the links genuinely don't fit on one
   row - wider fonts than we assumed, or a larger default text size. */
html.js.nav-collapsed .menu-toggle { display: inline-flex; }
html.js.nav-collapsed .site-nav { display: none; width: 100%; padding-bottom: 0.5rem; }
html.js.nav-collapsed .site-nav.is-open { display: block; background: var(--banner); }
html.nav-collapsed .site-nav ul { flex-direction: column; gap: 0; text-align: center; }
html.nav-collapsed .site-nav li + li { border-top: 1px solid rgb(255 255 255 / 0.12); }
html.nav-collapsed .site-nav a { display: block; padding: 0.95rem 0.5rem; font-size: 1.125rem; }
html.nav-collapsed .site-nav a::after {
  left: 50%; right: auto; width: 4rem; bottom: 0.4rem; transform: translateX(-50%);
}

@media (max-width: 560px) {
  .banner-inner { padding-block: 0.5rem; gap: 0.5rem 0.75rem; flex-wrap: wrap; }
  :root { --badge-d: clamp(7.56rem, 30.23vw, 9.3rem); --badge-top: 0.55rem; }
  .brand { max-width: calc(100% - 5.5rem); }                  /* leave room for the menu button */
  .brand-badge { box-shadow: 0 0 0 3px var(--frame), 0 8px 18px rgb(3 73 93 / 0.25); }
  .brand-name { font-size: 1.3rem; }
  .tagline { font-size: 0.75rem; letter-spacing: 0; }
  /* no room for the word beside the icon, so it sits underneath */
  .menu-toggle {
    flex-direction: column;
    gap: 0.2rem;
    min-height: 0;
    padding: 0.4rem 0.55rem;
    border-color: rgb(255 255 255 / 0.7);
  }
  .menu-icon { width: 1.75rem; height: 1.3rem; }
  .menu-icon i { height: 3.5px; }
  .menu-label { font-size: 0.8125rem; letter-spacing: 0.02em; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }
  .menu-toggle { padding: 0.6rem 0.7rem; }
}

@media (max-width: 380px) {
  :root { --badge-d: 5.6rem; }
  .brand-name { font-size: 1rem; }
  .menu-icon { width: 1.55rem; height: 1.15rem; }
  .menu-toggle { padding: 0.35rem 0.45rem; }
  .menu-label { font-size: 0.75rem; }
  .tagline { font-size: 0.6875rem; }
}

/* ---------- Main content ---------- */

main {
  padding:
    clamp(2.5rem, 6vw, 4.5rem)
    clamp(1.25rem, 5vw, 3.5rem)
    clamp(3.5rem, 7vw, 6rem);
  /* start the page below the part of the disc that hangs over it */
  padding-top: max(clamp(2.5rem, 6vw, 4.5rem),
                   calc(var(--badge-top) + var(--badge-d) - var(--banner-h) + 1rem));
}

.page {
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;          /* centred text, as briefed */
}

.page p,
.page ul,
.page ol { max-width: var(--measure); margin-inline: auto; }

p { text-wrap: pretty; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--frame);          /* the business-card teal, used large */
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h2 {
  max-width: var(--measure);
  margin: 3.5rem auto 1rem;
  font-size: var(--fs-h2);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

h3 {
  margin: 2rem auto 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--banner);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.small { font-size: var(--fs-small); }

/* Page title: a medium head from the logo “speaks” the title */
.page-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.4vw, 1rem);
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}
.page-head h1 { text-align: center; }
.head-mark {
  width: clamp(4.75rem, 10vw, 8.5rem);
  flex: none;
  --speech-delay: 1.05s;         /* …then the head beside the title */
}

h1:focus, main:focus { outline: none; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 2rem auto 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border: 2px solid var(--banner);
  border-radius: var(--radius);
  background: var(--banner);
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }

.button--quiet { background: transparent; color: var(--banner); }
.button--quiet:hover { background: var(--mist); color: var(--deep); border-color: var(--deep); }

.button--orange {
  background: var(--contact-bg);
  border-color: var(--contact-bg);
  color: var(--contact-ink);
  font-weight: 700;
  box-shadow: 0 0 1.1rem rgb(var(--glow-orange) / 0.55);
}
.button--orange:hover {
  background: var(--contact-bg-hover);
  border-color: var(--contact-bg-hover);
  color: var(--contact-ink);
  box-shadow: 0 0 1.4rem rgb(var(--glow-orange) / 0.75);
}

.button--pink,
.button--green { color: var(--contact-ink); font-weight: 700; }

.button--pink {
  background: var(--pink-bg);
  border-color: var(--pink-bg);
  box-shadow: 0 0 1.1rem rgb(var(--glow-magenta) / 0.5);
}
.button--pink:hover {
  background: var(--pink-bg-hover);
  border-color: var(--pink-bg-hover);
  color: var(--contact-ink);
  box-shadow: 0 0 1.4rem rgb(var(--glow-magenta) / 0.7);
}

.button--green {
  background: var(--green-bg);
  border-color: var(--green-bg);
  box-shadow: 0 0 1.1rem rgb(var(--glow-green) / 0.5);
}
.button--green:hover {
  background: var(--green-bg-hover);
  border-color: var(--green-bg-hover);
  color: var(--contact-ink);
  box-shadow: 0 0 1.4rem rgb(var(--glow-green) / 0.7);
}

/* ---------- Home ---------- */

.hero { margin-bottom: clamp(3rem, 7vw, 4.5rem); }

.hero h1 {
  max-width: 19ch;
  margin-inline: auto;
  font-size: var(--fs-hero);
}

.hero .lead { max-width: 38rem; margin: 1.1rem auto 0; }
.hero .actions { margin-top: 1.75rem; }
.hero-note { margin: 1.1rem auto 0; font-size: var(--fs-small); }

/* Speech lines from the mouth: said once, each time a page opens */
@media (prefers-reduced-motion: no-preference) {
  .speech .dash {
    opacity: 0;
    animation: speak 0.3s ease-out forwards;
    animation-delay: calc(var(--speech-delay, 0.45s) + var(--line) * 0.12s + var(--i) * 0.075s);
  }
}
@keyframes speak { to { opacity: 1; } }

/* ---------- Lists ---------- */

.plain-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.plain-list li + li { margin-top: 1.1rem; }

.credential-list { list-style: none; padding: 0; margin: 0 auto; }
.credential-list li + li { margin-top: 0.55rem; }

/* Conditions: term and plain description */
.conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3rem;
  max-width: var(--measure-wide);
  margin: 2rem auto 0;
}
.conditions > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 27rem;
}
.conditions dt {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
}
.conditions dd { margin: 0.35rem 0 0; }

@media (max-width: 700px) {
  .conditions { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- What happens next: steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2.75rem auto 0;
}

.step { position: relative; padding-bottom: 3.6rem; }
.step:last-child { padding-bottom: 0; }

.step-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--banner);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.step-title {
  margin: 0 auto 0.4rem;
  font-family: var(--font-text);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--banner);
}
.step p { margin-bottom: 0; }

/* dashed connector between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  width: 4px;
  height: 2.2rem;
  transform: translateX(-50%);
  background: var(--frame);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='11'%3E%3Crect x='0' y='0' width='4' height='7' rx='2'/%3E%3C/svg%3E") repeat-y center top;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='11'%3E%3Crect x='0' y='0' width='4' height='7' rx='2'/%3E%3C/svg%3E") repeat-y center top;
}

/* ---------- Panels ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  max-width: 50rem;
  margin: 1.75rem auto 0;
}
.format {
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: var(--mist);
}
.format h3 { margin-top: 0; }
.format p:last-child { margin-bottom: 0; }

.panel {
  max-width: 48rem;
  margin: 3rem auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--mist);
}
.panel > h2:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

/* Highlight box: a lead-in line and a pulled-out statement */
.highlight { max-width: 48rem; margin: 3.25rem auto; }
.highlight-lead { margin-bottom: 0.75rem; }
.highlight blockquote {
  margin: 0 auto;
  max-width: 30rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
  line-height: 1.3;
  color: var(--frame);
  text-wrap: balance;
}
.highlight blockquote p { margin: 0; }

.heading-orange { color: var(--heading-orange); }

/* The Contact panel's heading is itself the email button */
.panel-cta { margin: 0 0 0.25rem; font-size: inherit; letter-spacing: normal; }

.sign-off {
  margin-top: 2.5rem;
  font-size: var(--fs-lead);
}
.sign-off .signature { display: block; margin-top: 0.1rem; }

.intro { font-style: italic; font-size: var(--fs-lead); }

/* About: photo */
.portrait {
  width: min(15rem, 62vw);
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  box-shadow: 0 8px 22px rgb(3 73 93 / 0.16);
}
.portrait img { width: 100%; height: auto; }   /* shown exactly as framed, not cropped */

/* Contact */
/* Dark version of the panel, so the logo's own neon orange can be used on it */
.panel--dark {
  background: var(--banner);
  color: var(--white);
}
.panel--dark .heading-orange {
  color: var(--neon-orange);
  text-shadow: 0 0 0.45em rgb(var(--glow-orange) / 0.55);
}
.panel--dark .contact-details dt { color: rgb(255 255 255 / 0.85); }
.panel--dark .contact-details dd,
.panel--dark .contact-details a,
.panel--dark .contact-details a:hover,
.panel--dark p { color: var(--white); }
.panel--dark a:focus-visible { outline-color: var(--white); }

.contact-details { margin: 1.5rem 0 1.75rem; }
.contact-details div + div { margin-top: 1.25rem; }
.contact-details dt { font-size: var(--fs-small); font-weight: 600; }
.contact-details dd { margin: 0.15rem 0 0; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.45rem); overflow-wrap: anywhere; }
.contact-details a { font-weight: 600; }

/* Next-page signpost */
.next-step { margin-top: 3.5rem; }
.next-step p { margin-bottom: 0; }

/* ---------- Details still to come ---------- */

.pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.6em;
  border: 2px dashed #D9962A;
  border-radius: 0.4rem;
  background: #FFF6E0;
  color: #7A4F00;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: baseline;
}
.portrait .pending {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border-radius: 50%;
  text-align: center;
}

/* Phone: shown only once a number has been added in assets/site.js */

/* Photo and logo slots hide themselves until the image file exists */
.slot[hidden] { display: none; }

/* ---------- FAQ (left aligned, as briefed) ---------- */

.page--left { text-align: left; max-width: 52rem; }
.page--left p { margin-inline: 0; }

.faq { margin-top: 1rem; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
  color: var(--banner);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--deep); }

/* plus sign that turns into a cross when open */
.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  background:
    linear-gradient(var(--frame), var(--frame)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--frame), var(--frame)) center / 2.5px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] > summary::after { transform: rotate(45deg); }

.faq .answer { padding: 0 2.35rem 1.5rem 0; }
.faq .answer p:last-child { margin-bottom: 0; }

.faq-end { margin-top: 3rem; }
.faq-end .actions { justify-content: flex-start; margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--banner);
  color: var(--white);
  text-align: center;
}

.footer-inner {
  min-height: 3cm;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
}
.footer-brand:hover { color: var(--white); }
.footer-badge {
  width: 5.81rem;
  height: 5.81rem;
  border-radius: 50%;
  background: var(--white);
  --speech-delay: 0.35s;
}

.footer-contact {
  list-style: none;
  margin: 1.4rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.25rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.footer-contact .fc-label {
  margin-right: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
}
.footer-contact a { color: var(--white); text-underline-offset: 0.2em; }
.footer-contact a:hover { color: var(--white); text-decoration-thickness: 2px; }

.footer-heading {
  margin: 2.25rem auto 0.35rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.35rem;
}

.credentials {
  list-style: none;
  max-width: 54rem;
  margin: 2rem auto 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.8;
}
.credentials li { display: inline; white-space: nowrap; }   /* keep each credential in one piece */
.credentials li:not(:last-child)::after { content: " \00B7 "; white-space: pre; }

@media (max-width: 700px) {
  .credentials li { display: block; white-space: normal; }
  .credentials li:not(:last-child)::after { content: none; }
}

.accreditations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.75rem auto 0;
}
/* if neither logo file has been added yet, hide the empty row */
.accreditations:not(:has(> :not([hidden]))) { display: none; }

.accreditations img {
  height: 3.5rem;
  width: auto;
  padding: 0.4rem 0.6rem;
  border-radius: 0.35rem;
  background: var(--white);
}

.legal {
  margin: 1.75rem 0 0;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.82);
}

/* ---------- Preview-only note (not in the real site) ---------- */

.preview-note {
  margin: 0;
  padding: 0.6rem 1rem;
  background: #FFF6E0;
  color: #5E3D00;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body, html { background: #fff; }
  .frame { margin: 0; }
  .menu-toggle, .site-nav, .footer-nav, .skip-link, .actions { display: none !important; }
  .banner, .site-footer { background: #fff; color: var(--banner); }
  .brand, .footer-brand { color: var(--banner); }
  .brand-badge, .head-mark { display: none; }
  .brand { padding-left: 0; }
}
