/* Ace Entertainment – custom styles (complements Tailwind CDN) */

:root {
  --brand-black: #050505;
  --brand-surface: #0e0e0e;
  --brand-card: #151515;
  --brand-border: #2a2a2a;
  --brand-teal: #67b4b2;
  --brand-teal-bright: #7ac9c7;
  --brand-orange: #e2522f;
  --brand-orange-hot: #f0623a;
  --brand-muted: #a8a8a8;
  --focus-ring: #67b4b2;
}

html {
  scroll-behavior: smooth;
}

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

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand-teal);
  color: #050505;
  font-weight: 700;
  border-radius: 0.375rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-teal);
  color: #050505;
  border-color: var(--brand-teal);
}

.btn-primary:hover {
  background: var(--brand-teal-bright);
  border-color: var(--brand-teal-bright);
  color: #050505;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange-hot);
}

.btn-orange {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.btn-orange:hover {
  background: var(--brand-orange-hot);
  border-color: var(--brand-orange-hot);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 0.9rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Equaliser accent motif from logo */
.eq-accent {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 28px;
  width: 56px;
}

.eq-accent::before,
.eq-accent::after,
.eq-accent {
  /* bars via box-shadows on a pseudo chain */
}

.eq-accent {
  background:
    linear-gradient(var(--brand-orange), var(--brand-orange)) 0 100% / 6px 14px no-repeat,
    linear-gradient(var(--brand-orange), var(--brand-orange)) 10px 100% / 6px 22px no-repeat,
    linear-gradient(var(--brand-orange), var(--brand-orange)) 20px 100% / 6px 10px no-repeat,
    linear-gradient(var(--brand-orange), var(--brand-orange)) 30px 100% / 6px 26px no-repeat,
    linear-gradient(var(--brand-orange), var(--brand-orange)) 40px 100% / 6px 16px no-repeat,
    linear-gradient(var(--brand-orange), var(--brand-orange)) 50px 100% / 6px 20px no-repeat;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media video {
  position: absolute;
  inset: 0;
}

.hero__media .hero__fallback {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.78) 55%, rgba(5, 5, 5, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* Section helpers */
.section-label {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Benefit / feature list */
.benefit-grid article {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.35rem;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(103, 180, 178, 0.12);
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}

/* Event type chips */
.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: var(--brand-card);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.event-chip:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-bright);
}

/* Testimonials */
.testimonial-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.testimonial-card .placeholder-note {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  border: 1px solid rgba(226, 82, 47, 0.4);
  border-radius: 0.25rem;
}

/* Gallery */
.gallery-grid a,
.gallery-grid .gallery-video {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--brand-card);
  aspect-ratio: 4 / 3;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.05);
}

.gallery-grid .gallery-video video {
  background: #000;
}

.gallery-grid .gallery-video__label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
  background: rgba(5, 5, 5, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.media-frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--brand-border);
  background: var(--brand-card);
}

.media-frame video,
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-filter.is-active {
  background: var(--brand-teal);
  color: #050505;
  border-color: var(--brand-teal);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
}

.lightbox__caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.9rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(21, 21, 21, 0.9);
  border: 1px solid var(--brand-border);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.lightbox__close {
  top: -2.75rem;
  right: 0;
}

.lightbox__prev {
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: -3.25rem;
    transform: none;
  }

  .lightbox__prev {
    left: 0;
  }

  .lightbox__next {
    right: 0;
  }
}

/* Forms */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--brand-muted);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}

.form-control:hover {
  border-color: #3a3a3a;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(103, 180, 178, 0.2);
}

.form-control[aria-invalid="true"] {
  border-color: var(--brand-orange);
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--brand-orange-hot);
}

.checkbox-group {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
}

.checkbox-item input {
  margin-top: 0.2rem;
  accent-color: var(--brand-teal);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid;
  margin-bottom: 1.5rem;
}

.alert-error {
  background: rgba(226, 82, 47, 0.12);
  border-color: rgba(226, 82, 47, 0.45);
  color: #ffc4b5;
}

.alert-success {
  background: rgba(103, 180, 178, 0.12);
  border-color: rgba(103, 180, 178, 0.45);
  color: #c8efed;
}

/* Process steps */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(226, 82, 47, 0.15);
  color: var(--brand-orange-hot);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Social placeholders */
.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--brand-border);
  border-radius: 0.375rem;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.social-link--placeholder {
  opacity: 0.55;
  cursor: default;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--brand-border);
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(103, 180, 178, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(226, 82, 47, 0.08), transparent 50%),
    var(--brand-surface);
}

.page-hero--kids {
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(103, 180, 178, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(226, 82, 47, 0.12), transparent 50%),
    var(--brand-surface);
}

.page-hero--weddings {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(103, 180, 178, 0.1), transparent 60%),
    linear-gradient(180deg, #0e0e0e, #050505);
}

/* Service detail blocks */
.service-detail {
  scroll-margin-top: 6rem;
}

.service-detail + .service-detail {
  border-top: 1px solid var(--brand-border);
}

/* Trust line */
.trust-line {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* Utility: prevent horizontal overflow */
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}
