/* ============================================================
   DENVER KUNG FU — JONG STORE  ·  styles.css
   Mobile-first. Flat structure. No build tools required.
   Brand: Green #0F713E  ·  Red #C3262D
   Fonts: Cormorant Garamond (display) · Inter (body) · Noto Serif SC (Chinese)
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  color: #1C1C1C;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --green:       #0F713E;
  --green-dark:  #0a5a30;
  --red:         #C3262D;
  --black:       #1C1C1C;
  --white:       #ffffff;
  --cream:       #F5F0E8;
  --warm-gray:   #E8E2D9;
  --mid-gray:    #9B9289;
  --dark-bg:     #141210;
  --darker-bg:   #0e0c0a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w:  75rem;   /* 1200px */
  --nav-h:  4.5rem;  /* 72px */
  --ease:   0.3s ease;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 48em)  { .container { padding: 0 2.5rem; } }
@media (min-width: 75em) { .container { padding: 0 4rem; } }
.container--gallery { margin-top: 3rem; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 7vw,  6rem); }
h2 { font-size: clamp(2rem,   5vw,  3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
p  {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.85;
  color: #4a4540;
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--black);
  line-height: 1.55;
  font-weight: 400;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.label--light { color: rgba(255,255,255,0.45); }
.label--red   { color: var(--red); }

.divider { width: 2.25rem; height: 2px; background: var(--green); }
.divider--red    { background: var(--red); }
.divider--center { margin: 0 auto; }
/* spacing modifiers (replace former inline styles) */
.divider--spaced    { margin-top: 1rem; }
.divider--spaced-lg { margin-top: 1rem; margin-bottom: 2rem; }

.section-intro {
  max-width: 36.25rem;
  margin: 1rem auto 3.5rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: #6b6560;
  line-height: 1.8;
}
.section-intro--tight { margin-bottom: 3rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
  transition: gap var(--ease);
}
.link-arrow:hover { gap: 0.75rem; }
.link-arrow--light       { color: rgba(255,255,255,0.7); }
.link-arrow--light:hover { color: white; }
.link-arrow--spaced      { margin-top: 1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.65);
}
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: white;
}
.btn--dark {
  background: var(--black);
  color: white;
  border-color: var(--black);
}
.btn--dark:hover { background: #333; }
.btn--lg  { padding: 1.1rem 3rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 5rem 0; }
@media (min-width: 48em)  { .section { padding: 7rem 0; } }
@media (min-width: 75em) { .section { padding: 9rem 0; } }

.section--dark  { background: var(--dark-bg);  color: white; }
.section--dark-img {
  background-color: var(--dark-bg);
  color: white;
  position: relative;
  overflow: hidden;
}
.section--dark-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/jong-wall-overlay.webp');
  background-image: image-set(url('../assets/jong-wall-overlay.webp') 1x);
  background-size: cover;
  background-position: top center;
  opacity: 0.18;
}
.section--dark-img > * { position: relative; z-index: 1; }
.section--dark p { color: rgba(255,255,255,0.65); }
.section--dark .lead { color: white; }
.section--dark p strong { color: white; font-weight: 500; }
.section--dark h2,
.section--dark h3 { color: white; }
.section--cream { background: var(--cream); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
}
.nav--scrolled {
  background: rgba(14,12,10,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}
@media (min-width: 48em) { .nav__inner { padding: 0 2.5rem; } }

.nav__logo img { height: 2.0625rem; width: auto; display: block; }

/* Call/Text CTA — the only nav action (business-card minimal) */
.nav__call {
  display: inline-flex;
  align-items: center;
  color: white;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.nav__call:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
}
@media (min-width: 48em) {
  .nav__call {
    font-size: 0.7rem;
    padding: 0.6rem 1.4rem;
  }
}

/* ============================================================
   HERO  (index.html)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  overflow: hidden;
}
/* Subtle wood-grain texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg,  transparent, transparent 3px, rgba(255,255,255,0.007) 3px, rgba(255,255,255,0.007) 4px),
    repeating-linear-gradient(0deg,   transparent, transparent 28px, rgba(255,255,255,0.004) 28px, rgba(255,255,255,0.004) 29px);
  pointer-events: none;
}
/* Red vertical accent stripe — hidden when hero has background image */
.hero::after {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  background: var(--red);
  opacity: 0.9;
}
.hero--bg::after { display: none; }
.hero__watermark {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(5rem, 14vw, 12rem);
  color: rgba(195,38,45,0.16);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.05em;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  max-width: 50rem;
}
@media (min-width: 48em)  { .hero__content { padding: calc(var(--nav-h) + 5rem) 2.5rem 6rem; } }
@media (min-width: 75em) { .hero__content { padding: calc(var(--nav-h) + 7rem) 4rem 8rem; } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero__eyebrow-line { width: 2rem; height: 1px; background: var(--green); }
.hero__eyebrow-text {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.hero__title {
  color: white;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.4rem;
}
.hero__chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.35em;
  margin-bottom: 1.75rem;
  display: block;
}
.hero__body {
  color: rgba(255,255,255,0.58);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  max-width: 32.5rem;
  margin-bottom: 2.75rem;
  line-height: 1.8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 48em) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .split--reverse .split__text  { order: 2; }
  .split--reverse .split__media { order: 1; }
}
.split__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================================
   CTA / CONTACT SECTION
   ============================================================ */
.cta-section {
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,255,255,0.025);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p  {
  color: rgba(255,255,255,0.52);
  max-width: 30rem;
  margin: 0 auto 2.5rem;
}
.cta-note {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
}
.cta-note a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--darker-bg);
  padding: 5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 37.5em)  { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 56.25em)  { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer__logo { height: 1.875rem; width: auto; opacity: 0.65; margin-bottom: 1rem; }
.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.75;
}
.footer__col h4 {
  color: rgba(255,255,255,0.55);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
  margin-bottom: 1.1rem;
}
.footer__col ul  { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.32);
  transition: color 0.2s;
}
.footer__col ul a:hover { color: rgba(255,255,255,0.75); }
.footer__bottom {
  padding-top: 2rem;
  text-align: center;
}
.footer__bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.17); }
.footer__bottom a { color: rgba(255,255,255,0.28); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 40em) {
  .gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gallery__main { grid-row: 1 / 3; }
}

/* ── Focus visibility (keyboard accessibility) ── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav__toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}
.nav__links a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.video-tile:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(1.375rem);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   PRODUCT IMAGES
   ============================================================ */

/* Hero background image (index.html) */
.hero--bg {
  background-image:
    linear-gradient(to right, rgba(14,12,10,0.82) 0%, rgba(14,12,10,0.55) 100%),
    url('../assets/wing-chun-jong-wall-denver.webp');
  background-image:
    linear-gradient(to right, rgba(14,12,10,0.82) 0%, rgba(14,12,10,0.55) 100%),
    image-set(url('../assets/wing-chun-jong-wall-denver.webp') 1x);
  background-size: cover;
  background-position: top center;
}

/* Split section product images */
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* Gallery real images */
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__main img {
  aspect-ratio: 2/3;
}
.gallery__thumb {
  overflow: hidden;
}
.gallery__thumb img {
  aspect-ratio: 1/1;
}

/* ============================================================
   VIDEO TILES (click-to-load facade)
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56.25rem;
  margin: 0 auto;
}
@media (min-width: 43.75em) {
  .video-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.video-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--darker-bg);
  overflow: hidden;
  text-align: left;
  transition: transform var(--ease), border-color var(--ease);
}
.video-tile:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }

.video-tile__poster {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity var(--ease), transform var(--ease);
}
.video-tile:hover .video-tile__poster { opacity: 0.7; transform: scale(1.03); }

.video-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,12,10,0.85) 0%, rgba(14,12,10,0.25) 55%, rgba(14,12,10,0.35) 100%);
}

.video-tile__play {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem; height: 4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(195,38,45,0.92);
  color: white;
  font-size: 1.4rem;
  padding-left: 0.25rem;
  transition: transform var(--ease), background var(--ease);
}
.video-tile:hover .video-tile__play { transform: translate(-50%, -50%) scale(1.08); background: var(--red); }

.video-tile__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.video-tile__kicker {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.video-tile__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  line-height: 1.1;
}
.video-tile__note {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(195,38,45,0.85);
  margin-top: 0.2rem;
}
/* Injected player fills the tile */
.video-tile__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================================
   CONTACT LINES
   ============================================================ */
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 26.25rem;
  margin: 2.5rem auto 0;
}
@media (min-width: 35em) { .contact-lines { flex-direction: row; } }
/* Single card (email-only): keep it narrow + centered rather than full-width */
.contact-lines--single { max-width: 22rem; }
@media (min-width: 35em) { .contact-lines--single { flex-direction: column; } }

.contact-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.contact-line:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-3px);
}
.contact-line__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.contact-line__value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: white;
  overflow-wrap: anywhere;
}

/* Simple footer grid (business-card layout): logo/tagline + one links column */
@media (min-width: 56.25em) {
  .footer__grid--simple { grid-template-columns: 2fr 1fr; }
}
