/* ===== Reset & tokens ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans TC', 'DM Sans', sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__collage,
  .hero__cta {
    animation: none;
  }
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

:root {
  --color-orange: #f46c00;
  --color-blue: #05b4f9;
  --color-yellow: #f8ff2a;
  --color-green: #485c11;
  --color-cream: #ecd6c6;
  --color-cream-bg: #f8f2ee;
  --color-gray: #7e7e7e;
  --color-divider: #e9e9e9;
  --container: 1200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 1000px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn--cream {
  background: var(--color-cream);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 14px 22px;
  font-size: 16px;
  letter-spacing: -0.4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn--cream:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #e0c4b0;
}

/* ===== Site nav =====
   Desktop: transparent bar, desktop links pill visible, toggle+drawer hidden.
   Mobile: frosted-glass bar, hamburger toggle visible, drawer shown via JS. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.site-nav.is-open {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: transparent;
  max-width: 1500px;
  margin: 0 auto;
}
.site-nav__logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.site-nav.is-scrolled .site-nav__logo {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.site-nav__links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.35px;
  color: #000;
}
.site-nav__links a.is-active {
  color: var(--color-orange);
  font-family: 'Noto Sans TC', sans-serif;
}
.site-nav__links--desktop {
  display: flex;
  gap: 27px;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  padding: 20px 24px;
  font-size: 15px;
}
.site-nav__toggle {
  display: none;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.site-nav__toggle .icon-close {
  display: none;
}
.site-nav__toggle[aria-expanded='true'] .icon-menu {
  display: none;
}
.site-nav__toggle[aria-expanded='true'] .icon-close {
  display: block;
}
.site-nav__drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px;
  gap: 50px;
  padding: 8px 20px 16px;
  background-color: #fff;
  width: 100%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.site-nav__links--mobile {
  display: flex;
  flex-direction: column;
}
.site-nav__links--mobile a {
  border-top: 1px solid var(--color-divider);
  padding: 15px 0;
}

/* Page1's texture is one continuous background covering nav + content in
   Figma (the root frame's own bg) — set once on body, nav/page-bg stay
   transparent and let it show through. */
body.page-course {
  background-image: url('../assets/page1/mobile-bg.jpg?v=be49476f');
  background-size: 1920px 1920px;
  background-repeat: repeat-y;
  background-position: top center;
  background-attachment: fixed;
}

/* ===== Page ===== */
.page-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-title {
  width: 100%;
  max-width: var(--container);
  padding: 8px 16px 8px;

  font-weight: 500;
  font-size: 40px;
  letter-spacing: 0.8px;
  line-height: 0.85;
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  max-width: 1440px;
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__collage {
  width: 100%;
  max-width: 1225px;
  margin-bottom: -180px;
  animation: breathe 3s ease-in-out infinite;
}
.hero__collage img {
  width: 100%;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 100px;
  max-width: 673px;
  gap: 24px;
}
.hero__logo {
  height: 86px;
  width: auto;
  margin-bottom: 46px;
}
.hero__tagline {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.8px;
  line-height: 1.2;
}
.hero__tagline-graphic {
  max-width: 540px;
}
.hero__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 80px;
  border-radius: 4000px;

  min-width: 500px;
  animation: breathe 2s ease-in-out infinite;
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hero__cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px rgba(244, 108, 0, 0.35);
  transform: scale(1.05);
  animation-play-state: paused;
}
.hero__cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4000px;
  z-index: 0;
}
.hero__cta-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 0.85;
  white-space: nowrap;
}
.hero__cta-main {
  font-size: 32px;
}
.hero__cta-num {
  font-size: 48px;
}
.hero__cta-unit {
  font-size: 24px;
}
.hero__cta-sub {
  color: var(--color-yellow);
  font-size: 32px;
}

/* ===== Course sections ===== */
.all-classes {
  width: 100%;
  max-width: var(--container);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.class-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 10px;
}
.class-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #f4b700;
  padding: 16px 24px;
}
.class-badge img {
  width: 46px;
  height: 46px;
}
.class-badge span {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.72px;
  color: #373636;
  white-space: nowrap;
}
.class-badge .sparkle-accent {
  width: 18px;
  height: auto;
}
.class-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.class-item__img {
  width: 100%;
  aspect-ratio: 130 / 87;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.class-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.class-item {
  transition: transform 0.3s ease;
  border-radius: 8px;
}
.class-item:hover {
  transform: translateY(-4px);
}
.class-item:hover .class-item__img img {
  transform: scale(1.06);
}
.class-item h3 {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 8px;
}
.class-item .teacher {
  color: var(--color-gray);
  font-size: 14px;
  margin-bottom: 8px;
}
.class-item .price {
  font-weight: 700;
  font-size: 18px;
}

/* ===== Gift / specifications section ===== */
.gift-section {
  position: relative;
  width: 100%;
  max-width: var(--container);
  background: var(--color-cream-bg);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.gift-section__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: saturation;
  pointer-events: none;
}
.gift-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 240px;
  text-align: center;
}
.gift-section__icon {
  width: 40px;
  height: 40px;
}
.gift-section h2 {
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -1.8px;
  line-height: 1.1;
}

/* ===== Brand section ===== */
.brand-section {
  width: 100%;
  max-width: var(--container);
  padding: 80px 10px;
  border-top: 0.5px solid var(--color-divider);
}
.brand-section h2 {
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.96px;
  margin-bottom: 40px;
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-item {
  flex: 1 1 265px;
  min-width: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--color-divider);
}
.brand-item img {
  height: 40px;
  width: auto;
}
.brand-item p {
  font-size: 18px;
}

/* ================================================================
   Mobile breakpoint
   ================================================================ */
@media (max-width: 768px) {
  .site-nav {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
  }
  .site-nav.is-open {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-nav__bar {
    padding: 20px 16px;
    background: #fff;
    max-width: none;
    margin: 0;
  }
  .site-nav__logo {
    height: 32px;
  }
  .site-nav__links--desktop {
    display: none;
  }
  .site-nav__toggle {
    display: flex;
  }
  .site-nav__drawer.is-open {
    display: flex;
  }

  body.page-course {
    background-size: 1920px auto;
  }

  .page-title {
    font-size: 24px;
    letter-spacing: 1.2px;
    padding-top: 40px;
  }

  .brand-list {
    gap: 0;
  }

  .hero {
    padding: 0 20px;
  }
  .hero__collage {
    margin-bottom: -40px;
  }
  .hero__title {
    gap: 24px;
    padding: 24px 0;
  }
  .hero__logo {
    height: 36px;
    margin-bottom: 10px;
  }
  .hero__tagline {
    font-size: 15px;
    letter-spacing: 0.6px;
  }
  .hero__tagline-graphic {
    max-width: 227px;
  }
  .hero__cta {
    padding: 14px 24px;
    min-width: 260px;
  }
  .hero__cta-main {
    font-size: 13px;
  }
  .hero__cta-num {
    font-size: 20px;
  }
  .hero__cta-unit {
    font-size: 10px;
  }
  .hero__cta-sub {
    font-size: 13px;
  }

  .all-classes {
    padding: 0 16px;
  }
  .class-list {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }
  .class-item {
    width: 100%;
  }
  .class-badge img {
    width: 32px;
    height: 32px;
  }
  .class-badge span {
    font-size: 24px;
  }

  .gift-section__content {
    padding: 60px 16px;
  }
  .gift-section h2 {
    font-size: 28px;
    letter-spacing: 0;
  }

  .brand-section {
    padding: 40px 16px;
  }
  .brand-section h2 {
    font-size: 24px;
    letter-spacing: -0.72px;
  }
  .brand-item p {
    font-size: 16px;
  }
}
