/* Shared nav/footer chrome — home, privacy, service pages, intake */

/* Wave dividers: the legacy bundle sizes these with height:calc(100vw/15),
   but the page shell is capped at max-width:1440px. Past that width (or when
   the viewport outruns the shell on zoom-out) the height keeps growing while
   width stops, so preserveAspectRatio="none" stretches the curve vertically.
   Tie height to the element's OWN width via aspect-ratio so the curve keeps a
   constant shape at every width. 1000/67 = the SVG viewBox (undistorted);
   .small stays intentionally flatter (was 100vw/20). */
svg.ss-wave-svg {
  height: auto;
  aspect-ratio: 1000 / 67;
}
svg.ss-wave-svg.small {
  height: auto;
  aspect-ratio: 1000 / 50;
}

/* Services dropdown: keep every label on one line so longer "AI Foo" names
   don't wrap. The dropdown auto-sizes to the longest item. */
.navbar__links__servicesDropdown__content a {
  white-space: nowrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  transition: opacity 0.15s ease;
}
.footer__socials a:hover {
  opacity: 0.65;
}
.footer__socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* Contact modal — form lives here; opened from any #contact link via home.js */
.ss-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.ss-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ss-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.ss-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.ss-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.ss-modal__close:hover {
  color: #0f172a;
}
.ss-modal__header {
  margin-bottom: 24px;
  text-align: center;
}
.ss-modal__header h2 {
  margin: 0 0 8px;
  color: #0f172a;
}
.ss-modal__header p {
  margin: 0;
  color: #475569;
}
body.ss-modal-open {
  overflow: hidden;
}
@media only screen and (max-width: 600px) {
  .ss-modal__dialog {
    padding: 28px 20px;
  }
}
