/**
 * Accessibility helpers — WCAG 2.2 AA
 * Minimal visual impact; preserves existing layout and brand styling.
 */

/* Skip link: visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0.5rem;
  top: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Screen-reader-only text (for labels without changing layout) */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Visible keyboard focus — do not remove for mouse users' :focus */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible,
.custom-file-input:focus-visible + .custom-file-label,
span.click:focus-visible,
.popup_btn_terms:focus-visible,
.qbutton:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Desktop nav: show submenu on keyboard focus the same as hover */
@media (min-width: 992px) {
  .menu > li:focus-within > .dropdown,
  .menu > li.open-keyboard > .dropdown {
    display: block;
  }
}

/* Owl carousel controls — force focusable + visible outline (overrides outline:none) */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next,
.owl-carousel button.owl-dot,
.owl-carousel .owl-dot {
  outline: none;
}

.owl-carousel .owl-nav button.owl-prev:focus,
.owl-carousel .owl-nav button.owl-prev:focus-visible,
.owl-carousel .owl-nav button.owl-next:focus,
.owl-carousel .owl-nav button.owl-next:focus-visible,
.owl-carousel button.owl-dot:focus,
.owl-carousel button.owl-dot:focus-visible,
.owl-carousel .owl-dot:focus,
.owl-carousel .owl-dot:focus-visible,
.review-owl.owl-carousel .owl-nav button.owl-next:focus,
.review-owl.owl-carousel .owl-nav button.owl-prev:focus,
.review-owl.owl-carousel .owl-nav button.owl-next:focus-visible,
.review-owl.owl-carousel .owl-nav button.owl-prev:focus-visible,
.review-owl.owl-carousel button.owl-dot:focus,
.review-owl.owl-carousel button.owl-dot:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  /* position: relative; */
  z-index: 5;
  height: 47px;
  width: 60px;
}

.owl-carousel button.owl-dot,
.owl-carousel .owl-dot {
  min-width: 24px;
  min-height: 24px;
}

/* Contrast fixes — text color only (backgrounds unchanged) */
/* White on #EE3224 fails AA (~4.1:1); black on same red passes (~5.1:1) */
.matchMakingBtn .btn-danger,
a.btn.btn-danger[href$="#locationQuiz"],
.locationQuizBtns .btn-danger,
.locationStaff .matchMakingGird .btn-danger,
.matchMakingSection .btn-danger {
  color: #000000 !important;
}

/* #EE3224 / brand red on white fails AA (~4.0:1); darker red text passes */
.hbx-btn a,
.hbx-btn > a[target="_blank"],
a.hbx-btn,
.banner-btn a {
  color: #B91C12 !important;
}

/* Hover keeps red background; use black text so contrast still passes */
.hbx-btn a:hover,
.hbx-btn a:focus,
.hbx-btn > a[target="_blank"]:hover,
.hbx-btn > a[target="_blank"]:focus {
  color: #000000 !important;
}

/* Preserve banner heading look after h1 → h2 (design unchanged) */
.banner-cont h2 {
  text-align: left;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  font-size: 55px;
  line-height: 68px;
  text-shadow: 2px 4px #EE3224;
  margin: 0;
}

@media (max-width: 991px) {
  .banner-cont h2 {
    text-align: center;
    font-size: 20px;
    line-height: 24px;
    text-shadow: 1px 2px #ee3224;
  }
}

/* Preserve last-minute widget typography after heading demotion */
#lastMinute .sm-col-1 .last-minute-title {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  line-height: 23px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.5px;
  text-transform: none !important;
}

#lastMinute .sm-col-1 .last-minute-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 20px !important;
  line-height: 21px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.5px;
  text-transform: none !important;
}

@media (max-width: 767px) {
  #lastMinute .sm-col-1 .last-minute-title {
    font-size: 18px !important;
    line-height: 20px !important;
  }
  #lastMinute .sm-col-1 .last-minute-sub {
    font-size: 16px !important;
    line-height: 18px !important;
  }
}

/* Matchmaking section used h2 styles — keep look after promoting to h1 */
.matchMakingCont h1 {
  color: #fff;
  font-weight: 300;
  font-size: 22px;
  line-height: 33px;
  letter-spacing: 3px;
  margin: 0;
}

/* CALL US was h4 — keep prior spacing from .loc-adrs h4 */
.home-loc-adrs .call-box h2.mt-5 {
  margin-top: 20px;
}

/* CMS Gift Cards was <h1> — keep .h-bx h1 look after demotion to h2 */
.h-bx h2 {
  font-size: 27px;
  font-weight: 300;
  line-height: 33px;
  letter-spacing: 5.94px;
  text-align: center;
  color: #EE3224;
  margin-top: 58px;
  text-transform: uppercase;
  padding-left: 7px;
}

@media (max-width: 991px) {
  .h-bx h2 {
    font-size: 20px;
  }
}

/* Modal dialog titles were h5 — keep prior modal title look as h2 */
.common_popup .modal-heading {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

/* Location quiz title was h4 — preserve look as h2 */
.locationQuizContent .location-quiz-heading,
.locationQuizContent h2.location-quiz-heading {
  color: #000;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  text-align: center;
  padding-bottom: 25px;
  margin: 0;
}

@media (max-width: 767px) {
  .locationQuizContent .location-quiz-heading br {
    display: none;
  }
}

/* Focusable close control on last-minute widget */
#lastMinute .close-btn[role="button"]:focus,
#lastMinute .close-btn[role="button"]:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}

/* Keyboard-focusable back control in booking widget */
#lastMinute .wo-popup-locations-back:focus,
#lastMinute .wo-popup-locations-back:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}

/* WCAG 2.4.11 — reduce focus being fully obscured by sticky/fixed UI */
a,
button,
input,
select,
textarea,
[tabindex]:not([tabindex="-1"]) {
  scroll-margin-top: 1.25rem;
  scroll-margin-bottom: 1.25rem;
}

/* WCAG 2.5.8 — ensure social icon links meet 24×24 CSS px minimum */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 4px;
}

/* Mobile menu toggle target size */
.logo .navbar-toggler {
  min-width: 44px;
  min-height: 40px;
}

/* Modal close control target size */
.common_popup .close {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Reduced motion — preserve interactivity, reduce nonessential motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ensure main landmark has no layout side effects */
main#main-content {
  display: block;
}

/* Menu descriptions must be in <li> (valid list); keep prior <p class="pb-25"> look */
.menu-list > li.m-des {
  display: block;
  list-style: none;
  margin-bottom: 0 !important;
}
.menu-list > li.m-des > p.pb-25 {
  margin: 0;
  width: 100%;   
   font-size: 16px;
  color: #000;
  font-weight: 300;
}
