/* ==========================================================================
   GODAVARI URBAN CO-OP BANK LIMITED - ACCESSIBILITY STYLESHEET
   Compliant with:
   - Rights of Persons with Disabilities (RPwD) Act, 2016
   - Ministry of Finance Banking Accessibility Standards (Feb 2, 2024)
   - W3C Web Content Accessibility Guidelines (WCAG 2.1 Level AA)
   - Guidelines for Indian Government Websites (GIGW 3.0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Skip to Main Content Link (Keyboard & Screen Reader First Item)
   -------------------------------------------------------------------------- */
.gb-skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: #004080;
  color: #ffffff !important;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999999;
  border: 2px solid #ff9a3c;
  border-top: none;
  transition: top 0.2s ease-in-out;
}

.gb-skip-link:focus,
.gb-skip-link:active {
  top: 0;
  outline: 3px solid #ff9a3c;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Screen Reader Only Utility Class (.sr-only)
   -------------------------------------------------------------------------- */
.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;
}

/* --------------------------------------------------------------------------
   3. Universal Focus Indicators for Keyboard Navigators
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #E85D04 !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   4. Accessibility Toolbar in Top Bar
   -------------------------------------------------------------------------- */
.gb-a11y-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
  padding-left: 12px;
  border-left: 1px solid #dcdcdc;
}

.gb-a11y-btn-group {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
}

.gb-a11y-btn {
  background: #ffffff;
  border: none;
  border-right: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s;
  font-family: inherit;
}

.gb-a11y-btn:last-child {
  border-right: none;
}

.gb-a11y-btn:hover {
  background: #004080;
  color: #ffffff;
}

.gb-a11y-btn.is-active {
  background: #004080;
  color: #ffffff;
}

.gb-a11y-contrast-btn {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-family: inherit;
}

.gb-a11y-contrast-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.gb-a11y-link {
  color: #004080 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 64, 128, 0.08);
  transition: background-color 0.2s, color 0.2s;
}

.gb-a11y-link:hover {
  background: #004080 !important;
  color: #ffffff !important;
}

/* Marquee Pause/Play Control */
.gb-marquee-wrap {
  display: flex;
  align-items: center;
  background-color: #004080;
  color: #fff;
  width: 100%;
}

.gb-marquee-wrap .gb-marquee-content {
  flex: 1;
  overflow: hidden;
  padding: 8px 0;
}

.gb-marquee-pause-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 4px 10px;
  margin: 0 15px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.2s;
}

.gb-marquee-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   5. Dynamic Text Sizing Rules (Level -1, 0, +1, +2)
   -------------------------------------------------------------------------- */
body.font-size-small p,
body.font-size-small span:not(.fa):not(.fas):not(.fab),
body.font-size-small a,
body.font-size-small li,
body.font-size-small td,
body.font-size-small th,
body.font-size-small input,
body.font-size-small button:not(.gb-a11y-btn) {
  font-size: 90% !important;
  line-height: 1.5 !important;
}

body.font-size-large p,
body.font-size-large span:not(.fa):not(.fas):not(.fab),
body.font-size-large a,
body.font-size-large li,
body.font-size-large td,
body.font-size-large th,
body.font-size-large input,
body.font-size-large button:not(.gb-a11y-btn) {
  font-size: 112% !important;
  line-height: 1.6 !important;
}

body.font-size-xlarge p,
body.font-size-xlarge span:not(.fa):not(.fas):not(.fab),
body.font-size-xlarge a,
body.font-size-xlarge li,
body.font-size-xlarge td,
body.font-size-xlarge th,
body.font-size-xlarge input,
body.font-size-xlarge button:not(.gb-a11y-btn) {
  font-size: 125% !important;
  line-height: 1.7 !important;
}

/* --------------------------------------------------------------------------
   6. High Contrast Mode (WCAG AAA Color Contrast for Low Vision)
   -------------------------------------------------------------------------- */
body.high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast .gb-topbar {
  background: #111111 !important;
  border-bottom: 2px solid #ffff00 !important;
}

body.high-contrast .gb-topbar-links li a {
  color: #ffff00 !important;
}

body.high-contrast .gb-header {
  background: #000000 !important;
  border-bottom: 2px solid #ffff00 !important;
  box-shadow: none !important;
}

body.high-contrast .gb-nav > ul > li > a {
  color: #ffffff !important;
}

body.high-contrast .gb-nav > ul > li > a:hover,
body.high-contrast .gb-nav > ul > li.gb-active > a {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast .gb-dropdown {
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
}

body.high-contrast .gb-dropdown li a {
  color: #ffffff !important;
  border-bottom: 1px solid #333333;
}

body.high-contrast .gb-dropdown li a:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast .gb-a11y-btn {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.high-contrast .gb-a11y-btn.is-active,
body.high-contrast .gb-a11y-btn:hover {
  background: #ffff00 !important;
  color: #000000 !important;
}

body.high-contrast .gb-a11y-contrast-btn {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
  font-weight: 700;
}

body.high-contrast .gb-a11y-link {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast .theme-title-one h2,
body.high-contrast .theme-title-two h2 {
  color: #ffff00 !important;
}

body.high-contrast p,
body.high-contrast li,
body.high-contrast span {
  color: #ffffff !important;
}

body.high-contrast a:not(.gb-a11y-btn):not(.gb-a11y-contrast-btn) {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

body.high-contrast a:hover {
  color: #ffffff !important;
}

body.high-contrast .section-spacing,
body.high-contrast .our-case,
body.high-contrast .service-style-one,
body.high-contrast .about,
body.high-contrast .boxshadow,
body.high-contrast .aboutcontent,
body.high-contrast .card,
body.high-contrast .grievance-box,
body.high-contrast .single-counter-box {
  background-color: #121212 !important;
  border: 1px solid #ffff00 !important;
  box-shadow: none !important;
}

body.high-contrast table,
body.high-contrast th,
body.high-contrast td {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffff00 !important;
}

body.high-contrast th {
  background-color: #222222 !important;
  color: #ffff00 !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffff00 !important;
}

body.high-contrast .theme-footer-two {
  background-color: #000000 !important;
  border-top: 3px solid #ffff00 !important;
}

body.high-contrast .bottom-footer {
  background-color: #111111 !important;
  border-top: 1px solid #ffff00 !important;
}

body.high-contrast :focus-visible {
  outline: 3px solid #ffff00 !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   7. Responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .gb-topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .gb-a11y-toolbar {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
    justify-content: space-between;
  }
}
