/*******************************************************************
  Accessibility overrides - WCAG 2.1 Level AA
  Loaded after style.css. Each block notes the success criterion it
  addresses.
*******************************************************************/

/* ---------- Helpers ---------- */
.visually-hidden,
.sr-only {
  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;
}

/* ---------- 2.4.1 Bypass Blocks: skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 12px 18px;
  background: #291843;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  text-decoration: underline !important;
}
.skip-link:focus {
  top: 0;
}
main:focus {
  outline: none !important;
}

/* ---------- 2.4.7 Focus Visible / 1.4.11 Non-text Contrast ----------
   style.css removes outlines globally with !important; restore a
   high-contrast ring for keyboard users on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
  outline: 3px solid #291843 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #ffffff !important;
}
/* Light ring on dark surfaces */
footer a:focus-visible,
footer button:focus-visible,
.main-top a:focus-visible,
.main-top button:focus-visible,
.new_breadcrumb a:focus-visible,
.style-three .single-contact-info-box a:focus-visible,
.callout-content a:focus-visible,
.slider-03 a:focus-visible,
.slider-03 [role="button"]:focus-visible,
.slider-03 button:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px #291843 !important;
}

/* Form fields: visible focus independent of colour alone */
.form-control:focus,
select:focus {
  border-color: #291843 !important;
  box-shadow: 0 0 0 3px rgba(41, 24, 67, 0.35) !important;
}

/* ---------- 1.4.11 Non-text Contrast: form control borders ---------- */
.form-control,
.form-flat-style .form-control,
.side_form select,
.form_service select {
  border: 1px solid #6c6c6c !important;
}

/* ---------- 1.4.1 Use of Color: links inside running text ---------- */
main :where(p, li, td, .lead) a:where(:not(.btn, .nav-link, .dropdown-item)),
.contact-info-content a,
footer .address-info a {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
main .vertical-menu li a,
main .breadcrumb a,
main .post-navigation a,
main .blog-post-title a,
main .feature-info-title a,
main .blog-post-date a,
main .pricing-button a,
main .navigation a {
  text-decoration: none !important;
}

/* ---------- 1.4.3 Contrast: text on dark / brand surfaces ---------- */
.footer-link ul li a:hover,
.footer-link ul li a:focus,
.footer-bottom a:hover,
.footer-bottom a:focus,
.follow-us ul li a:hover,
footer .address-info a:hover,
footer .address-info a:focus {
  color: #ffd29a !important;
}
.footer-contact-address .address-info h6,
.footer-contact-address .address-info .h6,
.footer-contact-address .address-info .h6 a {
  color: #ffffff;
}
.navbar-toggler {
  color: #291843 !important;
}

/* WhatsApp floating button: 1.98:1 -> 5.4:1 */
.whatsapp a {
  display: inline-flex;
  align-items: center;
  background: #0b7a3e;
  color: #ffffff !important;
  padding: 8px 18px 10px 18px;
  border-radius: 30px;
  text-decoration: none !important;
}
.whatsapp a i {
  background: transparent !important;
  padding: 0 !important;
  font-size: 28px;
  color: #ffffff !important;
}
.whatsapp_chat {
  color: #ffffff;
  top: 0;
}

/* Thank-you page footer grey (3.64:1 -> 5.4:1) */
.er-thankyou-footer p {
  color: #5f6b7c !important;
}

/* ---------- Header dropdown triggers rendered as <button> (2.1.1, 4.1.2) ---------- */
.header .navbar .navbar-nav .nav-dropdown-btn {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.header .navbar .navbar-nav .nav-dropdown-btn i {
  margin-left: 5px;
}
/* Open desktop dropdowns for keyboard users too, and allow Escape to dismiss hover menus (1.4.13) */
@media (min-width: 1200px) {
  .header .navbar .dropdown:focus-within > .dropdown-menu,
  .header .navbar .dropdown > .dropdown-menu.show {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
    visibility: visible;
    opacity: 1;
  }
  .header .navbar .dropdown.a11y-dismissed > .dropdown-menu:not(.show) {
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .header .navbar .navbar-nav .nav-dropdown-btn {
    width: auto;
  }
}

/* ---------- 2.2.2 Pause, Stop, Hide: regulatory notice ticker ---------- */
.a11y-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.a11y-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}
.a11y-ticker-text {
  display: inline-block;
  white-space: nowrap;
  padding: 5px 0 5px 100%;
  animation: a11y-ticker-scroll 30s linear infinite;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 18px;
  color: #ffffff;
}
.a11y-ticker-text b {
  color: #ffffff;
}
.a11y-ticker.is-paused .a11y-ticker-text {
  animation-play-state: paused;
}
.a11y-ticker-toggle {
  flex: 0 0 auto;
  background: #ffffff;
  color: #291843 !important;
  border: 0;
  border-radius: 3px;
  padding: 2px 10px;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}
@keyframes a11y-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Carousel pause control (2.2.2) ---------- */
.a11y-carousel-toggle {
  display: block;
  margin: 10px auto 0;
  background: #291843;
  color: #ffffff !important;
  border: 0;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}
.owl-carousel .owl-dots .owl-dot span {
  border: 1px solid #291843;
}

/* ---------- 2.3.3 / 2.2.2: respect reduced-motion preferences ---------- */
@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;
  }
  .a11y-ticker-text {
    white-space: normal;
    padding-left: 0;
    animation: none !important;
  }
  .a11y-ticker-toggle {
    display: none;
  }
  .flip-box:hover .flip-box-inner,
  .flip-box:focus-within .flip-box-inner {
    transform: none !important;
  }
}

/* ---------- 1.4.10 Reflow ---------- */
main :where(p, li, td) a {
  overflow-wrap: anywhere;
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}
.table-responsive {
  overflow-x: auto;
}
.table-responsive:focus-visible {
  outline: 3px solid #291843 !important;
  outline-offset: 2px;
}

/* ---------- 1.4.12 Text Spacing: let text containers grow ---------- */
.flip-box-content h2,
.counter-content,
.pricing-head-content,
.feature-info-content {
  overflow-wrap: anywhere;
}

/* ---------- Form errors (3.3.1) ---------- */
.form-error {
  display: block;
  color: #b00020 !important;
  font-weight: 600;
  margin-top: 4px;
}
.form-control[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #b00020 !important;
  border-width: 2px !important;
}
.form-label-a11y {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #291843;
}
.form-required-note {
  font-size: 14px;
  color: #291843;
}
.callout-botton .form-label-a11y,
.side_form .form-label-a11y {
  color: inherit;
}

/* ---------- Payment page ---------- */
/* 2.2.2: the bank tables floated up and down forever */
.table-fill {
  animation: none !important;
  caption-side: top;
}
/* 1.3.1: logo + title moved into a real <caption>; keep the previous look */
.table-fill caption.bank-caption {
  padding: 0;
  color: inherit;
  text-align: center;
}
.table-fill .bank-caption-logo {
  display: block;
  padding: 10px 10px 18px;
  border: 2px solid #b0afaf;
  border-bottom: 0;
  background-color: #ffffff;
}
.table-fill .bank-caption-title {
  display: block;
  border: 2px solid #b0afaf;
  background-color: #0a0a80;
  color: #ffffff;
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  padding: 15px;
}
.table-fill tr:nth-child(odd) th {
  background: #d8e2eb;
}
.table-fill th.text-left {
  text-align: left;
  padding: 10px;
  border: 2px solid #b0afaf;
  font-weight: 300;
  font-size: 16px;
}
.main-top1.a11y-ticker {
  margin: 0px 40px 20px;
}

/* Blog dates are now plain text (<time>) instead of duplicate links; keep the original look */
.blog-post .blog-post-info .blog-post-date {
  color: #000000;
  font-size: 15px;
  font-weight: 400;
  padding-bottom: 10px;
}
.blog-post .blog-post-info .blog-post-date i {
  color: #0a6d96;
  margin-right: 8px;
  font-size: 18px;
}

/* Contact card: labels became <h3>, values became <p class="h4">; keep original spacing */
.style-three .contact-info-content .contact-info-label {
  margin-bottom: 0;
}
.style-three .contact-info-content p.h4 {
  margin-bottom: 0.5rem;
}

/* 1.4.10 / 1.4.12: allow the mobile header row and footer contact links to wrap at 320px and with increased text spacing */
@media (max-width: 1199px) {
  .header .navbar .mobile-tab {
    flex-wrap: wrap !important;
    row-gap: 8px;
  }
}
footer .address-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- 3.2.4 Consistent Identification: one link per card ----------
   The card title is the only link and is stretched over the whole card, so
   every link to a page has the same name site-wide. "Read More" stays as a
   visual cue only. */
.a11y-card {
  position: relative;
}
.a11y-card .a11y-card-link {
  color: inherit;
}
.a11y-card .a11y-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.a11y-card .a11y-card-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.a11y-card:focus-within {
  outline: 3px solid #291843;
  outline-offset: 3px;
}
.a11y-card .a11y-card-cta {
  pointer-events: none;
  cursor: inherit;
}
.main_cont.a11y-card .a11y-card-link {
  color: #ffffff;
}

/* Blog post previous / next: pill label + post title link */
.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-navigation .nav-next {
  justify-content: flex-end;
}
.post-navigation .pagi-title {
  color: #291843;
  font-weight: 600;
  text-decoration: underline !important;
}
