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

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --ink2: #444;
  --mid: #999;
  --border: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --dark: #111111;
  --dark2: #1c1c1c;
  --accent: #f07820;
  --accent2: #d96a18;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.7; padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { font-size: 16px; font-weight: 900; display: block; }
.nav-logo-text small { font-size: 9px; font-weight: 600; color: var(--mid); letter-spacing: 0.14em; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink2);
  padding: 8px 14px; letter-spacing: 0.03em;
  transition: color 0.15s; border-radius: 2px;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
}
.nav-cta {
  background: var(--accent) !important; color: var(--ink) !important;
  padding: 9px 20px !important; font-weight: 800 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent2) !important; }
.nav-cta.active::after { display: none; }

.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; }
.nav-drawer {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid var(--border);
  padding: 8px 0 16px;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 14px 28px; font-size: 15px; font-weight: 600; color: var(--ink2);
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; background: var(--accent); color: var(--ink); font-weight: 800; text-align: center; margin: 8px 16px 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--dark); color: #fff;
  padding: 64px 32px 56px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900; letter-spacing: -0.01em; margin-bottom: 10px;
}
.page-header p { font-size: 15px; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; }

/* ===== HOME HERO ===== */
#hero {
  height: calc(100svh - var(--nav-h));
  min-height: 560px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-collage {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 0.9fr;
  gap: 3px;
}
.hero-photo {
  background-size: cover; background-position: center;
}
.hero-photo:nth-child(1) { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.hero-photo:nth-child(2) { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.hero-photo:nth-child(3) { clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.hero-photo:nth-child(4) { clip-path: polygon(12% 0, 100% 0, 0 100%, 0 100%); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.45) 100%);
}
.hero-text {
  position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 24px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
}
.hero-text h1 {
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.hero-text p {
  font-size: clamp(14px, 2vw, 17px); color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--ink);
  font-size: 15px; font-weight: 800; padding: 14px 36px;
  letter-spacing: 0.04em; transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; background: rgba(255,255,255,0.12);
  color: #fff; border: 1.5px solid rgba(255,255,255,0.4);
  font-size: 15px; font-weight: 700; padding: 13px 32px;
  letter-spacing: 0.04em; transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ===== HOME: NUMBERS STRIP ===== */
.numbers-strip {
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.num-item {
  text-align: center; padding: 32px 48px;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.num-item:last-child { border-right: none; }
.num-val { font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1; }
.num-label { font-size: 12px; font-weight: 700; color: rgba(0,0,0,0.55); letter-spacing: 0.1em; margin-top: 4px; }

/* ===== HOME: SERVICES ===== */
.services-section { padding: 88px 0; }
.section-title {
  text-align: center; padding: 0 32px; margin-bottom: 56px;
}
.section-title h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.section-title p { font-size: 15px; color: var(--mid); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; max-width: 1200px; margin: 0 auto;
}
.service-card {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  position: relative; overflow: hidden; display: block;
  text-decoration: none;
}
.service-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.72) 100%);
}
.service-card:hover .sc-body { transform: translateY(-6px); }
.sc-body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 24px 20px; transition: transform 0.3s ease;
}
.sc-num { font-size: 11px; font-weight: 900; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 4px; }
.sc-label { font-size: 17px; font-weight: 800; color: #fff; }

/* ===== HOME: ABOUT STRIP ===== */
.about-strip {
  background: var(--dark); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr;
}
.about-strip-photo {
  background-size: cover; background-position: center;
  min-height: 420px;
}
.about-strip-text {
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.strip-year {
  font-size: 80px; font-weight: 900; color: rgba(255,255,255,0.07);
  line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em;
}
.about-strip-text h2 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 900;
  margin-bottom: 18px; line-height: 1.3;
}
.about-strip-text p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.9; margin-bottom: 32px; }

/* ===== HOME: COACHES PREVIEW ===== */
.coaches-preview { padding: 88px 0; background: var(--bg-alt); }
.coaches-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 32px;
}
.coach-card {
  background: #fff; display: grid;
  grid-template-columns: 180px 1fr; gap: 0;
  border: 1px solid var(--border);
}
.coach-photo { background-size: cover; background-position: center top; min-height: 220px; }
.coach-info { padding: 28px; }
.coach-name { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.coach-title { font-size: 11px; font-weight: 700; color: var(--accent2); letter-spacing: 0.08em; margin-bottom: 12px; text-transform: uppercase; }
.coach-info p { font-size: 13.5px; color: var(--ink2); line-height: 1.8; }

/* ===== COURSES PAGE ===== */
.courses-list { max-width: 1100px; margin: 0 auto; padding: 64px 32px; }
.course-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-bottom: 4px;
  border: 1px solid var(--border);
}
.course-item:nth-child(even) { direction: rtl; }
.course-item:nth-child(even) > * { direction: ltr; }
.ci-thumbs {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px; gap: 3px;
  overflow: hidden;
}
.ci-thumbs img {
  width: 100%; height: 100%; object-fit: cover; cursor: pointer;
  transition: transform 0.3s; display: block;
}
.ci-thumbs img:hover { transform: scale(1.05); }
.ci-text {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff;
}
.ci-num { font-size: 11px; font-weight: 900; color: var(--accent2); letter-spacing: 0.14em; margin-bottom: 8px; }
.ci-text h2 { font-size: 24px; font-weight: 900; margin-bottom: 14px; }
.ci-text p { font-size: 14.5px; color: var(--ink2); line-height: 1.85; margin-bottom: 24px; }
.ci-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px 20px;
  letter-spacing: 0.04em; transition: background 0.15s;
}
.btn-dark:hover { background: #333; }
.btn-accent-sm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--ink);
  font-size: 13px; font-weight: 800; padding: 9px 20px;
  letter-spacing: 0.04em; transition: background 0.15s;
}
.btn-accent-sm:hover { background: var(--accent2); }

/* ===== LIGHTBOX ===== */
#lb {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center; flex-direction: column;
}
#lb.open { display: flex; }
#lb-img { max-width: 92vw; max-height: 82vh; object-fit: contain; display: block; }
#lb-counter {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5);
}
#lb-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 30px; color: rgba(255,255,255,0.7);
  cursor: pointer; background: none; border: none; line-height: 1;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 22px; padding: 18px 15px; cursor: pointer; border-radius: 2px;
  transition: background 0.15s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

/* ===== COACHES PAGE ===== */
.coaches-full {
  max-width: 960px; margin: 0 auto; padding: 64px 32px;
  display: flex; flex-direction: column; gap: 40px;
}
.coach-full-card {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 0; border: 1px solid var(--border); overflow: hidden;
}
.cfc-photo { background-size: cover; background-position: center top; min-height: 320px; }
.cfc-info { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.cfc-name { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.cfc-title {
  font-size: 12px; font-weight: 700; color: var(--accent2);
  letter-spacing: 0.1em; margin-bottom: 20px; text-transform: uppercase;
}
.cfc-info p { font-size: 15px; color: var(--ink2); line-height: 1.9; margin-bottom: 14px; }
.cfc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cfc-tag {
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  background: var(--bg-alt); color: var(--ink2); letter-spacing: 0.04em;
}

/* ===== ACTIVITY PAGE ===== */
.activity-section { padding: 64px 32px; max-width: 1200px; margin: 0 auto; }
.activity-group { margin-bottom: 64px; }
.activity-group-title {
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--mid); text-transform: uppercase;
  border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 20px;
}
.activity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.activity-grid .ag-item {
  aspect-ratio: 1; background-size: cover; background-position: center;
  overflow: hidden; cursor: pointer;
  transition: transform 0.3s;
}
.activity-grid .ag-item:hover { transform: scale(0.98); }
.activity-grid .ag-item.featured {
  grid-column: span 2; grid-row: span 2; aspect-ratio: auto;
}
.ag-caption {
  background: var(--dark); color: #fff;
  padding: 20px 24px;
  grid-column: 1 / -1;
}
.ag-caption h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.ag-caption p { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ===== FAQ PAGE ===== */
.faq-section { max-width: 820px; margin: 0 auto; padding: 64px 32px 80px; }
.faq-group { margin-bottom: 52px; }
.faq-group-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--mid); text-transform: uppercase; margin-bottom: 16px;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.fq {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--ink); font-size: 16px; font-weight: 700;
  padding: 20px 36px 20px 0;
  cursor: pointer; position: relative; font-family: inherit; line-height: 1.4;
}
.fq::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 20px; font-weight: 300;
  color: var(--mid); transition: transform 0.25s;
}
.faq-item.open .fq::after { transform: translateY(-50%) rotate(45deg); color: var(--ink); }
.fa {
  display: none; font-size: 14.5px; color: var(--ink2);
  line-height: 1.85; padding-bottom: 20px;
}
.faq-item.open .fa { display: block; }

/* ===== CONTACT CARD ===== */
.contact-card {
  background: var(--dark); color: #fff;
  max-width: 820px; margin: 0 32px 80px; padding: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.contact-card h2 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.contact-card p { font-size: 15px; color: rgba(255,255,255,0.6); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--accent); text-align: center;
  padding: 80px 32px;
}
.cta-banner h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.cta-banner p { font-size: 15px; color: rgba(0,0,0,0.55); margin-bottom: 32px; }
.btn-black {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 800; padding: 14px 36px;
  letter-spacing: 0.04em; transition: background 0.15s;
}
.btn-black:hover { background: #333; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 32px; opacity: 0.6; filter: brightness(0) invert(1); }
.footer-logo span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.65); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.footer-links a { font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: space-between; }

  .hero-collage { grid-template-columns: 1fr 1fr; }
  .hero-photo:nth-child(3), .hero-photo:nth-child(4) { display: none; }

  .numbers-strip { justify-content: flex-start; overflow-x: auto; }
  .num-item { flex-shrink: 0; }

  .service-grid { grid-template-columns: 1fr 1fr; }

  .about-strip { grid-template-columns: 1fr; }
  .about-strip-photo { min-height: 300px; }
  .about-strip-text { padding: 48px 32px; }

  .coaches-grid { grid-template-columns: 1fr; }
  .coach-card { grid-template-columns: 1fr; }
  .coach-photo { min-height: 200px; }

  .course-item { grid-template-columns: 1fr; direction: ltr !important; }
  .ci-thumbs { grid-template-rows: 160px 160px; }
  .ci-text { padding: 28px 24px; }

  .coach-full-card { grid-template-columns: 1fr; }
  .cfc-photo { min-height: 260px; }
  .cfc-info { padding: 32px 28px; }

  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-grid .ag-item.featured { grid-column: span 2; }

  .contact-card { grid-template-columns: 1fr; margin: 0 16px 60px; padding: 36px 28px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .service-grid { grid-template-columns: 1fr; }
  .coaches-grid { padding: 0 16px; }
  .courses-list { padding: 40px 16px; }
  .coaches-full { padding: 40px 16px; }
  .activity-section { padding: 40px 16px; }
  .faq-section { padding: 40px 16px 60px; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
}
