/* =========================================
   心世界人文空間 THE WORLD SPACE
   Global Stylesheet
   ========================================= */

:root {
  --green-dark: #274E3D;
  --green-light: #7CA684;
  --gold: #D4AF37;
  --earth: #DCC8A3;
  --pink: #DBA7A1;
  --sand: #EDE1D1;
  --white: #FAF8F4;
  --text: #3A3530;
  --text-muted: #7A756E;
}

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

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

body {
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Noto Serif TC', 'PingFang TC', serif; }

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 580px;
}

.gold-line {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 2rem; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: white;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #B89120;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--green-dark);
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--green-dark);
  transition: all 0.25s;
}
.btn-outline-dark:hover {
  background: var(--green-dark);
  color: white;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 400;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.25s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220,200,163,0.4);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-logo img {
  width: clamp(190px, 20vw, 292px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--green-dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #B89120 !important; color: white !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 1.5px;
  background: var(--green-dark);
  display: block;
  transition: all 0.3s;
}

/* === FOOTER === */
footer {
  background: #1B2B22;
  color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}
.footer-brand-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  color: var(--earth);
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
  margin-top: 1rem;
}

.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
}
.social-icon:hover { border-color: var(--earth); color: var(--earth); }

.footer-col-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--earth); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* === TAG === */
.tag {
  display: inline-block;
  background: var(--sand);
  color: var(--green-dark);
  font-size: 0.7rem;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--earth);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
