/* Styles for published pages. Also loaded in the editor canvas so it matches. */
*, *::before, *::after { box-sizing: border-box; }
/* Site-wide style comes in as --site-* variables (see theme_head() in lib.php). */
body { margin: 0; background: var(--site-bg, #fff); }
.site {
  max-width: 1040px; margin: 0 auto; padding: 0 16px 48px;
  font: 17px/1.6 var(--site-font, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--site-text, #1f2933); background: var(--site-bg, #fff);
}
.site > * { margin: 0 0 20px; }

.b-heading { line-height: 1.2; margin-top: 8px; font-family: var(--site-heading-font, inherit); color: var(--site-headings, inherit); }
.b-hero h1 { font-family: var(--site-heading-font, inherit); }
.site a:not(.btn) { color: var(--site-accent, #3a59d1); }
.b-text { white-space: normal; }
.b-image { margin: 0; }
.b-image img { display: block; max-width: 100%; height: auto; border-radius: 6px; margin: 0 auto; }
.b-image figcaption { font-size: 14px; opacity: .75; margin-top: 6px; text-align: center; }

/* 48px tall so thumbs don't miss; feedback within 100ms and done well under 300ms. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 8px;
  background: var(--site-accent, #3a59d1); color: var(--site-on-accent, #fff);
  border: 2px solid var(--site-accent, #3a59d1);
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: filter .15s ease-out, background-color .15s ease-out, translate .1s ease-out, box-shadow .1s ease-out;
}
.btn:hover { filter: brightness(.88); }
.btn:active { translate: 0 1px; }
.btn:disabled { cursor: default; }

/* Shape is separate from the look: rectangle (8px corners) or pill (radius = height ÷ 2).
   A button's own .is-pill / .is-rect wins; otherwise it follows data-shape on .site. */
.site[data-shape="pill"] .btn:not(.is-rect), .btn.is-pill { border-radius: 999px; }
.btn.is-rect { border-radius: 8px; }

/* Focus is always visible for keyboard users: 2px ring, offset from the edge. */
.site :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--site-accent, #3a59d1); outline-offset: 3px;
}
.b-hero :is(a, button):focus-visible { outline-color: currentColor; }
/* A button with its own style has a .btn-<style> class; one without (hero buttons, buttons set
   to "Site default") follows the site's choice, set as data-buttons on .site. Solid is plain .btn. */
.btn-outline,
.site[data-buttons="outline"] .btn:not([class*="btn-"]) {
  background: transparent; color: var(--site-accent, #3a59d1);
}
.btn-outline:hover,
.site[data-buttons="outline"] .btn:not([class*="btn-"]):hover {
  filter: none; background: color-mix(in srgb, var(--site-accent, #3a59d1) 12%, transparent);
}

/* Raised: four shadows (light on the top edge, shade on the bottom edge, a contact shadow
   and a glow in the button's colour) over a gentle top-to-bottom gradient. */
.btn-raised,
.site[data-buttons="raised"] .btn:not([class*="btn-"]) {
  border-color: transparent;
  background: linear-gradient(color-mix(in srgb, var(--site-accent, #3a59d1) 78%, #fff), var(--site-accent, #3a59d1)) border-box;
  box-shadow:
    inset 0 1px 0 #ffffff59,
    inset 0 -2px 0 #0003,
    0 1px 2px #0006,
    0 8px 24px -6px color-mix(in srgb, var(--site-accent, #3a59d1) 60%, transparent);
}
.btn-raised:hover,
.site[data-buttons="raised"] .btn:not([class*="btn-"]):hover { filter: brightness(1.06); }
.btn-raised:active,
.site[data-buttons="raised"] .btn:not([class*="btn-"]):active {
  translate: 0 1px; box-shadow: inset 0 2px 4px #0004;
}

/* Premium ("look expensive", @motion_ui_interface): lit from above — a bright top edge, a darker
   1px rim for 3:1 edge contrast, the button sitting in a faint recessed track, and a shadow that
   falls straight down. Two versions share the look:
     .btn-premium         still: hover and press change instantly, nothing moves
     .btn-premium-motion  motion: a light runs round the edge all the time; it lifts on hover and
                          presses in on click (feedback in 100ms). Per button only, never a site
                          default: one moving button draws the eye, several compete. */
.btn-premium, .btn-premium-motion,
.site[data-buttons="premium"] .btn:not([class*="btn-"]) {
  --p: var(--site-accent, #3a59d1);
  --track: color-mix(in srgb, var(--site-text, #1f2933) 7%, transparent);
  --fall: color-mix(in srgb, var(--p) 75%, #000);
  border: 1px solid color-mix(in srgb, var(--p) 62%, #000);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--p) 84%, #fff) 0%,
    var(--p) 52%,
    color-mix(in srgb, var(--p) 88%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .38),
    inset 0 -1px 0 rgb(0 0 0 / .2),
    0 0 0 4px var(--track),
    0 1px 1px rgb(0 0 0 / .16),
    0 8px 16px -8px var(--fall);
}

/* Still: no transitions and no movement; the states are there, they just don't animate. */
.btn-premium,
.site[data-buttons="premium"] .btn:not([class*="btn-"]) { transition: none; }
.btn-premium .btn-icon,
.site[data-buttons="premium"] .btn:not([class*="btn-"]) .btn-icon { transition: none; translate: none; }
.btn-premium:hover,
.site[data-buttons="premium"] .btn:not([class*="btn-"]):hover { filter: brightness(1.05); }
.btn-premium:active,
.site[data-buttons="premium"] .btn:not([class*="btn-"]):active {
  translate: none; filter: brightness(.97);
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .28), 0 0 0 4px var(--track);
}

/* Motion */
.btn-premium-motion {
  position: relative;
  transition: translate .1s ease-out, box-shadow .2s ease-out, filter .2s ease-out;
}

/* The shine border (Frontend Hero's mask technique, https://www.youtube.com/watch?v=WnIC9Khdd9Q):
   a conic gradient — transparent, a white streak, a dark tail, transparent — is cut down to a
   thin ring by masking out the content box (mask-composite: exclude keeps only the padding,
   i.e. the ring). Rotating the gradient sends the light round the edge.
   Unlike the tutorial there are no extra elements and no oversized rotating box: one
   pseudo-element, whose gradient start angle is animated through a registered custom property. */
@property --shine-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-premium-motion::before {
  /* Per-button settings arrive as --shine-speed (s per lap), --shine-width (ring px) and
     --shine-strength (0–1); see shine_style() in lib.php. */
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: var(--shine-width, 1.5px);
  background: conic-gradient(from var(--shine-angle),
    transparent 0%,
    rgb(255 255 255 / var(--shine-strength, .95)) 10%,
    color-mix(in srgb, color-mix(in srgb, var(--p) 55%, #000) calc(var(--shine-strength, .95) * 100%), transparent) 15%,
    transparent 22%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: btn-shine var(--shine-speed, 3s) linear infinite;
}
@keyframes btn-shine { to { --shine-angle: 360deg; } }

.btn-premium-motion:hover {
  filter: brightness(1.05);
  translate: 0 -2px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .42),
    inset 0 -1px 0 rgb(0 0 0 / .2),
    0 0 0 4px var(--track),
    0 2px 2px rgb(0 0 0 / .14),
    0 14px 22px -8px var(--fall);
}
.btn-premium-motion:active {
  translate: 0 1px; filter: brightness(.97);
  transition-duration: .08s;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .28), 0 0 0 4px var(--track);
}

/* One icon, 10px after the label (the .btn gap). Arrows nudge the way they point on hover. */
.btn-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .15s ease-out; }
.btn:hover .btn-icon--arrow { translate: 3px 0; }
.btn:hover .btn-icon--external { translate: 2px -2px; }
.btn:hover .btn-icon--download { translate: 0 2px; }

/* ---------- Nav bar ----------
   Text links (never icon-only), 44px targets, the current page marked, and on phones a Menu
   button that says what it is. */
.b-nav { margin-left: -16px !important; margin-right: -16px !important; background: var(--site-bg, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--site-text, #1f2933) 12%, transparent); }
/* Header and footer pages around the page. A sticky nav in the header makes the whole header
   stick (a sticky element can only stick inside its own parent). */
.site-header { padding-bottom: 0; }
.site-header > :last-child { margin-bottom: 0; }
.site-header:has(.b-nav.is-sticky:not(.is-vertical)) { position: sticky; top: 0; z-index: 20; }
.site-header .b-nav.is-sticky:not(.is-vertical) { position: static; }
.site-header + .site-main { padding-top: 20px; }
.site-header + .site-main:has(> .b-hero:first-child) { padding-top: 0; }
.site-footer { padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--site-text, #1f2933) 12%, transparent); }
.site-main + .site-footer { margin-top: 24px; }

/* A hero straight after the nav sits flush against it. */
.site > .b-nav:has(+ .b-hero), .site > .eb:has(> .b-nav):has(+ .eb > .b-hero) { margin-bottom: 0; }
.b-nav.is-sticky { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 8px rgb(0 0 0 / .06); }
.b-nav-inner { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 64px; padding: 8px 16px; }
.b-nav-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px;
  color: inherit !important; text-decoration: none; font-family: var(--site-heading-font, inherit); font-weight: 700; font-size: 19px; }
.b-nav-logo { display: block; height: 36px; width: auto; }
.b-nav-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.b-nav.links-center .b-nav-links { flex: 1; justify-content: center; }
.b-nav.links-center .b-nav-brand { margin-right: 0; }
.b-nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px;
  color: inherit !important; text-decoration: none; font-weight: 500; transition: background-color .15s ease-out; }
.b-nav-links a:hover { background: color-mix(in srgb, var(--site-text, #1f2933) 7%, transparent); }
.b-nav-links a[aria-current="page"] { color: var(--site-accent, #3a59d1) !important; font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--site-accent, #3a59d1); border-radius: 6px 6px 0 0; }
.b-nav-cta .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.b-nav-toggle { display: none; }

@media (max-width: 700px) {
  .b-nav.js-ready .b-nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; order: 1;
    border: 1.5px solid color-mix(in srgb, var(--site-text, #1f2933) 25%, transparent); border-radius: 8px;
    background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
  }
  .b-nav-burger, .b-nav-burger::before, .b-nav-burger::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease-out; }
  .b-nav-burger { position: relative; }
  .b-nav-burger::before, .b-nav-burger::after { content: ""; position: absolute; left: 0; }
  .b-nav-burger::before { top: -5px; }
  .b-nav-burger::after { top: 5px; }
  .b-nav.open .b-nav-burger { background: transparent; }
  .b-nav.open .b-nav-burger::before { transform: translateY(5px) rotate(45deg); }
  .b-nav.open .b-nav-burger::after { transform: translateY(-5px) rotate(-45deg); }
  /* One row on phones: name and Menu. The main button leads the open menu, full width. */
  .b-nav.js-ready .b-nav-cta { display: none; order: 3; flex-basis: 100%; padding-top: 4px; }
  .b-nav.js-ready.open .b-nav-cta { display: block; }
  .b-nav.js-ready .b-nav-cta .btn { width: 100%; min-height: 48px; }
  .b-nav.js-ready .b-nav-links { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding: 4px 0 8px; }
  .b-nav.js-ready.open .b-nav-links { display: flex; }
  .b-nav.js-ready .b-nav-links a { width: 100%; padding: 0 8px; }
  .b-nav.links-center .b-nav-links { justify-content: flex-start; }
}

/* Vertical nav: for a sidebar or a column. Not full-bleed, links stacked, current page marked
   with a bar on the left. It never folds behind Menu. */
.b-nav.is-vertical { margin-left: 0 !important; margin-right: 0 !important; border: 1px solid color-mix(in srgb, var(--site-text, #1f2933) 12%, transparent); border-radius: 10px; }
.b-nav.is-vertical .b-nav-inner { flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; padding: 16px; }
.b-nav.is-vertical .b-nav-brand { margin-right: 0; }
.b-nav.is-vertical .b-nav-links { flex-direction: column; gap: 2px; }
.b-nav.is-vertical .b-nav-links a { width: 100%; padding: 0 12px; }
.b-nav.is-vertical .b-nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--site-accent, #3a59d1); border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--site-accent, #3a59d1) 8%, transparent); }
.b-nav.is-vertical .b-nav-cta .btn { width: 100%; }
.b-nav.is-vertical.is-sticky { top: 16px; }
.b-nav-social { gap: 2px; }

/* Phone number in the nav: tap to call. On phones it keeps its place in the top row as a
   44px call button (the number is still its accessible name). */
.b-nav-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 6px;
  color: inherit !important; text-decoration: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background-color .15s ease-out; }
.b-nav-phone:hover { background: color-mix(in srgb, var(--site-text, #1f2933) 7%, transparent); }
.b-phone-icon { flex: none; fill: none; stroke: var(--site-accent, #3a59d1); stroke-width: 2; stroke-linejoin: round; }
/* Wide screens: brand … links, social, phone, main button. */
.b-nav:not(.is-vertical) .b-nav-phone { order: 3; }
.b-nav:not(.is-vertical) .b-nav-cta { order: 4; }
.b-nav.is-vertical .b-nav-phone { padding: 0 12px; }
@media (max-width: 700px) {
  .b-nav.js-ready:not(.is-vertical) .b-nav-phone.is-main { order: 1; width: 44px; padding: 0; justify-content: center;
    border: 1.5px solid color-mix(in srgb, var(--site-text, #1f2933) 25%, transparent); border-radius: 8px; }
  .b-nav.js-ready:not(.is-vertical) .b-nav-phone.is-main :is(.b-phone-number, .b-phone-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b-nav.js-ready:not(.is-vertical) .b-nav-toggle { order: 2; }
  .b-nav.js-ready:not(.is-vertical) .b-nav-cta { order: 3; }
  /* Extra numbers live in the open menu, after the main button: full-width rows. */
  .b-nav.js-ready:not(.is-vertical) .b-nav-phone.is-extra { display: none; order: 4; flex-basis: 100%; }
  .b-nav.js-ready.open:not(.is-vertical) .b-nav-phone.is-extra { display: flex; }
}
.b-phone-label { font-weight: 400; font-size: .85em; opacity: .75; }
@media (max-width: 700px) {
  .b-nav.js-ready:not(.is-vertical) .b-nav-social { display: none; order: 6; flex-basis: 100%; padding-bottom: 8px; }
  .b-nav.js-ready.open:not(.is-vertical) .b-nav-social { display: flex; }
}

/* ---------- Social links ----------
   Icon-only links, each named for screen readers, 44px targets. Colour: brand colours, the
   site's accent, or the text colour; shape: plain, circle or rounded square. */
.b-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b-social-wrap[style*="text-align:center"] .b-social, .b-social-wrap[style*="text-align: center"] .b-social { justify-content: center; }
.b-social-wrap[style*="text-align:right"] .b-social, .b-social-wrap[style*="text-align: right"] .b-social { justify-content: flex-end; }
.b-social-link { --size: 44px; --glyph: 20px; display: inline-grid; place-items: center; width: var(--size); height: var(--size);
  color: inherit !important; text-decoration: none; border-radius: 50%; font-size: var(--glyph);
  transition: background-color .15s ease-out, color .15s ease-out, translate .1s ease-out; }
.b-social.size-s .b-social-link { --size: 36px; --glyph: 16px; }
.b-social.size-l .b-social-link { --size: 56px; --glyph: 26px; }
.b-social.shape-rounded .b-social-link { border-radius: 12px; }
.b-social.colour-brand .b-social-link { color: var(--brand, var(--site-text, #1f2933)) !important; }
.b-social.colour-accent .b-social-link { color: var(--site-accent, #3a59d1) !important; }
.b-social:is(.shape-circle, .shape-rounded) .b-social-link { background: color-mix(in srgb, currentColor 10%, transparent); }
.b-social:is(.shape-circle, .shape-rounded) .b-social-link:hover { background: currentColor; }
.b-social:is(.shape-circle, .shape-rounded) .b-social-link:hover i { color: var(--site-bg, #fff); }
.b-social.shape-plain .b-social-link:hover, .b-nav-social .b-social-link:hover { translate: 0 -2px; }
.b-nav-social .b-social-link { --size: 40px; --glyph: 18px; }

/* Heading with an inline icon: the icon is sized with the heading's own text and sits beside the
   first line; long headings wrap beside it rather than under it. */
.b-heading.has-icon { display: flex; align-items: baseline; gap: .45em; }
.b-heading-icon { flex: none; color: var(--site-accent, #3a59d1); font-size: .9em; line-height: 1; }
.b-heading-icon i { display: inline-block; width: 1.15em; text-align: center; }
.b-heading.has-icon[style*="text-align:center"], .b-heading.has-icon[style*="text-align: center"] { justify-content: center; }
.b-heading.has-icon[style*="text-align:right"], .b-heading.has-icon[style*="text-align: right"] { justify-content: flex-end; }

/* ---------- Map ---------- */
.b-map-frame { position: relative; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--site-text, #1f2933) 6%, var(--site-bg, #fff)); }
.b-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-map-load { position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: 4px;
  border: 1.5px dashed color-mix(in srgb, var(--site-text, #1f2933) 25%, transparent); border-radius: 12px; background: transparent;
  color: inherit; font: inherit; cursor: pointer; transition: background-color .15s ease-out; }
.b-map-load:hover { background: color-mix(in srgb, var(--site-accent, #3a59d1) 7%, transparent); }
.b-map-load strong { font-size: 18px; color: var(--site-accent, #3a59d1); }
.b-map-load span:last-child { font-size: 14px; opacity: .75; }
.b-map-pin { font-size: 34px; line-height: 1; color: var(--site-accent, #3a59d1); }
.b-map-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 0; }
.b-map-address { font-weight: 600; }
.b-map-meta a { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gallery ---------- */
.b-gallery { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.b-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-gallery.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 700px) { .b-gallery:is(.cols-3, .cols-4, .cols-5) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b-gallery figure { margin: 0; display: grid; gap: 6px; }
.b-gallery img { display: block; width: 100%; height: auto; border-radius: 8px; background: color-mix(in srgb, var(--site-text, #1f2933) 6%, transparent); }
.b-gallery.ratio-square img { aspect-ratio: 1; object-fit: cover; }
.b-gallery.ratio-landscape img { aspect-ratio: 4 / 3; object-fit: cover; }
.b-gallery figcaption { display: grid; gap: 2px; font-size: 14px; }
.b-gallery .g-caption { font-weight: 600; }
.b-gallery .g-caption a { color: inherit; }
.b-gallery .g-desc { opacity: .8; line-height: 1.45; }
:is(.g-link, .g-out) { display: block; border-radius: 8px; overflow: hidden; }
:is(.g-link, .g-out) img { transition: transform .25s ease-out, opacity .2s ease-out; }
:is(.g-link, .g-out):hover img { transform: scale(1.03); }

.g-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 64px 40px; border: 0;
  background: rgb(10 12 16 / .94); color: #fff; }
.g-lightbox::backdrop { background: rgb(10 12 16 / .6); }
.g-lightbox[open] { display: grid; place-items: center; }
.g-lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; max-height: 100%; }
.g-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.g-lightbox figcaption { display: grid; gap: 2px; text-align: center; font-size: 15px; opacity: .9; }
.g-lightbox figcaption .g-desc { opacity: .85; white-space: pre-line; }
.g-lightbox button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; font-size: 20px; cursor: pointer; }
.g-lightbox button:hover { background: rgb(255 255 255 / .2); }
.g-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.g-lightbox button[hidden] { display: none; }
.g-close { top: 14px; right: 14px; }
.g-prev { left: 14px; top: 50%; translate: 0 -50%; }
.g-next { right: 14px; top: 50%; translate: 0 -50%; }
.g-count { position: fixed; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; opacity: .8; }
@media (max-width: 600px) { .g-lightbox { padding: 56px 8px 48px; } .g-prev, .g-next { top: auto; bottom: 8px; translate: none; } }

/* ---------- Testimonials carousel ----------
   A native scroll-snap row: swipe and trackpad scrolling just work, and with no JavaScript every
   card is still reachable. assets/carousel.js adds the buttons, dots and optional autoplay. */
.b-testimonials { --gap: 20px; position: relative; }
.tm-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.tm-track::-webkit-scrollbar { display: none; }
.tm-track:focus-visible { outline-offset: 4px; border-radius: 12px; }
.tm-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: 14px; background: color-mix(in srgb, var(--site-text, #1f2933) 4%, var(--site-bg, #fff));
  border: 1px solid color-mix(in srgb, var(--site-text, #1f2933) 10%, transparent); }
.b-testimonials.per-2 .tm-slide { flex-basis: calc((100% - var(--gap)) / 2); }
.b-testimonials.per-3 .tm-slide { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
@media (max-width: 760px) { .b-testimonials .tm-slide { flex-basis: 100% !important; } }
.b-testimonials.per-1 .tm-slide { text-align: center; align-items: center; padding: 36px 28px; }
.tm-stars { color: #e8a317; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.tm-stars-off { color: color-mix(in srgb, var(--site-text, #1f2933) 18%, transparent); }
.tm-quote { margin: 0; font-size: 19px; line-height: 1.55; font-family: var(--site-heading-font, inherit); color: var(--site-headings, inherit); flex: 1; }
.b-testimonials.per-1 .tm-quote { font-size: clamp(19px, 2.4vw, 24px); max-width: 720px; }
.tm-quote p { margin: 0; }
.tm-quote p::before { content: "“"; } .tm-quote p::after { content: "”"; }
.tm-person { display: flex; align-items: center; gap: 12px; }
.tm-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.tm-who { display: grid; text-align: left; line-height: 1.3; }
.tm-who span { font-size: 14px; opacity: .75; }

.tm-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.tm-controls button { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--site-text, #1f2933) 22%, transparent);
  background: transparent; color: inherit; font: inherit; font-size: 18px; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out; }
.tm-controls button:hover:not(:disabled) { border-color: var(--site-accent, #3a59d1); color: var(--site-accent, #3a59d1); }
.tm-controls button:disabled { opacity: .35; cursor: default; }
.tm-controls .tm-pause { border-radius: 22px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.tm-dots { display: flex; gap: 2px; }
.tm-controls .tm-dot { min-width: 28px; min-height: 44px; border: 0; border-radius: 0; padding: 0; position: relative; }
.tm-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 5px;
  background: color-mix(in srgb, var(--site-text, #1f2933) 25%, transparent); transition: width .2s ease-out, background-color .2s ease-out; }
.tm-dot.on::after { background: var(--site-accent, #3a59d1); }
.tm-dot[aria-current="true"]::after { width: 20px; }
.tm-dot[hidden] { display: none; }

/* Icon block: one icon on its own. */
.b-solo-icon { line-height: 0; }
.b-solo-inner { --icon-colour: var(--site-accent, #3a59d1); display: inline-block; }
.b-solo-icon .b-icon { --s: 64px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); color: var(--icon-colour); font-size: calc(var(--s) * .45); line-height: 1; }
.b-solo-icon.size-s .b-icon { --s: 40px; }
.b-solo-icon.size-m .b-icon { --s: 52px; }
.b-solo-icon.size-xl .b-icon { --s: 96px; }
.b-solo-icon.icon-plain .b-icon { font-size: calc(var(--s) * .7); }
.b-solo-icon.icon-circle .b-icon { border-radius: 50%; background: color-mix(in srgb, var(--icon-colour) 12%, transparent); }
.b-solo-icon.icon-square .b-icon { border-radius: 22%; background: color-mix(in srgb, var(--icon-colour) 12%, transparent); }
.b-solo-icon a { display: inline-block; border-radius: 50%; color: inherit !important; text-decoration: none; transition: translate .15s ease-out; }
.b-solo-icon.icon-square a { border-radius: 22%; }
.b-solo-icon a:hover { translate: 0 -2px; }
.b-solo-icon a:hover .b-icon { background: color-mix(in srgb, var(--icon-colour) 20%, transparent); }

/* With the icon pack off, social links show their names instead of an empty circle, and the
   Icons block drops its empty icon spaces. */
.site[data-icons="off"] .b-social-link { width: auto; padding: 0 14px; font-size: 15px; font-weight: 600; }
.site[data-icons="off"] .b-social-link::after { content: attr(title); }
.site[data-icons="off"] .b-social-link i, .site[data-icons="off"] .b-icon,
.site[data-icons="off"] .b-heading-icon, .site[data-icons="off"] .b-solo-icon { display: none; }

/* ---------- Icons block ----------
   Icon above (or beside) a title and a line of text, in 1–4 columns. */
.b-icons { --icon-colour: var(--site-accent, #3a59d1); display: grid; gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.b-icons.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-icons.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-icons.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-icon-item { display: flex; flex-direction: column; align-items: inherit; gap: 12px; height: 100%; color: inherit !important; text-decoration: none; }
.b-icons-wrap { text-align: center; }
.b-icons-wrap .b-icon-item { align-items: center; }
.b-icons-wrap[style*="text-align:left"] .b-icon-item, .b-icons-wrap[style*="text-align: left"] .b-icon-item { align-items: flex-start; }
.b-icons.is-side .b-icon-item { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
a.b-icon-item { border-radius: 10px; padding: 8px; margin: -8px; transition: background-color .15s ease-out; }
a.b-icon-item:hover { background: color-mix(in srgb, var(--icon-colour) 7%, transparent); }
a.b-icon-item:hover .b-icon-title { text-decoration: underline; }
.b-icon { --s: 56px; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); color: var(--icon-colour); font-size: calc(var(--s) * .45); }
.b-icons.icon-s .b-icon { --s: 40px; }
.b-icons.icon-m .b-icon { --s: 48px; }
.b-icons.icon-xl .b-icon { --s: 72px; }
.b-icons.icon-plain .b-icon { width: auto; height: auto; font-size: calc(var(--s) * .62); }
.b-icons.icon-circle .b-icon { border-radius: 50%; background: color-mix(in srgb, var(--icon-colour) 12%, transparent); }
.b-icons.icon-square .b-icon { border-radius: 14px; background: color-mix(in srgb, var(--icon-colour) 12%, transparent); }
.b-icon-body { display: grid; gap: 4px; }
.b-icon-title { font-family: var(--site-heading-font, inherit); color: var(--site-headings, inherit); font-size: 18px; line-height: 1.3; }
.b-icon-text { opacity: .85; font-size: 16px; }
@media (max-width: 700px) {
  .b-icons.cols-3, .b-icons.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .b-icons { grid-template-columns: minmax(0, 1fr) !important; }
}

.b-divider { border: 0; border-top: 1px solid color-mix(in srgb, var(--site-text, #1f2933) 18%, transparent); }

.b-hero { margin-left: -16px !important; margin-right: -16px !important; background: #1f2a44 center/cover no-repeat; color: #fff; }
.b-hero-inner { padding: 96px 24px; text-align: center; }
.b-hero.has-image { color: #fff; }
.b-hero.has-image .b-hero-inner { background: rgba(15, 23, 42, .45); }
.b-hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 12px; line-height: 1.1; }
.b-hero p { font-size: 20px; margin: 0 auto 28px; max-width: 640px; opacity: .9; }

.b-video { position: relative; aspect-ratio: 16 / 9; }
.b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
/* A video file keeps its own shape. */
.b-video.is-file { aspect-ratio: auto; margin: 0; }
.b-video.is-file video { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; }

.b-columns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
.b-col > * { margin: 0 0 16px; }
@media (max-width: 700px) {
  .b-columns { grid-auto-flow: row; }
}

/* ---------- Forms ----------
   Labels sit above their field (the placeholder is only a hint), fields are 48px+ with
   16px between them and 32px before the button, and errors say what to do in plain words. */
.b-form-wrap { max-width: 640px; }
.b-form { --ff-line: color-mix(in srgb, var(--site-text, #1f2933) 28%, transparent); --ff-error: #c62828; }
.form-fields { display: grid; gap: 16px; }
.ff { display: grid; gap: 6px; }
.ff > label, .ff legend { font-weight: 600; font-size: 15px; line-height: 1.3; padding: 0; }
.ff-optional { font-weight: 400; opacity: .7; }
.ff-help { margin: -2px 0 2px; font-size: 14px; opacity: .75; }
.ff fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }

.ff input:not([type=checkbox]):not([type=radio]), .ff textarea, .ff select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid var(--ff-line); background: var(--site-bg, #fff); color: inherit;
  font: inherit; font-size: 17px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.ff textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ff select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.ff :is(input, textarea, select)::placeholder { color: inherit; opacity: .5; }
.ff :is(input, textarea, select):hover { border-color: color-mix(in srgb, var(--site-text, #1f2933) 50%, transparent); }
.site .ff :is(input, textarea, select):focus-visible {
  outline: none; border-color: var(--site-accent, #3a59d1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent, #3a59d1) 30%, transparent);
}

.ff-choices { display: grid; gap: 4px; }
.ff-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 400; }
.ff-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--site-accent, #3a59d1); cursor: pointer; }
.ff-single { font-weight: 400; }

.ff-echo { margin: 0; font-size: 14px; opacity: .75; min-height: 0; }
.ff-echo:empty { display: none; }
.ff-error { margin: 0; color: var(--ff-error); font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.ff-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ff-error); color: #fff; font-size: 12px; }
.ff-error[hidden], .form-alert[hidden], .form-success[hidden], .form-fields[hidden] { display: none; }
.ff.has-error :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { border-color: var(--ff-error); }

.form-submit { justify-self: start; margin-top: 16px; min-width: 160px; }
.form-submit[data-state="sending"] .btn-label::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ff-spin .7s linear infinite;
}
.form-submit[data-state="sent"] .btn-label::before { content: "✓ "; }
.form-submit:disabled { filter: none; opacity: .85; }
@keyframes ff-spin { to { rotate: 360deg; } }

.form-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; font-weight: 600;
  background: color-mix(in srgb, var(--ff-error) 10%, var(--site-bg, #fff)); color: var(--ff-error); border: 1px solid color-mix(in srgb, var(--ff-error) 35%, transparent); }
.form-retry { margin-left: 8px; min-height: 36px; padding: 0 14px; border-radius: 6px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ff-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The last screen is designed on purpose: a clear "done", not a blank form. */
.form-success { text-align: center; padding: 40px 24px; border-radius: 12px; outline: none;
  background: color-mix(in srgb, var(--site-accent, #3a59d1) 8%, var(--site-bg, #fff)); animation: ff-in .25s ease-out; }
.form-success h3 { margin: 12px 0 6px; font-family: var(--site-heading-font, inherit); color: var(--site-headings, inherit); font-size: 24px; }
.form-success p { margin: 0; }
.form-success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--site-accent, #3a59d1); color: var(--site-on-accent, #fff); font-size: 28px; font-weight: 700; }
@keyframes ff-in { from { opacity: 0; transform: translateY(6px); } }

/* Respect the reduced-motion setting: fades and instant changes, no movement. */
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:active, .btn:hover { translate: none !important; }
  /* Premium + motion falls back to the still look: no running light, no lift. */
  .btn-premium-motion::before { display: none; }
}
