/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --nav-bg: #2e2e26;
  --maroon: #7a1a1a;
  --maroon-light: #8B1A1A;
  --gold: #c9a84c;
  --gold-light: #d4a843;
  --cream: #f9f6f0;
  --white: #ffffff;
  --charcoal: #333333;
  --charcoal-light: #555;
  --overlay-dark: rgba(30, 30, 24, 0.7);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--maroon);
  line-height: 1.3;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5em;
}
h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 0.4em;
}
p { margin-bottom: 1em; }
a { color: var(--maroon); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--charcoal-light);
  font-size: 1.15rem;
  margin-bottom: 2em;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1em auto 2em;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(201,168,76,0.2);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1a2a1a 0%, #2a3a2a 20%, #1a2a2a 40%, #2a3a3a 60%, #1a2a1a 80%, #2a2a1a 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(46,80,46,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(40,70,80,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30,50,30,0.6) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 15, 0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 800px;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: #fff;
  margin-bottom: 0.3em;
  letter-spacing: 2px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 2em;
}
.hero .chinese-chars {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.5em;
  letter-spacing: 8px;
}
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  cursor: pointer;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== ABOUT / BENEFITS CARDS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2em;
}
.benefit-card {
  background: var(--white);
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--maroon);
}
.benefit-card h3 { color: var(--maroon); }
.benefit-card ul {
  list-style: none;
  text-align: left;
  margin-top: 0.5em;
}
.benefit-card li {
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  font-size: 0.95rem;
}
.benefit-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}
.learn-more-link {
  display: inline-block;
  margin-top: 1.5em;
  color: var(--maroon);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.learn-more-link:hover { color: var(--gold); }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--maroon));
}
.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.3em;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 1.5em;
}
.gallery-placeholder {
  aspect-ratio: 4/3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.gallery-placeholder:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.gallery-placeholder .cam-icon { font-size: 2rem; opacity: 0.7; }
.gp-1 { background: linear-gradient(135deg, #4a5a3a, #6a7a5a); }
.gp-2 { background: linear-gradient(135deg, #5a4a3a, #7a6a5a); }
.gp-3 { background: linear-gradient(135deg, #3a4a5a, #5a6a7a); }
.gp-4 { background: linear-gradient(135deg, #5a3a3a, #7a5a5a); }
.gp-5 { background: linear-gradient(135deg, #3a5a4a, #5a7a6a); }
.gp-6 { background: linear-gradient(135deg, #4a4a3a, #6a6a5a); }

/* ===== QUOTE BANNER ===== */
.quote-banner {
  background: var(--gold);
  padding: 36px 24px;
  text-align: center;
}
.quote-banner p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: #3a2a1a;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== ACHIEVEMENT BOX ===== */
.achievement-box {
  background: linear-gradient(135deg, var(--cream), #f0ece2);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 2em 0;
}
.achievement-box h3 {
  color: var(--maroon);
  margin-bottom: 0.5em;
  font-size: 1.3rem;
}
.achievement-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.achievement-list li {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ===== LINEAGE CARDS ===== */
.lineage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2em;
}
.lineage-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  border-top: 4px solid var(--maroon);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.lineage-card .chinese {
  font-size: 1.8rem;
  color: var(--maroon);
  opacity: 0.4;
  margin-bottom: 8px;
}
.lineage-card h3 { margin-bottom: 0.6em; }

/* ===== WORKSHOP CARDS ===== */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 2em;
}
.workshop-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e4dc;
  transition: transform 0.3s, box-shadow 0.3s;
}
.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.workshop-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
}
.wci-1 { background: linear-gradient(135deg, #3a4a3a, #5a6a5a); }
.wci-2 { background: linear-gradient(135deg, #4a3a2a, #6a5a4a); }
.wci-3 { background: linear-gradient(135deg, #2a3a4a, #4a5a6a); }
.wci-4 { background: linear-gradient(135deg, #4a3a3a, #6a5a5a); }
.workshop-card-body { padding: 24px; }
.workshop-card-body h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.workshop-card-body p { font-size: 0.95rem; color: var(--charcoal-light); }
.btn {
  display: inline-block;
  margin-top: 1em;
  padding: 10px 24px;
  background: var(--maroon);
  color: #fff;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: #5a1212;
  color: #fff;
  transform: translateY(-1px);
}
.workshop-note {
  margin-top: 2em;
  font-style: italic;
  color: var(--charcoal-light);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--nav-bg), #3a3a2e);
  color: #fff;
  padding: 80px 0;
}
.newsletter-section h2 { color: var(--gold); }
.newsletter-section p { color: rgba(255,255,255,0.85); }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 550px;
  margin: 2em auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn {
  background: var(--gold);
  color: #2a2a1a;
  font-weight: 700;
}
.newsletter-form .btn:hover { background: #b89a3c; }
.newsletter-links {
  margin-top: 2em;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-links a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 2px;
}
.newsletter-links a:hover { color: #fff; }

/* ===== PRACTICE INFO BOX ===== */
.practice-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 20px 28px;
  margin-top: 1.5em;
  font-weight: 600;
  color: var(--charcoal);
}
.practice-info .icon { font-size: 1.5rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 30px;
  text-align: center;
  font-size: 0.9rem;
}
footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
footer .footer-tagline {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
footer .footer-links { margin-bottom: 16px; }
footer .footer-links a {
  color: rgba(255,255,255,0.6);
  margin: 0 12px;
  font-size: 0.85rem;
}
footer .footer-links a:hover { color: var(--gold); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .hamburger { display: flex; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 50px; }
  .timeline-dot { left: 8px; }
  .achievement-list { flex-direction: column; }
  .hero h1 { letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .section-padding { padding: 50px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== INSTRUCTOR CARDS ===== */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 2em;
}
.instructor-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #e8e4dc;
  transition: transform 0.3s, box-shadow 0.3s;
}
.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.instructor-photo {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.5);
  gap: 8px;
  position: relative;
}
.instructor-photo span.photo-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  font-family: 'Source Sans 3', sans-serif;
}
.ip-1 { background: linear-gradient(145deg, #3a4a3a, #5a6a5a); }
.ip-2 { background: linear-gradient(145deg, #4a3a3a, #6a5a5a); }
.ip-3 { background: linear-gradient(145deg, #3a3a4a, #5a5a6a); }
.ip-4 { background: linear-gradient(145deg, #4a4a3a, #6a6a5a); }
.ip-5 { background: linear-gradient(145deg, #3a4a4a, #5a6a6a); }
.instructor-info { padding: 20px 16px 24px; }
.instructor-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 4px;
}
.instructor-level {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.instructor-info p {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  line-height: 1.5;
  margin: 0;
}

/* ===== WU JI SECTION ===== */
.wuji-section {
  background: linear-gradient(135deg, #2a2a1e, #3a3a2a);
  color: #fff;
  padding: 80px 0;
}
.wuji-section h2 { color: var(--gold); }
.wuji-section h3 { color: var(--gold); font-size: 1.3rem; margin: 1.5em 0 0.5em; }
.wuji-section p { color: rgba(255,255,255,0.85); }
.wuji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2em;
}
.wuji-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 30px 26px;
  border-top: 3px solid var(--gold);
}
.wuji-card .chinese {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 10px;
}
.wuji-card h3 { color: var(--gold); margin-top: 0; }
.wuji-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 0; }
.wuji-section .learn-more-link {
  color: var(--gold);
  border-bottom-color: rgba(201,168,76,0.5);
}
.wuji-section .learn-more-link:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  max-width: 80%;
  max-height: 80vh;
  background: var(--cream);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: var(--charcoal);
}
.lightbox-content .cam-icon { font-size: 4rem; opacity: 0.3; }
.lightbox-content p { margin-top: 1em; font-size: 1.2rem; }