/* ================================================================
   BK Ireland Template — template.css
   Design: "Still Water" — a calm, light turquoise meditation palette.
   Soft aqua surfaces with a deep-teal accent and a gold "point of light".
   Dark indigo retained for footer / inner page-header bands.
   ================================================================ */

/* ----------------------------------------------------------------
   1. Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bk-base:        #FBF9F6;   /* warm paper */
  --bk-surface:     #FFFFFF;

  /* Turquoise accents */
  --bk-teal:        #138278;   /* turquoise (primary accent, links) */
  --bk-teal-soft:   #36ABA0;   /* softened turquoise for buttons */
  --bk-teal-dk:     #0E635B;   /* deep teal for hover / accent text */
  --bk-teal-lt:     #E2F3F0;   /* pale aqua tint (chips, halos) */
  --bk-gold:        #F2C879;   /* first-light gold (the point) */

  /* Soft turquoise hero */
  --bk-aqua-1:      #F1FAF9;   /* top: near-white mint */
  --bk-aqua-2:      #D8F0EC;   /* mid: soft aqua */
  --bk-aqua-3:      #BFE6E0;   /* base: light turquoise */
  --bk-cool-muted:  #5E7370;   /* cool secondary text on the hero */

  /* Ink */
  --bk-slate:       #1A1C33;   /* indigo night */
  --bk-slate-2:     #2A2D4A;   /* lifted indigo */
  --bk-muted:       #6B6F8A;   /* indigo-grey text */
  --bk-border:      #ECE7E0;

  /* Type */
  --bk-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --bk-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --bk-font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --bk-radius-card: 1rem;
  --bk-radius-btn:  0.5rem;
  --bk-shadow-card: 0 1px 2px rgba(26, 28, 51, 0.04), 0 8px 28px rgba(26, 28, 51, 0.06);
  --bk-transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --bk-section-py:  clamp(4rem, 9vw, 8rem);
}

/* ----------------------------------------------------------------
   2. Base Reset & Typography
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bk-base);
  color: var(--bk-slate);
  font-family: var(--bk-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer: fill the viewport so .bk-main can grow and keep the footer pinned to the bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bk-font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bk-slate);
  margin-top: 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.4rem,  2.4vw, 1.85rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.0625rem; font-family: var(--bk-font-heading); font-weight: 600; }
h6 { font-size: 0.9375rem; font-family: var(--bk-font-heading); font-weight: 600; }

a {
  color: var(--bk-teal);
  text-decoration: none;
  transition: color var(--bk-transition);
}
a:hover { color: var(--bk-teal-dk); }

img { max-width: 100%; height: auto; }
p   { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Reusable eyebrow with luminous point */
.bk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--bk-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bk-teal);
  margin-bottom: 1.25rem;
}
.bk-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bk-gold);
  box-shadow: 0 0 10px 1px rgba(242, 200, 121, 0.9);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   3. Bootstrap Overrides — Buttons & Forms
   ---------------------------------------------------------------- */
.btn {
  font-family: var(--bk-font-heading);
  font-weight: 600;
  border-radius: var(--bk-radius-btn);
  padding: 0.7rem 1.6rem;
  transition: background-color var(--bk-transition), border-color var(--bk-transition), transform var(--bk-transition), box-shadow var(--bk-transition);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.btn-primary {
  --bs-btn-bg: var(--bk-teal-soft);
  --bs-btn-border-color: var(--bk-teal-soft);
  --bs-btn-hover-bg: var(--bk-teal);
  --bs-btn-hover-border-color: var(--bk-teal);
  --bs-btn-active-bg: var(--bk-teal);
  --bs-btn-active-border-color: var(--bk-teal);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 54, 171, 160;
  box-shadow: 0 6px 18px rgba(54, 171, 160, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(54, 171, 160, 0.38); }

.btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.8);
  --bs-btn-hover-color: #fff;
}

.form-control,
.form-select {
  border-radius: var(--bk-radius-btn);
  border-color: var(--bk-border);
  background-color: var(--bk-surface);
  color: var(--bk-slate);
  padding: 0.65rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bk-teal);
  box-shadow: 0 0 0 0.2rem rgba(54, 171, 160, 0.20);
}

/* ----------------------------------------------------------------
   4. Topbar
   ---------------------------------------------------------------- */
.bk-topbar {
  background-color: var(--bk-slate);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}
.bk-topbar a        { color: rgba(255, 255, 255, 0.7); }
.bk-topbar a:hover  { color: #fff; }

/* ----------------------------------------------------------------
   5. Header & Navigation
   ---------------------------------------------------------------- */
.bk-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--bk-surface);
  box-shadow: 0 1px 0 var(--bk-border);
  transition: background-color var(--bk-transition), box-shadow var(--bk-transition);
}
/* Home: header overlays the hero instead of sitting in flow above it */
.bk-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  box-shadow: none;
}
.bk-header--transparent.scrolled {
  position: fixed;
  background-color: rgba(246, 253, 252, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 4px 24px rgba(26, 28, 51, 0.10);
}

/* Logo */
.bk-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.bk-logo img { height: 44px; width: auto; flex-shrink: 0; }
/* The home hero is light, so the header keeps the original coloured logo. */
.bk-logo__name {
  font-family: var(--bk-font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--bk-slate);
  transition: color var(--bk-transition);
  white-space: nowrap;
}
.bk-header--transparent .bk-logo__name          { color: var(--bk-slate); }
.bk-header--transparent.scrolled .bk-logo__name { color: var(--bk-slate); }

/* Desktop nav (Joomla mod_menu markup) */
.bk-nav { gap: 0.15rem; }
.bk-nav .mod-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.bk-nav .nav-item { position: relative; }

/* Top-level: links AND parent headings styled identically */
.bk-nav > .mod-menu > .nav-item > a,
.bk-nav > .mod-menu > .nav-item > .mod-menu__heading {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--bk-font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--bk-slate);
  border-radius: var(--bk-radius-btn);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--bk-transition), background-color var(--bk-transition);
}
.bk-nav > .mod-menu > .nav-item > a:hover,
.bk-nav > .mod-menu > .nav-item:hover > .mod-menu__heading {
  color: var(--bk-teal);
  background-color: var(--bk-teal-lt);
}

/* Parent caret */
.bk-nav > .mod-menu > .nav-item.parent > a::after,
.bk-nav > .mod-menu > .nav-item.parent > .mod-menu__heading::after {
  content: '';
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  opacity: 0.6;
}

/* Active indicator */
.bk-nav > .mod-menu > .nav-item.active > a,
.bk-nav > .mod-menu > .nav-item.current > a { color: var(--bk-teal); }

/* Transparent header sits over the light hero — keep nav dark */
.bk-header--transparent .bk-nav > .mod-menu > .nav-item > a,
.bk-header--transparent .bk-nav > .mod-menu > .nav-item > .mod-menu__heading { color: var(--bk-slate); }
.bk-header--transparent .bk-nav > .mod-menu > .nav-item > a:hover,
.bk-header--transparent .bk-nav > .mod-menu > .nav-item:hover > .mod-menu__heading {
  color: var(--bk-teal-dk);
  background-color: var(--bk-teal-lt);
}

/* Dropdowns */
.bk-nav .mod-menu__sub {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 230px;
  background-color: var(--bk-surface);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card), 0 0 0 1px var(--bk-border);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--bk-transition), transform var(--bk-transition), visibility var(--bk-transition);
  z-index: 100;
}
.bk-nav .nav-item:hover > .mod-menu__sub,
.bk-nav .nav-item:focus-within > .mod-menu__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bk-nav .mod-menu__sub .nav-item > a,
.bk-nav .mod-menu__sub .nav-item > .mod-menu__heading {
  display: block;
  padding: 0.55rem 0.85rem;
  font-family: var(--bk-font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--bk-slate);
  border-radius: 0.4rem;
  white-space: nowrap;
  transition: color var(--bk-transition), background-color var(--bk-transition);
}
.bk-nav .mod-menu__sub .nav-item > a:hover {
  color: var(--bk-teal);
  background-color: var(--bk-teal-lt);
}
/* Third level — fly out to the right */
.bk-nav .mod-menu__sub .mod-menu__sub {
  top: -0.5rem;
  left: calc(100% + 0.4rem);
}

/* Hamburger */
.bk-burger {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.bk-burger__bar {
  display: block;
  width: 24px; height: 2px;
  background-color: var(--bk-slate);
  border-radius: 2px;
  transition: background-color var(--bk-transition);
}
.bk-header--transparent .bk-burger__bar { background-color: var(--bk-slate); }

/* Mobile offcanvas */
.bk-offcanvas {
  background-color: var(--bk-slate);
  width: 300px !important;
}
.bk-offcanvas .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.1); }
.bk-offcanvas__title {
  font-family: var(--bk-font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
}
.bk-offcanvas .mod-menu,
.bk-offcanvas .mod-menu__sub {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bk-offcanvas .nav-item > a,
.bk-offcanvas .nav-item > .mod-menu__heading {
  display: block;
  padding: 0.7rem 0.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--bk-font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--bk-transition);
}
.bk-offcanvas .nav-item > .mod-menu__heading {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 1.25rem;
  border-bottom: none;
}
.bk-offcanvas .nav-item > a:hover { color: var(--bk-gold); }
.bk-offcanvas .mod-menu__sub { padding-left: 0.75rem; }

/* ----------------------------------------------------------------
   6. Hero Zone — the point of light
   ---------------------------------------------------------------- */
.bk-hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 118%, #A6E0D8 0%, transparent 58%),
    linear-gradient(180deg, var(--bk-aqua-1) 0%, var(--bk-aqua-2) 52%, var(--bk-aqua-3) 100%);
}
/* first light rising from the horizon — the signature point of light */
.bk-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: min(150vw, 1150px);
  height: min(150vw, 1150px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle, rgba(242, 200, 121, 0.40) 0%, rgba(242, 200, 121, 0) 54%),
    radial-gradient(circle, rgba(120, 206, 194, 0.50) 0%, rgba(120, 206, 194, 0) 72%);
  pointer-events: none;
}
/* faint shimmer — teal + gold motes */
.bk-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(19, 130, 120, 0.28), transparent),
    radial-gradient(1.5px 1.5px at 72% 16%, rgba(242, 200, 121, 0.40), transparent),
    radial-gradient(1.5px 1.5px at 86% 40%, rgba(19, 130, 120, 0.20), transparent),
    radial-gradient(1.5px 1.5px at 34% 30%, rgba(242, 200, 121, 0.30), transparent);
  pointer-events: none;
}
/* The hero module is output inside a Joomla module wrapper (.mod-custom) that
   becomes a flex child of .bk-hero (display:flex). Without an explicit width it
   shrink-wraps to its content and pins to the left, trapping the inner
   .container-xl. Force it to fill so that container centres and aligns with the
   header / feature containers like the rest of the page. */
.bk-hero > * { width: 100%; }
.bk-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(5rem, 12vh, 8rem) 0;   /* horizontal gutters come from the inner .container-xl */
}
.bk-hero__content { max-width: 680px; }
.bk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--bk-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bk-teal-dk);
  margin-bottom: 1.75rem;
}
.bk-hero__eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bk-gold);
  box-shadow: 0 0 12px 2px rgba(242, 200, 121, 0.9);
}
.bk-hero__title {
  font-family: var(--bk-font-display);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--bk-slate);
  margin-bottom: 1.75rem;
}
.bk-hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--bk-cool-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.bk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
/* Secondary hero button — the generic outline-light is invisible on the light
   hero, so give it a dark outline here (the dark prefooter keeps its own). */
.bk-hero .btn-outline-light {
  --bs-btn-border-color: rgba(26, 28, 51, 0.22);
  --bs-btn-color: var(--bk-slate);
  --bs-btn-hover-bg: rgba(26, 28, 51, 0.05);
  --bs-btn-hover-border-color: var(--bk-slate);
  --bs-btn-hover-color: var(--bk-slate);
}
@media (max-width: 575.98px) {
  .bk-hero__actions { flex-direction: column; align-items: stretch; }
  .bk-hero__actions .btn { width: 100%; text-align: center; }
}

/* ----------------------------------------------------------------
   7. Feature Strip
   ---------------------------------------------------------------- */
.bk-feature {
  background-color: var(--bk-base);
  padding: var(--bk-section-py) 0;
}
/* Robust grid that does not depend on Joomla module chrome / Bootstrap cols.
   Each feature module renders as a direct child of .row — style it as a card. */
.bk-feature .row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0;
}
@media (max-width: 991.98px) { .bk-feature .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .bk-feature .row { grid-template-columns: 1fr; } }

.bk-feature .row > *,
.bk-feature-card {
  background-color: var(--bk-surface);
  border-radius: var(--bk-radius-card);
  border: 1px solid var(--bk-border);
  padding: 2.25rem 1.75rem;
  height: 100%;
  position: relative;
  transition: transform var(--bk-transition), box-shadow var(--bk-transition), border-color var(--bk-transition);
}
.bk-feature .row > *:hover,
.bk-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bk-shadow-card);
  border-color: transparent;
}
.bk-feature .row > *:hover .bk-feature-card__icon,
.bk-feature-card:hover .bk-feature-card__icon {
  background: var(--bk-teal);
  color: #fff;
}
.bk-feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background: var(--bk-teal-lt);
  color: var(--bk-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--bk-transition), color var(--bk-transition);
}
.bk-feature-card__icon svg { width: 28px; height: 28px; }
.bk-feature .row > * h3,
.bk-feature-card h3 {
  font-family: var(--bk-font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--bk-slate);
}
.bk-feature .row > * p,
.bk-feature-card p { color: var(--bk-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ----------------------------------------------------------------
   8. Page Header Band (inner pages)
   ---------------------------------------------------------------- */
.bk-page-header {
  position: relative;
  background:
    radial-gradient(110% 130% at 82% 0%, #CFEDE7 0%, transparent 60%),
    linear-gradient(180deg, var(--bk-aqua-2) 0%, var(--bk-aqua-3) 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
}
.bk-page-header::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -40%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,200,121,0.35) 0%, rgba(54,171,160,0.0) 65%);
  pointer-events: none;
}
.bk-page-header__title { position: relative; color: var(--bk-slate); margin-bottom: 0.75rem; }

.bk-page-header .breadcrumb {
  position: relative;
  margin-bottom: 0;
  --bs-breadcrumb-divider-color: rgba(26, 28, 51, 0.35);
}
.bk-page-header .breadcrumb-item,
.bk-page-header .breadcrumb-item a { color: var(--bk-cool-muted); font-size: 0.875rem; }
.bk-page-header .breadcrumb-item a:hover { color: var(--bk-teal-dk); }
.bk-page-header .breadcrumb-item.active { color: rgba(26, 28, 51, 0.45); }

/* ----------------------------------------------------------------
   9. Main Content
   ---------------------------------------------------------------- */
.bk-main           { padding: clamp(3.5rem, 7vw, 6rem) 0; flex: 1 0 auto; }
.bk-component      { width: 100%; }
.bk-content-top    { margin-bottom: 2.5rem; }
.bk-content-bottom { margin-top: 2.5rem; }

/* Homepage welcome block (migrated from live site) — full-width two-column:
   video on one side, heading + prose on the other; stacks on narrow screens. */
.bk-welcome-wrap { margin-bottom: 2.5rem; }
.bk-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .bk-welcome { grid-template-columns: 1fr; gap: 1.75rem; }
}
.bk-welcome__media {
  border-radius: var(--bk-radius-card);
  overflow: hidden;
  box-shadow: var(--bk-shadow-card);
  background: var(--bk-slate);
}
.bk-welcome__media video {
  display: block;
  width: 100%;
  height: auto;
}
.bk-welcome__text .bk-eyebrow { margin-bottom: 1rem; }
.bk-welcome__title {
  font-family: var(--bk-font-display);
  color: var(--bk-slate);
  margin-bottom: 0.5rem;
}
.bk-welcome__subtitle {
  font-family: var(--bk-font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--bk-teal-dk);
  margin-bottom: 1.5rem;
}
.bk-welcome__text p { color: var(--bk-muted); margin-bottom: 1.1rem; }
.bk-welcome__text p:last-child { margin-bottom: 0; }
.bk-welcome__note {
  font-weight: 600;
  color: var(--bk-slate) !important;
  border-left: 3px solid var(--bk-gold);
  padding-left: 1.15rem;
}

/* ----------------------------------------------------------------
   9c. Thought for Today — home-only contemplative quote band
   A calm full-width breather after the feature strip. The daily
   thought (mod_thoughtoftd) is rendered by our override at
   html/mod_thoughtoftd/default.php as centred .bk-thought markup.
   ---------------------------------------------------------------- */
.bk-thought {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background:
    radial-gradient(130% 120% at 50% -10%, var(--bk-aqua-1) 0%, transparent 55%),
    linear-gradient(180deg, var(--bk-teal-lt) 0%, #EAF6F3 100%);
  text-align: center;
}
/* soft "point of light" glow behind the quote */
.bk-thought::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -30%;
  width: min(120vw, 720px);
  height: min(120vw, 720px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle, rgba(242, 200, 121, 0.28) 0%, rgba(242, 200, 121, 0) 58%);
  pointer-events: none;
}
.bk-thought__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.bk-thought__eyebrow { justify-content: center; margin-bottom: 1.5rem; }

.bk-thought__topic {
  font-family: var(--bk-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--bk-teal-dk);
  margin-bottom: 1rem;
}

.bk-thought__quote {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--bk-font-display);
  font-weight: 300;
  font-size: clamp(1.45rem, 3.1vw, 2.3rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--bk-slate);
}
/* decorative opening quotation mark */
.bk-thought__quote::before {
  content: '\201C';
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--bk-font-display);
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--bk-teal);
  opacity: 0.45;
}
/* the daily thought text may arrive wrapped in its own paragraphs */
.bk-thought__quote p { margin: 0; }
.bk-thought__quote p + p { margin-top: 0.75rem; }

.bk-thought__btn { margin-top: 2rem; }

/* On the homepage the Thought band is the closing content block (the
   component slot is empty there), so drop main's trailing padding to let the
   band meet the prefooter without a paper-coloured gap below it. */
.is-home .bk-main:has(> .bk-thought) { padding-bottom: 0; }

/* ----------------------------------------------------------------
   9b. System Messages — Joomla <joomla-alert> web component
   The post-submit confirmation (and other notices). Recoloured into
   the Still Water palette with an icon badge, soft card shell and a
   gentle entrance; success gets a filled teal "point of light" + white
   check + bold copy so the confirmation reads clearly. Scoped under
   #system-message-container to win over the component's own stylesheet.
   ---------------------------------------------------------------- */
#system-message-container { margin-bottom: 1.75rem; scroll-margin-top: 6rem; }

#system-message-container joomla-alert {
  --jui-alert-border-radius: var(--bk-radius-card);
  --jui-alert-padding: 1.15rem 3.25rem 1.15rem 3.95rem;
  --jui-alert-margin: 0 0 1rem 0;
  --jui-alert-success-background-color: #E7F4F1;
  --jui-alert-success-border-color: #BFE6E0;
  --jui-alert-success-color: #0E635B;
  --jui-alert-success-link-color: var(--bk-teal-dk);
  --jui-alert-danger-background-color: #FBEAE8;
  --jui-alert-danger-border-color: #F1CFCB;
  --jui-alert-danger-color: #8A3A33;
  position: relative;
  font-family: var(--bk-font-body);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--bk-shadow-card);
  animation: bk-alert-in 0.5s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

/* icon badge — white disc + coloured glyph, vertically centred */
#system-message-container joomla-alert::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background-color: var(--bk-surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25rem;
  box-shadow: 0 1px 4px rgba(26, 28, 51, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='8' r='1.3' fill='%230E635B'/%3E%3Cpath d='M12 11.5v6' stroke='%230E635B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* success — filled teal "point of light" + white check, bold copy + gold glow */
#system-message-container joomla-alert[type=success] {
  font-weight: 600;
  background-image: radial-gradient(120% 150% at 100% 0%, rgba(242, 200, 121, 0.20) 0%, transparent 55%);
}
#system-message-container joomla-alert[type=success]::before {
  background-color: var(--bk-teal);
  box-shadow: 0 4px 12px rgba(19, 130, 120, 0.40);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#system-message-container joomla-alert[type=danger]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='%238A3A33' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
#system-message-container joomla-alert[type=warning]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 6v7' stroke='%237d5a29' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.5' r='1.3' fill='%237d5a29'/%3E%3C/svg%3E");
}

/* close button — calm, vertically centred at the right */
#system-message-container joomla-alert .joomla-alert--close,
#system-message-container joomla-alert .joomla-alert-button--close {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  float: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  opacity: 0.4;
  border-radius: 50%;
  text-shadow: none;
  transition: opacity var(--bk-transition), background-color var(--bk-transition);
}
#system-message-container joomla-alert .joomla-alert--close:hover,
#system-message-container joomla-alert .joomla-alert-button--close:hover {
  opacity: 0.85;
  background-color: rgba(26, 28, 51, 0.06);
}

@keyframes bk-alert-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #system-message-container joomla-alert { animation: none; }
}

/* ----------------------------------------------------------------
   10. Article Layout
   ---------------------------------------------------------------- */
.bk-article { width: 100%; }
.bk-article__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.bk-chip {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  font-family: var(--bk-font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: var(--bk-teal-lt);
  color: var(--bk-teal-dk);
}
.bk-chip--muted { background-color: var(--bk-base); color: var(--bk-muted); border: 1px solid var(--bk-border); }
.bk-article__image { width: 100%; border-radius: var(--bk-radius-card); margin-bottom: 2rem; }
.bk-article__body { font-size: 1.1rem; line-height: 1.8; color: #33364f; max-width: 760px; }
.bk-article__body h2,
.bk-article__body h3 { margin-top: 2.25rem; margin-bottom: 0.85rem; clear: both; }
.bk-article__body img { max-width: 100%; height: auto; }
/* Inline content figures (e.g. About Us article thumbnails) */
.bk-article__body .bk-figure {
  max-width: 260px;
  width: 100%;
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-sm, 0 4px 14px rgba(20, 40, 60, 0.12));
  margin: 0.35rem 0 1rem;
}
.bk-article__body .bk-figure--left { float: left; margin-right: 1.5rem; }
.bk-article__body .bk-figure--right { float: right; margin-left: 1.5rem; }
@media (max-width: 575.98px) {
  .bk-article__body .bk-figure { float: none; display: block; margin: 1rem auto; }
}
.bk-article__body blockquote {
  border-left: 3px solid var(--bk-teal);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--bk-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--bk-slate);
}

/* ----------------------------------------------------------------
   10b. Find Us page ("Where to Find Us" article)
   A composed contact panel: lead, region chips, an iconified contact
   card, a "Get directions" CTA and the map reframed as the anchor.
   Lives inside .bk-article__body but escapes its 760px reading measure.
   ---------------------------------------------------------------- */
/* Lift the article's 760px reading measure for this composed layout */
.bk-article__body:has(.bk-find-us) { max-width: none; }
.bk-find-us { width: 100%; max-width: 920px; }

.bk-find-us__lead {
  font-family: var(--bk-font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--bk-slate);
  max-width: 36ch;
  margin: 0 0 1.5rem;
}
.bk-find-us__lead strong { font-weight: 500; color: var(--bk-teal-dk); }

/* Region chips — Dublin is "primary", the rest carry the gold point */
.bk-find-us__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}
.bk-region-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bk-font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  color: var(--bk-slate);
}
.bk-region-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bk-gold);
  box-shadow: 0 0 8px 1px rgba(242, 200, 121, 0.85);
}
.bk-region-chip--primary {
  background: var(--bk-teal-lt);
  border-color: transparent;
  color: var(--bk-teal-dk);
  font-weight: 600;
}
.bk-region-chip--primary::before { background: var(--bk-teal); box-shadow: none; }

/* Contact card — a calm surface with a soft aqua wash + gold point of light */
.bk-find-us__card {
  position: relative;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(226, 243, 240, 0.7) 0%, transparent 52%),
    var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  overflow: hidden;
}
.bk-find-us__card::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 200, 121, 0.28) 0%, rgba(242, 200, 121, 0) 68%);
  pointer-events: none;
}
.bk-find-us__centre {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--bk-font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: var(--bk-slate);
  margin: 0 0 1.75rem;
}
.bk-find-us__centre svg {
  width: 1.4rem; height: 1.4rem;
  color: var(--bk-teal);
  flex-shrink: 0;
}

.bk-find-us__details {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
@media (max-width: 540px) { .bk-find-us__details { grid-template-columns: 1fr; } }

.bk-find-us__detail { display: flex; gap: 0.9rem; align-items: flex-start; }
.bk-find-us__detail-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 0.7rem;
  background: var(--bk-teal-lt);
  color: var(--bk-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-find-us__detail-icon svg { width: 20px; height: 20px; }
.bk-find-us__detail-body { min-width: 0; }
.bk-find-us__detail-label {
  font-family: var(--bk-font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bk-teal-dk);
  margin-bottom: 0.3rem;
}
.bk-find-us__detail-text {
  color: var(--bk-slate);
  font-size: 0.98rem;
  line-height: 1.5;
}
.bk-find-us__detail-text a { color: var(--bk-slate); }
.bk-find-us__detail-text a:hover { color: var(--bk-teal-dk); }

.bk-find-us__actions {
  position: relative;
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.bk-find-us__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.bk-find-us__directions svg {
  width: 1rem; height: 1rem;
  transition: transform var(--bk-transition);
}
.bk-find-us__directions:hover svg { transform: translate(2px, -2px); }

/* Map — reframed as the anchor, with a floating "you are here" badge */
.bk-find-us__map {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--bk-radius-card);
  overflow: hidden;
  box-shadow: var(--bk-shadow-card);
  border: 1px solid var(--bk-border);
}
.bk-find-us__map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}
.bk-find-us__map-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 8px 24px rgba(26, 28, 51, 0.18);
  font-family: var(--bk-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bk-slate);
}
.bk-find-us__map-badge svg { width: 1rem; height: 1rem; color: var(--bk-teal); }
@media (max-width: 575.98px) {
  .bk-find-us__map iframe { height: 340px; }
}

/* ----------------------------------------------------------------
   11. Events Listing (Category Blog Cards)
   ---------------------------------------------------------------- */
.bk-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
@media (max-width: 767.98px) { .bk-blog-grid { grid-template-columns: 1fr; } }

.bk-blog-card {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  overflow: hidden;
  display: flex;
  transition: box-shadow var(--bk-transition), transform var(--bk-transition), border-color var(--bk-transition);
  text-decoration: none;
  color: inherit;
}
.bk-blog-card:hover {
  box-shadow: var(--bk-shadow-card);
  transform: translateY(-4px);
  border-color: transparent;
  color: inherit;
}
@media (max-width: 575.98px) { .bk-blog-card { flex-direction: column; } }

.bk-blog-card__image { width: 42%; flex-shrink: 0; object-fit: cover; }
@media (max-width: 575.98px) { .bk-blog-card__image { width: 100%; height: 180px; } }

.bk-blog-card__body { padding: 1.6rem; flex: 1; }
.bk-date-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, var(--bk-teal) 0%, var(--bk-teal-dk) 100%);
  color: #fff;
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  min-width: 3.6rem;
}
.bk-date-block__day { font-family: var(--bk-font-heading); font-weight: 700; font-size: 1.6rem; }
.bk-date-block__month { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.bk-blog-card__title { font-family: var(--bk-font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--bk-slate); }
.bk-blog-card:hover .bk-blog-card__title { color: var(--bk-teal); }
.bk-blog-card__intro {
  color: var(--bk-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.bk-pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; list-style: none; padding: 0; }
.bk-pagination li a,
.bk-pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem;
  border-radius: var(--bk-radius-btn);
  font-family: var(--bk-font-heading); font-size: 0.9rem; font-weight: 500;
  color: var(--bk-slate); background-color: var(--bk-surface);
  border: 1px solid var(--bk-border); text-decoration: none;
  transition: background-color var(--bk-transition), border-color var(--bk-transition), color var(--bk-transition);
}
.bk-pagination li a:hover { background-color: var(--bk-teal-lt); border-color: var(--bk-teal); color: var(--bk-teal-dk); }
.bk-pagination .active a,
.bk-pagination li.active span { background-color: var(--bk-teal); color: #fff; border-color: var(--bk-teal); }

/* ----------------------------------------------------------------
   12. Event Detail Info Box
   ---------------------------------------------------------------- */
.bk-event-info {
  background-color: var(--bk-teal-lt);
  border-radius: var(--bk-radius-card);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}
.bk-event-info__item { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; color: var(--bk-slate); margin-bottom: 0.6rem; }
.bk-event-info__item:last-child { margin-bottom: 0; }
.bk-event-info__label { font-family: var(--bk-font-heading); font-weight: 600; min-width: 5rem; flex-shrink: 0; }

/* ----------------------------------------------------------------
   12b. Events list (com_ems) — ems-card layout
   Rendered by our template override at
   html/com_ems/forthcomingeventslist/events.php (clean BEM markup).
   A featured hero for the soonest event + a single-column card list.
   ---------------------------------------------------------------- */
.events-page { width: 100%; }
.events-page .page-intro { color: var(--bk-muted); margin-bottom: 2rem; }
.events-page .ems-page-heading { margin-bottom: 1.5rem; }
.ems-empty { color: var(--bk-muted); }

/* Shared card shell */
.ems-card {
  position: relative;
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  overflow: hidden;
}

/* Media: image, branded "point of light" placeholder, and date chip */
.ems-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, #0E635B 0%, #0A4A44 55%, #137A70 100%);
}
.ems-card__media-fallback { position: absolute; inset: 0; }
.ems-card__media-fallback::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 50% 118%, rgba(242, 200, 121, 0.42), transparent 60%),
    radial-gradient(circle at 50% 52%, rgba(173, 234, 223, 0.40), transparent 55%);
}
.ems-card__media-fallback::after {
  content: "";
  position: absolute; left: 50%; top: 52%;
  width: 12px; height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bk-gold);
  box-shadow: 0 0 24px 6px rgba(242, 200, 121, 0.7);
}
.ems-card__media img {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ems-card__media img.is-broken { display: none; }

.ems-card__date {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3rem; padding: 0.35rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 0.6rem;
  box-shadow: 0 6px 16px rgba(26, 28, 51, 0.18);
  line-height: 1;
}
.ems-card__date-day { font-family: var(--bk-font-display); font-size: 1.35rem; font-weight: 500; color: var(--bk-slate); }
.ems-card__date-month { font-family: var(--bk-font-heading); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bk-teal-dk); margin-top: 0.12rem; }

/* Body */
.ems-card__body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }

.ems-card__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ems-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--bk-font-heading); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 100px;
}
.ems-chip svg { width: 0.85em; height: 0.85em; flex-shrink: 0; }
.ems-chip--featured { background-color: var(--bk-teal-lt); color: var(--bk-teal-dk); }
.ems-chip--online { background-color: #E7EFEA; color: #2E6B4F; }

.ems-card__title { font-family: var(--bk-font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: 0; }
.ems-card__title a { color: var(--bk-slate); text-decoration: none; transition: color var(--bk-transition); }
.ems-card__title a:hover { color: var(--bk-teal-dk); }

.ems-card__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ems-card__meta li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--bk-muted); font-size: 0.92rem; line-height: 1.45; }
.ems-card__meta svg { width: 1.05em; height: 1.05em; flex-shrink: 0; margin-top: 0.12rem; color: var(--bk-teal); }
.ems-card__meta .location { font-style: normal; }
.ems-meta-strong { color: var(--bk-slate); font-weight: 600; }

.ems-card__desc { color: var(--bk-muted); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ems-card__actions { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ems-card__cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background-color: var(--bk-teal-soft); color: #fff;
  font-family: var(--bk-font-heading); font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1.25rem; border-radius: 100px; text-decoration: none;
  transition: background-color var(--bk-transition), transform var(--bk-transition);
}
.ems-card__cta svg { width: 1em; height: 1em; transition: transform var(--bk-transition); }
.ems-card__cta:hover { background-color: var(--bk-teal); color: #fff; transform: translateY(-1px); }
.ems-card__cta:hover svg { transform: translateX(3px); }
.ems-card__cta--ghost { background-color: transparent; color: var(--bk-slate); border: 1px solid var(--bk-border); }
.ems-card__cta--ghost:hover { background-color: var(--bk-base); color: var(--bk-teal-dk); border-color: var(--bk-teal); }

/* Regular list rows — media left, body right */
.ems-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ems-list .ems-card {
  display: grid; grid-template-columns: 240px 1fr; align-items: stretch;
  transition: box-shadow var(--bk-transition), transform var(--bk-transition), border-color var(--bk-transition);
}
.ems-list .ems-card:hover { box-shadow: 0 16px 40px -18px rgba(26, 28, 51, 0.28); border-color: var(--bk-teal-lt); transform: translateY(-2px); }
.ems-list .ems-card__media { min-height: 160px; }
.ems-list .ems-card__media img { position: absolute; inset: 0; }

/* Featured hero — the soonest event */
.ems-featured { margin-bottom: 1.5rem; }
.ems-card--featured { position: relative; display: flex; align-items: stretch; min-height: 440px; border: none; }
.ems-card--featured .ems-card__media { position: absolute; inset: 0; z-index: 0; }
.ems-card--featured .ems-card__media img { position: absolute; inset: 0; }
.ems-card--featured::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 22, 43, 0.10) 0%, rgba(20, 22, 43, 0.55) 55%, rgba(20, 22, 43, 0.92) 100%);
}
.ems-card--featured .ems-card__body {
  position: relative; z-index: 2;
  justify-content: flex-end;
  padding: 2.5rem; color: #fff; width: 100%; max-width: 720px;
}
.ems-card--featured .ems-card__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #FBF7F0; }
.ems-card--featured .ems-card__title a { color: #FBF7F0; }
.ems-card--featured .ems-card__title a:hover { color: var(--bk-gold); }
.ems-card--featured .ems-card__meta li { color: rgba(255, 255, 255, 0.82); }
.ems-card--featured .ems-card__meta svg { color: var(--bk-gold); }
.ems-card--featured .ems-meta-strong { color: #fff; }
.ems-card--featured .ems-card__desc { color: rgba(255, 255, 255, 0.78); -webkit-line-clamp: 3; max-width: 580px; }
.ems-card--featured .ems-card__date { top: 1.25rem; right: 1.25rem; left: auto; }
.ems-card--featured .ems-card__cta { background-color: #fff; color: var(--bk-slate); }
.ems-card--featured .ems-card__cta:hover { background-color: var(--bk-gold); color: var(--bk-slate); }
.ems-card--featured .ems-chip--featured { background-color: rgba(242, 200, 121, 0.92); color: var(--bk-slate); }

@media (max-width: 600px) {
  .ems-list .ems-card { grid-template-columns: 1fr; }
  .ems-list .ems-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .ems-card--featured { min-height: 380px; }
  .ems-card--featured .ems-card__body { padding: 1.75rem; }
}

/* ----------------------------------------------------------------
   12c. Event detail page (com_ems registration view)
   Rendered by our override at html/com_ems/registration/default.php.
   Two-column layout: event image + speaker/tips, and the booking form.
   ---------------------------------------------------------------- */
.bk-event { width: 100%; }

/* Optional page heading (only if show_page_heading is on) */
.bk-event-heading { margin-bottom: 1.5rem; }
.bk-event-heading__title { color: var(--bk-slate); }
.bk-event-heading__subtitle { color: var(--bk-muted); font-size: 1.15rem; margin-top: 0.5rem; }

/* Two columns: a main content card + a sticky booking sidebar */
.bk-event__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .bk-event__layout { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Main content card — banner image on top, description below */
.bk-event__main {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card);
  overflow: hidden;
}
.bk-event__banner-img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.bk-event__main-body { padding: 2rem; }
@media (max-width: 575.98px) { .bk-event__main-body { padding: 1.5rem; } }

/* Intro = the event's rich-text description (title, subtitle, flyer image) */
.bk-event__intro img { border-radius: var(--bk-radius-card); margin: 1.25rem 0; }
.bk-event__intro h1, .bk-event__intro h2, .bk-event__intro h3 { color: var(--bk-slate); }
.bk-event__intro p:last-child { margin-bottom: 0; }

/* Speaker block (inside the main card, below the description) */
.bk-event__speaker {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: var(--bk-teal-lt);
  border-radius: var(--bk-radius-card);
  padding: 1.25rem;
  margin-top: 1.75rem;
}
.bk-event__speaker-photo {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.bk-event__speaker-body { min-width: 0; font-size: 0.95rem; color: var(--bk-slate); }
.bk-event__speaker-name { font-family: var(--bk-font-heading); margin-bottom: 0.35rem; }
.bk-event__speaker-label { font-weight: 700; color: var(--bk-teal-dk); margin-right: 0.4rem; }

/* Tips fallback (when no speaker) */
.bk-event__tips {
  background-color: var(--bk-teal-lt);
  border-radius: var(--bk-radius-card);
  padding: 1.5rem;
  margin-top: 1.75rem;
}
.bk-event__tips-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--bk-font-display);
  font-size: 1.4rem; font-weight: 500;
  margin-bottom: 1rem; color: var(--bk-slate);
}
.bk-event__tips-title svg { width: 1.4rem; height: 1.4rem; color: var(--bk-gold); flex-shrink: 0; }
.bk-event__tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.bk-event__tips-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--bk-slate); font-size: 0.95rem; }
.bk-event__tips-list svg { width: 1.05rem; height: 1.05rem; color: var(--bk-teal); flex-shrink: 0; margin-top: 0.2rem; }

/* Sidebar — sticky on desktop, stacks on mobile */
.bk-event__aside { position: sticky; top: 1.5rem; }
@media (max-width: 900px) { .bk-event__aside { position: static; } }

.bk-event-card {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  padding: 1.5rem;
}
.bk-event-card + .bk-event-card { margin-top: 1.25rem; }

/* Summary rows (date / location / cost) — stacked with hairline dividers */
.bk-event__row { display: flex; gap: 0.8rem; align-items: flex-start; }
.bk-event__summary .bk-event__row + .bk-event__row {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--bk-border);
}
.bk-event__row > svg { width: 1.3rem; height: 1.3rem; color: var(--bk-teal); flex-shrink: 0; margin-top: 0.1rem; }
.bk-event__row-body { min-width: 0; }
.bk-event__row-label {
  display: block;
  font-family: var(--bk-font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bk-teal-dk);
  margin-bottom: 0.3rem;
}
.bk-event__row-text { color: var(--bk-slate); font-size: 0.95rem; }
.bk-event__watch-link { display: inline-block; font-weight: 600; color: var(--bk-teal); text-decoration: underline; }
.bk-event__watch-link:hover { color: var(--bk-teal-dk); }

/* Date radio list */
.bk-event__date-option {
  display: block;
  padding: 0.4rem 0;
  color: var(--bk-slate);
  font-size: 0.95rem;
  cursor: pointer;
}
.bk-event__date-option input { margin-right: 0.5rem; accent-color: var(--bk-teal); }

/* Form fields */
.bk-event__form .field { margin-bottom: 0.85rem; }
.bk-event__form .field > label {
  display: block;
  font-family: var(--bk-font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--bk-slate);
  margin-bottom: 0.3rem;
}
.bk-event__form .field > label .star { color: var(--bk-teal); }
.bk-event__check { display: flex; align-items: flex-start; gap: 0.5rem; }
.bk-event__check .form-check-label { font-size: 0.9rem; color: var(--bk-muted); }
.bk-event__submit-wrap { margin-top: 1.1rem; }
.bk-event__submit { width: 100%; }

/* Data protection note — soft aqua callout (echoes the reference page) */
.bk-event__form .dataProtection {
  font-size: 0.82rem; color: var(--bk-muted);
  background-color: var(--bk-teal-lt);
  border-radius: var(--bk-radius-btn);
  padding: 0.85rem 1rem; margin: 1rem 0;
}
.bk-event__form .dataProtection p { margin: 0; }
.bk-event__form .dataProtection img { float: left; margin-right: 0.6rem; }
.bk-event__form .dataProtection .badge { background-color: var(--bk-surface); color: var(--bk-teal-dk); font-weight: 600; }

/* AJAX success / error states + calendar select */
.bk-event__success-title { font-family: var(--bk-font-display); color: var(--bk-teal-dk); text-align: center; margin: 0.5rem 0 1rem; }
.bk-event__form-msg-title { font-family: var(--bk-font-heading); color: var(--bk-teal-dk); margin-bottom: 0.5rem; }
.bk-event__form-msg { color: var(--bk-muted); font-size: 0.95rem; }
.bk-event__calendar-select { margin-top: 1rem; width: 100%; }

/* ----------------------------------------------------------------
   12d. Single event page (com_ems singleevent — layout=events)
   Rendered by our override at html/com_ems/singleevent/default.php.
   Hero head + two-column (description / venue) + date-card grid.
   ---------------------------------------------------------------- */

/* Head: title, subtitle, at-a-glance fact chips */
.bk-event__head { margin-bottom: 2rem; }
.bk-event__title { color: var(--bk-slate); margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
.bk-event__subtitle { color: var(--bk-muted); font-size: 1.15rem; margin: 0.6rem 0 0; }
.bk-event__facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.bk-event__facts li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background-color: var(--bk-teal-lt); color: var(--bk-slate);
  font-size: 0.9rem; padding: 0.45rem 0.9rem; border-radius: 100px;
}
.bk-event__facts svg { width: 1.05em; height: 1.05em; color: var(--bk-teal); flex-shrink: 0; }
.bk-event__facts strong { font-weight: 600; }

/* Body grid: description card + venue aside */
.bk-event__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 2rem; align-items: start;
}
@media (max-width: 900px) { .bk-event__grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.bk-event__content {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card);
  padding: 2rem;
}
@media (max-width: 575.98px) { .bk-event__content { padding: 1.5rem; } }

/* Rich-text description (flyer image, paragraphs) */
.bk-event__desc { color: var(--bk-slate); }
.bk-event__desc img {
  max-width: 100%; width: auto; height: auto !important;
  border-radius: var(--bk-radius-card); display: block; margin: 0 auto 1.25rem;
}
.bk-event__desc p { margin: 0 0 1rem; }
.bk-event__desc p:last-child { margin-bottom: 0; }
.bk-event__desc .online-event { margin-top: 1.5rem; }
.bk-event__speaker-line { display: flex; align-items: center; gap: 0.5rem; color: var(--bk-muted); margin: 0 0 1.25rem; }
.bk-event__speaker-line svg { width: 1.1rem; height: 1.1rem; color: var(--bk-teal); flex-shrink: 0; }

/* Venue card (in the sticky aside, reuses .bk-event__aside) */
.bk-event__venue-card {
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card);
  padding: 1.5rem;
}
.bk-event__card-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--bk-font-display); font-weight: 500;
  font-size: 1.3rem; color: var(--bk-slate); margin: 0 0 1rem;
}
.bk-event__card-title svg { width: 1.25rem; height: 1.25rem; color: var(--bk-teal); flex-shrink: 0; }
.bk-event__venue { font-style: normal; display: flex; flex-direction: column; gap: 0.3rem; color: var(--bk-muted); font-size: 0.95rem; line-height: 1.5; }
.bk-event__venue-name { font-weight: 600; color: var(--bk-slate); }
.bk-event__map-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
  font-family: var(--bk-font-heading); font-weight: 600; font-size: 0.9rem;
  color: var(--bk-teal-dk); text-decoration: none;
}
.bk-event__map-link svg { width: 1em; height: 1em; transition: transform var(--bk-transition); }
.bk-event__map-link:hover { color: var(--bk-teal); }
.bk-event__map-link:hover svg { transform: translateX(3px); }

/* Dates section — responsive grid of date cards */
.bk-event__dates { margin-top: 2.5rem; }
.bk-event__dates-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--bk-font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--bk-slate); margin: 0 0 1.5rem;
}
.bk-event__dates-title svg { width: 1.5rem; height: 1.5rem; color: var(--bk-teal); flex-shrink: 0; }
.bk-event__empty { color: var(--bk-muted); }

.bk-datecards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }

.bk-datecard {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  padding: 1rem 1.15rem;
  transition: box-shadow var(--bk-transition), border-color var(--bk-transition), transform var(--bk-transition);
}
.bk-datecard:hover { box-shadow: var(--bk-shadow-card); border-color: var(--bk-teal-lt); transform: translateY(-2px); }
/* Lift the whole card above its siblings while its calendar menu is open,
   otherwise the absolute dropdown is painted behind later cards. */
.bk-datecard:hover, .bk-datecard:focus-within { z-index: 30; }

.bk-datecard__badge {
  flex-shrink: 0; width: 3.6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.5rem 0; line-height: 1;
  background: linear-gradient(160deg, var(--bk-teal-soft), var(--bk-teal-dk));
  border-radius: 0.7rem; color: #fff;
}
.bk-datecard__dow { font-family: var(--bk-font-heading); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.92; }
.bk-datecard__num { font-family: var(--bk-font-display); font-size: 1.6rem; font-weight: 500; margin: 0.1rem 0; }
.bk-datecard__mon { font-family: var(--bk-font-heading); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.92; }

/* Date/time sit beside the badge on row 1 */
.bk-datecard__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.bk-datecard__when { font-family: var(--bk-font-heading); font-weight: 600; color: var(--bk-slate); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-datecard__time { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--bk-muted); font-size: 0.85rem; white-space: nowrap; }
.bk-datecard__time svg { width: 0.95em; height: 0.95em; color: var(--bk-teal); flex-shrink: 0; }

/* Actions drop to their own full-width row beneath, aligned under the date text */
.bk-datecard__actions { flex: 1 1 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-left: calc(3.6rem + 1rem); }
.bk-datecard__book { padding: 0.45rem 1rem; font-size: 0.85rem; }
.bk-datecard__booked { font-family: var(--bk-font-heading); font-weight: 600; font-size: 0.78rem; color: #C2675C; text-transform: uppercase; letter-spacing: 0.04em; }

/* Add-to-calendar dropdown (markup emitted by EmsHelper::addToCalendar;
   its own stylesheet isn't loaded here, so we style it from scratch) */
.bk-datecard__cal .calendar-select { list-style: none; margin: 0; padding: 0; }
.bk-datecard__cal .calendar-select > li { position: relative; }
.bk-datecard__cal .calendar-select > li > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--bk-font-heading); font-weight: 600; font-size: 0.8rem;
  color: var(--bk-teal-dk); background-color: var(--bk-teal-lt);
  border-radius: 100px; padding: 0.45rem 0.9rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--bk-transition), color var(--bk-transition);
}
.bk-datecard__cal .calendar-select > li:hover > a,
.bk-datecard__cal .calendar-select > li:focus-within > a { background-color: var(--bk-teal-soft); color: #fff; }

.bk-datecard__cal .calendar-select ul {
  list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 20;
  min-width: 11rem;
  background-color: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: 0.7rem;
  box-shadow: 0 16px 40px -12px rgba(26, 28, 51, 0.30);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--bk-transition), transform var(--bk-transition), visibility var(--bk-transition);
}
.bk-datecard__cal .calendar-select > li:hover > ul,
.bk-datecard__cal .calendar-select > li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.bk-datecard__cal .calendar-select ul li { display: block; }
.bk-datecard__cal .calendar-select ul a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 0.45rem;
  color: var(--bk-slate); font-size: 0.88rem; text-decoration: none;
  transition: background-color var(--bk-transition), color var(--bk-transition);
}
.bk-datecard__cal .calendar-select ul a:hover { background-color: var(--bk-teal-lt); color: var(--bk-teal-dk); }

@media (max-width: 480px) {
  .bk-datecard__actions { margin-left: 0; }
  .bk-datecard__cal .calendar-select ul { right: auto; left: 0; }
}

/* ----------------------------------------------------------------
   13. Contact Form — "Send Us a Message"
   Asymmetric two-panel: a light form card beside a dark, gold-lit
   contact panel. Inputs sit on a faint aqua tint with a teal focus halo.
   ---------------------------------------------------------------- */
.bk-contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin: clamp(0.5rem, 2vw, 2rem) 0;
}
@media (max-width: 859.98px) {
  .bk-contact { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Left: form card --- */
.bk-contact__form {
  position: relative;
  background: var(--bk-surface);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-card);
  box-shadow: var(--bk-shadow-card);
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}
.bk-contact__form::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bk-gold), var(--bk-teal-soft) 55%, var(--bk-teal));
}
.bk-contact__title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.55rem; }
.bk-contact__intro { color: var(--bk-muted); margin: 0 0 2rem; max-width: 44ch; }

.bk-field { margin-bottom: 1.2rem; }
.bk-contact__form label {
  display: block;
  font-family: var(--bk-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bk-slate);
  margin-bottom: 0.45rem;
}
.bk-contact__form label.required .star { color: var(--bk-teal); }

.bk-contact__form .form-control,
.bk-contact__form .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--bk-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bk-slate);
  background-color: var(--bk-aqua-1);
  border: 1px solid var(--bk-border);
  border-radius: 0.7rem;
  transition: border-color var(--bk-transition), box-shadow var(--bk-transition), background-color var(--bk-transition);
}
.bk-contact__form .form-control::placeholder { color: var(--bk-muted); opacity: 0.65; }
.bk-contact__form .form-control:hover,
.bk-contact__form .form-select:hover { border-color: var(--bk-teal-soft); }
.bk-contact__form .form-control:focus,
.bk-contact__form .form-control:focus-visible,
.bk-contact__form .form-select:focus {
  outline: none;
  background-color: var(--bk-surface);
  border-color: var(--bk-teal);
  box-shadow: 0 0 0 4px rgba(19, 130, 120, 0.14);
}
.bk-contact__form .form-control:user-invalid {
  border-color: #C2675C;
  box-shadow: 0 0 0 4px rgba(194, 103, 92, 0.12);
}
.bk-contact__form textarea.form-control { min-height: 160px; resize: vertical; }

/* checkbox ("send a copy to yourself") laid inline */
.bk-field--check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: -0.15rem;
}
.bk-field--check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--bk-teal);
  cursor: pointer;
}
.bk-field--check label { margin: 0; font-weight: 500; color: var(--bk-muted); cursor: pointer; }

.bk-contact__required { font-size: 0.8rem; color: var(--bk-muted); margin: 0.4rem 0 1.5rem; }
.bk-contact__required span { color: var(--bk-teal); font-weight: 700; }

.bk-contact__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}
.bk-contact__submit svg { width: 1.05em; height: 1.05em; transition: transform var(--bk-transition); }
.bk-contact__submit:hover svg { transform: translateX(4px); }

/* --- Right: dark contact panel --- */
.bk-contact__info { display: flex; }
.bk-contact__info-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: var(--bk-radius-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(90% 70% at 85% 6%, rgba(242, 200, 121, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #20223D 0%, #161829 100%);
  box-shadow: var(--bk-shadow-card);
}
.bk-contact__info-card .bk-eyebrow { color: var(--bk-gold); margin-bottom: 1rem; }
.bk-contact__info-name { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 0.75rem; }
.bk-contact__info-lead { color: rgba(255, 255, 255, 0.7); margin: 0 0 2rem; font-size: 0.98rem; }

.bk-contact__channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.bk-contact__channels li { display: flex; align-items: flex-start; gap: 0.85rem; }
.bk-contact__channel-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bk-gold);
}
.bk-contact__channel-icon svg { width: 1.15rem; height: 1.15rem; }
.bk-contact__channel-body { font-size: 0.98rem; line-height: 1.6; }
.bk-contact__channel-label {
  display: block;
  font-family: var(--bk-font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}
.bk-contact__channels a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 200, 121, 0.5);
  transition: border-color var(--bk-transition), color var(--bk-transition);
}
.bk-contact__channels a:hover { color: var(--bk-gold); border-color: var(--bk-gold); }

/* ----------------------------------------------------------------
   14. Prefooter — newsletter call to action
   (Newsletter Intro custom module 118 + MailChimp Signup module 117,
    both in the "prefooter" position; form styled via the module's own
    .mod-mailchimp2__* BEM classes)
   ---------------------------------------------------------------- */
.bk-prefooter {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 120%, rgba(242,200,121,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1A1C33 0%, #241F3A 100%);
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  color: #fff;
  text-align: center;
}
.bk-prefooter h2, .bk-prefooter h3 { color: #FBF7F0; }
.bk-prefooter p { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; }
.bk-prefooter > .container-xl > p { max-width: 560px; margin: 0 auto 1.75rem; }

/* Intro: eyebrow + display heading + lead */
.bk-newsletter-intro {
  max-width: 600px;
  margin: 0 auto 1.75rem;
}
.bk-newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--bk-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bk-gold);
  margin-bottom: 0.9rem;
}
.bk-newsletter__eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--bk-gold);
  box-shadow: 0 0 0 4px rgba(242, 200, 121, 0.18);
}
.bk-newsletter__title {
  font-family: var(--bk-font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  color: #FBF7F0;
  margin: 0 0 0.7rem;
}
.bk-newsletter__lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* MailChimp form (mod_mailchimp2 BEM markup) — translucent inline field +
   teal submit, stacking on mobile. Scoped to the prefooter and targeted at the
   module's own stable classes. */
.bk-prefooter .mod-mailchimp2__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
/* the module's text label is redundant beside the placeholder — hide it visually */
.bk-prefooter .mod-mailchimp2__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.bk-prefooter .mod-mailchimp2__form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0.8rem 1.1rem;
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--bk-font-body);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--bk-radius-btn);
  transition: border-color var(--bk-transition), background var(--bk-transition), box-shadow var(--bk-transition);
}
.bk-prefooter .mod-mailchimp2__form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.bk-prefooter .mod-mailchimp2__form input[type="email"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--bk-teal-soft);
  box-shadow: 0 0 0 4px rgba(54, 171, 160, 0.25);
}
/* submit (already .btn.btn-primary) — match the field height and remove the lift on a flush row */
.bk-prefooter .mod-mailchimp2__submit {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.8rem 1.9rem;
  font-size: 1rem;
}
/* JS status / feedback line (sits above the form, empty until used) */
.bk-prefooter .mod-mailchimp2__status {
  max-width: 520px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.bk-prefooter .mod-mailchimp2__status:empty { display: none; }

@media (max-width: 575.98px) {
  .bk-prefooter .mod-mailchimp2__form { flex-direction: column; }
  /* in a column the flex-basis applies to height — reset so the field keeps its content height */
  .bk-prefooter .mod-mailchimp2__form input[type="email"] { flex: 0 0 auto; }
  .bk-prefooter .mod-mailchimp2__submit { width: 100%; }
}

/* ----------------------------------------------------------------
   15. Footer
   ---------------------------------------------------------------- */
.bk-footer { background-color: var(--bk-slate); color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }
.bk-footer h4, .bk-footer h5 {
  font-family: var(--bk-font-heading);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem;
}
.bk-footer a       { color: rgba(255, 255, 255, 0.6); }
.bk-footer a:hover { color: var(--bk-gold); }
.bk-footer ul      { list-style: none; padding: 0; margin: 0; }
.bk-footer ul li   { margin-bottom: 0.5rem; }
.bk-footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}
.bk-footer__site-link { color: rgba(255, 255, 255, 0.6); }

/* Social icon buttons (Facebook / X) — gold "point of light" on hover */
.bk-footer__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bk-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color var(--bk-transition), color var(--bk-transition), transform var(--bk-transition);
}
.bk-footer__social a:hover {
  background-color: var(--bk-gold);
  color: var(--bk-slate);
  transform: translateY(-2px);
}
.bk-footer__social svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* ----------------------------------------------------------------
   15b. Map embed
   ---------------------------------------------------------------- */
.bk-map {
  margin: 2.5rem 0 1rem;
  border-radius: var(--bk-radius-card);
  overflow: hidden;
  box-shadow: var(--bk-shadow-card);
  border: 1px solid var(--bk-border);
}
.bk-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 575.98px) {
  .bk-map iframe { height: 320px; }
}

/* ----------------------------------------------------------------
   16. Error & Offline pages
   ---------------------------------------------------------------- */
.bk-error-page, .bk-offline-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
  background:
    radial-gradient(90% 90% at 50% 110%, rgba(242,200,121,0.16) 0%, transparent 55%),
    linear-gradient(180deg, #14162B 0%, #1A1C33 100%);
}
.bk-error-wrap  { text-align: center; max-width: 480px; width: 100%; }
.bk-error-code  { font-family: var(--bk-font-display); font-size: clamp(4.5rem, 13vw, 8rem); font-weight: 300; color: var(--bk-gold); line-height: 1; margin-bottom: 0.5rem; }
.bk-error-title { color: #FBF7F0; margin-bottom: 1rem; }
.bk-error-msg   { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.bk-offline-form { text-align: left; margin-top: 1.5rem; }

/* ----------------------------------------------------------------
   17. Debug
   ---------------------------------------------------------------- */
.bk-debug { padding: 1rem; background: #f4f2ee; border-top: 2px solid var(--bk-border); }

/* ----------------------------------------------------------------
   18. Motion preferences
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
