/* Additions on top of the original stylesheets (bootstrap.css, menu.css, styles.css).
   UX review 2026-09-29 (ui-ux-pro-max rules) — see SUJEETH_FOUNDATION_ARCHIVE/UX_REVIEW_2026-09-29.md */

:root { --sf-green-leaf: #6fbe44; --sf-green: #3d7a22; --sf-green-dark: #2f6a1b; --sf-brown: #754d24; }

/* Forms */
.sf-form-note { font-size: 13px; color: #555; margin-top: 10px; }
.sf-form-status { font-size: 15px; font-weight: 700; color: var(--sf-green-dark); margin: 10px 0 0; }
.sf-form-status:empty { display: none; }
/* U: original .btn-submit had pointer-events:none, which blocked the new Submit buttons */
.sf-wa-form .btn-submit, .sf-wa-form .amount-donate-btn { pointer-events: auto; border: 0; cursor: pointer; min-height: 44px; font-size: 14px; }
.top-header .contact-detail a { color: inherit; }
.footer-block a[href^="mailto:"] { color: inherit; }

/* U2: contrast — white text on leaf green was 2.3:1; logo's deeper green gives 5.2:1 */
.donate-btn, .amount-donate-btn, .volunteer-btn .volunteer, .volunteer-btn .donate { background: var(--sf-green) !important; }
.donate-btn:hover, .amount-donate-btn:hover, .volunteer-btn .volunteer:hover, .volunteer-btn .donate:hover { background: var(--sf-green-dark) !important; }
.volunteer-btn .volunteer, .volunteer-btn .donate { opacity: 1; }
.greenTxt { color: var(--sf-green) !important; }
.content-container h1 { color: var(--sf-green); }
.donation-details-bg-img a, .cheque-dd a { color: #1d4f7a; }
.galleries .content p, .galleries .content h5 { color: #fff; }

/* U6: visible keyboard focus (the original CSS removed all focus outlines) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sf-green) !important; outline-offset: 2px;
}

/* U9: tap targets >= 24px (footer links, sitemap, carousel arrows on phones) */
.footer-block ul li a, .footer-block .sitemap a, .footer-block a[href^="mailto:"] { display: inline-block; padding: 6px 0; min-height: 24px; }
@media (max-width: 767px) {
  #mainBanner .carousel-control { width: 44px; }
}

/* U5: carousel pause/play control */
.sf-carousel-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 16; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .45); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}

/* U1: floating Volunteer/Donate buttons covered content on phones — make them a slim bottom bar there */
@media (max-width: 767px) {
  .volunteer-btn { top: auto; bottom: 0; left: 0; right: 0; display: flex; box-shadow: 0 -2px 8px rgba(0,0,0,.15); }
  .volunteer-btn .clearfix { display: none; }
  .volunteer-btn .volunteer, .volunteer-btn .donate {
    flex: 1; width: auto; float: none; margin: 0; padding: 8px 6px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  }
  .volunteer-btn .volunteer { background: var(--sf-brown) !important; }
  .volunteer-btn .volunteer img, .volunteer-btn .donate img { width: 24px; height: 24px; }
  .volunteer-btn span { font-size: 15px; }
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .carousel-inner > .item { transition: none !important; }
}

/* Gallery tiles on the home page: label was clipped at the bottom on phones */
@media (max-width: 767px) {
  .galleries .content { top: auto !important; bottom: 0; padding: 8px 14px; }
}

/* Contact/Volunteer/Donate address block links: contrast + tap size */
.contact-address a, .cheque-dd .center a, .sf-form-note a { color: #1d4f7a; display: inline-block; padding: 4px 0; }

/* width/height attributes (added to stop layout jumps) must never make an image wider than the screen */
main img[width]:not(.banner) { max-width: 100%; height: auto; }

/* Screen-reader-only labels: original form CSS gave every <label> full width, which pushed them off-screen and widened the page */
.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; }
