/*
Theme Name: The Swing Booking
Theme URI: https://theswinggolf.com/
Author: Kunz12
Description: A focused two-step member booking experience with WordPress member creation and Resy booking.
Version: 1.0.10
Text Domain: the-swing-booking
*/

/*
 * Typography supplied by the project's approved font families.
 * HarmonyOS Sans copyright 2021 Huawei Device Co., Ltd.; used unmodified
 * under the included HarmonyOS Sans Fonts License Agreement.
 * Vollkorn is distributed under the included SIL Open Font License 1.1.
 */
@font-face {
  font-family: "Vollkorn";
  src: url("assets/fonts/Vollkorn[wght].ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("assets/fonts/HarmonyOS_Sans_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("assets/fonts/HarmonyOS_Sans_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --swing-bg: #09271c;
  --swing-bg-deep: #061e16;
  --swing-panel: rgba(255, 255, 255, 0.025);
  --swing-gold: #d0a85a;
  --swing-gold-bright: #deb96f;
  --swing-copy: #f1efe8;
  --swing-muted: #9caaa3;
  --swing-line: rgba(208, 168, 90, 0.28);
  --swing-danger: #f0a39a;
  --swing-success: #b7d5bf;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--swing-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--swing-copy);
  background: var(--swing-bg);
  font-family: "HarmonyOS Sans", Arial, Helvetica, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.booking-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
  background:
    radial-gradient(circle at 50% 43%, rgba(41, 80, 60, 0.28), transparent 35%),
    linear-gradient(145deg, var(--swing-bg-deep), var(--swing-bg) 48%, #082219);
}

.booking-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, transparent 25%, rgba(0, 0, 0, 0.2) 100%);
  content: "";
  pointer-events: none;
}

.booking-card {
  width: 100%;
  max-width: 432px;
  text-align: center;
}

.booking-step {
  display: none;
}

.booking-step.is-active {
  display: block;
  animation: booking-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 8px;
  margin: 0 0 30px;
}

.step-progress span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(208, 168, 90, 0.2);
}

.step-progress span:first-child {
  width: 25px;
  background: var(--swing-gold);
}

.brand-logo {
  display: block;
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 34px;
}

.brand-logo--compact {
  width: min(145px, 42vw);
  margin-bottom: 20px;
}

.submit-button,
.primary-button {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.booking-title {
  margin: 0;
  color: var(--swing-copy);
  font-family: "Vollkorn", Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4.5vw, 33.09px);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.booking-subtitle {
  margin: 11px 0 29px;
  color: var(--swing-muted);
  font-size: 17.85px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.primary-button,
.submit-button {
  display: grid;
  width: 100%;
  min-height: 51px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #173023;
  background: var(--swing-gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.31em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.submit-button:hover {
  background: var(--swing-gold-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.primary-button:active,
.submit-button:active {
  transform: translateY(1px);
}

.primary-button:focus-visible,
.submit-button:focus-visible,
.text-button:focus-visible,
.booking-input:focus-visible {
  outline: 2px solid var(--swing-gold-bright);
  outline-offset: 3px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 6px auto 0;
  padding: 0 12px;
  border: 0;
  color: var(--swing-muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}

.text-button:hover {
  color: var(--swing-copy);
}

.member-form {
  margin-top: 31px;
  text-align: left;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field-label {
  color: #c6a763;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-input {
  width: 100%;
  height: 49px;
  padding: 0 16px;
  border: 1px solid var(--swing-line);
  border-radius: 4px;
  color: var(--swing-copy);
  background: var(--swing-panel);
  font-family: "HarmonyOS Sans", Arial, Helvetica, sans-serif;
  font-size: 17.85px;
  font-weight: 400;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.booking-input::placeholder {
  color: #87958f;
}

.booking-input:focus {
  border-color: rgba(222, 185, 111, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.submit-button {
  margin-top: 20px;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-message {
  min-height: 21px;
  margin: 13px 0 0;
  color: var(--swing-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.form-message.is-error {
  color: var(--swing-danger);
}

.form-message.is-success {
  color: var(--swing-success);
}

.secondary-actions {
  display: grid;
  justify-items: center;
  margin-top: 2px;
}

.back-button {
  margin-top: 4px;
}

.resy-proxy {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

@keyframes booking-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .booking-shell {
    align-items: center;
    padding: 32px 20px;
  }

  .brand-logo {
    width: min(190px, 58vw);
    margin-bottom: 28px;
  }

  .brand-logo--compact {
    width: min(120px, 38vw);
    margin-bottom: 18px;
  }

  .primary-button,
  .submit-button {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-step.is-active {
    animation: none;
  }

  .primary-button,
  .submit-button,
  .booking-input {
    transition: none;
  }
}
