/* ============================================
   Ace & Breathe — Components
   Buttons, stepper, form, shared UI
   ============================================ */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur),
              color var(--dur),
              border-color var(--dur),
              box-shadow var(--dur),
              opacity var(--dur);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(29, 29, 29, 0.15);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--text-dim);
  border-color: var(--text-dim);
  color: var(--bg);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}

.btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--bg);
}

.btn-sm {
  padding: 12px 22px;
  font-size: 11px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 13px;
}

/* Dark variant (for use on light backgrounds) */
.btn-ghost-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost-dark:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   STEPPER (Booking flow)
   ============================================ */
.booking-section {
  padding: var(--s-9) 0;
  background: var(--bg-alt);
}
.booking-section-header {
  text-align: center;
  margin-bottom: var(--s-7);
}
.booking-section-lede {
  max-width: 560px;
  margin: var(--s-4) auto 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Stepper track */
.stepper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(29, 29, 29, 0.03);
}
.stepper-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.stepper-line {
  position: absolute;
  left: var(--s-6);
  right: var(--s-6);
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}
.stepper-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
  background: var(--bg);
  padding: 0 var(--s-2);
  transition: opacity var(--dur);
}
.stepper-step .ss-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  background: var(--bg);
  transition: all var(--dur-slow) var(--ease-out);
}
.stepper-step.active .ss-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stepper-step.done .ss-num {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.stepper-step .ss-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--dur);
}
.stepper-step.active .ss-label { color: var(--accent); }
.stepper-step.done .ss-label { color: var(--text); }

/* Panes */
.stepper-panes {
  padding: var(--s-6);
  min-height: 360px;
}
.stepper-pane {
  display: none;
}
.stepper-pane.active { display: block; }

.stepper-pane-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}
.stepper-pane-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: var(--s-5);
  font-weight: 300;
}

/* Experience cards */
.sp-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sp-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  position: relative;
}
.sp-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
  transform: translateX(4px);
}
.sp-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.sp-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.sp-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.sp-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* Date cards */
.sp-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.sp-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  position: relative;
}
.sp-date:hover {
  border-color: var(--line-strong);
  background: var(--surface-solid);
  transform: translateY(-2px);
}
.sp-date.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.spd-month {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.spd-day {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}
.spd-year {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Form */
.stepper-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 600px;
}
.sf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.sf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf-field span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sf-field input,
.sf-field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-weight: 300;
  transition: border-color var(--dur), background var(--dur);
  resize: vertical;
}
.sf-field input:focus,
.sf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-solid);
}
.sf-field input::placeholder,
.sf-field textarea::placeholder {
  color: var(--text-dim);
  font-weight: 300;
}

/* Confirmation */
.sp-confirm {
  text-align: center;
  padding: var(--s-5) 0;
}
.spc-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-5);
  color: var(--accent);
}
.spc-summary {
  display: inline-block;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  min-width: 320px;
}
.spc-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  font-size: 14px;
}
.spc-summary dt {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: center;
}
.spc-summary dd {
  font-family: var(--font-alt);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
}
.spc-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: var(--s-4) auto 0;
  max-width: 420px;
  line-height: 1.6;
  font-weight: 300;
}

/* Stepper nav */
.stepper-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-6);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.stepper-nav .btn-ghost:disabled,
.stepper-nav .btn-ghost-dark:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.stepper-nav-right {
  display: flex;
  gap: var(--s-3);
}

/* ============================================
   NAVBAR BUTTONS (compact for nav)
   ============================================ */
.btn-nav {
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 20px;
}

/* ============================================
   SCROLL INDICATORS (magnetic button overlay)
   ============================================ */
.btn-magnetic {
  transition: transform var(--dur) var(--ease-out);
}
