/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #111111;
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.2);
  --gold-faint:rgba(201,168,76,0.08);
  --text:      #ffffff;
  --muted:     #bbbbbb;
  --faint:     #555555;
  --max-width: 1100px;
  --nav-h:     64px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.gold-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 14px 32px;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-faint); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-dim);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.6); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
}
.nav__logo-text {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__cta { padding: 8px 18px; font-size: 0.7rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav__drawer {
  display: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-dim);
  padding: 16px 0;
}
.nav__drawer.open { display: block; }
.nav__drawer-link {
  display: block;
  padding: 14px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__drawer-link:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav { height: auto; min-height: var(--nav-h); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.88;
  filter: grayscale(60%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,20,8,0.55) 0%, rgba(10,10,10,0.96) 72%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__logo-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 10px var(--gold-faint);
}
.hero__logo-ring img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.5;
}
.hero__body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}
.hero__cta { font-size: 0.8rem; padding: 16px 40px; }

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats bar ── */
.stats {
  background: var(--bg-alt);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid #1a1a1a;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 28px 24px;
}
.stats__item {
  padding: 8px 16px;
  border-right: 1px solid #222;
}
.stats__item:last-child { border-right: none; }
.stats__item strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
}
.stats__item span {
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid #222; padding: 16px; }
  .stats__item:last-child { border-bottom: none; }
}

/* ── What is Ving Tsun ── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.what__text p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.8;
}
.what__text strong { color: var(--text); }
.what__text em { color: var(--gold); font-style: normal; }

.principle-card {
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin-bottom: 16px;
  background: var(--gold-faint);
}
.principle-card h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.principle-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .what__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Lineage ── */
.lineage-chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.lineage-node {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #1e1e1e;
  background: var(--bg);
}
.lineage-node--highlight { border-color: var(--gold-dim); background: var(--gold-faint); }
.lineage-node--you { border-color: var(--gold); background: var(--gold-faint); }

.lineage-node__circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 4px var(--gold-faint);
}
.lineage-node__circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.lineage-node h4 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lineage-node p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.lineage-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--gold);
  font-size: 1.5rem;
  margin-top: 40px;
  opacity: 0.5;
}

.lineage-quote {
  border-left: 4px solid var(--gold);
  padding: 24px 32px;
  margin: 48px auto;
  max-width: 700px;
  background: var(--gold-faint);
}
.lineage-quote p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 12px;
}
.lineage-quote cite {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
}

@media (max-width: 900px) {
  .lineage-chain { flex-direction: column; align-items: center; gap: 0; }
  .lineage-arrow { margin: 0; transform: rotate(90deg); padding: 8px 0; }
}

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about__photo-wrap {
  position: relative;
  margin-bottom: 20px;
}
.about__photo-wrap img {
  width: 100%;
  height: auto;
  border: 1px solid #1e1e1e;
}
.about__photos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.about__photos figure img {
  width: 100%;
  height: auto;
  border: 1px solid #1e1e1e;
  display: block;
}
.about__photos figcaption {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.about__text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__photos { grid-template-columns: 1fr; }
}

/* ── Training ── */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.training-card {
  background: var(--bg);
  border: 1px solid #1e1e1e;
  border-top: 3px solid var(--gold);
  padding: 32px 24px;
}
.training-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 12px;
}
.training-card h4 {
  color: var(--text);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.training-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.training-card strong { color: var(--text); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.benefit-item {
  background: var(--bg);
  border: 1px solid #1e1e1e;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.875rem;
  border-left: 3px solid var(--gold-dim);
}

@media (max-width: 900px) {
  .training-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ── Classes & Contact ── */
.classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.info-block {
  margin-bottom: 36px;
}
.info-block h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 8px;
}

.schedule-item {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
}
.schedule-day {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}
.schedule-time {
  color: var(--gold);
  font-size: 0.9rem;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color var(--transition);
  word-break: break-all;
}
.contact-link:hover { color: var(--gold); }
.contact-link__icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.cta-box {
  background: var(--bg-alt);
  border: 1px solid #1e1e1e;
  border-top: 3px solid var(--gold);
  padding: 32px;
  margin-bottom: 24px;
}
.cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.cta-box p { color: var(--muted); line-height: 1.7; }
.cta-box .btn { display: block; }

.map-embed {
  border: 1px solid #1e1e1e;
  overflow: hidden;
}

@media (max-width: 900px) {
  .classes-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Classes photo band — polaroid strip ── */
.classes-photo-band {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 56px;
  width: 100%;
  animation: none !important;
}

.polaroid-frame {
  flex: 1;
  display: flex;
  justify-content: center;
}

.polaroid {
  background: #e8e2d4;
  padding: 7px 7px 24px 7px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
  width: 100%;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.3s;
  cursor: pointer;
}
.polaroid:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.85), 0 4px 12px rgba(0,0,0,0.5);
}

.polaroid-frame:nth-child(1) .polaroid { transform: rotate(-3deg); }
.polaroid-frame:nth-child(2) .polaroid { transform: rotate( 2.5deg); }
.polaroid-frame:nth-child(3) .polaroid { transform: rotate(-2deg); }
.polaroid-frame:nth-child(4) .polaroid { transform: rotate( 3.5deg); }
.polaroid-frame:nth-child(5) .polaroid { transform: rotate(-1.5deg); }
.polaroid-frame:nth-child(6) .polaroid { transform: rotate( 2deg); }

.polaroid-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.polaroid-img-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.polaroid-curtain {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  z-index: 2;
  clip-path: inset(100% 0 0 0);
}
.polaroid-bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #c9a84c;
  box-shadow: 0 0 8px #c9a84c, 0 0 20px rgba(201,168,76,0.4);
  z-index: 3;
  top: 0;
  opacity: 0;
}

@media (max-width: 700px) {
  .polaroid-frame:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .polaroid-frame:nth-child(n+3) { display: none; }
}

/* ── Gallery ── */
.gallery-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.gallery-track { overflow: hidden; }

.gallery-track__inner {
  display: flex;
  gap: 12px;
  width: max-content;
}

.gallery-track__inner img {
  height: 220px;
  width: auto;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.gallery-track__inner img:hover { opacity: 0.75; }

.gallery-track--left  .gallery-track__inner { animation: scrollLeft  80s linear infinite; }
.gallery-track--right .gallery-track__inner { animation: scrollRight 80s linear infinite; }

@keyframes scrollLeft  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Pause on hover */
.gallery-track:hover .gallery-track__inner { animation-play-state: paused; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: var(--gold); font-size: 2rem;
  cursor: pointer; z-index: 201;
}
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--gold); font-size: 3rem;
  cursor: pointer; z-index: 201;
  padding: 0 20px;
}
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }

@media (max-width: 600px) {
  .gallery-track__inner img { height: 150px; }
}

/* ── Footer ── */
.footer {
  background: #000;
  border-top: 1px solid var(--gold-dim);
  padding: 56px 0 32px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
}
.footer__name {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__tagline {
  color: var(--faint);
  font-size: 0.72rem;
  margin-top: 2px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__nav a {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }

.footer__mid {
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 20px 0;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 0.8rem;
  text-align: center;
}
.footer__link {
  color: var(--gold);
  transition: opacity var(--transition);
}
.footer__link:hover { opacity: 0.75; }
.footer__social-link { display: inline-flex; align-items: center; gap: 4px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Why Train Here pillar grid ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--bg-alt);
  border: 1px solid #1e1e1e;
  border-top: 3px solid var(--gold);
  padding: 32px 24px;
}
.pillar-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 12px;
}
.pillar-card h3 {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pillar-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* ── Free trial badge ── */
.free-trial-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-dim);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin-top: 4px;
}
.free-trial-badge strong {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
}
.free-trial-badge span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Hero dual CTAs ── */
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
