/* ==========================================================================
   RAMH Consultants — Stylesheet
   ========================================================================== */

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -5px rgba(19, 39, 73, 0.06), 0 4px 6px -2px rgba(19, 39, 73, 0.03);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  transition: color 150ms ease;
  padding-bottom: 2px;
}

.nav-link:hover {
  color: #132749;
}

.nav-link.active {
  color: #132749;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #CAA24B;
  border-radius: 9999px;
}

/* Visible keyboard focus for keyboard and assistive-technology users. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(202, 162, 75, 0.55);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   RAMH Interactive UX Polish
   ========================================================================== */

/* Subtle brand-matched ambient background */
body {
  background-image:
    radial-gradient(at 0% 0%, rgba(202, 162, 75, 0.045) 0, transparent 48%),
    radial-gradient(at 100% 0%, rgba(19, 39, 73, 0.055) 0, transparent 50%),
    linear-gradient(to right, rgba(231, 224, 210, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 224, 210, 0.28) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Practice-card lift */
#services .group {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

#services .group:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 39, 73, 0.28);
  box-shadow: 0 16px 32px -8px rgba(19, 39, 73, 0.10);
}

/* Operational status pulse */
.status-beacon {
  position: relative;
  display: inline-flex;
}

.status-beacon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #10B981;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Primary-action shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-shimmer:hover::before {
  left: 150%;
}

/* Tactile interaction feedback */
button,
a,
#menuToggle,
.nav-link {
  -webkit-tap-highlight-color: transparent;
}

#menuToggle {
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.15s ease;
}

#menuToggle:hover {
  transform: translateY(-1px) scale(1.05);
}

#menuToggle:active {
  transform: translateY(1.5px) scale(0.92);
  opacity: 0.8;
}

a[href^="https://wa.me"],
a[href^="tel:"],
button[type="submit"] {
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

a[href^="https://wa.me"]:hover,
a[href^="tel:"]:hover,
button[type="submit"]:hover {
  transform: translateY(-1.5px);
}

a[href^="https://wa.me"]:active,
a[href^="tel:"]:active,
button[type="submit"]:active {
  transform: translateY(1.5px) scale(0.97);
}

/* Mobile menu entrance */
#mobileMenu:not(.hidden) {
  animation: mobileMenuDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileMenuDrop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#mobileMenu a {
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

#mobileMenu a:hover {
  transform: translateX(3px);
}

#mobileMenu a:active {
  transform: scale(0.98);
}

/* Form-field polish */
input,
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #94A3B8 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #132749 !important;
  box-shadow: 0 0 0 3px rgba(19, 39, 73, 0.08) !important;
}

