/* ═══════════════════════════════════════════════════════
   TAO LIN HERITAGE — Refined Chinese Modern Storefront

   Aesthetic: Tang Dynasty luxury meets Zen minimalism
   Typography: Cormorant Garamond + Noto Serif SC
   Palette: Warm ivory, vermillion red, ink black
   Motion: Scroll-reveal, ink-wash transitions
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  --ivory: #FAF8F4;
  --parchment: #F0EDE6;
  --ink: #1C1917;
  --ink-light: #44403C;
  --ink-faded: #A8A29E;
  --vermillion: #B91C1C;
  --vermillion-deep: #991B1B;
  --jade-mist: #D1E0D1;
  --jade: #4D7C5A;
  --gold-thread: #C8A96E;
  --silk: #E7E2DA;
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.04);
  --shadow-md: 0 8px 30px rgba(28,25,23,0.06);
  --shadow-lg: 0 20px 60px rgba(28,25,23,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--vermillion);
  color: white;
}

/* ═══ ANNOUNCEMENT BAR ═══ */
.announcement-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 11px 20px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmer 8s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ═══ NAVIGATION ═══ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 70px;
  border-bottom: 1px solid rgba(28,25,23,0.06);
  position: sticky;
  top: 0;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  z-index: 100;
  transition: padding 0.4s ease;
}

.nav-left, .nav-right {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--vermillion);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover { color: var(--vermillion); }
.nav-link:hover::after { width: 100%; }

.nav-center { text-align: center; }

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.logo-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 10px;
  color: var(--ink-faded);
  letter-spacing: 6px;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 8px;
}

.logo-sub {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  color: var(--ink-faded);
  letter-spacing: 7px;
  font-weight: 400;
}

.nav-icon {
  text-decoration: none;
  font-size: 18px;
  color: var(--ink);
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.nav-icon:hover {
  opacity: 0.5;
  transform: translateY(-1px);
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-block;
  background: var(--vermillion);
  color: #fff;
  padding: 15px 44px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--vermillion-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185,28,28,0.25);
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 13px 38px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  transition: all 0.4s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ═══ HERO — Jade Branch Product Shot ═══ */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 90px;
  overflow: hidden;
  background: url('hero-jade.png') center center / cover no-repeat;
}

/* Soft overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,243,239,0.7) 0%, rgba(245,243,239,0.3) 40%, transparent 70%);
  z-index: 0;
}

/* Bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--ivory), transparent);
  z-index: 0;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: var(--ink-faded);
  letter-spacing: 8px;
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  animation: brushStroke 1s ease-out 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -1px;
  opacity: 0;
  animation: brushStroke 1.2s ease-out 0.5s forwards;
}

.hero-tags {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  opacity: 0;
  animation: brushStroke 1s ease-out 0.8s forwards;
}

.tag {
  padding: 9px 22px;
  border: 1px solid rgba(28,25,23,0.15);
  border-radius: 0;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--ink-light);
  background: rgba(250,248,244,0.5);
  backdrop-filter: blur(4px);
}

.hero .btn-primary {
  opacity: 0;
  animation: brushStroke 1s ease-out 1.1s forwards;
}

@keyframes brushStroke {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ═══ QUOTE — Scroll Banner ═══ */
.quote-section {
  background: var(--silk);
  padding: 90px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '道';
  position: absolute;
  font-family: 'Noto Serif SC', serif;
  font-size: 300px;
  color: rgba(28,25,23,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  color: var(--ink-faded);
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto;
  font-style: italic;
  position: relative;
}

/* ═══ SECTION TITLES ═══ */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 300;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink-faded);
  margin-bottom: 56px;
  font-weight: 300;
  font-style: italic;
}

/* ═══ TRILOGY ═══ */
.trilogy-section {
  padding: 110px 70px;
  background: var(--ivory);
}

.trilogy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 70px;
}

.book-card {
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-card:hover {
  transform: translateY(-8px);
}

.book-image-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 2/3;
  background: var(--silk);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.5s ease;
}

.book-card:hover .book-image-wrap {
  box-shadow: var(--shadow-lg);
}

.book-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,25,23,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(2px);
}

.book-image-wrap:hover img { transform: scale(1.06); }
.book-image-wrap:hover .book-overlay { opacity: 1; }

.book-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-faded);
  letter-spacing: 6px;
  display: block;
  margin-bottom: 8px;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.book-subtitle {
  font-size: 14px;
  color: var(--ink-faded);
  font-weight: 300;
  margin-bottom: 10px;
  font-style: italic;
}

.book-price {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ═══ BUNDLE CTA ═══ */
.bundle-cta {
  background: var(--ink);
  color: var(--ivory);
  padding: 70px 60px;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(28,25,23,0.65), rgba(28,25,23,0.75)), url('trilogy-banner.png');
  background-size: cover;
  background-position: center;
}

.bundle-cta::before {
  content: '心身靈';
  position: absolute;
  font-family: 'Noto Serif SC', serif;
  font-size: 200px;
  color: rgba(255,255,255,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 30px;
  white-space: nowrap;
}

.bundle-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 8px;
  display: block;
  margin-bottom: 16px;
}

.bundle-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.bundle-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  font-weight: 300;
  font-style: italic;
}

.bundle-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.bundle-price {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 2px;
}

.bundle-original {
  font-size: 18px;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
}

.bundle-save {
  background: var(--vermillion);
  color: #fff;
  padding: 5px 16px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.bundle-cta .btn-primary {
  background: var(--vermillion);
  border: none;
}

/* ═══ COLLECTIONS ═══ */
.collections-section {
  padding: 110px 70px;
  background: var(--ivory);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.collection-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
}

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

.collection-image {
  padding: 65px 40px;
  text-align: center;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
}

.collection-card:hover .collection-image {
  box-shadow: var(--shadow-lg);
}

.collection-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  color: rgba(28,25,23,0.25);
  letter-spacing: 8px;
}

.collection-image h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}

.collection-image p {
  font-size: 14px;
  color: var(--ink-faded);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 8px;
}

/* ═══ ABOUT ═══ */
.about-section {
  padding: 110px 70px;
  background: var(--silk);
  position: relative;
}

.about-section::before {
  content: '禪';
  position: absolute;
  font-family: 'Noto Serif SC', serif;
  font-size: 400px;
  color: rgba(28,25,23,0.015);
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(28,25,23,0.08);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.95);
  transition: transform 0.8s ease;
}

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

.about-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 13px;
  color: var(--ink-faded);
  letter-spacing: 8px;
  display: block;
  margin-bottom: 14px;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.about-divider {
  width: 50px;
  height: 2px;
  background: var(--vermillion);
  margin-bottom: 28px;
}

.about-text {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 16px;
  font-weight: 300;
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink-faded);
  margin-top: 24px;
  font-weight: 300;
}

/* ═══ TEACHINGS ═══ */
.teaching-section {
  padding: 110px 70px;
  background: var(--ivory);
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1100px;
  margin: 56px auto 0;
}

.teaching-card {
  padding: 44px 34px;
  border: 1px solid rgba(28,25,23,0.06);
  background: var(--ivory);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.teaching-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--vermillion);
  transition: height 0.5s ease;
}

.teaching-card:hover {
  border-color: rgba(28,25,23,0.12);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.teaching-card:hover::before { height: 100%; }

.teaching-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 40px;
  color: rgba(28,25,23,0.06);
  display: block;
  margin-bottom: 18px;
  transition: color 0.4s ease;
}

.teaching-card:hover .teaching-number {
  color: rgba(185,28,28,0.15);
}

.teaching-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

.teaching-card p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-faded);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 18px;
}

.teaching-link {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--vermillion);
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 500;
  transition: opacity 0.3s, letter-spacing 0.3s;
  text-transform: uppercase;
}

.teaching-link:hover {
  opacity: 0.7;
  letter-spacing: 3px;
}

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ink);
  color: rgba(250,248,244,0.6);
  padding: 90px 70px 34px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-thread), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 70px;
}

.footer-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: rgba(250,248,244,0.15);
  letter-spacing: 6px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(250,248,244,0.35);
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(250,248,244,0.8);
  letter-spacing: 3px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: rgba(250,248,244,0.45);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 13px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
  color: rgba(250,248,244,0.9);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(250,248,244,0.06);
  padding-top: 26px;
  text-align: center;
  font-size: 12px;
  color: rgba(250,248,244,0.2);
  letter-spacing: 1px;
}

/* ═══ SCROLL ANIMATIONS ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .nav { padding: 18px 30px; }
  .hero { padding: 0 40px; }
  .trilogy-section, .collections-section, .teaching-section { padding: 80px 30px; }
}

@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-left { display: none; }
  .hero { padding: 0 28px; height: 75vh; }
  .hero-title { font-size: 38px; }
  .hero-tags { flex-wrap: wrap; }
  .trilogy-grid, .collections-grid, .teaching-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .trilogy-section, .collections-section, .teaching-section, .about-section { padding: 60px 20px; }
  .quote-section { padding: 50px 20px; }
  .bundle-cta { padding: 40px 24px; }
  .bundle-price { font-size: 28px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .nav-right { gap: 20px; }
}
