/* ==========================================================================
   Wealth Crafts - accessibility fixes (WCAG 2.2 AA)
   Loaded last from includes/head.php. Safe to edit; each block says why.
   ========================================================================== */

/* 2.4.1 Bypass blocks - "Skip to main content" link, visible on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  background: #3220cb;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #c84600;
  outline-offset: 2px;
}
main:focus { outline: none; }

/* Stats rows ("15+", "1200+" ...) were fake headings; keep their old heading look */
.a11y-stat {
  font-family: "Inter Tight", sans-serif;
  letter-spacing: 0.3px;
}

/* Decorative watermark numbers on the promise cards are drawn by CSS (aria-hidden in HTML) */
.promises-sec-mainn .promise-number::before { content: attr(data-number); }

/* Table of contents entries are now real links - keep the original card look */
.toc-categories li { padding: 0; font-family: "DM Sans", sans-serif; letter-spacing: normal; }
.toc-categories li a {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}
.toc-categories li a:focus-visible {
  outline: 3px solid #3220cb;
  outline-offset: 2px;
}

/* Key/value tables: first column is now a row header - look like the old first cell */
.mf-table th.row-head {
  background: transparent;
  color: #222;
  font-weight: 600;
  width: 22%;
  padding: 18px;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
  font-size: 15px;
}
.mf-table tr:last-child th.row-head { border-bottom: none; }
@media (max-width: 767px) {
  .mf-table th.row-head { padding: 14px; font-size: 14px; }
}

/* 1.4.3 Contrast - colours that failed 4.5:1 */
.ribbon { background: #1d7f45 !important; }                 /* was #2ecc71 (2.1:1) */
.investment-services-section .service-btn,
.divider-wrapper { color: #666 !important; }                 /* was #777 (4.47:1) */
.sebi-discl-secc .sebi-advisor-item .adv-label { color: #666 !important; } /* was #999 */

/* 1.4.1 Use of colour - links inside running text are underlined */
main p a:not([class*="btn"]):not(.sebi-premium-btn),
main li a.link,
main p a.link {
  text-decoration: underline !important;   /* coustom.css sets a{text-decoration:none!important} */
  text-underline-offset: 2px;
}

/* 2.5.8 Target size - space small slider dots so each has a 24px target zone */
.swiper-pagination-bullet { margin-left: 9px !important; margin-right: 9px !important; }

/* 2.5.8 Target size - breadcrumb links */
.page-breadcrumb li a { display: inline-block; min-height: 24px; line-height: 24px; }

/* Visually hidden helper (also provided by Bootstrap 5) */
.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;
}

/* Orange text on the dark navy areas (footer, desktop dropdown, page-title banner) needs a LIGHTER orange */
.footer-disclaimer-wide .sebi-reg,
.footer-disclaimer-wide h5,
.footer-disclaimer-wide .h5 { color: #ff7a33 !important; }  /* 5.4:1+ on the dark footer */
.bread-crum-secc .page-breadcrumb li { color: #ffbf94 !important; }  /* page-title banner photo can be light grey in places */
@media (min-width: 1201px) {
  .dropdown .dropdown-menu li a:hover,
  .dropdown .dropdown-menu li a.active { color: #ff7a33 !important; }
}

/* 2.4.7 Focus visible - a clear keyboard focus ring everywhere (several components removed it) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #3220cb !important;
  outline-offset: 2px;
}
.financer-footer a:focus-visible,
.financer-footer button:focus-visible,
.financer-footer input:focus-visible,
.dropdown-menu a:focus-visible,
.bread-crum-secc a:focus-visible,
.accordion-button:not(.collapsed):focus-visible { outline-color: #ffffff !important; }

/* ---- Round 2 (re-scan) ---- */

/* 1.4.3 Light breadcrumb on service pages */
ul.breadcrumb li,
ul.breadcrumb li a { color: #56666a; }          /* was #7a8a8d (3.3:1) */
ul.breadcrumb .active { color: #b84000; }       /* darker orange on the light grey band */

/* 1.4.3 Links on the dark "consult" banner */
.cta-finanace-plan .link,
.cta-finanace-plan p a:not([class*="btn"]) { color: #ffbf94 !important; }

/* 1.4.3 Service cards: white text over the photo needs a stronger shade */
.main-wealth-img::after { background: rgba(9, 27, 36, 0.72); }

/* 3.3.2 Newsletter fields have visible labels */
.secondary-newsletter .nl-label {
  display: block;
  margin: 0 0 -6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

/* 2.2.2 Pause control for the scrolling strip on the home page */
.finance-tags-wrap::after {          /* solid end-cap so text never scrolls under the button */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64px;
  background: linear-gradient(90deg, rgba(50, 32, 203, 0) 0%, #3220cb 40%);
  z-index: 2;
  pointer-events: none;
}
.finance-tags-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #3220cb;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.finance-tags-toggle:focus-visible { outline-color: #ffffff !important; }
.finance-tags-wrap.is-paused .finance-tag-sep { animation-play-state: paused; }

/* 2.2.2 Pause control for auto-playing sliders */
.a11y-slider-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #3220cb;
  background: #ffffff;
  color: #3220cb;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  z-index: 5;
}
.a11y-slider-toggle--below { display: flex; margin: 12px auto 0; }
/* inside the blog slider's arrow row: same size/shape as the arrows */
.plain-nav .a11y-slider-toggle {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  margin: -22px 0 0;
  bottom: 5px;
  background: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
}
.plain-nav .a11y-slider-toggle:hover { background: #3220cb; }
.a11y-slider-toggle:hover { background: #3220cb; color: #ffffff; }

/* Single-item lists were turned into plain blocks; keep the list look */
.founder-list .founder-item { list-style: none; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .finance-tag-sep { animation: none !important; }
}
