/*!
 * BRFD Modern — Joomla site template
 * Bear River Fire Department
 * Loads after Joomla's bundled Bootstrap 5 + Font Awesome.
 */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --brfd-red: #c8102e;
  --brfd-red-dark: color-mix(in srgb, var(--brfd-red) 80%, #000);
  --brfd-red-soft: color-mix(in srgb, var(--brfd-red) 9%, #fff);
  --brfd-amber: #f4b223;
  --brfd-ink: #14161a;
  --brfd-ink-2: #1f2228;
  --brfd-text: #2b2f36;
  --brfd-muted: #5f6672;
  --brfd-line: #e4e6ea;
  --brfd-bg: #ffffff;
  --brfd-tint: #f5f4f1;
  --brfd-radius: 14px;
  --brfd-radius-sm: 8px;
  --brfd-shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .08);
  --brfd-shadow-lg: 0 2px 4px rgba(20, 22, 26, .06), 0 20px 48px rgba(20, 22, 26, .14);
  --brfd-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brfd-font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --brfd-header-h: 76px;

  --bs-body-font-family: var(--brfd-font-body);
  --bs-body-color: var(--brfd-text);
  --bs-body-bg: var(--brfd-bg);
  --bs-link-color: var(--brfd-red);
  --bs-link-color-rgb: 200, 16, 46;
  --bs-link-hover-color: var(--brfd-red-dark);
  --bs-link-hover-color-rgb: 160, 13, 37;
  --bs-border-color: var(--brfd-line);
  --bs-primary: var(--brfd-red);
  --bs-primary-rgb: 200, 16, 46;
  --bs-border-radius: var(--brfd-radius-sm);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--brfd-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--brfd-bg);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--brfd-font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brfd-ink);
  letter-spacing: .01em;
}
h1, .h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-top: 2.25rem; margin-bottom: 1rem; }
h3, .h3 { font-size: 1.4rem; margin-top: 1.75rem; margin-bottom: .6rem; }
h4, .h4 { font-size: 1.15rem; }
h2:first-child, h3:first-child { margin-top: 0; }

a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brfd-red); color: #fff; }

.container-xl { max-width: 1240px; padding-inline: clamp(16px, 4vw, 32px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--brfd-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--brfd-radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--brfd-amber); outline-offset: 2px; }

.lead { font-size: 1.25rem; color: var(--brfd-muted); line-height: 1.6; }
.eyebrow {
  display: inline-block; font-family: var(--brfd-font-head); font-size: .85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brfd-red); margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.35rem; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }
.btn-brfd, .btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--brfd-red); --bs-btn-border-color: var(--brfd-red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brfd-red-dark); --bs-btn-hover-border-color: var(--brfd-red-dark);
  --bs-btn-active-bg: var(--brfd-red-dark); --bs-btn-active-border-color: var(--brfd-red-dark); --bs-btn-active-color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brfd-red) 35%, transparent);
}
.btn-brfd:hover, .btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.55); --bs-btn-bg: rgba(255,255,255,.04);
  --bs-btn-hover-color: var(--brfd-ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-brfd {
  --bs-btn-color: var(--brfd-red); --bs-btn-border-color: var(--brfd-red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brfd-red); --bs-btn-hover-border-color: var(--brfd-red);
}

/* ---------- Alert bar ---------- */
.alert-bar { background: var(--brfd-ink); color: rgba(255,255,255,.85); font-size: .875rem; }
.alert-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.alert-bar p { margin: 0; }
.alert-bar__emergency { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: #fff; }
.alert-bar__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brfd-red); box-shadow: 0 0 0 0 rgba(200,16,46,.7); animation: brfd-pulse 2s infinite; flex: none; }
@keyframes brfd-pulse { 70% { box-shadow: 0 0 0 9px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
.alert-bar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.alert-bar a { color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap; }
.alert-bar a:hover { color: #fff; }
.alert-bar .fa-solid, .alert-bar .fa-brands { color: var(--brfd-amber); margin-right: .25rem; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--brfd-line); z-index: 1000; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,22,26,.08); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--brfd-header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--brfd-ink); flex: none; }
.brand:hover { color: var(--brfd-ink); }
.brand__logo { width: 52px; height: 52px; transition: transform .4s ease; }
.brand:hover .brand__logo { transform: rotate(45deg); }
.brand__logo-img { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--brfd-font-head); text-transform: uppercase; }
.brand__title { font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; }
.brand__tagline { font-size: .78rem; font-weight: 500; letter-spacing: .22em; color: var(--brfd-red); margin-top: .3rem; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.site-nav .mod-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.site-nav .mod-menu > li { position: relative; }
.site-nav .mod-menu > li > a,
.site-nav .mod-menu > li > span,
.site-nav .mod-menu > li > button.mod-menu__heading {
  display: flex; align-items: center; gap: .3rem; padding: .55rem .75rem; border-radius: 999px;
  color: var(--brfd-ink); font-weight: 550; font-size: .95rem; text-decoration: none; white-space: nowrap;
  background: none; border: 0;
}
.site-nav .mod-menu > li > a:hover,
.site-nav .mod-menu > li:hover > a { background: var(--brfd-tint); }
.site-nav .mod-menu > li.active > a,
.site-nav .mod-menu > li.current > a { color: var(--brfd-red); }
.site-nav .mod-menu > li.active > a::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--brfd-red);
}
.site-nav .mod-menu > li.parent > a { padding-right: .5rem; }

.site-nav .mod-menu__toggle-sub {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -.4rem;
  border: 0; border-radius: 50%; background: none; color: var(--brfd-muted); cursor: pointer; padding: 0;
}
.site-nav .mod-menu__toggle-sub:hover { background: var(--brfd-tint); color: var(--brfd-ink); }
.site-nav .mod-menu__toggle-sub [class*="icon-"] { display: none; }
.site-nav .mod-menu__toggle-sub::before {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .65rem; transition: transform .2s ease;
}
.site-nav .mod-menu__toggle-sub[aria-expanded="true"]::before { transform: rotate(180deg); }
.site-nav .mod-menu > li.parent { display: flex; align-items: center; }

.site-nav .mod-menu__sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; margin: 0; padding: .5rem; list-style: none;
  background: #fff; border: 1px solid var(--brfd-line); border-radius: var(--brfd-radius); box-shadow: var(--brfd-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
  font-size: .95rem; display: block;
}
.site-nav .mod-menu__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.site-nav .mod-menu__sub a { display: block; padding: .55rem .8rem; border-radius: var(--brfd-radius-sm); color: var(--brfd-ink); text-decoration: none; }
.site-nav .mod-menu__sub a:hover, .site-nav .mod-menu__sub .active > a { background: var(--brfd-red-soft); color: var(--brfd-red); }

@media (min-width: 1200px) {
  .site-nav li.parent:hover > .mod-menu__sub,
  .site-nav li.parent:focus-within > .mod-menu__sub,
  .site-nav .mod-menu__sub.show-menu { opacity: 1; visibility: visible; transform: none; }
}

.nav-toggle { display: none; }

/* Mobile navigation */
@media (max-width: 1199.98px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--brfd-line); background: #fff; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--brfd-ink); border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--brfd-nav-top, 0px) 0 0 0; z-index: 999; margin: 0;
    flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem clamp(16px, 4vw, 32px) 2rem;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .site-nav .mod-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .mod-menu > li, .site-nav .mod-menu > li.parent { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--brfd-line); }
  .site-nav .mod-menu > li > a { flex: 1; font-size: 1.15rem; padding: .95rem .25rem; border-radius: 0; font-family: var(--brfd-font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
  .site-nav .mod-menu > li > a:hover { background: none; color: var(--brfd-red); }
  .site-nav .mod-menu > li.active > a::after { display: none; }
  .site-nav .mod-menu__toggle-sub { width: 44px; height: 44px; margin: 0; }
  .site-nav .mod-menu__sub {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem .75rem; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .site-nav .mod-menu__sub.show-menu { display: block; }
  .site-nav__cta { align-self: stretch; text-align: center; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: var(--brfd-ink) var(--hero-image) left center / cover no-repeat;
  min-height: clamp(460px, 72vh, 720px); display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,11,13,.15) 0%, rgba(10,11,13,.55) 45%, rgba(10,11,13,.92) 100%),
    linear-gradient(0deg, rgba(10,11,13,.6) 0%, transparent 40%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--brfd-red) 0 22px, var(--brfd-amber) 22px 44px);
}
.hero__inner { display: flex; justify-content: flex-end; padding-block: 5rem; width: 100%; }
.hero__content { max-width: 600px; animation: brfd-rise .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes brfd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem;
  font-family: var(--brfd-font-head); font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brfd-amber);
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero__title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; text-transform: uppercase; line-height: 1; margin-bottom: 1.25rem; text-wrap: balance; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 34em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 767.98px) {
  .hero { background-position: 20% center; min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(10,11,13,.95) 10%, rgba(10,11,13,.55) 100%); }
  .hero__inner { padding-block: 6rem 3.5rem; }
}

/* ---------- Inner page banner ---------- */
.page-banner {
  background: var(--brfd-ink) radial-gradient(1200px 300px at 85% -40%, color-mix(in srgb, var(--brfd-red) 55%, transparent), transparent 70%);
  color: #fff; padding-block: 2.75rem 2.25rem; position: relative;
}
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--brfd-red) 0 16px, var(--brfd-amber) 16px 32px); }
.page-banner__title { color: #fff; margin: .25rem 0 0; font-size: clamp(2rem, 4.5vw, 3.1rem); text-transform: uppercase; font-weight: 700; }
.page-banner .mod-breadcrumbs__wrapper { margin: 0; }
.page-banner .breadcrumb { padding: 0 !important; margin: 0; background: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: var(--brfd-amber); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.page-banner .mod-breadcrumbs__here { display: none; }
.title-in-banner .layout__content > [class*="com-"] > .page-header:first-child { display: none; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brfd-red); color: #fff; position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.stat { padding: 2rem 1.25rem; text-align: center; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; }
.stat__value { display: block; font-family: var(--brfd-font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat__label { display: block; margin-top: .4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.82); }
@media (max-width: 767.98px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--brfd-tint); }
.section-module + .section-module { margin-top: 4rem; }
.section-module__head { max-width: 720px; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; font-weight: 700; margin: 0; }
.section-intro { max-width: 720px; margin-bottom: 2.5rem; }
.section-intro p { color: var(--brfd-muted); font-size: 1.125rem; }

/* ---------- Feature cards ---------- */
.brfd-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.brfd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.feature {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border-radius: var(--brfd-radius);
  background: #fff; border: 1px solid var(--brfd-line); box-shadow: var(--brfd-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; text-decoration: none; color: inherit;
}
a.feature:hover, .feature:has(a.stretched-link:hover) { transform: translateY(-4px); box-shadow: var(--brfd-shadow-lg); border-color: color-mix(in srgb, var(--brfd-red) 35%, var(--brfd-line)); color: inherit; }
.feature__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 14px;
  background: var(--brfd-red-soft); color: var(--brfd-red); font-size: 1.4rem;
}
.feature h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.feature p { color: var(--brfd-muted); margin-bottom: 1rem; }
.feature__more { margin-top: auto; font-weight: 600; color: var(--brfd-red); display: inline-flex; align-items: center; gap: .4rem; }
.feature__more::after { content: "\2192"; transition: transform .2s ease; }
a.feature:hover .feature__more::after { transform: translateX(4px); }

/* Split media block */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--brfd-radius); box-shadow: var(--brfd-shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--brfd-red); border-radius: var(--brfd-radius); z-index: -1; }
.split__media { isolation: isolate; }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } .split__media::before { display: none; } }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .65rem;
  background: var(--brfd-red); color: #fff;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brfd-ink); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brfd-red) 60%, transparent), transparent 70%);
}
.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 .4rem; text-transform: uppercase; font-weight: 700; }
.cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 40em; }

/* ---------- Main layout ---------- */
.site-main { padding-block: clamp(2.5rem, 5vw, 4rem); }
.is-home .site-main { padding-block: clamp(3.5rem, 7vw, 6rem); }
.layout { display: grid; gap: 3rem; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 991.98px) { .layout--sidebar { grid-template-columns: 1fr; } }
.layout__content { min-width: 0; }
.layout__content > [class*="com-content-article"], .layout__content .item-page { max-width: 860px; }
.layout--sidebar .layout__content .item-page { max-width: none; }

.brfd-card { background: #fff; border: 1px solid var(--brfd-line); border-radius: var(--brfd-radius); padding: 1.5rem; box-shadow: var(--brfd-shadow); margin-bottom: 1.5rem; }
.brfd-card__title { font-size: 1.2rem; text-transform: uppercase; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--brfd-red); display: inline-block; }

/* Article chrome from com_content */
.page-header h1, .page-header h2 { margin-top: 0; }
.article-info { font-size: .875rem; color: var(--brfd-muted); }
.com-content-article__body > :first-child { margin-top: 0; }
.com-content-article__body img { border-radius: var(--brfd-radius-sm); }
.com-content-article__body blockquote { border-left: 4px solid var(--brfd-red); padding: .5rem 0 .5rem 1.25rem; margin: 1.5rem 0; font-size: 1.15rem; color: var(--brfd-ink); }
.com-content-article__body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.com-content-article__body th, .com-content-article__body td { padding: .65rem .8rem; border-bottom: 1px solid var(--brfd-line); text-align: left; }
.com-content-article__body iframe { max-width: 100%; border: 0; border-radius: var(--brfd-radius); }

/* Blog / category lists */
.blog-item, .com-content-category-blog__item { background: #fff; border: 1px solid var(--brfd-line); border-radius: var(--brfd-radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--brfd-shadow); }
.readmore .btn { --bs-btn-color: var(--brfd-red); --bs-btn-border-color: var(--brfd-red); --bs-btn-hover-bg: var(--brfd-red); --bs-btn-hover-color: #fff; }
.pagination { --bs-pagination-color: var(--brfd-ink); --bs-pagination-active-bg: var(--brfd-red); --bs-pagination-active-border-color: var(--brfd-red); --bs-pagination-border-radius: 999px; gap: .25rem; }

/* Forms */
.form-control, .form-select { border-radius: var(--brfd-radius-sm); padding: .65rem .9rem; border-color: #cfd3d9; }
.form-control:focus, .form-select:focus { border-color: var(--brfd-red); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brfd-red) 18%, transparent); }

/* ---------- Content components (used inside articles) ---------- */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin: 1.75rem 0; }
.info-strip > div { background: var(--brfd-tint); border-radius: var(--brfd-radius); padding: 1.1rem 1.25rem; }
.info-strip strong { display: block; font-family: var(--brfd-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--brfd-red); font-weight: 600; }
.info-strip span { font-size: 1.15rem; font-weight: 600; color: var(--brfd-ink); }

.callout {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; margin: 1.75rem 0;
  border-radius: var(--brfd-radius); background: var(--brfd-red-soft); border: 1px solid color-mix(in srgb, var(--brfd-red) 22%, transparent);
}
.callout > .fa-solid, .callout > .fa-brands { color: var(--brfd-red); font-size: 1.35rem; margin-top: .2rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--dark { background: var(--brfd-ink); color: rgba(255,255,255,.85); border: 0; }
.callout--dark h3, .callout--dark strong { color: #fff; }
.callout--dark a { color: var(--brfd-amber); }

.date-pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.date-pills li { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--brfd-line); background: #fff; font-weight: 600; }
.date-pills li.is-off { color: var(--brfd-muted); text-decoration: line-through; background: var(--brfd-tint); }

.price-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.price-list li { text-align: center; padding: 1.25rem; border-radius: var(--brfd-radius); background: #fff; border: 1px solid var(--brfd-line); box-shadow: var(--brfd-shadow); }
.price-list b { display: block; font-family: var(--brfd-font-head); font-size: 2.2rem; color: var(--brfd-red); line-height: 1.1; }

.vehicle-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 1.5rem; }
.vehicle { display: flex; flex-direction: column; border-radius: var(--brfd-radius); overflow: hidden; background: #fff; border: 1px solid var(--brfd-line); box-shadow: var(--brfd-shadow); }
.vehicle__media { position: relative; aspect-ratio: 16 / 10; background: var(--brfd-ink); overflow: hidden; }
.vehicle__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .5s ease; }
.vehicle:hover .vehicle__media img { transform: scale(1.04); }
.vehicle__unit {
  position: absolute; left: 1rem; bottom: 1rem; padding: .3rem .8rem; border-radius: 999px; background: var(--brfd-red); color: #fff;
  font-family: var(--brfd-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
}
.vehicle__body { padding: 1.4rem 1.5rem 1.6rem; }
.vehicle__body h3 { margin: 0 0 1rem; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .95rem; }
.spec-list dt { color: var(--brfd-muted); font-weight: 500; }
.spec-list dd { margin: 0; color: var(--brfd-ink); font-weight: 600; }
.vehicle__extra { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--brfd-line); font-size: .92rem; color: var(--brfd-muted); }

.timeline { list-style: none; padding: 0; margin: 1.5rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8.5rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--brfd-line); }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.75rem; padding: .7rem 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(8.5rem - 6px); top: 1.15rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brfd-red); }
.timeline li:last-child::after { background: var(--brfd-red); }
.timeline time, .timeline .years { font-family: var(--brfd-font-head); color: var(--brfd-red); font-weight: 600; text-align: right; padding-right: .25rem; }
.timeline strong { color: var(--brfd-ink); font-size: 1.1rem; }
@media (max-width: 575.98px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; padding-left: 2rem; }
  .timeline li::after { left: 0; }
  .timeline .years { text-align: left; }
}

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.people li { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--brfd-radius-sm); background: var(--brfd-tint); }
.people .avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brfd-ink); color: #fff; font-family: var(--brfd-font-head); font-size: .9rem; }
.people small { display: block; color: var(--brfd-red); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.gallery-grid a { display: block; border-radius: var(--brfd-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brfd-ink); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .4s ease, opacity .3s ease; }
.gallery-grid a:hover img { transform: scale(1.05); opacity: .9; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.contact-cards > div { padding: 1.5rem; border-radius: var(--brfd-radius); border: 1px solid var(--brfd-line); box-shadow: var(--brfd-shadow); background: #fff; }
.contact-cards .fa-solid, .contact-cards .fa-brands { color: var(--brfd-red); font-size: 1.4rem; margin-bottom: .75rem; display: block; }
.contact-cards h3 { font-size: 1.1rem; text-transform: uppercase; margin: 0 0 .4rem; }
.contact-cards p { margin: 0; }
.map-embed { border-radius: var(--brfd-radius); overflow: hidden; box-shadow: var(--brfd-shadow); aspect-ratio: 16 / 8; margin: 1.5rem 0; }
.map-embed iframe { width: 100%; height: 100%; border: 0; border-radius: 0; }

/* Lightbox */
.brfd-lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(10,11,13,.92); padding: 2rem; }
.brfd-lightbox[hidden] { display: none; }
.brfd-lightbox img { max-height: 88vh; max-width: 100%; border-radius: var(--brfd-radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.brfd-lightbox button { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brfd-ink); color: rgba(255,255,255,.7); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.cta-band + .site-footer { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 991.98px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .site-footer__grid { grid-template-columns: 1fr; } }
.brand--footer { color: #fff; margin-bottom: 1.1rem; }
.brand--footer:hover { color: #fff; text-decoration: none !important; }
.brand--footer .brand__logo { width: 44px; height: 44px; }
.site-footer__heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .mod-menu li { margin-bottom: .45rem; }
.site-footer .mod-menu__sub { display: none; }
.site-footer__address { font-style: normal; margin-bottom: .75rem; }
.site-footer__contact li { margin-bottom: .4rem; }
.site-footer__contact .fa-solid { color: var(--brfd-amber); width: 1.2rem; }
.social-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .2s ease; }
.social-link:hover { background: var(--brfd-red); text-decoration: none !important; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.back-to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brfd-red); color: #fff !important; flex: none; }
.back-to-top:hover { background: var(--brfd-red-dark); text-decoration: none !important; }

/* ---------- Error & offline ---------- */
.error-page, .offline-page { min-height: 100vh; display: grid; place-items: center; background: var(--brfd-ink) radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--brfd-red) 45%, transparent), transparent 70%); color: rgba(255,255,255,.8); }
.error-shell { text-align: center; padding: 3rem 1.5rem; max-width: 560px; }
.error-shell h1 { color: #fff; text-transform: uppercase; margin: .5rem 0 1rem; }
.error-shell__code { font-family: var(--brfd-font-head); font-size: clamp(5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--brfd-red); margin: 1rem 0 0; }
.error-shell__msg { margin-bottom: 2rem; }
.error-shell__debug { text-align: left; margin-top: 2rem; font-size: .8rem; background: #fff; color: #222; padding: 1rem; border-radius: 8px; overflow: auto; }
.offline-login { text-align: left; background: #fff; color: var(--brfd-text); padding: 1.75rem; border-radius: var(--brfd-radius); margin-top: 1rem; }

/* ---------- Print ---------- */
@media print {
  .alert-bar, .site-header, .hero, .stats-band, .cta-band, .site-footer, .page-banner .mod-breadcrumbs__wrapper { display: none !important; }
  .page-banner { background: none; color: #000; padding: 0; }
  .page-banner__title { color: #000; }
}

/* ---------- Fixes for core module output ---------- */
.site-footer .mod-menu { display: block; }
.is-home .layout__content .item-page,
.is-home .layout__content > [class*="com-content-article"] { max-width: none; }
.pagenavigation { margin-top: 2.5rem; }
.layout__content .item-page,
.layout__content > [class*="com-content-article"] { max-width: none; }
.com-content-article__body > :is(p, ul, ol, h2, h3, h4, blockquote, figure, .callout, .info-strip) { max-width: 820px; }
.title-in-banner .layout__content > [class*="com-"] > .page-header { display: none; }
@media (min-width: 576px) {
  .timeline { --tl-col: 10rem; }
  .timeline::before { left: calc(var(--tl-col) + 1rem); }
  .timeline li { grid-template-columns: var(--tl-col) 1fr; gap: 2.25rem; }
  .timeline li::after { left: calc(var(--tl-col) + 1rem - 6px); }
  .timeline .years { padding-right: 0; white-space: nowrap; }
}
