/* ═══════════════════════════════════════════════
   SHAOLIN WARRIOR MARTIAL ARTS — Shared Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --crimson:   #9B1C1C;
  --gold:      #C9933A;
  --gold-lt:   #E8B96A;
  --ink:       #1A120B;
  --parchment: #F5EDD8;
  --warm-mid:  #7A5C3A;
  --cream:     #FDF6E3;
  --shadow:    rgba(26,18,11,0.18);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

/* ─── BORDER PATTERN ─── */
.border-pattern {
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--crimson) 0, var(--crimson) 18px,
    var(--gold) 18px, var(--gold) 22px,
    var(--crimson) 22px, var(--crimson) 40px);
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 8px; width: 100%; z-index: 1000;
  background: rgba(26,18,11,0.96);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  border-bottom: 2px solid var(--gold);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 56px; width: auto; }
.nav-school-name { display: flex; flex-direction: column; line-height: 1.25; }
.nav-school-name .chinese { font-family: serif; font-size: 0.82rem; color: var(--gold-lt); letter-spacing: 0.08em; }
.nav-school-name .english { font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 600; color: var(--parchment); letter-spacing: 0.06em; }

.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--parchment); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; transition: color .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-lt); }
.nav-cta {
  background: var(--crimson) !important; color: #fff !important;
  padding: 8px 18px; border-radius: 2px; font-weight: 600;
  transition: background .25s !important;
}
.nav-cta:hover { background: #7a1515 !important; }

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

/* ─── PAGE HEADER (non-home pages) ─── */
.page-header {
  background:
    linear-gradient(160deg, rgba(26,18,11,0.88) 0%, rgba(155,28,28,0.6) 100%),
    url('golden-sunset.png') center 40% / cover no-repeat;
  padding: 130px 8% 64px;
  margin-top: 72px;
}
.page-header .section-tag { color: var(--gold-lt); margin-bottom: 10px; display: block; }
.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700; color: #fff; line-height: 1.1;
}
.page-header h1 span { color: var(--gold-lt); }
.page-header p {
  font-family: 'Noto Serif', serif; font-style: italic;
  color: rgba(245,237,216,0.8); font-size: 1.05rem; margin-top: 12px;
  max-width: 560px;
}

/* ─── SECTION BASE ─── */
section { padding: 88px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--crimson); display: block; margin-bottom: 12px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 16px;
}
.section-title span { color: var(--crimson); }
.title-rule {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  margin-bottom: 40px;
}
.title-rule.center { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--crimson); color: #fff;
  padding: 14px 34px; font-family: 'Cinzel', serif;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer; display: inline-block;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: #7a1515; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--crimson);
  padding: 13px 34px; font-family: 'Cinzel', serif;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--crimson); display: inline-block;
  transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--crimson); color: #fff; }
.btn-outline.light { color: var(--gold-lt); border-color: var(--gold); }
.btn-outline.light:hover { background: var(--gold); color: var(--ink); }

/* ─── CARDS ─── */
.card {
  background: #fff; border-top: 4px solid var(--gold);
  padding: 30px 26px; box-shadow: 0 2px 16px var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 28px var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.card h3 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.card .level { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); font-weight: 600; margin-bottom: 10px; display: block; }
.card p { font-size: 0.9rem; color: #5a4232; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.card-meta span { font-size: 0.74rem; background: var(--parchment); padding: 3px 9px; border-radius: 2px; color: var(--warm-mid); }

/* ─── FOOTER ─── */
footer { background: var(--ink); color: var(--parchment); padding: 56px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,147,58,.25);
}
.footer-brand p { font-size: 0.86rem; color: rgba(245,237,216,.6); margin-top: 10px; max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Cinzel', serif; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: rgba(245,237,216,.6); text-decoration: none; font-size: 0.86rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-col li { color: rgba(245,237,216,.6); font-size: 0.86rem; }
.footer-col .hours-closed { color: rgba(245,237,216,.3); }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.76rem; color: rgba(245,237,216,.35);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ─── FADE IN ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media(max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  nav { padding: 0 20px; }
  .page-header { padding: 110px 6% 48px; }
}
