/* =========================================================
   Homepage tidy-up (2026-11-04)
   Loaded LAST in index.html, so these rules win over home.css,
   mua-hero-compact.css and mua-theme.css. Delete the <link> to undo.

   Goals:
   - one clear message per section, no repeated "teacher + course + AI" lines
   - calmer rhythm: even section spacing, fewer background colours
   - phones: card rows swipe sideways instead of stacking (page ~half as long)
   ========================================================= */

/* ---------- Even spacing between sections ---------- */
.mu-section { padding: 88px 0; }
.mu-head { margin-bottom: 32px; }
.mu-head h2 { font-size: clamp(28px, 3vw, 38px); }
#courses { padding-top: 64px; }

/* ---------- Hero: headline, one line of text, two buttons ---------- */
.mu-hero__text { gap: 18px; }
.mu-hero__sub { max-width: 34em; }

/* ---------- Courses: smaller pictures so cards + pathway fit together ---------- */
.mu-course { min-height: 0; gap: 10px; }
.mu-course__img { aspect-ratio: 16 / 9; }
.mu-pathway { margin-top: 24px; }

/* ---------- Teachers: name, credential, rating and buttons only ---------- */
.mu-teachers .mu-tags,
.mu-teachers .mu-teacher__meta { display: none; }
.mu-teacher__photo { max-height: 240px; }

/* ---------- AI section: headline sits left of the tool list ---------- */
#ai .mu-head { margin-bottom: 36px; }

/* ---------- Real classes: text left, video right ---------- */
@media (min-width: 901px) {
  #classes .mu-container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  #classes .mu-head { margin: 0; flex-direction: column; align-items: flex-start; gap: 20px; }
  #classes .mu-real__video,
  .mu-real:has(> .mu-quotes[hidden]) .mu-real__video { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- Study tours: same light grey as the teachers band (one accent colour fewer) ---------- */
.mu-section--warm { background: var(--soft); }
.mu-tour { border: 1px solid var(--line); }

/* ---------- Booking card: a little tighter ---------- */
.mu-book { padding: 48px; gap: 40px; }
.mu-book__steps { margin-top: 18px; gap: 12px; }

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 900px) {
  .mu-section { padding: 56px 0; }
  #courses { padding-top: 48px; }
  .mu-head { margin-bottom: 22px; }
}

@media (max-width: 640px) {
  /* Card rows swipe sideways; the next card peeks in so people know to swipe */
  .mu-courses,
  .mu-teachers,
  .mu-tours {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 4px 24px 10px;
    scroll-padding: 0 24px;
    scrollbar-width: none;
  }
  .mu-courses::-webkit-scrollbar,
  .mu-teachers::-webkit-scrollbar,
  .mu-tours::-webkit-scrollbar { display: none; }
  .mu-course, .mu-teacher, .mu-tour { scroll-snap-align: start; }
  .mu-teachers { grid-auto-columns: 64%; }
  .mu-teacher__photo { aspect-ratio: 1 / 1; }
  .mu-tour__img { height: 160px; }

  /* Learning path: 2 x 2 instead of 4 stacked boxes */
  .mu-steps { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mu-steps li { min-width: 0; }

  /* Booking: hide the 4 steps on phones — the form itself is the next step */
  .mu-book { padding: 28px 18px; gap: 24px; border-radius: 24px; }
  .mu-book__steps { display: none; }
}

/* ---------- Small fixes ---------- */
#ai .mu-head > div { max-width: 860px; }
@media (max-width: 900px) {
  #classes .mu-real__video,
  .mu-real:has(> .mu-quotes[hidden]) .mu-real__video { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Shorter hero on narrow screens (2026-11-04, boss: "too long") ----------
   Tablets / narrow windows: photo sits on the right like on desktop instead of a band on top.
   Phones: keep a thin photo strip so the headline and buttons show on the first screen. */
@media (min-width: 641px) and (max-width: 900px) {
  .mu-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; height: auto; }
  .mu-hero__fade { background: linear-gradient(90deg, var(--navy) 0%, rgba(27,47,94,.85) 18%, rgba(27,47,94,0) 55%); }
  .mu-hero__content { padding-top: 40px; padding-bottom: 116px; }
  .mu-hero__text { max-width: 52%; }
  .mu-hero h1 { font-size: 30px; }
  .mu-hero__sub { font-size: 15px; }
}
@media (max-width: 640px) {
  .mu-hero__photo { height: 140px; }
  .mu-hero__content { padding-top: 0; padding-bottom: 108px; }
  .mu-hero__text { gap: 12px; }
  .mu-hero h1 { font-size: 28px; }
  .mu-hero__sub { font-size: 15px; }
  .mu-hero__ctas { gap: 10px; }
  .mu-hero__ctas .mu-btn--lg { min-height: 48px; }
}

/* Compact responsive desktop navigation */
@media (min-width: 1241px) {

    .mu-header .mu-header__inner {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        gap: 12px;
        flex-wrap: wrap;
    }

    .mu-header .mu-brand {
        gap: 8px;
    }

    .mu-header .mu-logo,
    .mu-header .mu-logo img {
        width: 44px;
        height: 44px;
    }

    .mu-header .mu-brand__name {
        font-size: 16px;
    }

    .mu-header .mu-brand__tag {
        font-size: 11px;
    }

    .mu-header .mu-nav-wrap {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mu-header .mu-nav {
        gap: 4px 10px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .mu-header .mu-nav a {
        padding: 8px 1px;
    }

    .mu-header .mu-header__actions {
        gap: 6px;
        flex-shrink: 0;
        flex-wrap: wrap;
        margin-left: auto;
    }

    .mu-header .mu-btn--sm {
        font-size: 13px;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .mu-header .mu-lang button {
        font-size: 13px;
        padding: 8px 10px;
    }

    .mu-header .mu-theme,
    .mu-header .mu-theme svg {
        width: 44px;
        height: 22px;
    }

    .mu-header .mu-theme.is-floating {
        position: static;
        transform: none;
    }

    .mu-header .mu-menu-btn {
        display: none;
    }
}
