/* ==========================================================================
   Liberty Centre Limited — Brand Theme
   Bootstrap 5.3 is themed via CSS custom properties, not utility overrides.
   Admin "Theme Colours" settings in the future CMS map directly onto the
   --lc-* custom properties below, so this file is the single source of truth
   for brand colour, type and component styling referenced in the spec (§4).
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-variable.woff2') format('woff2');
}

:root {
  /* Brand palette — §4.1 */
  --lc-primary: #B14040;        /* Deep Brick Red */
  --lc-secondary: #77A244;      /* Fresh Olive Green */
  --lc-accent: #C36844;         /* Warm Terracotta Orange */
  --lc-primary-dark: #AE3939;   /* Dark Accent Red */
  --lc-secondary-dark: #6C9C32; /* Dark Accent Green */

  /* Neutrals — §4.1 supporting */
  --lc-bg: #FAF7F5;             /* warm off-white page background */
  --lc-bg-alt: #F3ECE6;         /* warm sand, alternating sections */
  --lc-ink: #181818;            /* body text */
  --lc-grey: #6E6259;           /* secondary text */
  --lc-white: #FFFFFF;

  /* RGB triplets for rgba() usage */
  --lc-primary-rgb: 177, 64, 64;
  --lc-secondary-rgb: 119, 162, 68;
  --lc-accent-rgb: 195, 104, 68;
  --lc-ink-rgb: 24, 24, 24;

  /* Typography — native system font stack, no webfont */
  --lc-font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --lc-font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

  /* Bootstrap variable overrides (Bootstrap 5.3 CSS-variable theming) */
  --bs-primary: var(--lc-primary);
  --bs-primary-rgb: var(--lc-primary-rgb);
  --bs-secondary: var(--lc-secondary);
  --bs-secondary-rgb: var(--lc-secondary-rgb);
  --bs-body-color: var(--lc-ink);
  --bs-body-bg: var(--lc-bg);
  --bs-body-font-family: var(--lc-font-body);
  --bs-body-font-size: 14px;
  --bs-link-color: var(--lc-primary);
  --bs-link-color-rgb: var(--lc-primary-rgb);
  --bs-link-hover-color: var(--lc-accent);
  --bs-link-hover-color-rgb: var(--lc-accent-rgb);
  --bs-border-radius: .375rem;
  --bs-border-radius-sm: .25rem;
  --bs-border-radius-lg: .5rem;
}

/* ==========================================================================
   Base
   ========================================================================== */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--lc-font-body);
  color: var(--lc-ink);
  background: var(--lc-bg);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.lc-heading-font {
  font-family: var(--lc-font-heading);
  font-weight: 600;
  color: var(--lc-ink);
  line-height: 1.2;
}

h1 { font-size: clamp(1.5rem, 4.5vw, 28px); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); font-weight: 900; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

p { max-width: 72ch; }
.lc-measure-none { max-width: none; }
/* A max-width'd block still sits flush-left in its container by default —
   center the box itself wherever the surrounding context centers text,
   so long paragraphs don't look off-center despite centered text-align. */
.text-center p {
  margin-left: auto;
  margin-right: auto;
}

a { text-decoration-thickness: 1px; text-underline-offset: .15em; }

::selection { background: var(--lc-accent); color: #fff; }

/* Focus visibility — WCAG 2.2 focus-appearance (§16.2) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lc-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--lc-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 .375rem 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Utility bar + Header
   ========================================================================== */

.lc-utility-bar {
  background: var(--lc-ink);
  color: #e9e3de;
  font-size: .8125rem;
}
.lc-utility-bar a { color: #e9e3de; }
.lc-utility-bar a:hover { color: #fff; }
.lc-utility-bar .badge-cqc {
  background: var(--lc-secondary-dark);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}

.lc-header {
  background: var(--lc-white);
  border-bottom: 1px solid rgba(var(--lc-ink-rgb), .08);
  transition: box-shadow .25s ease, padding .25s ease;
}
.lc-header.is-stuck {
  box-shadow: 0 8px 24px rgba(var(--lc-ink-rgb), .08);
}
.lc-header .navbar-brand {
  font-family: var(--lc-font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--lc-primary);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.lc-header .navbar-brand img { height: 48px; width: auto; transition: height .25s ease; }
.lc-header.is-stuck .navbar-brand img { height: 40px; }
.lc-header .navbar-brand .brand-strap {
  display: block;
  font-family: var(--lc-font-body);
  font-weight: 400;
  font-size: .7rem;
  color: var(--lc-grey);
  letter-spacing: .03em;
}

.lc-nav .nav-link {
  font-family: var(--lc-font-body);
  font-weight: 600;
  color: var(--lc-ink);
  padding: .5rem .9rem !important;
  position: relative;
}
.lc-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .15rem;
  height: 2px;
  background: var(--lc-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.lc-nav .nav-link:hover::after,
.lc-nav .nav-link.active::after {
  transform: scaleX(1);
}
.lc-nav .nav-link.active,
.lc-nav .nav-link:hover {
  color: var(--lc-primary);
}
.lc-nav .dropdown-menu {
  border: none;
  box-shadow: 0 12px 32px rgba(var(--lc-ink-rgb), .12);
  border-radius: .5rem;
  padding: .5rem;
}
.lc-nav .dropdown-item {
  font-family: var(--lc-font-body);
  border-radius: .375rem;
  padding: .55rem .85rem;
  font-weight: 500;
}
.lc-nav .dropdown-item:hover,
.lc-nav .dropdown-item:focus {
  background: var(--lc-bg-alt);
  color: var(--lc-primary);
}

.lc-nav-cta {
  background: var(--lc-primary);
  color: #fff !important;
  border-radius: .375rem;
  padding: .55rem 1.15rem !important;
  font-weight: 700 !important;
}
.lc-nav-cta::after { display: none; }
.lc-nav-cta:hover { background: var(--lc-accent); color: #fff !important; }

.offcanvas .navbar-brand { font-family: var(--lc-font-heading); color: var(--lc-primary); font-weight: 700; }

/* ==========================================================================
   Buttons — §4.3: solid brick-red primary w/ pressed-ink bottom edge,
   terracotta hover; outline secondary in dark green; radius 6px, not pill.
   ========================================================================== */

.btn {
  border-radius: 6px;
  font-weight: 700;
  padding: .65rem 1.5rem;
  letter-spacing: .01em;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--lc-primary);
  border: none;
  box-shadow: 0 3px 0 0 var(--lc-primary-dark);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--lc-accent);
  box-shadow: 0 3px 0 0 #93502f;
  color: #fff;
}
.btn-primary:active { box-shadow: 0 1px 0 0 var(--lc-primary-dark); }

.btn-outline-secondary {
  background: transparent;
  border: 2px solid var(--lc-secondary-dark);
  color: var(--lc-secondary-dark);
  padding: calc(.65rem - 1px) calc(1.5rem - 1px);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: var(--lc-secondary-dark);
  border-color: var(--lc-secondary-dark);
  color: #fff;
}

.btn-light-on-dark {
  background: #fff;
  color: var(--lc-primary);
  border: none;
  box-shadow: 0 3px 0 0 rgba(0,0,0,.15);
}
.btn-light-on-dark:hover { background: var(--lc-bg-alt); color: var(--lc-primary-dark); }

.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; font-size: .9rem; }

/* ==========================================================================
   Section rhythm & dividers — §4.3 whitespace over decoration
   ========================================================================== */

.lc-section { padding-block: 96px; }
.lc-section-sm { padding-block: 56px; }
@media (max-width: 767.98px) {
  .lc-section { padding-block: 56px; }
  .lc-section-sm { padding-block: 40px; }
}
.lc-section-alt { background: var(--lc-bg-alt); }

.lc-eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--lc-secondary-dark);
  margin-bottom: .75rem;
}

/* Hand-set underline flourish (SVG, not border-bottom) */
.lc-heading-flourish { margin-bottom: 1.25rem; }
.lc-heading-flourish.center { text-align: center; }

/* Reusable organic sand divider — use sparingly, twice per page max */
.lc-wave-divider { display: block; width: 100%; height: 64px; }
.lc-wave-divider path { fill: var(--lc-bg-alt); }
.lc-wave-divider.flip { transform: scaleY(-1); }

/* ==========================================================================
   Hero slider — x-hero-slider (Bootstrap Carousel base, restyled) §7.2
   ========================================================================== */

.lc-hero {
  position: relative;
  overflow: hidden;
  background: var(--lc-ink);
}
.lc-hero .carousel-item {
  min-height: 620px;
  background-size: cover;
  background-position: center;
}
/* Match Bootstrap's own .active/-next/-prev specificity so hidden slides
   stay display:none — an earlier unconditional `display:flex` here made
   every slide visible and stacked at once regardless of active state. */
.lc-hero .carousel-item.active,
.lc-hero .carousel-item-next,
.lc-hero .carousel-item-prev {
  display: flex;
  align-items: center;
}
@media (max-width: 767.98px) {
  .lc-hero .carousel-item { min-height: 560px; }
}
.lc-hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(43,20,15,.72) 0%, rgba(43,20,15,.42) 48%, rgba(43,20,15,.15) 75%);
}
.lc-hero .carousel-item.lc-overlay-light::before {
  background: linear-gradient(100deg, rgba(43,20,15,.5) 0%, rgba(43,20,15,.28) 48%, rgba(43,20,15,.08) 75%);
}
.lc-hero .carousel-item.lc-overlay-strong::before {
  background: linear-gradient(100deg, rgba(43,20,15,.88) 0%, rgba(43,20,15,.6) 48%, rgba(43,20,15,.25) 75%);
}
.lc-hero-panel.text-center { margin-inline: auto; }
.lc-hero-bg.lc-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  min-height: 0;
}
.lc-hero-panel {
  position: relative;
  z-index: 2;
  background: rgba(250, 247, 245, .92);
  padding: 2.5rem 2.25rem;
  border-radius: .5rem;
  max-width: 560px;
  border-left: 5px solid var(--lc-accent);
}
.lc-hero-panel .lc-eyebrow { color: var(--lc-secondary-dark); }
.lc-hero-panel h1 { color: var(--lc-primary); margin-bottom: 1rem; }
.lc-hero-panel p { color: var(--lc-ink); font-size: 14px; }
@media (max-width: 575.98px) {
  .lc-hero-panel { padding: 1.75rem 1.5rem; margin: 0 .5rem; }
}

.lc-hero .carousel-indicators {
  bottom: 1.25rem;
}
.lc-hero .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255,255,255,.55);
  border: none; margin: 0 5px;
}
.lc-hero .carousel-indicators .active { background-color: var(--lc-accent); }

.lc-hero .carousel-control-prev,
.lc-hero .carousel-control-next {
  width: 4.5rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.lc-hero:hover .carousel-control-prev,
.lc-hero:hover .carousel-control-next,
.lc-hero .carousel-control-prev:focus,
.lc-hero .carousel-control-next:focus {
  opacity: .85;
}
.lc-hero .carousel-control-prev-icon,
.lc-hero .carousel-control-next-icon {
  width: 2.25rem; height: 2.25rem;
  background-color: rgba(43,43,43,.35);
  border-radius: 50%;
  padding: .5rem;
  background-size: 1.1rem;
}

.lc-hero-static {
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.lc-hero-static::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(43,20,15,.72) 0%, rgba(43,20,15,.42) 48%, rgba(43,20,15,.15) 75%);
}
.lc-hero-static.lc-photo-placeholder {
  min-height: 480px;
  justify-content: flex-start;
}
.lc-hero-static .lc-hero-panel { position: relative; z-index: 2; }

/* Placeholder photography blocks — swap for real, consented photography (§4.3) */
.lc-photo-placeholder {
  --ph-a: var(--lc-primary);
  --ph-b: var(--lc-secondary-dark);
  background:
    linear-gradient(135deg, rgba(var(--lc-primary-rgb),.16), rgba(var(--lc-secondary-rgb),.18)),
    repeating-linear-gradient(45deg, rgba(var(--lc-ink-rgb),.04) 0 2px, transparent 2px 14px),
    var(--lc-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lc-grey);
  position: relative;
  min-height: 260px;
  border-radius: .5rem;
}
.lc-photo-placeholder::after {
  content: attr(data-caption);
  position: absolute;
  bottom: .75rem; left: .75rem; right: .75rem;
  font-size: .72rem;
  color: rgba(var(--lc-ink-rgb), .55);
  text-align: center;
  font-style: italic;
}
.lc-photo-placeholder i { font-size: 2.25rem; opacity: .35; }

/* ==========================================================================
   Intro strip
   ========================================================================== */

.lc-intro-strip { border-top: 1px solid rgba(var(--lc-ink-rgb),.06); border-bottom: 1px solid rgba(var(--lc-ink-rgb),.06); }
.lc-intro-strip .lead-statement {
  font-family: var(--lc-font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--lc-primary);
  font-weight: 600;
}
.lc-intro-strip .text-body-secondary { font-size: 16px; }

/* ==========================================================================
   Service cards — x-service-card §4.4
   ========================================================================== */

.lc-service-card {
  background: #fff;
  border-radius: .5rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(var(--lc-ink-rgb), .06);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(var(--lc-ink-rgb),.05);
}
.lc-service-card:hover, .lc-service-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(var(--lc-ink-rgb), .12);
}
.lc-service-card .lc-photo-placeholder { border-radius: 0; min-height: 200px; }
.lc-service-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.lc-service-card h3 { color: var(--lc-primary); font-size: 1.3rem; margin-bottom: .6rem; }
.lc-service-card p { color: #000; flex: 1; }
.lc-service-card .lc-card-link {
  font-weight: 700;
  color: var(--lc-secondary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  position: relative;
  width: fit-content;
}
.lc-service-card .lc-card-link::after {
  content: "";
  position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px;
  background: var(--lc-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.lc-service-card:hover .lc-card-link::after { transform: scaleX(1); }
.lc-service-card:hover .lc-card-link i { transform: translateX(3px); }
.lc-service-card .lc-card-link i { transition: transform .2s ease; }

.lc-service-card.featured { border-top: 4px solid var(--lc-primary); }

/* ==========================================================================
   Stat band — x-stat-band §4.4
   ========================================================================== */

.lc-stat-band {
  background: var(--lc-secondary);
  background: linear-gradient(120deg, var(--lc-secondary-dark), var(--lc-secondary));
  color: #fff;
}
.lc-stat-band .stat-num {
  font-family: var(--lc-font-heading);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
}
.lc-stat-band .stat-label { font-weight: 600; letter-spacing: .02em; opacity: .95; }
.lc-stat-band .stat-sep { border-left: 1px solid rgba(255,255,255,.3); }

/* ==========================================================================
   CTA band — x-cta-band §4.4
   ========================================================================== */

.lc-cta-band {
  background: var(--lc-primary);
  background: radial-gradient(120% 160% at 15% 15%, var(--lc-primary-dark), var(--lc-primary) 60%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lc-cta-band h2 { color: #fff; }
.lc-cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}

/* ==========================================================================
   Testimonial — x-testimonial §4.4
   ========================================================================== */

.lc-testimonial {
  position: relative;
  padding: 2.5rem 1rem 2rem 3.25rem;
  max-width: 760px;
  margin-inline: auto;
}
.lc-testimonial::before {
  content: "\201C";
  position: absolute;
  left: -.25rem; top: -1.25rem;
  font-family: var(--lc-font-heading);
  font-size: 7rem;
  color: var(--lc-primary);
  opacity: .18;
  line-height: 1;
}
.lc-testimonial blockquote {
  font-family: var(--lc-font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--lc-primary);
  font-style: italic;
  line-height: 1.45;
}
.lc-testimonial figcaption { color: var(--lc-grey); font-weight: 600; margin-top: 1rem; }

/* ==========================================================================
   Coverage — x-coverage-map §4.4 (static SVG, no embedded map)
   ========================================================================== */

.lc-coverage-list { list-style: none; padding: 0; margin: 0; }
.lc-coverage-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(var(--lc-ink-rgb), .08);
}
.lc-coverage-list li:first-child { padding-top: 0; }
.lc-coverage-list .lc-icon-badge { flex-shrink: 0; }
.lc-coverage-list strong { display: block; color: var(--lc-primary); }

.lc-numbered-list {
  list-style: none;
  counter-reset: lc-num;
  padding-left: 0;
  margin: 0;
}
.lc-numbered-list li {
  counter-increment: lc-num;
  position: relative;
  padding: .1rem 0 1.6rem 4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(var(--lc-ink-rgb), .08);
}
.lc-numbered-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.lc-numbered-list li::before {
  content: counter(lc-num);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lc-primary-dark), var(--lc-primary));
  color: #fff;
  font-family: var(--lc-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(var(--lc-primary-rgb), .3);
}
.lc-numbered-list li strong {
  color: var(--lc-primary);
  font-family: var(--lc-font-heading);
}

.lc-icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lc-bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lc-secondary-dark);
  font-size: 1.35rem;
}
.lc-icon-badge.on-primary { background: rgba(255,255,255,.15); color: #fff; }

.lc-chip {
  display: inline-block;
  background: var(--lc-bg-alt);
  color: var(--lc-secondary-dark);
  border: 1px solid rgba(var(--lc-secondary-rgb),.35);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-weight: 600;
  font-size: .9rem;
  margin: 0 .4rem .4rem 0;
}

/* ==========================================================================
   News / blog cards
   ========================================================================== */

.lc-news-card {
  background: #fff;
  border-radius: .5rem;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(var(--lc-ink-rgb), .06);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(var(--lc-ink-rgb),.05);
}
.lc-news-card:hover, .lc-news-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--lc-ink-rgb), .12); }
.lc-news-card .lc-photo-placeholder { min-height: 190px; border-radius: 0; }
.lc-news-card .card-body { padding: 1.35rem 1.5rem 1.5rem; }
.lc-news-card .lc-cat { color: var(--lc-secondary-dark); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.lc-news-card h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.lc-news-card h3 a { color: var(--lc-ink); text-decoration: none; }
.lc-news-card h3 a:hover { color: var(--lc-primary); }
.lc-news-card .lc-meta { color: var(--lc-grey); font-size: .85rem; }

/* ==========================================================================
   Cards / accordion / badges generic brand alignment
   ========================================================================== */

.accordion-item { border: none; border-bottom: 1px solid rgba(var(--lc-ink-rgb),.1); border-radius: 0 !important; background: transparent; }
.accordion-button { font-family: var(--lc-font-heading); font-weight: 600; color: var(--lc-ink); background: transparent; padding: 1.25rem .25rem; }
.accordion-button:not(.collapsed) { color: var(--lc-primary); background: transparent; box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { filter: sepia(1) saturate(4) hue-rotate(320deg); }
.accordion-body { padding: 0 .25rem 1.5rem; color: var(--lc-grey); }

.badge-cqc-lg {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--lc-bg-alt);
  border: 1px solid rgba(var(--lc-secondary-rgb),.4);
  color: var(--lc-secondary-dark);
  padding: .5rem 1rem;
  border-radius: .375rem;
  font-weight: 700;
  font-size: .85rem;
}

/* ==========================================================================
   Forms — x-form-renderer §12.2, accessible Bootstrap markup
   ========================================================================== */

.lc-form-card {
  background: #fff;
  border-radius: .5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(var(--lc-ink-rgb), .06);
}
.form-label { font-weight: 700; color: var(--lc-ink); }
.form-control, .form-select {
  border-color: rgba(var(--lc-ink-rgb),.18);
  padding: .65rem .9rem;
  border-radius: .375rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--lc-accent);
  box-shadow: 0 0 0 .2rem rgba(var(--lc-accent-rgb), .2);
}
.form-text { color: var(--lc-grey); }
.form-check-input:checked { background-color: var(--lc-secondary-dark); border-color: var(--lc-secondary-dark); }
.form-check-input:focus { border-color: var(--lc-accent); box-shadow: 0 0 0 .2rem rgba(var(--lc-accent-rgb), .2); }
fieldset legend { font-family: var(--lc-font-heading); font-weight: 600; font-size: 1.05rem; color: var(--lc-primary); }
.lc-privacy-note { font-size: .875rem; color: var(--lc-grey); background: var(--lc-bg-alt); border-radius: .375rem; padding: .85rem 1rem; }
.lc-error-summary {
  border: 2px solid var(--lc-primary);
  background: #fdf2f2;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}
.lc-error-summary h2 { font-size: 1.05rem; color: var(--lc-primary); margin-bottom: .5rem; }
.invalid-feedback { font-weight: 600; }

/* ==========================================================================
   Event feedback forms — linear scales, rating grids, confirmation panel
   ========================================================================== */

.lc-feedback-section { margin-top: 2.5rem; }
.lc-feedback-heading {
  font-size: 1.15rem;
  color: var(--lc-primary);
  padding-bottom: .6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(var(--lc-ink-rgb), .1);
}
.lc-question { margin-bottom: 1.75rem; }
.lc-question:last-child { margin-bottom: 0; }
.lc-question legend { margin-bottom: .6rem; }

.lc-required {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--lc-font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lc-primary);
  background: #fdf2f2;
  border-radius: 1rem;
  padding: .15rem .55rem;
  margin-left: .35rem;
}
.lc-field-error { font-size: .875rem; font-weight: 600; color: var(--lc-primary); margin-top: .4rem; }

/* -- Linear scale (1–5) ---------------------------------------------------- */

.lc-scale {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.lc-scale-end { font-size: .875rem; color: var(--lc-grey); flex: 1 1 0; }
.lc-scale-end:last-child { text-align: right; }
.lc-scale-options { display: flex; gap: .35rem; }
.lc-scale-option { text-align: center; }
.lc-scale-option .form-check-input {
  display: block;
  margin: 0 auto .25rem;
  width: 1.35rem;
  height: 1.35rem;
  float: none;
}
.lc-scale-option label { font-weight: 700; color: var(--lc-ink); cursor: pointer; }
@media (max-width: 575.98px) {
  .lc-scale { flex-direction: column; align-items: stretch; gap: .5rem; }
  .lc-scale-end, .lc-scale-end:last-child { text-align: left; flex: none; }
  .lc-scale-options { justify-content: space-between; }
  .lc-scale-option .form-check-input { width: 1.6rem; height: 1.6rem; }
}

/* -- Multiple-choice rating grids ------------------------------------------ */

.lc-grid-scroll { overflow-x: auto; }
.lc-grid-table { width: 100%; border-collapse: collapse; }
.lc-grid-table caption {
  caption-side: top;
  font-family: var(--lc-font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--lc-primary);
  padding: 0 0 .6rem;
}
.lc-grid-table th[scope="col"] {
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  color: var(--lc-ink);
  padding: .5rem .4rem;
  vertical-align: bottom;
}
.lc-grid-table th[scope="row"] {
  font-weight: 600;
  text-align: left;
  padding: .65rem .75rem .65rem 0;
  min-width: 11rem;
}
.lc-grid-table tbody tr { border-top: 1px solid rgba(var(--lc-ink-rgb), .12); }
.lc-grid-table tbody tr:nth-child(even) { background: var(--lc-bg-alt); }
.lc-grid-table td { text-align: center; padding: .65rem .4rem; }
.lc-grid-table td .form-check-input { float: none; margin: 0; width: 1.25rem; height: 1.25rem; }

@media (min-width: 768px) {
  /* Column headers carry the visible labels; each radio keeps its own
     accessible name via the label text, hidden only from sighted users. */
  .lc-grid-table .lc-grid-option-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 767.98px) {
  /* Stack each row into its own card — a 5-column grid is unusable at
     phone widths, so the option labels become visible instead. */
  .lc-grid-table, .lc-grid-table tbody, .lc-grid-table tr, .lc-grid-table th, .lc-grid-table td { display: block; }
  .lc-grid-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .lc-grid-table tbody tr {
    border: 1px solid rgba(var(--lc-ink-rgb), .15);
    border-radius: .375rem;
    padding: .75rem 1rem;
    margin-bottom: .85rem;
    background: #fff;
  }
  .lc-grid-table tbody tr:nth-child(even) { background: #fff; }
  .lc-grid-table th[scope="row"] { padding: 0 0 .5rem; min-width: 0; color: var(--lc-primary); }
  .lc-grid-table td { display: flex; align-items: center; gap: .6rem; text-align: left; padding: .3rem 0; }
  .lc-grid-table td label { cursor: pointer; margin: 0; }
  .lc-grid-table td .form-check-input { flex: none; width: 1.35rem; height: 1.35rem; }
}

/* -- Confirmation panel ---------------------------------------------------- */

.lc-feedback-thanks {
  background: #fff;
  border-radius: .5rem;
  border-top: 5px solid var(--lc-secondary-dark);
  box-shadow: 0 2px 8px rgba(var(--lc-ink-rgb), .06);
  padding: 2.5rem 2rem;
  text-align: center;
}
.lc-feedback-thanks i { font-size: 2.5rem; color: var(--lc-secondary-dark); }
.lc-feedback-thanks h2 { color: var(--lc-primary); font-size: 1.5rem; margin: .75rem 0 1rem; }
.lc-feedback-thanks p { color: var(--lc-ink); max-width: 52ch; margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.lc-footer { background: #241514; color: #e9e3de; }
.lc-footer a { color: #d9cfc8; text-decoration: none; }
.lc-footer a:hover { color: #fff; text-decoration: underline; }
.lc-footer h2, .lc-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.lc-footer .navbar-brand { font-family: var(--lc-font-heading); color: #fff; font-weight: 700; font-size: 1.3rem; }
.lc-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.lc-footer .footer-links li { margin-bottom: .6rem; }
.lc-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  margin-right: .5rem;
}
.lc-footer .social-links a:hover { background: var(--lc-accent); }
.lc-footer-legal { background: #1b100f; font-size: .82rem; color: #b7aca5; }
.lc-footer-legal a { color: #b7aca5; }
.lc-footer-legal a:hover { color: #fff; }
.lc-newsletter-inline .form-control { border-radius: .375rem 0 0 .375rem; }
.lc-newsletter-inline .btn { border-radius: 0 .375rem .375rem 0; }

/* ==========================================================================
   Cookie banner — x-cookie-banner
   ========================================================================== */

.lc-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1080;
  background: #fff;
  border-top: 3px solid var(--lc-primary);
  box-shadow: 0 -8px 24px rgba(var(--lc-ink-rgb), .12);
  padding: 1.25rem;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.lc-cookie-banner.is-visible { transform: translateY(0); }
.lc-cookie-banner p { margin-bottom: 0; font-size: .95rem; }

/* ==========================================================================
   Back to top
   ========================================================================== */

.lc-back-to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 1030;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--lc-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--lc-ink-rgb), .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  border: none;
}
.lc-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.lc-back-to-top:hover { background: var(--lc-accent); }

/* ==========================================================================
   Scroll reveal (IntersectionObserver-driven) — respects prefers-reduced-motion
   ========================================================================== */

.lc-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.lc-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .lc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Announcement bar (feature-toggle, off by default)
   ========================================================================== */

.lc-announce {
  background: var(--lc-accent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}
.lc-announce a { color: #fff; text-decoration: underline; }
.lc-announce .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.lc-breadcrumb-strip {
  background: var(--lc-bg-alt);
  border-bottom: 1px solid rgba(var(--lc-ink-rgb),.06);
  padding-block: .55rem;
}
.lc-breadcrumb-strip .lc-breadcrumb { font-size: .78rem; margin-bottom: 0; }

.lc-page-hero {
  position: relative;
  background: var(--lc-bg);
  overflow: hidden;
}
.lc-page-hero .container {
  position: relative;
  z-index: 1;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
}
.lc-page-hero h1 { color: var(--lc-ink); font-size: 48px; font-weight: 900; margin-bottom: .5rem; }
.lc-page-hero .lead { color: var(--lc-grey); max-width: 62ch; }

/* Split hero (has a feature image) — the colour panel and image both bleed
   full-height to the viewport edges; the text sits in a normal .container so
   its left edge lines up exactly with the breadcrumb/header logo at every
   screen width. */
.lc-page-hero-split { height: 450px; background: none; }
.lc-page-hero-split .lc-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(120deg, var(--lc-primary-dark), var(--lc-primary));
}
.lc-page-hero-split .container {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding-block: 0;
}
.lc-page-hero-split .lc-page-hero-text { max-width: 62ch; position: relative; z-index: 1; }
.lc-page-hero-split .lc-eyebrow { color: rgba(255,255,255,.85); }
.lc-page-hero-split h1 { color: #fff; }
.lc-page-hero-split .lead { color: rgba(255,255,255,.9); }

.lc-page-hero-image { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.lc-page-hero-image > * { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; }
.lc-page-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lc-breadcrumb {
  --bs-breadcrumb-divider: '›';
  font-size: .875rem;
}
.lc-breadcrumb a { color: rgba(255,255,255,.85); }
.lc-breadcrumb .active { color: #fff; }
.lc-breadcrumb-light a { color: var(--lc-grey); }
.lc-breadcrumb-light .active { color: var(--lc-primary); font-weight: 600; }

/* ==========================================================================
   404
   ========================================================================== */

.lc-404 { text-align: center; padding-block: 7rem; }
.lc-404 .code { font-family: var(--lc-font-heading); font-size: clamp(4rem, 12vw, 8rem); color: var(--lc-primary); line-height: 1; }

/* ==========================================================================
   Misc components
   ========================================================================== */

.lc-quote-mark { font-family: var(--lc-font-heading); font-size: 3rem; color: var(--lc-primary); opacity: .3; line-height: 1; }

.lc-pill-nav { border-bottom: 2px solid rgba(var(--lc-ink-rgb),.08); }
.lc-pill-nav .nav-link {
  font-weight: 700; color: var(--lc-grey); border-radius: 0;
  padding: .85rem 0; margin-right: 2rem; border-bottom: 3px solid transparent;
}
.lc-pill-nav .nav-link.active { color: var(--lc-primary); border-color: var(--lc-primary); background: transparent; }

.lc-timeline { border-left: 3px solid var(--lc-bg-alt); padding-left: 1.5rem; }
.lc-timeline .lc-timeline-item { position: relative; padding-bottom: 2rem; }
.lc-timeline .lc-timeline-item::before {
  content: ""; position: absolute; left: -1.94rem; top: .3rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lc-accent); border: 3px solid var(--lc-bg);
}

.table-lc { --bs-table-bg: transparent; }
.table-lc th { font-family: var(--lc-font-heading); color: var(--lc-primary); font-weight: 600; }

.lc-sticky-side { position: sticky; top: 100px; }

.lc-doc-list { list-style: none; padding: 0; }
.lc-doc-list li { border-bottom: 1px solid rgba(var(--lc-ink-rgb),.08); padding: .5rem 0; }

.lc-progress-track { height: 6px; border-radius: 999px; background: var(--lc-bg-alt); overflow: hidden; }
.lc-progress-track span { display: block; height: 100%; background: var(--lc-secondary-dark); }

/* ==========================================================================
   Rich-text body content (CMS-authored via Filament RichEditor)
   ========================================================================== */

.lc-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--lc-primary); margin-top: 2rem; margin-bottom: 1rem; }
.lc-prose h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin-top: 1.75rem; margin-bottom: .85rem; }
.lc-prose p { color: var(--lc-ink); margin-bottom: 1.25rem; }
.lc-prose ul, .lc-prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.lc-prose li { margin-bottom: .4rem; }
.lc-prose a { color: var(--lc-primary); font-weight: 600; }
.lc-prose blockquote {
  border-left: 4px solid var(--lc-accent);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--lc-grey);
}
.lc-prose strong { color: var(--lc-ink); }
