/* ========== CSS Variables ========== */
:root {
  --cream: #F5F0EB;
  --warm-brown: #C4A882;
  --dark-brown: #6B5B4B;
  --blush: #D4A89A;
  --off-white: #FAFAF8;
  --text: #3D3530;
  --text-light: #7A6E64;
  --font-brand: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Noto Sans TC', -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1100px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(107, 91, 75, 0.08);
  --transition: 0.3s ease;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 168, 130, 0.15);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(107, 91, 75, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.logo-brand { font-family: var(--font-brand); font-size: 1.5rem; font-weight: 500; color: var(--warm-brown); letter-spacing: 0.02em; }
.logo-pilates { font-family: var(--font-brand); font-size: 1.1rem; font-weight: 400; color: var(--dark-brown); letter-spacing: 0.15em; text-transform: uppercase; }
.logo-subtitle { font-size: 0.7rem; color: var(--text-light); margin-left: 4px; }

.main-nav { display: flex; gap: 28px; }
.nav-link {
  font-size: 0.9rem; color: var(--text-light); position: relative;
  transition: color var(--transition); font-weight: 400; letter-spacing: 0.02em;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--warm-brown); transition: width var(--transition);
}
.nav-link:hover { color: var(--dark-brown); }
.nav-link:hover::after { width: 100%; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--dark-brown);
  position: absolute; left: 0; transition: all var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, var(--cream) 0%, #EDE6DD 30%, var(--off-white) 60%, rgba(212, 168, 154, 0.15) 100%);
}
.hero-bg::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(196, 168, 130, 0.12) 0%, transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; bottom: -10%; left: -5%; width: 40vw; height: 40vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(212, 168, 154, 0.1) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-title {
  font-family: var(--font-brand); font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 500; color: var(--dark-brown); letter-spacing: 0.08em; line-height: 1.2;
}
.hero-amber { color: var(--warm-brown); }
.hero-h1-sub { display: block; font-size: 0.35em; letter-spacing: 0.25em; color: var(--text-light); font-weight: 300; margin-top: 8px; }
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-light); margin-top: 8px;
  letter-spacing: 0.3em; font-weight: 300;
}
.hero-desc {
  margin-top: 32px; font-size: 1rem; color: var(--text-light);
  line-height: 2; font-weight: 300;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 500; transition: all var(--transition); cursor: pointer;
  border: none; letter-spacing: 0.05em;
}
.btn-primary {
  background: var(--warm-brown); color: #fff; margin-top: 40px;
  box-shadow: 0 4px 20px rgba(196, 168, 130, 0.3);
}
.btn-primary:hover { background: var(--dark-brown); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(107, 91, 75, 0.3); }

/* ========== Sections ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-title {
  font-family: var(--font-brand); font-size: 2rem; font-weight: 500;
  text-align: center; color: var(--dark-brown); margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.section-subtitle { text-align: center; color: var(--text-light); font-size: 0.95rem; margin-bottom: 48px; font-weight: 300; }

/* ========== Instructors ========== */
.instructors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.instructor-card {
  background: #fff; border-radius: var(--radius); padding: 40px 28px 32px;
  text-align: center; box-shadow: var(--shadow); transition: transform var(--transition);
}
.instructor-card:hover { transform: translateY(-4px); }
.instructor-avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--cream), rgba(212, 168, 154, 0.3));
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(196, 168, 130, 0.3);
}
.avatar-placeholder { font-family: var(--font-brand); font-size: 2.2rem; color: var(--warm-brown); font-weight: 500; }
.instructor-name { font-family: var(--font-brand); font-size: 1.4rem; color: var(--dark-brown); margin-bottom: 12px; font-weight: 500; }
.instructor-bio { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.instructor-certs { text-align: left; }
.instructor-certs li {
  font-size: 0.82rem; color: var(--text-light); padding: 4px 0 4px 16px; position: relative;
  line-height: 1.6;
}
.instructor-certs li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blush);
}

/* ========== Schedule ========== */
.schedule-header { text-align: center; margin-bottom: 32px; }
.schedule-nav { display: flex; align-items: center; justify-content: center; gap: 20px; }
.schedule-week-info { flex: 0 1 auto; min-width: 0; }
.schedule-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(196, 168, 130, 0.3);
  background: #fff; color: var(--warm-brown); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.schedule-arrow:hover:not(.disabled) { background: var(--warm-brown); color: #fff; border-color: var(--warm-brown); }
.schedule-arrow.disabled { opacity: 0.25; cursor: default; }
.schedule-week { font-family: var(--font-brand); font-size: 1.3rem; color: var(--dark-brown); font-weight: 500; }
.schedule-note { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.schedule-grid { display: grid; gap: 24px; }
.schedule-day-label {
  font-size: 0.9rem; font-weight: 500; color: var(--dark-brown);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid rgba(196, 168, 130, 0.25);
  display: flex; align-items: baseline; gap: 8px;
}
.schedule-day-label .date { color: var(--text-light); font-weight: 400; font-size: 0.85rem; }
.schedule-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.schedule-card {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 1px 8px rgba(107, 91, 75, 0.06);
  transition: transform var(--transition);
}
.schedule-card:hover { transform: translateY(-2px); }
.schedule-time { font-size: 0.95rem; font-weight: 500; color: var(--dark-brown); white-space: nowrap; }
.schedule-details { flex: 1; }
.schedule-type { font-size: 0.85rem; color: var(--text); }
.schedule-tags { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.schedule-instructor {
  display: inline-block; font-size: 0.75rem; color: var(--warm-brown);
  background: rgba(196, 168, 130, 0.12); padding: 2px 10px; border-radius: 20px;
}
.schedule-substitute {
  display: inline-block; font-size: 0.65rem; color: #fff; background: var(--blush); padding: 2px 8px;
  border-radius: 20px; font-weight: 500; letter-spacing: 0.05em;
}

/* ========== Schedule Notice ========== */
.schedule-notice {
  margin-top: 32px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.schedule-notice-toggle {
  padding: 16px 24px; cursor: pointer; font-size: 0.9rem; font-weight: 500;
  color: var(--dark-brown); list-style: none; display: flex; align-items: center;
  justify-content: space-between; transition: background var(--transition);
}
.schedule-notice-toggle::-webkit-details-marker { display: none; }
.schedule-notice-toggle::after {
  content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--warm-brown);
  transition: transform var(--transition);
}
.schedule-notice[open] .schedule-notice-toggle::after { content: '\2212'; }
.schedule-notice-toggle:hover { background: rgba(245, 240, 235, 0.5); }
.schedule-notice-body {
  padding: 0 24px 20px; font-size: 0.88rem; color: var(--text-light); line-height: 1.9;
}
.schedule-notice-body ul { list-style: none; }
.schedule-notice-body li {
  padding: 8px 0 8px 20px; position: relative;
  border-bottom: 1px solid rgba(196, 168, 130, 0.1);
}
.schedule-notice-body li:last-child { border-bottom: none; }
.schedule-notice-body li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; background: var(--blush); border-radius: 2px;
  transform: rotate(45deg);
}
.schedule-notice-body strong { color: var(--dark-brown); }

/* ========== Pricing ========== */
.pricing-block { margin-bottom: 40px; }
.pricing-title {
  font-family: var(--font-brand); font-size: 1.3rem; color: var(--dark-brown);
  margin-bottom: 16px; font-weight: 500; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pricing-badge {
  font-family: var(--font-body); font-size: 0.75rem; color: var(--warm-brown);
  background: rgba(196, 168, 130, 0.15); padding: 4px 12px; border-radius: 20px; font-weight: 400;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pricing-table th {
  background: var(--dark-brown); color: #fff; font-weight: 500;
  padding: 14px 20px; font-size: 0.88rem; text-align: left; letter-spacing: 0.03em;
}
.pricing-table td {
  padding: 14px 20px; border-bottom: 1px solid rgba(196, 168, 130, 0.12);
  font-size: 0.9rem; vertical-align: middle;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: rgba(245, 240, 235, 0.5); }
.price { font-weight: 500; color: var(--dark-brown); }
.price small { display: block; font-size: 0.75rem; color: var(--text-light); font-weight: 400; margin-top: 2px; }
.pricing-note { font-size: 0.82rem; color: var(--text-light); margin-top: 12px; }
.pricing-cta { text-align: center; margin-top: 24px; }

/* ========== Testimonials ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); position: relative;
}
.testimonial-quote {
  font-family: var(--font-brand); font-size: 4rem; color: var(--blush);
  line-height: 1; position: absolute; top: 16px; left: 24px; opacity: 0.5;
}
.testimonial-text { font-size: 0.92rem; color: var(--text); line-height: 1.9; margin-top: 24px; }
.testimonial-author { font-size: 0.85rem; color: var(--dark-brown); margin-top: 16px; font-weight: 500; }
.testimonial-tag { font-weight: 400; color: var(--text-light); margin-left: 8px; font-size: 0.8rem; }
.testimonial-placeholder { opacity: 0.5; }
.placeholder-text { font-style: italic; color: var(--text-light); }

/* ========== FAQ ========== */
.faq-list { max-width: 720px; margin: 32px auto 0; }
.faq-item {
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 40px 20px 0; font-size: 0.95rem; font-weight: 500;
  color: var(--dark-brown); text-align: left; position: relative;
  font-family: var(--font-body); line-height: 1.6; transition: color var(--transition);
}
.faq-question:hover { color: var(--warm-brown); }
.faq-question::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--warm-brown); transition: transform var(--transition);
}
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
  padding: 0 0 20px; font-size: 0.9rem; color: var(--text-light); line-height: 1.9;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon { width: 24px; height: 24px; color: var(--warm-brown); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { font-size: 0.85rem; color: var(--dark-brown); display: block; margin-bottom: 2px; }
.contact-item p { font-size: 0.9rem; color: var(--text-light); }
.contact-item a { color: var(--warm-brown); transition: color var(--transition); }
.contact-item a:hover { color: var(--dark-brown); }

.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-icon { width: 18px; height: 18px; }
.btn-line {
  background: #06C755; color: #fff; padding: 12px 24px;
  border-radius: 50px; font-size: 0.88rem; font-weight: 500;
}
.btn-line:hover { background: #05a848; }
.btn-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 0.88rem; font-weight: 500;
}
.btn-ig:hover { opacity: 0.9; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; }

/* ========== Footer ========== */
.site-footer {
  background: var(--dark-brown); color: rgba(255,255,255,0.7);
  padding: 40px 0; text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand .logo-brand { color: var(--warm-brown); }
.footer-brand .logo-pilates { color: rgba(255,255,255,0.9); }
.footer-address { font-size: 0.82rem; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--warm-brown); }
.footer-copy { font-size: 0.75rem; opacity: 0.5; }

/* ========== Fade-in Animation ========== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== Loading ========== */
.loading-text { text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .instructors-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .logo-subtitle { display: none; }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(250, 250, 248, 0.98); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    border-bottom: 1px solid rgba(196, 168, 130, 0.15);
  }
  .main-nav.open { max-height: 300px; }
  .nav-link { padding: 14px 0; font-size: 1rem; }
  .hamburger { display: block; }

  .hero { min-height: 85vh; }
  .hero-title { font-size: 2.4rem; }
  .hero-desc { font-size: 0.92rem; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .schedule-cards { grid-template-columns: 1fr; }

  .pricing-table th, .pricing-table td { padding: 10px 12px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .btn { padding: 12px 28px; font-size: 0.88rem; }
  .contact-buttons { flex-direction: column; }
  .contact-buttons .btn { width: 100%; justify-content: center; }
}
