/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber:       #e8920a;
  --amber-dark:  #c97c06;
  --amber-light: #fef8f0;
  --black:       #0c0c0c;
  --dark:        #1c1c1c;
  --mid:         #666;
  --border:      #ead8c4;
  --light:       #fef8f0;   /* warm light orange replaces grey */
  --white:       #ffffff;
  --radius:      6px;
  --shadow:      0 2px 16px rgba(0,0,0,0.07);
  --font:        'DM Sans', system-ui, sans-serif;
  --slot-h:      168px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-weight: 400;
  color: var(--dark); background: var(--light);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px;
  border-radius: var(--radius); font-family: var(--font); font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); text-decoration: none; }
.btn--outline { background: transparent; color: var(--amber-dark); border-color: var(--amber); }
.btn--outline:hover { background: var(--amber-light); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--mid); border-color: var(--border); }
.btn--ghost:hover { background: var(--amber-light); text-decoration: none; }
.btn--sm { padding: 6px 15px; font-size: .82rem; }
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   BANNER — full-width video, text left 65%
═══════════════════════════════════════════ */
.banner {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
}

.banner--event {
  min-height: 100vh;
  background: #f7ecd8;
}

.banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.banner__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.52) 0%, rgba(255,255,255,.38) 52%, rgba(255,255,255,.68) 100%);
  z-index: 1;
}

.banner__left {
  position: relative; z-index: 2;
  width: min(82%, 1100px); height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 72px 5% 56px 6%;
  pointer-events: none;
}

.banner__left--event {
  justify-content: flex-end;
}

.banner__sentences-wrap {
  overflow: hidden; position: relative;
  height: var(--slot-h);
  flex-shrink: 0;
  pointer-events: auto;
}
.banner__sentences { position: relative; width: 100%; height: 100%; }

.banner__sentence {
  position: absolute; left: 0; width: 100%;
  opacity: 0;
  font-size: clamp(1.8rem, 3vw, 3.4rem); font-weight: 300;
  line-height: 1.22; color: rgba(12,12,12,.92);
  letter-spacing: -.01em;
  height: var(--slot-h);
  display: grid; align-content: center;
  transition: transform .52s cubic-bezier(.4,0,.2,1), opacity .52s ease;
  will-change: transform, opacity;
  max-width: min(100%, 980px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.banner__sentence-text { display: block; }
.banner__sentence.is-desktop-static {
  position: relative;
  height: auto;
  top: auto;
  display: block;
}
.banner__sentence--measure {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  opacity: 0 !important;
  top: 0;
  height: auto !important;
}
.banner__sentence:first-child { top: 0; }
.banner__sentence:last-child:not(:first-child) { top: var(--slot-h); }
.banner__sentence.is-visible { opacity: 1; }
.banner__sentence.is-sliding-out { transform: translateY(calc(-0.72 * var(--slot-h))); opacity: 0; }
.banner__sentence.is-promoting { transform: translateY(calc(-0.72 * var(--slot-h))); opacity: 1; }
.banner__sentence.is-mobile-exit { transform: translateY(-20px); opacity: 0; }
.banner__sentence strong {
  font-weight: 700; color: var(--black);
  white-space: nowrap;
}

.banner__scroll--desktop {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--black); margin-top: 40px; transition: color .2s; pointer-events: auto;
  align-self: flex-start;
}
.banner__scroll--desktop:hover { color: var(--black); text-decoration: none; }
.banner__cta {
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(12,12,12,.12);
  color: var(--black);
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 rgba(232,146,10,0);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.banner__cta:hover {
  background: #fff;
  border-color: rgba(12,12,12,.2);
}
.banner__cta--event {
  background: rgba(255,255,255,.92);
  color: var(--black);
  border-color: rgba(12,12,12,.1);
  box-shadow: 0 14px 34px rgba(12,12,12,.18);
}
.banner__cta--event:hover {
  background: #fff;
  border-color: rgba(12,12,12,.18);
}
.banner__cta.is-glowing {
  animation: bannerGlow 2.2s ease-in-out infinite;
  background: #ffffff;
  color: var(--black);
  border-color: rgba(255,255,255,.6);
}

.banner__event {
  position: relative;
  gap: 34px;
  display: grid;
  max-width: 640px;
  pointer-events: auto;
}

.banner__event-body .banner__cta {
  margin-top: 28px; /* desktop spacing between description and CTA */
}

.banner__event-top,
.banner__event-body {
  background: rgba(255,255,255,.4);
  color: var(--black);
  border: 1px solid rgba(12,12,12,.08);
  box-shadow: 0 20px 60px rgba(12,12,12,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.banner__event-top {
  padding: 28px 30px 24px;
  border-radius: 28px;
}

.banner__event-body {
  padding: 24px 30px;
  border-radius: 24px;
}

.banner__event-city {
  font-size: clamp(3.15rem, 9vw, 5.7rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: 0;
  white-space: nowrap;
}

.banner__event-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom:10px;
}

.banner__event-date {
  font-size: clamp(1.47rem, 2.7vw, 1.88rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  white-space: nowrap;
}

.banner__event-name {
  font-size: clamp(1.45rem, 3.1vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
}

.banner__event-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}

.banner__event-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.banner__event-line--location { color: var(--dark); }
.banner__event-line--date { color: var(--black); }
.banner__event-line--time { color: var(--black); }

.banner__event-line--time .banner__event-inline-icon {
  color: var(--black);
}

.banner__event-inline-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(12,12,12,.66);
}

.banner__event-inline-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.banner__event-pill {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(12,12,12,.08);
}

.banner__event-icon {
  width: 22px;
  height: 22px;
  color: rgba(12,12,12,.66);
}

.banner__event-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.banner__event-value {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.banner__event-description {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.28;
  text-align: left;
  margin: 0;
}

.banner__scroll--mobile {
  display: none; position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 200;
  background: rgba(255,255,255,.72); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(12,12,12,.12); border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center; color: var(--black);
  transition: opacity .3s;
}
.banner__scroll--mobile.hidden { opacity: 0; pointer-events: none; }
.banner__scroll--mobile svg { animation: bounceY 2.4s ease-in-out infinite; }

@keyframes bounceY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 4px 20px rgba(0,0,0,.08); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,.22), 0 0 48px 8px rgba(255,255,255,.55); }
}

/* ═══════════════════════════════════════════
   FLASH MESSAGES
═══════════════════════════════════════════ */
.messages { padding: 16px 24px 0; }
.message { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 10px; font-size: .93rem; }
.message--success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.message--error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.main-content { background: var(--light); }
.content-grid {
  display: grid; grid-template-columns: 300px 1fr;
  grid-template-areas: "instagram main";
  max-width: 1100px; margin: 0 auto;
  padding: 64px 32px; gap: 52px; align-items: start;
}
.instagram-col { grid-area: instagram; }
.main-col      { grid-area: main; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section { margin-bottom: 60px; }
.section__title {
  font-size: clamp(1.25rem,2.2vw,1.65rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
  padding-bottom: 12px; border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.section__lead { color: var(--mid); margin: 14px 0 24px; font-size: .93rem; font-weight: 300; }
.muted { color: var(--mid); font-size: .88rem; }

/* ═══════════════════════════════════════════
   COURSES
═══════════════════════════════════════════ */
.course-list { list-style: none; }
.course-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border);
}
.course-item:first-child { border-top: 1px solid var(--border); }
.course-item__info { display: flex; flex-direction: column; gap: 2px; }
.course-item__location { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.course-item__name { font-size: .82rem; color: var(--mid); font-weight: 300; }
.course-item__date { font-size: .88rem; color: var(--amber-dark); font-weight: 600; }
.course-item__description { font-size: .88rem; color: var(--dark); }

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
#contact .section__title,
#contact .section__lead { max-width: 480px; display: block; }

.contact-form { max-width: 480px; }
.form-group { margin-bottom: 20px; }
.form-group label, .form-label--block {
  display: block; font-weight: 600; font-size: .85rem;
  letter-spacing: .01em; margin-bottom: 7px; color: var(--dark);
}
.form-label--hint { font-weight: 300; color: var(--mid); }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; font-weight: 300;
  background: var(--white); color: var(--dark); transition: border-color .18s;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--amber); }

.contact-success {
  max-width: 480px;
  padding: 28px 30px;
  border: 2px solid #27ae60;
  border-radius: var(--radius);
  background: #f0faf4;
}
.contact-success__text {
  font-size: 1.05rem; line-height: 1.5;
  color: #1a6e3a; margin-bottom: 20px;
}
.contact-success__retry { margin-top: 4px; }
.form-error { display: block; color: #c0392b; font-size: .8rem; margin-top: 4px; }
.checkbox-list { list-style: none; }
.checkbox-list li { margin-bottom: 10px; }
.checkbox-list label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .93rem; cursor: pointer; }
.checkbox-list input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--amber); cursor: pointer; flex-shrink: 0; }
.checkbox-with-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.checkbox-with-input label { flex-wrap: nowrap; }
.own-city-input {
  padding: 6px 10px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .88rem; font-weight: 300; width: 150px;
  transition: border-color .18s;
}
.own-city-input:focus { outline: none; border-color: var(--amber); }
.form-group--consent {
  background: var(--white); border-radius: var(--radius);
  padding: 14px 16px; border: 1px solid var(--border);
}
.consent-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400; }
.consent-label span { font-size: .82rem; color: var(--mid); line-height: 1.5; font-weight: 300; }
.consent-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.form-group--related-courses {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.related-course-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.related-course {
  border: 1px solid rgba(201,124,6,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: 12px 14px;
}
.related-course__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.related-course__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  cursor: pointer;
}
.related-course__choice input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}
.related-course__title {
  font-size: .95rem;
  font-weight: 700;
}
.related-course__toggle {
  border: none;
  background: none;
  color: var(--amber-dark);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.related-course__details {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--mid);
  display: grid;
  gap: 6px;
}
.related-course__details p { margin: 0; }
.related-course__detail-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-course__detail-icon {
  width: 16px;
  height: 16px;
  color: var(--amber-dark);
}
.related-course__detail-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════
   INSTAGRAM — desktop
═══════════════════════════════════════════ */
.instagram-stack { display: flex; flex-direction: column; gap: 14px; }
.instagram-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.instagram-item iframe { width: 100%; height: 300px; display: block; }
.instagram-item__caption { padding: 8px 12px; font-size: .8rem; color: var(--mid); font-weight: 300; }
.instagram-link { margin-top: 18px; }
.instagram-link .btn { width: 100%; justify-content: center; font-size: .82rem; }
.icon-ig { width: 15px; height: 15px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   INSTAGRAM — mobile carousel
═══════════════════════════════════════════ */
.instagram-carousel { position: relative; width: 100%; }
.carousel__track-wrapper { overflow: hidden; border-radius: var(--radius); }
.carousel__track { display: flex; transition: transform .38s cubic-bezier(.4,0,.2,1); }
.carousel__slide { flex: 0 0 100%; background: var(--white); box-shadow: var(--shadow); }
.carousel__slide iframe { width: 100%; height: 340px; display: block; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1.3rem; cursor: pointer;
  z-index: 2; line-height: 1; box-shadow: var(--shadow); transition: background .18s;
}
.carousel__btn:hover { background: var(--white); }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }
.carousel__dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s; }
.carousel__dot.active { background: var(--amber); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--black); color: rgba(255,255,255,.45);
  text-align: center; padding: 28px 24px; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 24px; font-weight: 300;
}
.footer a { color: rgba(255,255,255,.55); }
.footer a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
.desktop-only { display: block; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
  :root { --slot-h: 126px; }

  .banner {
    min-height: 100svh;
    height: auto;
  }

  .banner__media {
    left: 50%;
    top: 0;
    width: 100vw;
    min-height: 100svh;
    height: 100%;
    inset: auto;
  }

  .banner__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: var(--black);
  }

  .banner__left {
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 25px 7% calc(28px + env(safe-area-inset-bottom));
    background: transparent;
  }

  .banner__sentences-wrap {
    height: var(--slot-h);
    width: 100%;
    margin-bottom: 88px;
  }

  .banner__sentence:first-child,
  .banner__sentence:last-child {
    top: 0;
  }

  .banner__sentence.is-sliding-out,
  .banner__sentence.is-promoting {
    transform: translateY(calc(-1 * var(--slot-h)));
  }

  .banner__sentence {
    font-size: clamp(1.35rem, 6vw, 2.1rem);
    max-width: 100%;
    width: 100%;
    left: 0;
    padding-right: 0;
    overflow-wrap: break-word;
  }

  .banner__sentence strong {
    white-space: normal;
  }

  .banner__event-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner__cta {
    padding: 14px 22px;
    font-size: .95rem;
    width: 100%;
    max-width: 420px;
    justify-content: center;
    margin-top: 28px;
  }

  .banner__cta.is-fixed-mobile {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 30;
  }

  .banner__cta.is-mobile-anchored {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    margin-top: 0;
    width: auto;
    max-width: none;
  }

  .banner__event {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    max-width: none;
    width: 100%;
  }

  .banner__event-top {
    padding: 24px 22px 22px;
    border-radius: 24px;
  }

  .banner__event-body {
    padding: 18px 20px 24px;
    border-radius: 22px;
    margin-top: auto; /* Push description down above fixed/absolute CTA */
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
  }

  .banner__event-city {
    font-size: clamp(2.0rem, 10.8vw, 3.0rem);
  }

  .banner__event-date {
    font-size: clamp(1.35rem, 4.8vw, 1.55rem);
  }

  .banner__event-name {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .banner__event-meta {
    flex-direction: column;
    margin-top: 24px;
  }

  .banner__event-row {
    grid-template-columns: auto 1fr;
    gap: 4px;
  }

  .banner__event-description {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    text-align: left;
  }

  .banner__event-body .banner__cta {
    margin-top: 0; /* gap is controlled by flex `gap` */
  }

  .banner__event-body .banner__cta.is-fixed-mobile,
  .banner__event-body .banner__cta.is-mobile-anchored {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    z-index: auto;
    width:100%
  }

  .banner__scroll--desktop { display: inline-flex; }
  .banner__scroll--mobile  { display: none; }

  .content-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "instagram";
    padding: 36px 18px; gap: 36px;
  }
  .desktop-only { display: none; }
  .mobile-only  { display: block; }
  .course-item  { flex-wrap: wrap; gap: 10px; }
  .contact-form { max-width: 100%; }
}

@media (max-width: 480px) {
  :root { --slot-h: 108px; }
  .banner__media {
    min-height: 100svh;
  }
  .checkbox-with-input { flex-direction: column; align-items: flex-start; }
  .own-city-input { width: 100%; }
  .content-grid { padding: 28px 14px; }
}

@media (max-width: 400px) {
  .banner__video {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    object-fit: cover;
  }
}
