/* 
 * NGE Mollo Host Recruitment - Custom Styles
 * Compliant with antislop and WCAG AA accessibility standards.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --color-primary: #0369a1;
  --color-dark: #0f172a;
  --color-cta: #15803d;
  --color-cta-hover: #166534;
  --color-bg-subtle: #f8fafc;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.hero-heading {
  text-wrap: balance;
}

/* Accessible Tap Targets: minimum 44px for touch interfaces */
button, input, select, .btn, a.inline-flex, a.min-h-touch {
  min-height: 44px;
}

footer a {
  min-height: auto;
}

/* Visible keyboard focus state (R-32 accessibility compliance) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 2px;
}

/* Custom Range Slider for Income Calculator */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0369a1;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #075985;
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0369a1;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Sticky Bottom WhatsApp Floating CTA */
.sticky-wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .modal-overlay, .modal-content, .sticky-wa-float {
    transition: none;
  }
}
