/* ═══════════════════════════════════════════════════════════════
   BASE — Global resets, fonts, utilities
   ═══════════════════════════════════════════════════════════════ */

/* Cormorant Garamond (replaces Sexsmith/ZT Formom) + Inter */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url("tokens.67339a5dc426.css");

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-desktop);
}

@media (max-width: 1024px) {
  .container { padding-inline: 40px; }
}

@media (max-width: 768px) {
  .container { padding-inline: var(--pad-mobile); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 32px;
  border-radius: var(--btn-radius);
  font-family: var(--font-ui);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-regular);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-red {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-red:hover {
  background: var(--color-red-hover);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: transparent;
  color: var(--color-red);
  border: 1.5px solid var(--color-red);
}

.btn-outline-red:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-dark-hover);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn-sm {
  height: var(--btn-h-sm);
  padding: 0 24px;
  font-size: var(--fs-xs);
}

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label__hint {
  text-transform: none;
  font-weight: var(--fw-regular);
  opacity: 0.55;
  font-size: 12px;
  margin-left: 4px;
}

.form-input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-md);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--ease);
}

.form-input:focus {
  border-color: var(--color-red);
}

.form-textarea {
  padding: 14px 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-md);
  color: var(--color-text);
  background: var(--color-white);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--ease);
}

.form-textarea:focus {
  border-color: var(--color-red);
}

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-overlay);
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--ease);
}

.modal__close:hover { color: var(--color-text); }

.modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-8);
}

/* Marquee styles moved to home1.css for page-specific control */

/* ─── Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── Auth Form (login/register/reset fragments) ─── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-form--centered {
  align-items: center;
  text-align: center;
  padding: var(--sp-8) 0;
}

.auth-form__title {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semi);
  color: var(--color-dark);
  margin-bottom: var(--sp-2);
}

.auth-form__step {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--color-red);
  text-transform: uppercase;
}

.auth-form__hint {
  font-size: var(--fs-small);
  color: var(--color-gray-mid);
  max-width: 300px;
  margin-bottom: var(--sp-2);
}

.auth-form--centered .auth-form__hint {
  margin-inline: auto;
}

.auth-form__error {
  color: var(--color-red);
  font-size: var(--fs-small);
}

.auth-form__forgot {
  font-size: var(--fs-xs);
  color: var(--color-red);
  align-self: flex-end;
  text-decoration: none;
}

.auth-form__submit {
  width: 100%;
  margin-top: var(--sp-2);
}

.auth-form__switch {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-gray-mid);
  margin-top: var(--sp-4);
}

.auth-form__switch-link {
  color: var(--color-red);
  font-weight: var(--fw-medium);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.auth-form__icon {
  width: 64px;
  height: 64px;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.auth-form__select {
  height: 41px;
}

/* Course card extras */
.course-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-bg);
  aspect-ratio: 16 / 10;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
}

.courses-list__empty {
  color: var(--color-gray-mid);
}

/* ─── iOS Safari Fixes ─── */
/* ─── Form feedback messages ─── */
.form-success {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #1a6e31;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-regular);
  margin-bottom: 16px;
}

.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(145, 3, 23, 0.08);
  border: 1px solid rgba(145, 3, 23, 0.3);
  color: var(--color-red);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-regular);
  margin-bottom: 16px;
}

@supports (-webkit-touch-callout: none) {
  .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  input, textarea {
    -webkit-appearance: none;
    border-radius: var(--radius-md);
  }
}
