@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --charcoal: #1A1A2E;
  --charcoal-light: #2D2D44;
  --amber: #C8956C;
  --gold: #D4A853;
  --cream: #F7F3ED;
  --cream-dark: #EDE6DA;
  --red: #B53030;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(26, 26, 46, 0.95);
  padding: 0.75rem 3rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  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-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-active {
  color: var(--gold);
}

.lang-inactive {
  color: rgba(255, 255, 255, 0.5);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.png') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.15) 40%,
    rgba(26, 26, 46, 0.5) 80%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title-cn {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-desc {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Sections */
.section {
  padding: 7rem 2rem;
}

.section-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Story Section */
.story {
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text p {
  font-size: 1.0625rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.story-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  color: var(--charcoal);
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-dark);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}

.story-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-image:hover img {
  transform: scale(1.03);
}

.story-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Landmarks Section */
.landmarks {
  background: var(--cream);
}

.landmarks-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landmarks-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.0625rem;
}

.landmark-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.landmark-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.landmark-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.landmark-card:first-child {
  grid-row: span 2;
}

.landmark-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.landmark-card:first-child .landmark-img {
  aspect-ratio: 4/5;
}

.landmark-body {
  padding: 1.5rem;
}

.landmark-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.landmark-name-cn {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.landmark-desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Culture Section */
.culture {
  background: var(--charcoal);
  color: var(--white);
}

.culture .section-heading {
  color: var(--white);
}

.culture .section-label {
  color: var(--gold);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.culture-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.culture-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.culture-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.culture-item {
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.culture-item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.culture-item p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Travel Section */
.travel {
  background: var(--white);
}

.travel-header {
  text-align: center;
  margin-bottom: 4rem;
}

.travel-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.0625rem;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.travel-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.travel-card:hover {
  transform: translateY(-4px);
}

.travel-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  background: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.travel-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.travel-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.travel-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

.travel-card-text {
  display: flex;
  flex-direction: column;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--gold);
}

.footer p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.4;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
}

.mobile-menu a:hover {
  color: var(--gold);
}

body.menu-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.625rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .story-grid,
  .culture-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-image {
    order: -1;
    aspect-ratio: 16/10;
  }

  .story-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .landmark-cards {
    grid-template-columns: 1fr;
  }

  .landmark-card:first-child {
    grid-row: auto;
  }

  .landmark-card:first-child .landmark-img {
    aspect-ratio: 16/10;
  }

  .travel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

  .culture-image {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 540px) {
  .nav {
    padding: 0.875rem 1.25rem;
  }

  .nav.scrolled {
    padding: 0.5rem 1.25rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-title-cn {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-scroll {
    bottom: 1.5rem;
  }

  .scroll-line {
    height: 28px;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .story-text p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .story-text p:first-of-type::first-letter {
    font-size: 2.75rem;
  }

  .story-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .story-image {
    aspect-ratio: 4/3;
    border-radius: 6px;
  }

  .landmark-cards {
    gap: 1.25rem;
  }

  .landmark-card {
    border-radius: 10px;
  }

  .landmark-img {
    aspect-ratio: 16/9;
  }

  .landmark-body {
    padding: 1.25rem;
  }

  .landmark-name {
    font-size: 1.125rem;
  }

  .culture-grid {
    gap: 2rem;
  }

  .culture-image {
    aspect-ratio: 16/9;
    border-radius: 6px;
  }

  .culture-items {
    gap: 1.5rem;
  }

  .culture-item {
    padding-left: 1.25rem;
  }

  .culture-item h3 {
    font-size: 1.125rem;
  }

  .culture-item p {
    font-size: 0.875rem;
  }

  .travel-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .travel-card {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: left;
  }

  .travel-card-text {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .travel-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .travel-icon svg {
    width: 20px;
    height: 20px;
  }

  .travel-card h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }

  .travel-card p {
    font-size: 0.8125rem;
  }

  .footer {
    padding: 2.5rem 1.25rem;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .footer p {
    font-size: 0.8125rem;
  }
}
