/*
 * Site-specific styles layered on top of the compiled Tailwind build
 * (assets/main-*.css). Tailwind only ships classes that were used at build
 * time, so fixes that need new utilities live here instead.
 */

/* Never let a stray element cause sideways scrolling on phones. */
body {
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

/* Long words wrap instead of overflowing on narrow screens. */
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

/* Card titles sit next to an icon; let them shrink and hyphenate. */
.icon-title > * {
  min-width: 0;
  hyphens: auto;
}

/* Page headings: scale down on phones so long words still fit. */
.hero-title {
  font-size: min(2.25rem, 9vw);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.15;
  }
}

/* The hero's decorative image sits partly outside its box. */
.hero {
  overflow-x: clip;
}

/* Initials badge used in place of a team photo. */
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.team-grid {
  gap: 2rem;
}

.team-card {
  width: 100%;
  max-width: 20rem;
}

/* Footer links */
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

/* Dialog */
.modal {
  z-index: 50;
}

.modal-panel {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal-close {
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* Forms */
.form-control {
  background-color: #fff;
  color: #111827;
}

.form-control:user-invalid {
  border-color: #dc2626;
}

/* Keep the floating "Phone Number" label clear of the country flag. */
.phone-label {
  left: 3.75rem !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
