/* =========================================================
   Tiger Dragon Karate Club — Lung Fu Do Kenpo Karate
   V2 Enhanced Edition: Ambient Glows, Glassmorphism, Staggered Load
   Palette: ink charcoal / antique gold / deep crimson / brand teal
   ========================================================= */

:root {
  --ink: #10141a;
  --ink-2: #171c23;
  --ink-3: #1f2630;
  --paper: #f4f0e6;
  --paper-2: #ece6d6;
  --gold: #d4ab3d;
  --gold-light: #f0cd5e;
  --teal: #088188;
  --teal-light: #0ea1ab;
  --crimson: #8c2f23;
  --text-dark: #2e2a22;
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Outfit', 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-light);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.76;
  color: #2e2a22;
  background-color: var(--paper);
  /* seigaiha (wave) pattern, barely visible on the paper background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%231d1a14' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M10 40a30 30 0 0 1 60 0M20 40a20 20 0 0 1 40 0M30 40a10 10 0 0 1 20 0'/%3E%3Cpath d='M-40 80a40 40 0 0 1 80 0M-30 80a30 30 0 0 1 60 0M-20 80a20 20 0 0 1 40 0M-10 80a10 10 0 0 1 20 0' transform='translate(0 -40)'/%3E%3Cpath d='M40 80a40 40 0 0 1 80 0M50 80a30 30 0 0 1 60 0M60 80a20 20 0 0 1 40 0M70 80a10 10 0 0 1 20 0' transform='translate(0 -40)'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--crimson); transition: color 0.25s ease; }
a:hover { color: var(--teal-light); }

/* ---------- Header with Glassmorphism ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 20, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 161, 74, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.06em;
  color: var(--gold-light); text-decoration: none; white-space: nowrap;
}
.nav-brand em { font-style: normal; color: #b9a36a; }
.nav-logo { width: 42px; height: 42px; transition: transform 0.5s ease; }
.nav-brand:hover .nav-logo { transform: rotate(360deg); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 1.3rem; padding: 0.2rem 0.6rem;
  border-radius: 4px; cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a {
  color: #d8d2c2; text-decoration: none; font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.04em; position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold); padding: 0.35rem 0.9rem; border-radius: 3px;
  color: var(--gold-light) !important;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--teal) !important;
  border-color: var(--teal);
  color: var(--paper) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(16, 20, 26, 0.6), transparent 70%),
    radial-gradient(ellipse at 50% 110%, rgba(8, 129, 136, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(16, 20, 26, 0.9) 0%, rgba(16, 20, 26, 0.65) 55%, rgba(16, 20, 26, 0.95) 100%),
    url("assets/photos/hero-kids.jpg") center 20% / cover no-repeat,
    var(--ink);
  padding: 4rem 1.2rem;
  overflow: hidden;
}
.hero-inner {
  max-width: min(760px, 100%);
  width: 100%;
  box-sizing: border-box;
  padding-inline: 0.25rem;
  z-index: 2;
}
.hero-emblem { width: 230px; height: 230px; margin-bottom: 1.4rem; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6)); transition: transform 0.4s ease; }
.hero-emblem:hover { transform: scale(1.05); }
.hero-tradition {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem;
  text-indent: 0.4em;
}
.hero-tradition .rule {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-tradition .rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-kicker {
  font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: #9a8a5e; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700;
  letter-spacing: 0.04em; color: var(--paper);
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-sub {
  margin: 1.4rem auto 2.2rem;
  font-size: 1.15rem;
  color: #cfc8b6;
  max-width: 42rem; /* wider so taglines wrap less often mid-phrase */
  line-height: 1.55;
  text-wrap: pretty; /* modern browsers: avoid orphan words when possible */
}
.hero-sub strong { color: var(--gold-light); font-weight: 600; }
.hero-sub em { font-style: italic; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-sub em { white-space: normal; } /* allow wrap on very small screens */
}
.hero-offer {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0.38rem 0.95rem;
  font-family: var(--serif);
  font-size: clamp(0.7rem, 1.85vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Phones: full offer text + stacked CTAs, no horizontal clip */
@media (max-width: 640px) {
  .hero {
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-offer {
    font-size: 0.78rem;
    letter-spacing: 0.015em;
    padding: 0.36rem 0.8rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 280px);
    margin-inline: auto;
    gap: 0.7rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
@media (max-width: 380px) {
  .hero-offer {
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    padding: 0.32rem 0.65rem;
  }
}

/* Free-until-yellow callouts (schedule + visit) */
.offer-banner {
  max-width: 640px;
  margin: 0 0 1.4rem;
  padding: 0.85rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  background: linear-gradient(180deg, #f0cd5e, #d4ab3d);
  border-left: 4px solid var(--crimson);
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(30, 25, 15, 0.12);
}
.offer-banner-dark {
  color: var(--ink);
  background: linear-gradient(180deg, #f0cd5e, #d4ab3d);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.program-highlight {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gold);
  background: rgba(212, 171, 61, 0.12);
  border-radius: 0 3px 3px 0;
  font-size: 0.98rem;
}

/* Calligraphy strips with drift animation */
.hero-vertical {
  position: absolute; top: 50%;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK SC', 'SimSun', serif;
  font-size: 1.7rem; letter-spacing: 0.55em;
  color: rgba(240, 205, 94, 0.2);
  padding: 1.3rem 0.55rem;
  border-left: 1px solid rgba(212, 171, 61, 0.15);
  border-right: 1px solid rgba(212, 171, 61, 0.15);
  user-select: none;
}
.hero-vertical-left {
  left: 5%;
  transform: translateY(-50%) translateY(0);
  animation: float-left 8s ease-in-out infinite;
}
.hero-vertical-right {
  right: 5%;
  transform: translateY(-50%) translateY(0);
  animation: float-right 8s ease-in-out infinite;
}
@keyframes float-left { 0%,100% { transform: translateY(-50%) translateY(0); } 50% { transform: translateY(-50%) translateY(-10px); } }
@keyframes float-right { 0%,100% { transform: translateY(-50%) translateY(0); } 50% { transform: translateY(-50%) translateY(10px); } }

.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem; animation: drift 2.2s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Buttons with Shifting Gradient Hover ---------- */
.btn {
  display: inline-block; padding: 0.8rem 1.8rem; border-radius: 3px;
  font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; z-index: 1;
}
.btn-gold {
  background: linear-gradient(135deg, var(--teal) 0%, #066b71 100%);
  color: var(--paper);
  border: 1px solid var(--teal);
  box-shadow: 0 4px 14px rgba(8, 129, 136, 0.25);
}
.btn-gold::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-gold:hover::before {
  opacity: 1;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 129, 136, 0.45);
}
.btn-ghost {
  border: 1px solid rgba(232, 200, 115, 0.6);
  color: var(--gold-light);
}
.btn-ghost:hover {
  background: rgba(232, 200, 115, 0.12);
  transform: translateY(-2px);
}

/* Hero button contrast enhancements */
.hero .btn-gold {
  border: 2px solid var(--gold-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero .btn-ghost {
  background: rgba(16, 20, 26, 0.65);
  border: 1px solid var(--paper-2);
  color: var(--paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- Creed band ---------- */
.creed {
  background: var(--crimson);
  color: var(--paper);
  text-align: center; padding: 2.8rem 1.2rem;
  font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.05em; line-height: 1.8;
  border-top: 1px solid rgba(232, 200, 115, 0.45);
  border-bottom: 1px solid rgba(232, 200, 115, 0.45);
}
.creed::before, .creed::after {
  content: "\2726";
  display: block; color: var(--gold-light); font-size: 0.85rem; opacity: 0.85;
}
.creed::before { margin-bottom: 1.1rem; }
.creed::after { margin-top: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.2rem; scroll-margin-top: 64px; }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(8, 129, 136, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(212, 171, 61, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #d8d2c2;
  position: relative; overflow: hidden;
}
/* Watermark glyph */
.section-dark[data-glyph]::before {
  content: attr(data-glyph);
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK SC', 'SimSun', serif;
  font-size: clamp(14rem, 30vw, 26rem); line-height: 1;
  color: rgba(212, 171, 61, 0.035);
  pointer-events: none; user-select: none;
}
.section-dark .section-inner { position: relative; }
.section-dark h2 { color: var(--paper); }
.section-dark a { color: var(--gold-light); }

.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 0.7rem; font-weight: 600;
}
.section-dark .eyebrow { color: var(--gold); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.2rem; color: #1d1a14; }
/* brush-stroke underline */
.section h2::after {
  content: "";
  display: block; width: 120px; height: 9px; margin-top: 0.8rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M2 6 C 24 2.5, 52 7.5, 84 4.5 S 112 3, 118 4' fill='none' stroke='%238c2f23' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M4 6.5 C 30 4, 60 8, 96 5' fill='none' stroke='%238c2f23' stroke-width='1.4' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E") no-repeat;
}
.section-dark h2::after, .section-banners h2::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9'%3E%3Cpath d='M2 6 C 24 2.5, 52 7.5, 84 4.5 S 112 3, 118 4' fill='none' stroke='%23d4ab3d' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M4 6.5 C 30 4, 60 8, 96 5' fill='none' stroke='%23d4ab3d' stroke-width='1.4' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E") no-repeat;
}
.gold { color: var(--gold); }
.lead { font-size: 1.18rem; max-width: 760px; margin-bottom: 2.4rem; }
.section p + p { margin-top: 1rem; }
.footnote { margin-top: 2.2rem; font-size: 0.9rem; opacity: 0.65; font-style: italic; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}

/* ---------- About Photo Frame ---------- */
.about-photo-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd5c2;
  box-shadow: 0 6px 18px rgba(30, 25, 15, 0.08);
  display: flex;
  justify-content: center;
}
.about-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.about-photo-frame:hover .about-photo {
  transform: scale(1.03);
}

/* ---------- Frosted Glass Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.card {
  background: rgba(23, 28, 35, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 171, 61, 0.15);
  border-radius: 4px; padding: 2rem 1.6rem;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 129, 136, 0.5);
  box-shadow: 0 12px 35px rgba(8, 129, 136, 0.18);
}
/* Gold corners */
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; opacity: 0.6;
}
.card::before { top: 7px; left: 7px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.card::after { bottom: 7px; right: 7px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.card h3 { color: var(--gold-light); font-size: 1.25rem; margin-bottom: 0.8rem; }
.card-sub { display: block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; color: #9a8a5e; margin-top: 0.3rem; }

/* ---------- Banners (Principles) ---------- */
.section-banners {
  background: #fff;
  border-top: 4px solid #1a1a1a;
  box-shadow: inset 0 6px 0 #c2342a;
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.banner {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #141414 0%, #2e2e2e 55%, #b9b9b9 88%, #e9e9e9 100%);
  color: #f3f3f3;
  border-radius: 3px;
  padding: 0.9rem 0.7rem 1.1rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}
.banner:hover {
  transform: translateY(-3px);
}
.banner-club {
  display: block;
  font-family: var(--serif); font-style: italic; font-size: 0.64rem;
  color: #d4453a; letter-spacing: 0.02em; text-align: center;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.5rem; margin-bottom: 0.8rem;
  white-space: normal;
  overflow: hidden;
}
.banner-word {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffffff; margin-bottom: 0.7rem; text-align: center;
  line-height: 1.2;
  padding-left: 0.06em; /* offset trailing tracking so the word sits on center */
}
.banner p { font-size: 0.84rem; line-height: 1.55; color: #e4e4e4; text-align: center; flex: 1; }
.banner cite {
  display: block; margin-top: 0.7rem; font-size: 0.74rem; font-style: normal;
  letter-spacing: 0.08em; color: #1d1a14; text-align: center; font-weight: 600;
}

.principles-photo {
  margin: 2.4rem auto 0;
  max-width: 1000px;
}
.principles-photo img {
  width: 100%; display: block; border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.principles-photo img:hover { transform: scale(1.01); }
.principles-photo figcaption {
  margin-top: 0.6rem; font-size: 0.88rem; color: #6e6652; font-style: italic; text-align: center;
}

/* ---------- Premium Gallery overlay ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ddd5c2;
  box-shadow: 0 6px 18px rgba(30, 25, 15, 0.08);
}
.gallery-frame {
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  cursor: zoom-in;
  transition: transform 0.45s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 20, 26, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-desc {
  font-size: 0.82rem;
  color: #cfc8b6;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.05s;
}
.gallery-item:hover .gallery-title,
.gallery-item:hover .gallery-desc {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 12, 16, 0.95);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 2.5vh 2.5vw;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90%; max-height: 90%; object-fit: contain;
  border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp { from { transform: scale(0.95); } to { transform: scale(1); } }

/* ---------- Lineage Timeline Glow ---------- */
.lineage { margin-top: 3.2rem; }
.lineage-title {
  font-size: 1.4rem; color: var(--gold-light); margin-bottom: 1.6rem;
  letter-spacing: 0.06em;
}
.timeline { list-style: none; position: relative; padding-left: 0; max-width: 760px; }
.timeline::before {
  content: ""; position: absolute; left: 78px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 171, 61, 0.15));
}
.timeline li { display: flex; gap: 2rem; padding: 0.9rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 74.5px; top: 1.55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--gold);
  box-shadow: 0 0 0 0px rgba(212, 171, 61, 0);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  z-index: 2;
}
.timeline li:hover::before {
  background-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 171, 61, 0.25);
}
.tl-year {
  flex: 0 0 58px; text-align: right;
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem;
  color: var(--gold-light); padding-top: 0.15rem; letter-spacing: 0.04em;
}
.tl-body { flex: 1; padding-left: 1.4rem; font-size: 0.97rem; color: #c9c2b0; transition: color 0.2s ease; }
.timeline li:hover .tl-body { color: var(--paper); }
.tl-body strong { color: var(--paper); font-weight: 600; }
.tl-content-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline-photo {
  display: block;
  max-width: 160px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.5rem;
}
.timeline-photo:hover {
  transform: scale(1.04);
}
.timeline-photo.anniversary-mark {
  max-width: 280px;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid rgba(212, 171, 61, 0.45);
}

/* ---------- Instructors Grid ---------- */
.instructors-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}
.instructor-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #ddd5c2;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(30, 25, 15, 0.04);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(30, 25, 15, 0.1);
}
.instructor-card-text {
  border-left: 4px solid var(--teal);
}
.instructor-card-text .instructor-info {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.instructor-photo-frame {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 3px solid var(--teal);
}
.instructor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.instructor-card:hover .instructor-photo {
  transform: scale(1.02);
}
.instructor-info {
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.instructor-info h3 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.instructor-rank {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
  font-weight: 600;
}
.instructor-info blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #5b544a;
  line-height: 1.6;
}
.hanko {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; margin-top: 1.3rem;
  background: linear-gradient(150deg, #b23a2c, #8c2f23);
  color: #f4f0e6;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK SC', 'SimSun', serif;
  font-size: 1.25rem; letter-spacing: 0;
  border-radius: 7px;
  border: 2px solid rgba(60, 16, 10, 0.35);
  box-shadow: inset 0 0 6px rgba(60, 16, 10, 0.5), 1px 2px 6px rgba(30, 25, 15, 0.25);
  transform: rotate(-3deg);
  user-select: none;
  transition: transform 0.3s ease;
}
.instructor-card:hover .hanko {
  transform: rotate(2deg) scale(1.05);
}

@media (min-width: 861px) {
  .instructor-card {
    grid-template-columns: 280px 1fr;
  }
  .instructor-photo-frame {
    height: 100%;
    min-height: 380px;
    border-bottom: none;
    border-right: 3px solid var(--teal);
  }
}

/* ---------- Accordion Glowing Focus (Belts & FAQs) ---------- */
.belt-accordion, .faq-accordion {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin-top: 1.5rem;
}
.belt-item, .faq-item {
  background: rgba(244, 240, 230, 0.02);
  border: 1px solid rgba(201, 161, 74, 0.25);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.belt-item:hover, .faq-item:hover {
  border-color: rgba(201, 161, 74, 0.45);
}
.belt-item.open, .faq-item.open {
  border-color: rgba(8, 129, 136, 0.5);
  box-shadow: 0 4px 20px rgba(8, 129, 136, 0.12);
}
.belt-btn, .faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  text-align: left;
  outline: none;
}
.belt-btn {
  height: 44px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--belt) 88%, #fff 12%), var(--belt) 45%, color-mix(in srgb, var(--belt) 82%, #000 18%)) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.belt-btn:hover {
  transform: translateX(4px);
}
.belt-btn span {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  display: flex;
  align-items: center;
}
.belt-btn::after, .faq-btn::after {
  content: "\25BC";
  font-size: 0.7rem;
  color: var(--label);
  transition: transform 0.3s ease;
}
.faq-btn {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(201, 161, 74, 0.1);
}
.faq-btn::after {
  color: var(--gold);
}
.faq-btn:hover {
  color: var(--gold-light);
}
.belt-item.open .belt-btn::after, .faq-item.open .faq-btn::after {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.belt-item.open .accordion-content, .faq-item.open .accordion-content {
  max-height: 400px;
}
.accordion-content-inner {
  padding: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink-3);
  border-top: 1px solid rgba(201, 161, 74, 0.15);
}
.belt-item .accordion-content-inner {
  color: var(--paper);
  background: var(--ink-3);
  border-top: 1px solid rgba(201, 161, 74, 0.15);
}
.accordion-content-inner strong {
  color: var(--gold-light);
  font-weight: 600;
}
.accordion-content-inner p + p {
  margin-top: 0.6rem;
}

/* ---------- Schedule Table ---------- */
.schedule-table { max-width: 720px; border: 1px solid #ddd5c2; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.schedule-row {
  display: grid; grid-template-columns: 1fr 1.6fr 1.2fr;
  padding: 0.9rem 1.3rem; background: #fff; border-top: 1px solid #eee7d6;
  transition: background-color 0.2s ease;
}
.schedule-row:not(.schedule-head):hover { background-color: #f6f2e8; }
.schedule-row:nth-child(odd) { background: #faf7ef; }
.schedule-head {
  background: var(--ink-2) !important; color: var(--gold-light);
  font-family: var(--serif); letter-spacing: 0.1em; font-size: 0.85rem; text-transform: uppercase;
  border-top: none;
}
.schedule-on-dark {
  margin: 0 0 2rem;
  border-color: rgba(201, 161, 74, 0.35);
  box-shadow: none;
}
.schedule-on-dark .schedule-row {
  background: rgba(255, 255, 255, 0.04);
  border-top-color: rgba(201, 161, 74, 0.15);
  color: var(--paper);
}
.schedule-on-dark .schedule-row:nth-child(odd) { background: rgba(255, 255, 255, 0.07); }
.schedule-on-dark .schedule-row:not(.schedule-head):hover { background: rgba(201, 161, 74, 0.12); }
.schedule-on-dark .schedule-head {
  background: rgba(0, 0, 0, 0.35) !important;
}
.visit-split { margin-top: 0.4rem; align-items: stretch; }

/* ---------- Contact & Map ---------- */
.contact-list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 1.2rem; }
.contact-list strong { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }
.map-frame { border: 1px solid rgba(201, 161, 74, 0.4); border-radius: 4px; overflow: hidden; min-height: 380px; box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Dedication Section ---------- */
.dedication-section {
  background: var(--ink-2);
  border-top: 1px solid rgba(201, 161, 74, 0.25);
  border-bottom: 1px solid rgba(201, 161, 74, 0.25);
  color: #cfc8b6;
}
.dedication-photo-frame {
  display: flex;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 74, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  max-width: 380px;
  justify-self: center;
}
.dedication-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.45s ease;
}
.dedication-photo:hover {
  transform: scale(1.03);
}
.dedication-text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dedication-text-card h2 {
  color: var(--paper);
}
.dedication-highlight {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #8d846e; text-align: center;
  padding: 3.5rem 1.2rem 2.5rem; border-top: 1px solid rgba(201, 161, 74, 0.3);
}
.footer-emblem { width: 90px; height: 90px; opacity: 0.9; transition: opacity 0.3s ease; }
.site-footer:hover .footer-emblem { opacity: 1; }
.site-footer p { font-family: var(--serif); color: #b9a36a; letter-spacing: 0.06em; }
.footer-fine { margin-top: 0.8rem; font-family: var(--sans) !important; font-size: 0.85rem; color: #6e6652 !important; line-height: 1.8; }

/* ---------- Staggered Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.visible .stagger-item,
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stagger-item { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .hero-vertical-left, .hero-vertical-right { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-vertical { display: none; }
}

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 2.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item img { height: 240px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink);
    border-bottom: 1px solid rgba(201, 161, 74, 0.35); padding: 0.6rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.8rem; }
  .nav-cta { border: none; }
  .schedule-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .schedule-head { display: none; }
}

@media (max-width: 580px) {
  .banner-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Lung Fu Do Logo ---------- */
.lungfudo-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lungfudo-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  border-radius: 50%;
  transition: transform 0.4s ease;
}
.lungfudo-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

/* ---------- Footer Bookend Layout ---------- */
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-text-block {
  text-align: center;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}
