/* ==========================================================================
   Schedule Page — Alliance Jiu Jitsu Northwest Arkansas
   ========================================================================== */

.schedule-page {
  --sp-bg: #000000;
  --sp-surface: #111111;
  --sp-text: #ffffff;
  --sp-muted: rgba(255, 255, 255, 0.82);
  --sp-dark: #111111;
  --sp-dark-muted: #333333;
  --sp-gold: #ffc033;
  --sp-font: "Montserrat", sans-serif;
  --sp-pad-x: clamp(1.25rem, 5vw, 4rem);
  --sp-pad-y: clamp(3rem, 7vw, 5rem);

  font-family: var(--sp-font);
  color: var(--sp-text);
  background: var(--sp-bg);
}

.schedule-page .site-header__brand {
  font-size: inherit;
  font-weight: inherit;
}

.sp-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.sp-eyebrow {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.sp-heading {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-gold);
}

#schedule-page-heading {
  white-space: nowrap;
}

.schedule-char-mask {
  padding: 0.12em 0 0.24em;
  margin: -0.12em 0 -0.24em;
}

.sp-copy {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sp-muted);
  text-align: center;
}

.sp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.sp-cta:hover,
.sp-cta:focus-visible {
  background-color: var(--sp-gold);
  border-color: var(--sp-gold);
  color: #111;
}

.sp-cta:focus-visible,
.sp-form :is(input, textarea, select, button):focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 3px;
}

/* Schedule viewer */
.sp-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: var(--sp-pad-y) var(--sp-pad-x);
  background: #ffffff;
  color: var(--sp-dark);
}

.sp-viewer .sp-eyebrow {
  color: var(--sp-dark);
}

.sp-viewer .sp-copy {
  color: var(--sp-dark-muted);
}

.sp-viewer .sp-cta {
  color: var(--sp-dark);
}

.sp-viewer__media {
  display: block;
  width: min(100%, 50rem);
  margin-top: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sp-viewer__media:hover,
.sp-viewer__media:focus-visible {
  transform: translateY(0.35rem);
}

.sp-viewer__media:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 6px;
}

.sp-viewer__media figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1379 / 1050;
  background: #1a1a1a;
}

.sp-viewer__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Book intro */
.sp-book {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: var(--sp-pad-y) var(--sp-pad-x);
  background: var(--sp-surface);
}

.sp-book__content {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 28rem;
}

.sp-book__content .sp-intro {
  align-items: flex-start;
  text-align: left;
}

.sp-book__content .sp-copy {
  text-align: left;
}

.sp-form {
  display: flex;
  flex: 1 1 18rem;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 32rem;
  width: 100%;
}

.sp-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sp-form :is(input, textarea, select) {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--sp-text);
  font: inherit;
  font-size: 0.95rem;
}

.sp-form :is(input, textarea, select)::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.sp-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.sp-form select option {
  color: #111;
}

.sp-form button[type="submit"] {
  margin-top: 0.35rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--sp-gold);
  background: transparent;
  color: var(--sp-gold);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.sp-form button[type="submit"]:hover,
.sp-form button[type="submit"]:focus-visible {
  background: var(--sp-gold);
  color: #111;
}

.sp-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.sp-form__status {
  margin: 0;
  color: var(--sp-gold);
  font-size: 0.85rem;
}

.sp-form__status.is-error {
  color: #ff8a80;
}

@media (max-width: 800px) {
  .sp-book {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-book__content {
    max-width: none;
    align-items: center;
  }

  .sp-book__content .sp-intro,
  .sp-book__content .sp-copy {
    align-items: center;
    text-align: center;
  }

  .sp-form {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-cta,
  .sp-viewer__media,
  .sp-form button[type="submit"] {
    transition: none;
  }

  .sp-viewer__media:hover,
  .sp-viewer__media:focus-visible {
    transform: none;
  }
}
