@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@200;300;400&display=swap');

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

body {
  background: #0d0a08;
  color: #e8dcc8;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* ─── NOISE ─── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  mix-blend-mode: overlay;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  background: linear-gradient(to bottom, rgba(13,10,8,0.9) 0%, transparent 100%);
  transition: background 0.4s;
}
.nav.scrolled {
  background: rgba(13,10,8,0.95);
  padding: 18px 56px;
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a96e;
  z-index: 10000;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b0a090;
  text-decoration: none;
  transition: color 0.4s;
}
.nav-links a:hover, .nav-links a.active { color: #c9a96e; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
}
.hamburger {
  display: block;
  width: 24px;
  height: 1px;
  background: #c9a96e;
  position: relative;
  transition: background 0.3s;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 1px;
  background: #c9a96e;
  left: 0;
  transition: transform 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-active .hamburger { background: transparent; }
.nav-active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.nav-active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d0a08;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(100,30,20,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 75% 40%, rgba(180,140,60,0.08) 0%, transparent 60%),
    rgba(13,10,8,0.5); /* Overlay to keep text readable */
}
.hero-line {
  position: absolute;
  left: 56px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(201,169,110,0.3) 30%, rgba(201,169,110,0.3) 70%, transparent 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
}
.hero-eyebrow {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 300;
  line-height: 0.85;
  color: #f0e8d8;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
  text-align: left;
  transform: translateX(-4vw);
}
.hero-title em {
  display: block;
  font-style: italic;
  color: #c9a96e;
  text-align: right;
  transform: translateX(8vw);
  text-shadow: 0 10px 40px rgba(201,169,110,0.3);
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: #8a7a68;
  margin-top: 20px;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.8s forwards;
}
.hero-cta {
  margin-top: 56px;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(201,169,110,0.4);
  color: #c9a96e;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 18px 48px;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  background: linear-gradient(120deg, transparent 0%, rgba(201,169,110,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  position: relative;
  overflow: hidden;
}
.btn-outline::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), transparent);
  transition: left 0.6s;
  z-index: -1;
}
.btn-outline:hover::after {
  left: 100%;
}
.btn-outline:hover {
  background-position: 100% 0;
  border-color: #c9a96e;
  color: #fff;
  box-shadow: 0 10px 30px rgba(201,169,110,0.2);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.scroll-text {
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #5a4f44;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── FEATURED WINES ─── */
.section-wines {
  padding: 200px 0;
  background: #0d0a08;
}
.section-header {
  text-align: center;
  margin-bottom: 120px;
  padding: 0 40px;
}
.section-tag {
  font-size: 8px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: #e8dcc8;
  line-height: 1.1;
}
.section-title em { font-style: italic; color: #c9a96e; }

.wines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  perspective: 1200px;
}
.wine-card {
  position: relative;
  aspect-ratio: 2/3;
  cursor: pointer;
}

.wine-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #110e0c;
}
.wine-card-bg-1 .wine-card-inner {
  background: radial-gradient(ellipse at 50% 30%, rgba(90,20,20,0.5) 0%, #0d0a08 70%);
}
.wine-card-bg-2 .wine-card-inner {
  background: radial-gradient(ellipse at 50% 30%, rgba(20,50,30,0.5) 0%, #0a0d0a 70%);
}
.wine-card-bg-3 .wine-card-inner {
  background: radial-gradient(ellipse at 50% 30%, rgba(60,50,20,0.5) 0%, #0d0c08 70%);
}

.wine-card-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(40px);
  pointer-events: none;
}
.glass-glare {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: color-dodge;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}
.bottle-svg {
  width: 80px;
  opacity: 0.85;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.9));
  transform: translateZ(20px);
  transition: transform 0.3s ease;
}

.wine-card:hover .wine-card-inner {
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(201,169,110,0.1);
}
.wine-card:hover .bottle-svg {
  transform: translateZ(30px) scale(1.05);
}

.wine-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,8,0.95) 0%, rgba(13,10,8,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 32px;
  transform: translateZ(30px);
  pointer-events: none;
}
.wine-year {
  font-size: 9px;
  letter-spacing: 4px;
  color: #c9a96e;
  margin-bottom: 8px;
}
.wine-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #f0e8d8;
  line-height: 1.1;
  margin-bottom: 6px;
}
.wine-name em { font-style: italic; }
.wine-region {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6a5f52;
}
.wine-price {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #c9a96e;
}

/* ─── QUOTE ─── */
.section-quote {
  padding: 240px 56px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(201,169,110,0.1);
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  line-height: 0.5;
  color: rgba(201,169,110,0.2);
  margin-bottom: 32px;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: #c8bca8;
}
.quote-attr {
  margin-top: 32px;
  font-size: 8px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
}

/* ─── HERITAGE ─── */
.section-heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
  padding: 100px 0;
}
.heritage-visual {
  background:
    radial-gradient(ellipse 80% 80% at 40% 50%, rgba(80,20,10,0.6) 0%, #0d0a08 80%),
    #100c09;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heritage-circle {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.heritage-circle::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 50%;
}
.heritage-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: #c9a96e;
  opacity: 0.4;
}
.heritage-text {
  background: #0f0c09;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.heritage-tag {
  font-size: 8px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 28px;
}
.heritage-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: #e8dcc8;
  line-height: 1.1;
  margin-bottom: 28px;
}
.heritage-title em { font-style: italic; }
.heritage-body {
  font-size: 13px;
  font-weight: 200;
  line-height: 2;
  color: #6a5f52;
  max-width: 420px;
}
.heritage-divider {
  width: 40px;
  height: 1px;
  background: rgba(201,169,110,0.4);
  margin: 32px 0;
}
.heritage-stat {
  display: flex;
  gap: 48px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: #c9a96e;
  line-height: 1;
}
.stat-label {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5a4f44;
  margin-top: 6px;
}

/* ─── FOOTER ─── */
.footer {
  background: #080605;
  padding: 80px 56px 40px;
  border-top: 1px solid rgba(201,169,110,0.1);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: #c9a96e;
  letter-spacing: 8px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 9px;
  letter-spacing: 4px;
  color: #3a3028;
  text-transform: uppercase;
}
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 2px;
  color: #2a2520;
  text-transform: uppercase;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ─── PREMIUM GLOBAL IMAGE STYLING ─── */
.premium-img-container {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.8),
    0 0 20px rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.15);
}

.premium-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* 加重琥珀感與對比度 */
  filter: brightness(0.7) contrast(1.25) sepia(0.45) saturate(1.1);
  transition: transform 1.2s cubic-bezier(0.2, 0, 0.2, 1), filter 0.8s ease;
}

/* 強化的邊緣陰影 (Vignette) 與琥珀濾鏡疊加 */
.premium-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 琥珀色深度疊加層 */
.premium-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,169,110,0.1); /* 琥珀金色調 */
  mix-blend-mode: overlay;
  z-index: 3;
  pointer-events: none;
}

/* 內縮金邊 */
.premium-img-inner-border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201,169,110,0.2);
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
}

.premium-img-container:hover img {
  transform: scale(1.08);
  filter: brightness(0.85) contrast(1.3) sepia(0.3) saturate(1.2);
}


/* ─── RESPONSIVE ─── */
/* ─── LANG SWITCHER ─── */
.lang-switcher {
  display: flex;
  gap: 12px;
  margin-left: 40px;
  padding-left: 24px;
  border-left: 1px solid rgba(201,169,110,0.2);
}
.lang-btn {
  background: transparent;
  border: none;
  color: #5a4f44;
  font-size: 9px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.3s;
  text-transform: uppercase;
  padding: 4px 0;
}
.lang-btn:hover { color: #b0a090; }
.lang-btn.active { color: #c9a96e; }

@media (max-width: 768px) {
  .nav { padding: 24px; }
  .nav.scrolled { padding: 16px 24px; }
  
  .nav-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 強制全螢幕高度 */
    background: rgba(10, 8, 6, 0.9); /* 加深一點不透明度 */
    backdrop-filter: blur(25px); /* 加強模糊感 */
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    z-index: 9999; /* 確保在最頂層 */
  }
  .nav-active .nav-links {
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    font-size: 18px;
    letter-spacing: 6px;
    font-family: 'Cormorant Garamond', serif;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .nav-active .lang-switcher {
    display: flex;
  }
  .nav:not(.nav-active) .lang-switcher {
    display: none;
  }

  .wines-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 40px; }
  .section-heritage { grid-template-columns: 1fr; }
  .heritage-visual { min-height: 40vh; }
  .heritage-text { padding: 60px 24px; }
  .section-quote { padding: 100px 24px; }
  
  /* 修復手機版大標題重疊 */
  .section-title { font-size: 42px !important; }
  .page-header { padding: 140px 24px 60px; }
  .heritage-title { font-size: 36px !important; }
}

/* ─── LEGAL WARNING ─── */
.legal-warning {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 4px;
  z-index: 2000;
  font-weight: 400;
  text-transform: uppercase;
  border-top: 1px solid rgba(201,169,110,0.3);
}
.legal-warning span {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}
body { padding-bottom: 50px; } /* Space for warning bar */

/* ─── PAGE HEADER (For subpages) ─── */
.page-header {
  padding: 180px 56px 80px;
  text-align: center;
  background: linear-gradient(to bottom, #15100d 0%, #0d0a08 100%);
}
