@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");

/* ============================================================
   beforeUdig / Maxora — custom.css
   Purpose: Canonical layout + UI styling
   Scope: Header, navigation, content components
   ============================================================ */

/* ============================================================
   1. Global Variables & Typography
   ============================================================ */
:root {
  --bud-red: #b30000;
  --bud-black: #201E1D;
  --bud-grey: #f5f2f0;
  --bud-font: Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--bud-font);
  color: var(--bud-black);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Recheck after header simplification; current value assumes existing header height. */
  scroll-padding-top: 80px;
}

/* ============================================================
   Canon Content Links — beforeUdig
   ============================================================ */

a {
  color: var(--bud-red);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: #900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Prevent nav / UI links from inheriting content styles */
#sp-menu a,
.button,
.btn,
a.btn {
  text-decoration: none;
}

/* ============================================================
   2. Header — Simplified Sticky Layout (Helix-safe, single authority)
   Logo + primary navigation; top band reserved for site/template messaging
   ============================================================ */

#sp-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  height: auto;
}

/* ------------------------------------------------------------
   Painted header container
   Controls the visible white header band height
   ------------------------------------------------------------ */
#sp-header > .container-fluid > .container-inner {
  max-width: none;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 12px;
  padding-bottom: 12px;
  height: auto !important;
}

/* ------------------------------------------------------------
   Header layout row
   Restores flex alignment authority within Helix structure
   ------------------------------------------------------------ */
#sp-header .row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

/* ------------------------------------------------------------
   Logo
   ------------------------------------------------------------ */
#sp-logo img {
  display: block;
  width: auto;
  height: 56px;
}

/* ------------------------------------------------------------
   Desktop menu
   ------------------------------------------------------------ */

@media (min-width: 992px) {

  #sp-menu {
    display: flex;
    justify-content: center;
    flex: 0 1 auto;
  }

  #sp-menu .sp-column {
    display: flex;
    align-items: center;
    width: 100%;
  }

  #sp-menu .menu-with-offcanvas {
    display: flex;
    justify-content: center;
  }

  #sp-menu ul.menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #sp-menu ul.menu > li > a {
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 991px) {

  /* Keep natural left-right flow (logo left, hamburger right) */
  #sp-header > .container-fluid > .container-inner > .row {
    justify-content: space-between;
    align-items: center;
  }

  #sp-logo {
    display: flex;
    align-items: center;
    width: auto;
  }

  /* Hide desktop menu */
  #sp-menu ul.menu {
    display: none !important;
  }

  /* Menu container becomes hamburger holder */
  #sp-menu {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* Ensure hamburger is visible */
  #offcanvas-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Dropdowns — stable, predictable
   ------------------------------------------------------------ */
#sp-menu ul.menu > li.menu-parent {
  position: relative;
}

#sp-menu ul.menu > li.menu-parent > ul.menu-child {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 0.4rem 0;
  z-index: 9999;
}

#sp-menu ul.menu > li.menu-parent:hover > ul.menu-child,
#sp-menu ul.menu > li.menu-parent:focus-within > ul.menu-child {
  display: block;
}

#sp-menu ul.menu-child li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 14px;
  color: var(--bud-black);
  text-decoration: none;
}

#sp-menu ul.menu-child li a:hover {
  background: var(--bud-red);
  color: #fff;
}

/* Dropdown caret */
#sp-menu ul.menu > li.menu-parent > a::after {
  content: "▾";
  font-size: 0.85rem;
  margin-left: 6px;
  opacity: 0.7;
}

/* ============================================================
   Desktop Menu — Link colors + Region selector
   ============================================================ */

/* Default top-level links */
#sp-menu ul.menu > li > a {
  color: var(--bud-black);
}

/* Hover state */
#sp-menu ul.menu > li > a:hover {
  color: var(--bud-red);
}

/* Active page only */
#sp-menu ul.menu > li.active > a,
#sp-menu ul.menu > li.current > a,
#sp-menu ul.menu > li.current-item > a {
  color: var(--bud-red);
}

/* ------------------------------------------------------------
   Region Selector — Utility styling (Helix span output)
   ------------------------------------------------------------ */
#sp-menu .nav-header.menu-region-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;

  color: #555;
  padding: 4px 6px;

  border: none;
  background: transparent;
  white-space: nowrap;
}

/* Hover */
#sp-menu li:hover > .nav-header.menu-region-selector {
  color: var(--bud-red);
}

/* Caret */
#sp-menu .nav-header.menu-region-selector::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.7;
}

/* ============================================================
   2b. Offcanvas Menu — Mobile Navigation
   Stable caret indicator (no template icons)
   ============================================================ */

/* Remove Helix icon font output */
.offcanvas-menu .menu-toggler::before,
.offcanvas-menu .menu-toggler::after {
  font-family: inherit !important;
  content: "" !important;
}

/* Align text and toggler */
.offcanvas-menu .menu-parent > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Add custom caret */
.offcanvas-menu .menu-toggler::after {
  content: "▸" !important;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Toggle state */
.offcanvas-menu .menu-parent.active > a .menu-toggler::after {
  content: "▾" !important;
}

/* Offcanvas hover fix — prevent Helix white text */
.offcanvas-menu ul.menu > li > a:hover,
.offcanvas-menu ul.menu > li > a:focus,
.offcanvas-menu ul.menu > li > a:active {
  color: var(--bud-red) !important;
}

/* ============================================================
   Helix Sticky Header — Height Reconciliation
   ============================================================ */

/* Allow header and sticky clone to grow naturally */
#sp-header,
#sp-header.sp-sticky {
  height: auto !important;
  min-height: auto;
}

/* Prevent Helix from collapsing the visible height */
#sp-header.sp-sticky > .container-fluid > .container-inner {
  height: auto !important;
}

/* ------------------------------------------------------------
   Legacy Region Chooser — removed
   Regional selection now belongs to the Joomla menu structure.
   Do not restore standalone .region-chooser / .region-list styling.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Offcanvas Menu — Clean Mobile Style
   ------------------------------------------------------------ */

.offcanvas-menu ul.menu > li > a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bud-black);
  border: none;
}

.offcanvas-menu ul.menu-child {
  padding-left: 16px;
  margin-top: 4px;
}

.offcanvas-menu ul.menu-child li a {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #555;
}

.offcanvas-menu a:hover,
.offcanvas-menu a:focus {
  color: var(--bud-red);
  background: transparent;
}

.offcanvas-menu ul.menu-child li.active > a {
  color: var(--bud-red);
}

/* ============================================================
   E-Ticket Entry — Canon Section
   Shared across regions
   ============================================================ */

#eticket-entry {
  background: #fff;
  padding: 100px 0 80px;
  text-align: center;
}

/* Section title */
#eticket-entry .eticket-title {
  font-family: var(--bud-font);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bud-black);
  margin: 0;
}

/* Login button */
#eticket-entry .eticket-login {
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 22px;
  border-width: 2px;
}

/* Card links */
#eticket-entry .eticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 18px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--bud-black);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#eticket-entry .eticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  text-decoration: none;
}

/* Icons */
#eticket-entry .eticket-card i {
  font-size: 1.8rem;
  color: var(--bud-red);
}

/* Labels */
#eticket-entry .eticket-card span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #eticket-entry {
    padding: 70px 0 60px;
  }

  #eticket-entry .eticket-title {
    font-size: 1.4rem;
  }
}

/* ============================================================
   Home Hero — Video Stage
   ============================================================ */

.hero-stage {
  width: 100%;
  background: #000;
  padding: 56px 0;
}

.hero-canvas {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-pin {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%) rotate(225deg);
  width: 340px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-video {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
  .hero-video {
    max-width: 820px;
  }

  .hero-pin {
    right: -160px;
    width: 280px;
  }
}

@media (max-width: 991px) {
  .hero-pin {
    display: none;
  }

  .hero-stage {
    padding: 40px 0;
  }
}

@media (max-width: 575px) {
  .hero-stage {
    padding: 24px 0;
  }
}

/* ------------------------------------------------------------
   Hero Video — Click-to-Load Enhancement
   ------------------------------------------------------------ */

.hero-video__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.hero-video__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

/* Subtle interaction feedback */
.hero-video__button:hover img {
  opacity: 1;
}

.hero-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Subtle hover polish */
.hero-video__button:hover .hero-video__play {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(0,0,0,0.85);
}

/* ============================================================
   Accordion — Canon Red Override
   Ensures active state uses brand red while preserving accessible focus
   ============================================================ */

/* Active (expanded) state */
.accordion-button:not(.collapsed),
.accordion-button:focus:not(.collapsed) {
  background-color: var(--bud-red) !important;
  color: #fff !important;
  box-shadow: none !important;
  border-color: var(--bud-red) !important;
}

/* Focus state (keyboard accessibility) */
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.25) !important;
}

/* ============================================================
   16. Canon Contact Form — Unified Regional Implementation
   ============================================================ */
.form-canon {
  font-family: var(--bud-font);
  color: var(--bud-black);
  line-height: 1.5;
  margin-top: 1rem;
}

.form-canon .form-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.75rem;
}

.form-canon .form-header h2 {
  font-family: var(--bud-font);
  font-weight: 700;
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bud-black);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--bud-red);
  display: inline-block;
  padding-bottom: 4px;
}

.form-canon .form-header .form-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

.form-canon label {
  font-weight: 600;
  color: var(--bud-black);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-canon input,
.form-canon textarea,
.form-canon select {
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--bud-black);
  background-color: #fff;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 0.75rem;
}

.form-canon input:focus,
.form-canon textarea:focus,
.form-canon select:focus {
  border-color: var(--bud-red);
  box-shadow: 0 0 0 0.18rem rgba(179, 0, 0, 0.2);
  outline: none;
}

.form-canon input[type="submit"],
.form-canon button {
  background-color: var(--bud-red);
  border: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 38px;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: inline-block;
  margin-top: 12px;
}

.form-canon input[type="submit"]:hover,
.form-canon button:hover {
  background-color: #900;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.form-canon .invalid-feedback,
.form-canon .formValidation {
  font-size: 0.9rem;
  color: var(--bud-red);
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 500;
}

.rsform-error {
  background-color: rgba(179, 0, 0, 0.07);
  border: 1px solid rgba(179, 0, 0, 0.25);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 18px;
  color: var(--bud-red);
  font-weight: 600;
}

.rsform-success {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 18px;
  color: var(--bud-black);
  font-weight: 500;
}

.form-canon .rsform-block {
  margin-bottom: 1.25rem;
}

.form-canon .rsform-block:last-of-type {
  margin-bottom: 1.75rem;
}

.form-canon .formRequired {
  color: var(--bud-red);
  font-weight: 700;
  margin-left: 2px;
}

.form-canon .formControls {
  padding-left: 0.25rem;
}

.form-canon .formValidation span {
  display: inline-block;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .form-canon input,
  .form-canon textarea,
  .form-canon select {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .form-canon input[type="submit"],
  .form-canon button {
    width: 100%;
    text-align: center;
  }

  .form-canon label {
    margin-bottom: 4px;
  }

  .form-canon .rsform-block {
    margin-bottom: 1rem;
  }

  .form-canon .form-header h2 {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
  }

  .form-canon .form-header .form-intro {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Marketing Form Canon (Watch Video Form)
   ============================================================ */

#watch-video-form {
  padding: 80px 0;
}

#watch-video-form .marketingForm {
  font-family: var(--bud-font) !important;
  color: var(--bud-black);
}

#watch-video-form .submitButton {
  background-color: var(--bud-red);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.2s ease;
}

#watch-video-form .submitButton:hover {
  background-color: #b8181d;
}

@media (max-width:768px) {
  #watch-video-form {
    padding: 60px 0;
  }
}

/* ============================================================
   Certified Locator Directory — Quiet Brilliance Uplift
   ============================================================ */

.locator-directory {
  font-family: var(--bud-font);
  color: var(--bud-black);
}

/* Scoped box model for directory components */
.locator-directory,
.locator-directory * {
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   Intro
   ------------------------------------------------------------ */
.locator-directory__intro {
  margin-bottom: 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.locator-directory__intro h2,
.locator-directory__intro h3 {
  margin: 0 0 0.5rem;
  color: var(--bud-black);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.locator-directory__intro p {
  margin: 0 0 0.4rem;
  color: #555;
  max-width: 60ch;
}

.locator-directory__intro p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------ */
.locator-directory__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.locator-directory__toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.locator-directory__label {
  font-weight: 600;
  color: var(--bud-black);
  font-size: 0.95rem;
}

.locator-directory__toolbar button,
.locator-directory__toolbar select {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  background: #fff;
  color: var(--bud-black);
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.2;
  font-family: inherit;
  box-shadow: none;
}

.locator-directory__toolbar button {
  cursor: pointer;
  font-weight: 500;
}

.locator-directory__toolbar button.is-active {
  background: var(--bud-grey);
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--bud-black);
}

.locator-directory__toolbar button:hover,
.locator-directory__toolbar button:focus,
.locator-directory__toolbar select:hover,
.locator-directory__toolbar select:focus {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0,0,0,0.03); /* subtle feedback */
  outline: none;
}

/* ------------------------------------------------------------
   Results meta
   ------------------------------------------------------------ */
.locator-directory__results-meta {
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Views
   ------------------------------------------------------------ */
.locator-directory__view {
  display: none;
}

.locator-directory__view.is-active {
  display: block;
}

/* ------------------------------------------------------------
   Groups
   ------------------------------------------------------------ */
.locator-directory__group {
  margin-bottom: 2rem;
  border: 0;
  background: transparent;
}

.locator-directory__group-header {
  padding: 0 0 0.75rem;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.locator-directory__group-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--bud-black);
  font-weight: 600; /* aligned with canon */
}

.locator-directory__group-subtitle {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Grid
   ------------------------------------------------------------ */
.locator-directory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  padding: 0;
}

/* ------------------------------------------------------------
   Cards — minimal elevation polish
   ------------------------------------------------------------ */
.locator-directory__card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 1rem;
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.locator-directory__card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
.locator-directory__name {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--bud-black);
  font-weight: 700;
}

.locator-directory__company {
  margin: 0 0 0.55rem;
  font-weight: 500;
  color: #444;
}

.locator-directory__coverage {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.18rem 0.4rem;
  background: var(--bud-grey);
  color: #444;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.locator-directory__meta {
  margin: 0.3rem 0;
  color: #444;
}

.locator-directory__meta strong {
  color: var(--bud-black);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Per-card actions — quiet tab treatment
   ------------------------------------------------------------ */
.locator-directory__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
  margin-bottom: 0.55rem;
}

.locator-directory__action {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  padding: 0 0 2px;
  margin: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: #666;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
}

.locator-directory__action:hover,
.locator-directory__action:focus {
  color: var(--bud-black);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  outline: none;
}

.locator-directory__action.is-active {
  color: var(--bud-black);
  border-bottom-color: rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------
   Per-card revealed detail
   ------------------------------------------------------------ */
.locator-directory__details {
  min-height: 2.2rem;
}

.locator-directory__detail {
  display: none;
  margin: 0;
  color: #444;
  font-size: 0.96rem;
  line-height: 1.45;
}

.locator-directory__detail.is-active {
  display: block;
}

.locator-directory__detail a {
  color: var(--bud-red);
  font-weight: 400;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.locator-directory__detail a:hover,
.locator-directory__detail a:focus {
  color: #900;
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Empty state
   ------------------------------------------------------------ */
.locator-directory__empty {
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: #666;
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .locator-directory__intro h2,
  .locator-directory__intro h3 {
    font-size: 1.65rem;
  }

  .locator-directory__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .locator-directory__toolbar-group {
    width: 100%;
  }

  .locator-directory__toolbar button,
  .locator-directory__toolbar select {
    width: 100%;
  }

  .locator-directory__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .locator-directory__group-header {
    padding-bottom: 0.65rem;
    margin-bottom: 0.85rem;
  }

  .locator-directory__group-title {
    font-size: 1.2rem;
  }

  .locator-directory__actions {
    gap: 0.85rem;
  }

  .locator-directory__detail {
    font-size: 0.92rem;
  }
}

/* ============================================================
   FOOTER SHIELD — Canon Footer Protection Layer
   Blocks SPPB, Helix, Presets, and Global Variables
   Version: v1.0 — beforeUdig Canon
   ============================================================ */

/* 1 — Seal the namespace */
#sparkle-footer {
  all: revert-layer;
  position: relative;
  z-index: 1;
  font-family: Arial, Helvetica, sans-serif;
}

/* 2 — Restore Bootstrap sanity (because revert-layer also resets) */
#sparkle-footer * {
  box-sizing: border-box;
  font-family: inherit;
  color: inherit;
  line-height: 1.5;
}

/* 3 — Reapply Canon color system explicitly */
#sparkle-footer {
  --canon-footer-bg: #f8f9fa;
  --canon-footer-text: #201E1D;
  --canon-footer-link: #201E1D;
  --canon-footer-link-hover: #b30000;

  background: var(--canon-footer-bg);
  color: var(--canon-footer-text);
}

/* 4 — Prevent Helix preset footer variables from leaking */
body[data-sppb-color-mode] #sparkle-footer,
#sparkle-footer[data-sppb-color-mode] {
  --sppb-footer-bg-color: initial !important;
  --sppb-footer-text-color: initial !important;
  --sppb-footer-link-color: initial !important;
  --sppb-footer-link-hover-color: initial !important;
}

/* 5 — Canon typography override */
#sparkle-footer .footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--bud-black);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

/* 6 — Link rules (SPPB overwrites these normally) */
#sparkle-footer a {
  color: var(--canon-footer-link);
  text-decoration: none;
}

#sparkle-footer a:hover,
#sparkle-footer a:focus {
  color: var(--canon-footer-link-hover);
  text-decoration: underline;
}

/* 7 — Protection from SPPB global link, header & body styles */
#sparkle-footer a,
#sparkle-footer p,
#sparkle-footer li,
#sparkle-footer h3 {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* 8 — Bottom Bar reinforcement */
#sparkle-footer .border-top {
  border-top: 1px solid rgba(0,0,0,0.15) !important;
}

/* 9 — Icon stability (Bootstrap Icons override block) */
#sparkle-footer i[class^="bi"] {
  font-size: inherit;
  color: inherit;
}

/* ============================================================
   END FOOTER SHIELD
   ============================================================ */

/* ============================================================
   Force Mobile Hamburger Visibility
   ============================================================ */

@media (max-width: 991px) {

  #offcanvas-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #offcanvas-toggler .burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  #offcanvas-toggler .burger-icon span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #000;
  }
}

/* ============================================================
   Mobile Refinements
   ============================================================ */

@media (max-width: 768px) {

  .container,
  .container-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage {
    padding: 32px 0;
  }

  .hero-video {
    max-width: 100%;
  }

  .offcanvas-menu ul.menu > li > a {
    padding: 16px 0;
  }

  .offcanvas-menu ul.menu-child li a {
    padding: 12px 0;
  }
}

/* ============================================================
   Header Layout — Final (force centered menu)
   ============================================================ */

@media (min-width: 992px) {

  #sp-header .row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    flex-wrap: nowrap;
  }

  #sp-logo {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 2;
  }

  #sp-menu,
  #sp-menu.menu-center.flex-auto {
    width: 100%;
    max-width: none;
    flex: 1 1 100% !important;
    display: flex;
    justify-content: center !important;
  }

  #sp-menu .sp-column,
  #sp-menu .menu-with-offcanvas {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex: none !important;
  }

  #sp-menu ul.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 0 auto;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  #sp-menu ul.menu {
    gap: 8px;
  }

  #sp-menu ul.menu > li > a {
    font-size: 13px;
  }
}

/* ============================================================
   Smart Search — beforeUdig cleanup
   ============================================================ */

.com-finder {
  max-width: 960px;
  margin: 0 auto;
}

.com-finder__form {
  margin-bottom: 2rem;
}

.com-finder .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.com-finder .input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.com-finder .awesomplete,
.com-finder .js-finder-search-query {
  min-width: 280px;
}

.com-finder .form-control {
  min-height: 42px;
}

.com-finder .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 3px;
}

.com-finder .btn-secondary {
  background: #fff;
  color: var(--bud-black);
  border: 1px solid rgba(0,0,0,0.18);
}

.com-finder .btn-secondary:hover,
.com-finder .btn-secondary:focus {
  color: var(--bud-red);
  border-color: rgba(0,0,0,0.28);
}

.com-finder__advanced {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.com-finder .result-title,
.com-finder h4 {
  margin-bottom: 0.35rem;
}

.com-finder .result-text {
  margin-bottom: 0.5rem;
}

.com-finder .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2rem;
}

.com-finder .pagination li {
  list-style: none;
}

.com-finder .pagination a,
.com-finder .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 3px;
  background: #fff;
  color: var(--bud-black);
  text-decoration: none;
}

.com-finder .pagination a:hover,
.com-finder .pagination a:focus {
  color: var(--bud-red);
  border-color: rgba(0,0,0,0.28);
}

.com-finder .pagination .active span {
  background: var(--bud-red);
  border-color: var(--bud-red);
  color: #fff;
}