/* --- Stitch Design System Compatibility & Utility Tokens --- */
:root {
  --brand: #FABD2F;
  --paper: #fdf9f0;
  --bone: #F4F1E8;
  --ink: #000513;
  --navy-900: #081529;
  --navy-800: #0b1e3b;
  --navy-700: #4e5f7f;
  --sun-500: #FABD2F;
  --red-600: #E63946;
  --hair: rgba(8, 21, 41, 0.12);
}

/* --- Base Accessibility & Touch Targets --- */
html, body {
  overflow-x: hidden;
  width: 100%;
}

a, button, [role="button"] {
  cursor: pointer;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sun-500);
  outline-offset: 2px;
}

/* --- Dropdown Navigation Menu --- */
.nav-item {
  position: relative;
  display: inline-block;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #ffffff;
  border: 1.5px solid rgba(8, 21, 41, 0.12);
  border-radius: 12px;
  min-width: 240px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 50px -10px rgba(8, 21, 41, 0.18);
  z-index: 100;
}

.nav-item::after {
  content: '';
  position: absolute;
  height: 15px;
  width: 100%;
  bottom: -15px;
  left: 0;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #081529;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-align: left;
}

.dropdown-menu a:hover {
  color: #FABD2F;
  background: #F4F1E8;
}

/* Clear footer padding on mobile for sticky call bar */
footer {
  padding-bottom: 120px !important;
  background-color: #081529 !important;
  color: #ffffff !important;
}

footer a {
  color: #cbd5e1 !important;
  transition: color 0.15s ease;
}

footer a:hover {
  color: #FABD2F !important;
}

footer h4 {
  color: #FABD2F !important;
  font-weight: 700 !important;
}

footer p, footer li, footer span {
  color: #cbd5e1 !important;
}

@media (min-width: 768px) {
  footer {
    padding-bottom: 48px !important;
  }
}
