/* =============================================================
   main.css — global custom styles
   Tailwind utility-first; only add here what Tailwind cannot do.
   ============================================================= */

/* Smooth scroll for in-page anchor links */
html {
  scroll-behavior: smooth;
}

/* Skip-to-content link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* =============================================================
   WhatsApp Button Design System — hds-wa-btn
   Use on any <a> that links to wa.me
   ============================================================= */

.hds-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  background: #25D366;
  /* Dark forest text/icon (not white) — official WhatsApp green measures
     ~1.98:1 against white text, failing WCAG AA (needs 4.5:1). #121f1a on
     #25D366 measures ~8.5:1. Background stays the exact official brand
     green — only the foreground changed. */
  color: #121f1a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.hds-wa-btn:hover {
  background: #1db954;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  transform: translateY(-1px);
  color: #121f1a;
  text-decoration: none;
}

.hds-wa-btn:active {
  transform: translateY(0);
}

.hds-wa-btn:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}

/* Small — nav bar, inline contexts */
.hds-wa-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: 0.625rem;
}

/* Large — hero and CTA-band buttons */
.hds-wa-btn--lg {
  padding: 0.9375rem 2rem;
  font-size: 1rem;
  border-radius: 1rem;
}

/* Extra-large — hero primary actions */
.hds-wa-btn--xl {
  padding: 1.0625rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: 1rem;
}

/* Full-width — mobile menu, stacked layouts */
.hds-wa-btn--full {
  width: 100%;
  justify-content: center;
}

/* Pill — FAB floating button */
.hds-wa-btn--pill {
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

/* Outline — secondary WA action beside a primary */
.hds-wa-btn--outline {
  background: transparent;
  color: #1a9e4e;
  border: 2px solid #25D366;
  box-shadow: none;
}

.hds-wa-btn--outline:hover {
  background: #25D366;
  color: #121f1a;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}

/* =============================================================
   Floating WhatsApp CTA — #hds-fab
   Injected by main.js; controlled by .hds-fab--visible class
   ============================================================= */

#hds-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 49;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  /* shadow stronger than regular buttons */
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0,0,0,0.12);
}

#hds-fab.hds-fab--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hide FAB text on very small screens — show icon-only pill */
@media (max-width: 359px) {
  #hds-fab .hds-fab-text { display: none; }
}

/* Hindi disabled site-wide until full content-parity translation ships —
   hides the EN/हिन्दी toggle everywhere (see assets/js/i18n.js HINDI_ENABLED). */
[data-lang-toggle] { display: none !important; }
