/* ---------- Design tokens ---------- */
:root {
  --cream: #f6f1e2;
  --cream-deep: #ece2c8;
  --sage: #c3d9b0;
  --sage-deep: #a8c98f;
  --purple: #7a5ca3;
  --purple-deep: #4a3570;
  --purple-light: #9c7ec9;
  --purple-lighter: #c9b8e8;
  --ink: #3a3020;
  --ink-soft: #5a5040;
  --forest: #3f7a3a;
  --forest-deep: #2e5c2a;
  --gold: #d19a3a;
  --gold-light: #eed6a0;
  --terracotta: #d17a3a;
  --terracotta-deep: #a8622f;

  --font-display: "IBM Plex Mono", "Courier New", monospace;
  --font-body: "IBM Plex Sans", "Trebuchet MS", sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M0,20 L20,0' stroke='%234a3570' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpolygon points='0,0 0,22 5,17 8,25 11,23 8,16 16,16' fill='%233a3020' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 0 0, auto;
}

/* ---------- Retro scrollbar ---------- */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track {
  background: var(--cream-deep);
  border-left: 2px solid var(--purple-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-light), var(--purple));
  border: 2px outset var(--purple-lighter);
}
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

* {
  scrollbar-color: var(--purple) var(--cream-deep);
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s steps(6, end), transform 0.5s steps(6, end);
}
.reveal.in-view { opacity: 1; transform: none; }

.pop-reveal {
  transform: scale(0.9);
  transition: opacity 0.35s steps(4, end), transform 0.35s steps(4, end);
}

.service-card:nth-child(2).reveal,
.formats-row:nth-child(2).reveal { transition-delay: 0.1s; }
.formats-row:nth-child(3).reveal { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Layout containers ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 12px;
  text-wrap: balance;
  text-wrap: pretty;
}

.eyebrow.center { text-align: center; }

.eyebrow-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: -3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

h2.center { text-align: center; }

h3 { font-size: 19px; margin-bottom: 16px; }

strong {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.handwritten {
  background: #f6e9c8;
  padding: 0 2px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  text-wrap: balance;
  text-wrap: pretty;
}

li {
  text-wrap: balance;
  text-wrap: pretty;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--purple-light), var(--purple-deep));
  border-top: 1px solid #c9b8e8;
  border-bottom: 2px solid var(--purple-deep);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: none;
}

.wordmark {
  font-family: var(--font-display);
  color: #fff;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.wordmark.small {
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.nav a {
  color: #e8dcf5;
  padding: 6px 4px;
}
.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav a.nav-cta {
  padding: 9px 18px;
  background: linear-gradient(180deg, var(--purple-light), var(--purple));
  border: 2px outset var(--purple-lighter);
  border-radius: 2px;
  color: #fff !important;
}
.nav a.nav-cta:active {
  border-style: inset;
}

.nav-toggle {
  display: none;
  background: #4a3570;
  color: #c9b8e8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 2px;
  border: 1px outset #7a5ca3;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:active {
  border-style: inset;
}

/* ---------- Cards ---------- */
.card {
  display: block;
  background: #fff;
  border: 2px solid var(--purple-deep);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(74, 53, 112, 0.2);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero-outer {
  padding: 44px 24px 24px;
  background:
    radial-gradient(circle at 15% 0%, var(--sage), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--cream-deep));
}

.hero-card {
  display: flex;
  flex-wrap: wrap-reverse;
  box-shadow: 5px 5px 0 rgba(74, 53, 112, 0.25);
}

.hero-media {
  flex: 1 1 380px;
  min-width: 300px;
  position: relative;
  border-right: 2px solid var(--purple-deep);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.hero-content {
  flex: 1 1 420px;
  min-width: 300px;
  padding: 44px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .btn {
  align-self: center;
  justify-content: center;
  max-width: 220px;
  font-size: 14px;
  padding: 12px 18px;
  text-align: center;
}

.hero-content .eyebrow {
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.18;
  margin-bottom: 24px;
}

.hero-content h1 em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  text-wrap: balance;
  text-wrap: pretty;
}

.loading-bar {
  margin-top: 18px;
  height: 22px;
  background: var(--purple-deep);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.loading-bar span {
  color: var(--purple-lighter);
  font-size: 9px;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

/* ---------- About ---------- */
.about-card {
  display: flex;
  flex-wrap: wrap;
}

.about-content {
  flex: 1 1 420px;
  min-width: 280px;
  padding: 40px;
}

.show-more-btn {
  display: none;
}

.about-media {
  flex: 1 1 480px;
  min-width: 280px;
  position: relative;
  border-left: 2px solid var(--purple-deep);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 20% center;
}

/* ---------- Section bands ---------- */
.section { padding: 60px 24px; }

.band {
  background: var(--sage);
  border-top: 4px groove var(--forest-deep);
  border-bottom: 4px groove var(--forest-deep);
}

/* ---------- Check-in checklist ---------- */
.checklist-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 44px;
}

/* ---------- Card badges + accent colors ---------- */
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  border: 2px solid var(--purple-deep);
  margin-bottom: 14px;
}

.pixel-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.heart-icon {
  display: inline-block;
  transform: scale(1.8);
  color: #000;
  margin-left: 6px;
  vertical-align: -3px;
}

.badge-forest { background: var(--sage-deep); }
.badge-purple { background: var(--purple-lighter); }
.badge-gold { background: var(--gold-light); }

.accent-forest { border-top: 6px solid var(--forest-deep); }
.accent-purple { border-top: 6px solid var(--purple); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  text-align: left;
}

.service-card {
  padding: 36px;
  box-shadow: 4px 4px 0 rgba(74, 53, 112, 0.2);
}

.dot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 22px;
}

.dot-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: calc((1.65em - 6px) / 2);
  background: var(--gold);
}

/* ---------- Session Formats — row list, not a card grid ---------- */
.formats-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
  border-top: 2px solid var(--cream-deep);
  text-align: left;
}

.formats-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 2px solid var(--cream-deep);
}

.formats-row .card-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.formats-row-content h3 { font-size: 22px; margin-bottom: 8px; }
.formats-row-content p { font-size: 22px; margin: 0; }

.format-note {
  max-width: 680px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.format-break { display: none; }

/* ---------- Rates ---------- */
.rates-card { text-align: left; }

.rates-body { padding: 44px; }

.rates-body p { font-size: 22px; }

.rates-body .btn {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: bold;
  border-radius: 2px;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #e0b45a, #d19a3a);
  border: 2px outset #f0d090;
  color: #3a2a10;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:active {
  border-style: inset;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.btn-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-right: 9px;
  flex-shrink: 0;
}

.btn-nav {
  background: linear-gradient(180deg, #e0b45a, #d19a3a);
  border: 2px outset #f0d090;
  color: #3a2a10;
}
.btn-nav:active {
  border-style: inset;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--purple-deep), #3a2a5c);
  color: #f4f0e8;
  text-align: center;
  border-top: 4px groove var(--purple-deep);
}

.cta-band .eyebrow { color: var(--gold-light); }

.cta-band h2 { color: #fff; margin-bottom: 20px; }

.cta-band .btn {
  padding: 10px 20px;
  font-size: 16px;
}

.contact-alt {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(244, 240, 232, 0.8);
}
.contact-alt a { text-decoration: underline; text-underline-offset: 3px; color: #fff; }

/* ---------- Application form ---------- */
.form-section { padding: 64px 24px; }

.form-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 44px;
}

.form-card h1 {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.18;
  margin-bottom: 32px;
}

.form-intro { font-size: 22px; margin-bottom: 26px; }

.hidden-field { display: none; }

.app-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 15px;
  font-weight: bold;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--ink);
  background: var(--cream);
  border: 2px inset var(--purple-deep);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
}

.thank-you-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  min-height: calc(100vh - 200px);
}

.thank-you-card {
  max-width: 540px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 24px 32px;
  background: var(--cream-deep);
  border-top: 2px solid var(--purple-deep);
  text-align: center;
}

.footer-inner { text-align: center; }

.footer-note {
  max-width: 520px;
  margin: 14px auto 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 8px;
    right: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 2px solid #4a3570;
    border-radius: 6px;
    box-shadow: 4px 4px 0 rgba(74, 53, 112, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.94);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .nav::before {
    content: "MENU.EXE";
    display: block;
    background: linear-gradient(180deg, #7a5ca3, #4a3570);
    color: #e8dcf5;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: bold;
    padding: 6px 12px;
  }
  .nav a {
    width: 100%;
    padding: 13px 16px;
    margin: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #3a3020;
    background: none;
    border: none;
    border-bottom: 1px solid #ece2c8;
    border-radius: 0;
  }
  .nav a.nav-cta {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 10px;
    text-align: center;
    background: linear-gradient(180deg, #e0b45a, #d19a3a);
    border: 2px outset #f0d090;
    color: #3a2a10;
    font-weight: bold;
    border-radius: 2px;
  }
  .nav-toggle { display: flex; }

  .rates-body { padding: 32px 24px; }
}

@media (max-width: 520px) {
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 18px; }
  .section { padding: 44px 0; }
  body { font-size: 17px; }
  .dot-list li { font-size: 17px; }
  .dot-list li::before {
    width: 4px;
    height: 4px;
    margin-top: calc((1.65em - 4px) / 2);
  }
  .formats-row-content h3 { font-size: 17px; }
  .formats-row-content p { font-size: 17px; }
  .rates-body p { font-size: 17px; }
  .form-intro { font-size: 17px; }
  .hero-outer { padding: 32px 0 24px; }
  .hero-content, .about-content { padding: 32px 24px; }
  .hero-content .eyebrow { font-size: 9px; letter-spacing: 0.11em; }
  .hero-content h1 { font-size: 36px; }
  .btn-arrow { display: none; }
  .btn {
    align-self: center;
    justify-content: center;
    font-size: 16px;
  }
  .cta-band .btn {
    max-width: 220px;
    font-size: 14px;
    padding: 12px 18px;
    text-align: center;
  }
  .about-content h2 { font-size: 28px; line-height: 1.16; }
  .form-card { padding: 32px 24px; }
  .checklist-card { padding: 32px 24px; }
  .service-card { padding: 28px 22px; }
  .format-break { display: inline; }

  .about-body {
    max-height: 100px;
    overflow: hidden;
    position: relative;
  }
  .about-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
  }
  .about-body.expanded {
    max-height: none;
  }
  .about-body.expanded::after {
    display: none;
  }
  .show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(180deg, var(--purple-light), var(--purple));
    border: 2px outset var(--purple-lighter);
    border-radius: 2px;
    cursor: pointer;
  }
  .show-more-btn:active {
    border-style: inset;
  }
}
