/* Shared custom styles beyond Tailwind utilities. */

html { scroll-behavior: smooth; }

/* Focus ring — applied via .focus-ring class on interactive elements. */
.focus-ring:focus-visible {
  outline: 3px solid #046055;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll reveal — element fades + lifts in when .visible is added. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* Mobile nav — hidden by default on small screens, shown when .mobile-open. */
@media (max-width: 767px) {
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
  }
  #nav-links.mobile-open { display: flex; }
  #nav-links a {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
  }
  #nav-links a:last-child { border-bottom: none; }
}

/* Region switcher dropdown menu. */
#region-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 11rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 40;
  overflow: hidden;
}
#region-menu.open { display: block; }
#region-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  transition: background-color 150ms;
}
#region-menu a:hover { background: #f8fafc; }
#region-menu a[aria-current="true"] {
  background: #e6f4f1;
  color: #034a41;
  font-weight: 500;
}

/* Reduced motion — disable transitions and animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero phone mockup floating KPI badges — positioned around the phone card. */
.kpi-badge {
  position: absolute;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(2, 51, 45, 0.15);
  padding: 0.75rem 1rem;
  z-index: 2;
}
.kpi-badge .kpi-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: #046055;
  line-height: 1;
}
.kpi-badge .kpi-label {
  font-size: 0.6875rem;
  color: #475569;
  margin-top: 0.25rem;
  max-width: 8rem;
  line-height: 1.3;
}
