/* ============================================================
   Moxie Dance Collective — Adult Ballet Intensive
   Elegant & classic: warm ivory, soft blush, deep ink
   ============================================================ */

:root {
  /* Color */
  --ink:        #221d19;   /* deep warm near-black */
  --ink-soft:   #4a423b;
  --ivory:      #f6efe6;   /* page background */
  --cream:      #fbf7f0;   /* card / lighter */
  --blush:      #e7cfc4;   /* soft accent */
  --blush-deep: #c79a8b;   /* accent for CTAs */
  --line:       #e2d6c8;   /* hairlines */
  --muted:      #8a7f74;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Mulish', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Shared atoms ---------- */
.kicker {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blush-deep);
  margin-bottom: 1rem;
}
.kicker--center { text-align: center; }

.section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); }
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section__title--center { text-align: center; }
.section__sub {
  text-align: center;
  max-width: 46ch;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--blush-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn--full { width: 100%; padding: 1.1rem; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  background: rgba(246, 239, 230, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.nav__logo { width: 30px; height: 30px; color: var(--ink); }
.nav__name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__links a { text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink); color: var(--ivory) !important;
  padding: 0.6rem 1.15rem; border-radius: var(--radius);
  font-weight: 600 !important; letter-spacing: 0.06em !important;
}
.nav__cta:hover { background: var(--blush-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,16,13,0.78) 0%, rgba(20,16,13,0.55) 45%, rgba(20,16,13,0.28) 75%, rgba(20,16,13,0.35) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 0 var(--pad);
  color: var(--ivory);
}
.hero__content .kicker { color: var(--blush); }
.hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero__dates {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  margin-top: 1rem; color: var(--blush);
}
.hero__lede { max-width: 44ch; margin-top: 1.25rem; color: rgba(246,239,230,0.92); font-weight: 300; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__actions .btn--ghost { color: var(--ivory); border-color: rgba(246,239,230,0.7); }
.hero__actions .btn--ghost:hover { background: var(--ivory); color: var(--ink); }

/* ---------- About ---------- */
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about__text p { margin-bottom: 1.15rem; color: var(--ink-soft); }
.about__text .section__title { margin-bottom: 1.5rem; }
.about__ledby { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--blush-deep); margin-bottom: 0.5rem; }
.about__list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--line); }
.about__list li {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  color: var(--ink); font-size: 0.98rem;
}
.about__list li span {
  font-family: var(--body); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600; color: var(--blush-deep);
  align-self: center;
}
.about__note {
  margin-top: 2.5rem; font-size: 0.8rem; font-style: italic;
  color: var(--blush-deep); padding-left: 1rem; border-left: 2px solid var(--blush);
}
.about__figure { overflow: hidden; border-radius: var(--radius); }
.about__figure img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }

/* ---------- Schedule ---------- */
.schedule { background: var(--cream); }
.days {
  max-width: var(--maxw); margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.day {
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: transform .25s ease, box-shadow .25s ease;
}
.day:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(34,29,25,0.4); }
.day__head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.day__num { font-family: var(--body); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; font-weight: 600; color: var(--blush-deep); }
.day__date { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin-top: 0.35rem; }
.day__items { list-style: none; }
.day__items li {
  padding: 0.7rem 0 0.7rem 1.4rem; position: relative;
  font-size: 0.98rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line);
}
.day__items li:last-child { border-bottom: none; }
.day__items li::before {
  content: '\2022'; position: absolute; left: 0.2rem; top: 0.6rem;
  color: var(--blush-deep); font-size: 1rem;
}

/* ---------- Details ---------- */
.details__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.detail-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
}
.detail-card--accent { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.detail-card--accent .kicker { color: var(--blush); }
.detail-card--accent .detail-card__note { color: rgba(246,239,230,0.7); }
.detail-card__title { font-family: var(--display); font-weight: 500; font-size: 1.9rem; margin-bottom: 1.25rem; }
.detail-card__big { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.detail-card p { color: inherit; margin-bottom: 0.5rem; }
.detail-card--accent p { color: rgba(246,239,230,0.9); }
.detail-card__price { font-family: var(--display); font-size: 3rem; font-weight: 500; line-height: 1; margin-bottom: 1.25rem; }

.detail-card__price span { font-family: var(--body); font-size: 0.95rem; color: var(--blush); letter-spacing: 0.04em; }
.detail-card__price--early { font-size: 2.25rem; margin-top: -0.5rem; padding-top: 4px; }
.detail-card__includes { list-style: none; margin: 0 0 1.25rem; }
.detail-card__includes li { padding: 0.55rem 0; border-bottom: 1px solid rgba(246,239,230,0.15); position: relative; padding-left: 1.4rem; }
.detail-card__includes li::before { content: '✦'; position: absolute; left: 0; color: var(--blush); font-size: 0.7rem; top: 0.7rem; }
.detail-card__note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; font-style: italic; }

/* ---------- Register / Form ---------- */
.register { background: var(--ivory); }
.register__inner { max-width: 720px; margin: 0 auto; }
.form { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-soft); }
.field__label em { color: var(--blush-deep); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.85rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blush-deep);
  box-shadow: 0 0 0 3px rgba(199,154,139,0.18);
}
.field textarea { resize: vertical; }
.form__status { text-align: center; font-size: 0.95rem; min-height: 1.2rem; }
.form__status.is-success { color: #4a7c59; font-weight: 600; }
.form__status.is-error { color: #b04a3f; font-weight: 600; }
.form__setup {
  font-size: 0.82rem; color: var(--ink-soft);
  background: #fdf6ec; border: 1px dashed var(--blush-deep);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; line-height: 1.55;
}
.form__setup code { background: var(--ink); color: var(--ivory); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.78rem; }
.form__setup a { color: var(--blush-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--ivory); padding: 2.5rem var(--pad); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.footer__brand { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.footer__meta { font-size: 0.85rem; color: rgba(246,239,230,0.65); }
.footer__contact a { color: var(--blush); text-decoration: none; font-size: 0.9rem; }
.footer__contact a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .days { grid-template-columns: 1fr; }
  .details__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .about__list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .day:hover { transform: none; }
}
