/* ==========================================================================
   Breathe Yoga 呼吸瑜伽 — style.css
   Calm, organic, Aesop-meets-Scandinavian aesthetic
   ========================================================================== */

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

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --sage: #7A8B6F;
  --sage-dark: #5f6e56;
  --sage-light: #7a8b6f12;
  --sage-mid: #7a8b6f30;
  --terra: #C4785B;
  --terra-dark: #a8604a;
  --cream: #F5F0EB;
  --cream-dark: #ebe4dc;
  --white: #FEFDFB;
  --text: #2C2420;
  --text-light: #6b5e55;
  --text-muted: #9a8e85;
  --border: #e2dbd4;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 2px 12px rgba(44,36,32,0.06);
  --shadow-card: 0 4px 20px rgba(44,36,32,0.07);
  --shadow-hover: 0 8px 32px rgba(44,36,32,0.10);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cormorant Garamond', 'PingFang SC', 'Microsoft YaHei', Georgia, serif;
  --font-body: 'Nunito Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-dark); }
img { max-width: 100%; display: block; }
em { font-family: var(--font-heading); font-style: italic; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section--sage { background: var(--sage-light); }
.section--cream { background: var(--cream-dark); }

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.section__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(245,240,235,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav__logo { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-en {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 500; color: var(--text); letter-spacing: -0.01em;
}
.nav__logo-zh { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }
.nav__logo:hover .nav__logo-en { color: var(--sage); }

/* Hamburger — two thin lines */
.nav__toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 32px; height: 32px; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block; height: 1.5px; background: var(--text); border-radius: 1px;
  transition: var(--transition);
}

/* Desktop nav links */
.nav__links--desktop {
  display: none; list-style: none; gap: 2rem; align-items: center;
}
.nav__links--desktop a {
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__links--desktop a:hover { color: var(--sage); }

/* ===== SIDE DRAWER (MOBILE) ===== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(44,36,32,0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
  width: 280px; max-width: 85vw;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  padding: 1.5rem;
}
.drawer.open { transform: translateX(0); }

.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.drawer__title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text); }
.drawer__close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: none; border: none; cursor: pointer;
  color: var(--text-muted); border-radius: 50%; transition: var(--transition);
}
.drawer__close:hover { background: var(--sage-light); color: var(--text); }

.drawer__links { list-style: none; flex: 1; }
.drawer__links li { margin-bottom: 0.25rem; }
.drawer__links a {
  display: block; padding: 0.75rem 0.5rem; font-size: 1rem; font-weight: 500;
  color: var(--text); border-radius: var(--radius-sm); transition: var(--transition);
}
.drawer__links a:hover { background: var(--sage-light); color: var(--sage-dark); }

.drawer__cta {
  margin-top: auto; display: block; text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius-pill); border: 1.5px solid var(--sage);
  background: var(--sage); color: var(--white);
  cursor: pointer; transition: all var(--transition); text-align: center;
}
.btn:hover {
  background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: var(--shadow-soft);
}

.btn--accent { background: var(--terra); border-color: var(--terra); }
.btn--accent:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: var(--white); }

.btn--outline { background: transparent; color: var(--sage); }
.btn--outline:hover { background: var(--sage); color: var(--white); }

.btn--small { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 0 4rem;
  background: var(--cream); overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; }

.hero__blob {
  position: absolute; border-radius: 50%;
  opacity: 0.45; filter: blur(60px);
}
.hero__blob--1 {
  width: 400px; height: 400px;
  background: var(--sage); top: -10%; right: -5%;
  animation: float1 18s ease-in-out infinite;
}
.hero__blob--2 {
  width: 300px; height: 300px;
  background: var(--terra); bottom: 5%; left: -8%;
  opacity: 0.25; animation: float2 22s ease-in-out infinite;
}
.hero__blob--3 {
  width: 200px; height: 200px;
  background: var(--sage); top: 40%; left: 50%;
  opacity: 0.15; animation: float3 15s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(25px, -15px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-15px, 25px); } }

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-heading); font-size: 2.5rem;
  font-weight: 400; line-height: 1.2; color: var(--text);
  max-width: 580px; margin: 0 auto 0.5rem;
}
.hero__title em {
  font-style: italic; font-weight: 500; color: var(--sage);
}

.hero__title-zh {
  font-size: 1rem; color: var(--text-muted); letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1rem; color: var(--text-light); max-width: 480px;
  margin: 0 auto 2.5rem; line-height: 1.75;
}

.hero__scroll {
  margin-top: 3rem; color: var(--text-muted);
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  color: var(--cream);
  margin-top: -1px; line-height: 0;
  background: var(--cream);
}
.wave-divider svg { display: block; width: 100%; height: 40px; }

/* ===== CLASS CARDS ===== */
.classes-scroll {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--sage-mid) transparent;
}
.classes-scroll::-webkit-scrollbar { height: 6px; }
.classes-scroll::-webkit-scrollbar-track { background: transparent; }
.classes-scroll::-webkit-scrollbar-thumb { background: var(--sage-mid); border-radius: 3px; }

.class-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.class-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-3px);
}

.class-card__duration {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sage); background: var(--sage-light);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.class-card__name {
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 500; margin-bottom: 0.15rem; color: var(--text);
}

.class-card__name-zh {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.class-card__desc {
  font-size: 0.875rem; color: var(--text-light); line-height: 1.65;
  margin-bottom: 0.75rem;
}

.class-card__level {
  font-size: 0.8rem; color: var(--terra); letter-spacing: 0.08em;
}

/* ===== ABOUT ===== */
.about__inner {
  display: flex; flex-direction: column; gap: 3rem;
}

.about__bio, .about__bio-extra {
  font-size: 0.95rem; color: var(--text-light); line-height: 1.8;
  margin-bottom: 1rem;
}

.about__quote {
  border-left: 3px solid var(--terra);
  padding: 1rem 0 1rem 1.25rem;
  margin: 1.5rem 0;
}
.about__quote p {
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.15rem; line-height: 1.5; color: var(--text);
}
.about__quote cite {
  display: block; margin-top: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); font-style: normal;
}

.about__stats { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.about__stat {
  flex: 1; text-align: center; padding: 1rem 0.5rem;
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.about__stat-number {
  display: block; font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 500; color: var(--sage);
}
.about__stat-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* About visual — organic pattern */
.about__visual { display: flex; align-items: center; justify-content: center; }
.about__pattern {
  position: relative; width: 100%; height: 300px;
  border-radius: var(--radius);
}
.about__pattern-circle {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--sage);
}
.about__pattern-circle--1 {
  width: 220px; height: 220px; top: 10%; left: 15%; opacity: 0.35;
}
.about__pattern-circle--2 {
  width: 160px; height: 160px; top: 35%; right: 10%; opacity: 0.25;
  border-color: var(--terra);
}
.about__pattern-circle--3 {
  width: 100px; height: 100px; bottom: 10%; left: 40%; opacity: 0.2;
}
.about__pattern-leaf {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  width: 80px; height: 120px;
  border-radius: 0 50% 50% 50%;
  background: var(--sage-mid);
}

/* ===== PRICING ===== */
.pricing__free {
  text-align: center; font-family: var(--font-heading);
  font-size: 1.1rem; font-style: italic; color: var(--terra);
  margin-bottom: 2rem; padding: 1rem;
  border: 1.5px dashed var(--terra);
  border-radius: var(--radius);
}

.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}

.price-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; position: relative; transition: all var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-card); }

.price-card--featured {
  border-color: var(--sage); box-shadow: var(--shadow-card);
}
.price-card__tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: var(--white);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
}

.price-card__name {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 500; margin-bottom: 0.5rem;
}
.price-card__price {
  font-family: var(--font-heading); font-size: 2.25rem;
  font-weight: 500; color: var(--sage);
}
.price-card__period {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.price-card__features {
  list-style: none; margin-bottom: 1.5rem; text-align: left;
}
.price-card__features li {
  padding: 0.35rem 0; font-size: 0.875rem; color: var(--text-light);
}
.price-card__features li::before {
  content: '\2713\00a0'; color: var(--sage); font-weight: 700;
}

/* ===== SCHEDULE ===== */
.schedule-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
}

.schedule { min-width: 680px; }

.schedule__row {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
}
.schedule__row span {
  padding: 0.7rem 0.4rem; font-size: 0.8rem;
  text-align: center; border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.schedule__header { background: var(--sage); }
.schedule__header span {
  color: var(--white); font-weight: 600;
  border-bottom: none; font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.schedule__row:last-child span { border-bottom: none; }
.schedule__row span:first-child {
  font-weight: 600; color: var(--text); text-align: left; padding-left: 0.75rem;
}

/* ===== CONTACT ===== */
.contact__inner {
  display: flex; flex-direction: column; gap: 2rem;
}
.contact__details {
  display: flex; flex-direction: column; gap: 2rem;
}

.contact__hours h3, .contact__info h3 {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 500; margin-bottom: 1rem; color: var(--text);
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; vertical-align: top;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { font-weight: 500; color: var(--text); padding-right: 1rem; }
.hours-table td:last-child { color: var(--text-light); }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.contact-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--sage); margin-top: 2px; }
.contact-list a { color: var(--text); } .contact-list a:hover { color: var(--sage); }
.contact-list span { color: var(--text-light); line-height: 1.5; }

.contact__map {
  border-radius: var(--radius); overflow: hidden;
  min-height: 300px; border: 1px solid var(--border);
}
.contact__map iframe {
  width: 100%; height: 100%; min-height: 300px;
  filter: saturate(0.6) contrast(1.05) sepia(0.15);
  transition: filter 0.4s ease;
}
.contact__map:hover iframe { filter: saturate(0.9) contrast(1) sepia(0); }

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0; text-align: center;
  border-top: 1px solid var(--border);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

.footer__name {
  font-family: var(--font-heading); font-size: 1.1rem; color: var(--text);
}
.footer__tagline {
  font-family: var(--font-heading); font-style: italic;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer__social { display: flex; gap: 1rem; margin: 0.5rem 0; }
.footer__social a {
  color: var(--text-muted); transition: color var(--transition);
}
.footer__social a:hover { color: var(--sage); }

.footer__copy { font-size: 0.75rem; color: var(--text-muted); }
.footer__demo {
  font-size: 0.65rem; color: var(--text-muted);
  margin-top: 0.5rem; padding: 0.4rem 0.8rem;
  background: var(--sage-light); border-radius: var(--radius-pill);
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.30), 0 0 0 4px rgba(37,211,102,0.08);
  transition: all var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.06); color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,0.40), 0 0 0 6px rgba(37,211,102,0.12);
}
.whatsapp-fab svg { width: 26px; height: 26px; }

/* ===== RESPONSIVE — TABLET (640px+) ===== */
@media (min-width: 640px) {
  .classes-scroll {
    display: grid; grid-template-columns: repeat(2, 1fr);
    overflow: visible; scroll-snap-type: none;
  }
  .class-card { flex: none; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .hero__title { font-size: 3rem; }

  .contact__inner { flex-direction: row; }
  .contact__details { flex: 1; }
  .contact__map { flex: 1; }
}

/* ===== RESPONSIVE — DESKTOP (900px+) ===== */
@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links--desktop { display: flex; }

  .hero__title { font-size: 3.5rem; max-width: 650px; }
  .hero__title-zh { font-size: 1.1rem; }

  .section { padding: 6rem 0; }
  .section__title { font-size: 2.25rem; }

  .classes-scroll { grid-template-columns: repeat(3, 1fr); }

  .about__inner {
    flex-direction: row; align-items: center; gap: 4rem;
  }
  .about__text { flex: 1.2; }
  .about__visual { flex: 0.8; }
  .about__pattern { height: 420px; }

  .contact__map { min-height: 400px; }
}

/* ===== RESPONSIVE — LARGE (1100px+) ===== */
@media (min-width: 1100px) {
  .hero__title { font-size: 3.75rem; max-width: 720px; }
  .about__inner { gap: 5rem; }
}

/* ===== PRINT ===== */
@media print {
  .nav, .drawer, .drawer-overlay, .whatsapp-fab,
  .contact__map, .hero__bg, .hero__scroll, .wave-divider,
  .footer__demo { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: auto; padding: 2rem 0; background: none !important; }
  .section--sage, .section--cream { background: #f8f8f8 !important; }
  .class-card, .price-card, .about__stat {
    break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd;
  }
  .class-card:hover, .price-card:hover { transform: none; }
}
