/* shared.css — base styles used by all region/tradition pages */



:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-pale: #EBF5E9;
  --green-border: #C8E6C9;
  --gold: #D4850A;
  --ink: #0F2213;
  --mist: #5D7A5F;
  --paper: #FDF5E6;
  --cream: #F8ECE0;
  --red: #C62828;
  --red-dark: #8B1A1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Instrument Sans', sans-serif; background: var(--paper); color: var(--ink); overflow-x: hidden; }

body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(253,245,230,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,133,10,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-mark { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease; flex-shrink: 0; }
.nav-logo-mark svg { display: block; }
.nav-logo:hover .nav-logo-mark { transform: scale(1.08); }
.nav-logo-text { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--ink); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--mist); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--red-dark); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--red-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--green) !important; color: white !important; padding: 0.5rem 1.2rem; font-size: 0.78rem !important; letter-spacing: 0.1em !important; }
.nav-cta:hover { background: var(--green-dark) !important; }
.nav-cta::after { display: none !important; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 300;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s ease; border-radius: 1px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'DM Serif Display', serif; font-size: 2.2rem;
  color: #FDF5E6; text-decoration: none;
  opacity: 0; transform: translateX(24px);
  transition: color 0.2s, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open a { opacity: 1; transform: translateX(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-foot {
  position: absolute; bottom: 2.5rem;
  font-family: 'Noto Serif SC', serif; font-size: 1rem;
  color: rgba(235,245,233,0.2); letter-spacing: 0.4em;
}

/* ─── BUTTONS ─── */
.btn-primary { background: var(--red-dark); color: white; padding: 0.9rem 2rem; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: all 0.25s; display: inline-block; }
.btn-primary:hover { background: var(--red); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold); padding: 0.9rem 2rem; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: all 0.25s; display: inline-block; background: transparent; }
.btn-ghost:hover { background: var(--gold); color: white; }
.btn-white { background: white; color: var(--red-dark); padding: 1rem 2.5rem; text-decoration: none; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: all 0.25s; display: inline-block; position: relative; }
.btn-white:hover { background: #FAF0D7; transform: translateY(-2px); }

/* ─── SECTION LABELS ─── */
.section-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.section-eyebrow-line { width: 28px; height: 1px; background: var(--gold); }
.section-eyebrow-text { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 3vw, 3rem); color: var(--ink); line-height: 1.1; }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 400;
  width: 46px; height: 46px;
  background: var(--red-dark); color: white; border: none; cursor: pointer;
  font-family: 'Noto Serif SC', serif;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--red); }
.back-to-top-char { font-size: 0.9rem; line-height: 1; }
.back-to-top-arrow { font-size: 0.65rem; font-family: 'Instrument Sans', sans-serif; margin-top: 1px; }

/* ─── FOOTER ─── */
footer { background: var(--ink); color: var(--green-pale); padding: 4rem 5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(200,230,201,0.12); margin-bottom: 2rem; }
.footer-brand-cn { font-family: 'Noto Serif SC', serif; font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.footer-brand-en { font-family: 'DM Serif Display', serif; font-size: 1rem; color: var(--green-pale); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.82rem; color: rgba(235,245,233,0.5); line-height: 1.68; }
.footer-col-title { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { text-decoration: none; color: rgba(235,245,233,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(235,245,233,0.3); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
