html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #f2b629;
  outline-offset: 3px;
}

.hero-actions .button,
.register-form button,
.package .button,
.store-showcase-more,
.store-product-view {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-actions .button:hover,
.register-form button:hover,
.package .button:hover,
.store-showcase-more:hover,
.store-product-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 43, 69, 0.18);
}

.ticker,
.feature,
.blog,
.package,
.register-form,
.service,
.event-card,
.store-product-card {
  border-radius: 16px;
}

.feature,
.blog,
.package,
.service,
.event-card,
.store-product-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover,
.blog:hover,
.package:not(.popular):hover,
.service:hover,
.event-card:hover,
.store-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(8, 43, 69, 0.16);
}

@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  form {
    min-width: 0;
  }

  .modal-backdrop.open,
  #orderModal.open,
  .event-memory-modal.open,
  .event-photo-viewer.open,
  .memory-viewer.open,
  .marketing-image-viewer.open,
  .testimonial-viewer.open,
  .upcoming-events-modal.open {
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .order-modal,
  .order-dialog,
  .event-memory-dialog,
  .upcoming-events-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin-block: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hero-actions .button,
  .register-form button,
  .package .button,
  .store-showcase-more,
  .store-product-view {
    width: 100%;
  }

  .ticker,
  .register-form {
    box-shadow: 0 14px 32px rgba(8, 43, 69, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
