/* ===========================
   Slow Coffee 慢．烘焙
   =========================== */

:root {
  --bg: #f5ede0;
  --bg-warm: #ebe0cd;
  --espresso: #2a1810;
  --coffee: #5c3a21;
  --rust: #b85429;
  --sage: #6e7d4a;
  --cream: #faf6ee;
  --text: #2a1810;
  --text-mid: #5c4838;
  --text-soft: #8a7560;
  --border: rgba(42, 24, 16, 0.12);
  --serif: 'Fraunces', 'Noto Serif TC', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans TC', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  transition: all 0.4s var(--ease);
  color: var(--cream);
}
.nav.scrolled {
  background: rgba(245, 237, 224, 0.96);
  backdrop-filter: blur(20px);
  padding: 16px 40px;
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo svg { color: currentColor; }
.logo div { line-height: 1.2; }
.logo strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.8;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s;
}
.nav.scrolled .nav-cta { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.nav-cta:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--espresso);
}
.hero-bg {
  position: absolute;
  inset: 0;
  animation: heroZoom 30s ease-out forwards;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroZoom {
  from { transform: scale(1.2); }
  to { transform: scale(1.05); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,24,16,0.45) 0%, rgba(42,24,16,0.2) 40%, rgba(42,24,16,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 120px;
  color: var(--cream);
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 28px;
  text-transform: uppercase;
  opacity: 0;
  animation: slideUp 1s 0.2s var(--ease) forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 144;
}
.hero-title span {
  display: block;
  opacity: 0;
  animation: slideUp 1.2s var(--ease) forwards;
}
.hero-title span:nth-child(1) { animation-delay: 0.4s; }
.hero-title span:nth-child(2) { animation-delay: 0.6s; color: var(--rust); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 16px;
  letter-spacing: 0.1em;
  opacity: 0;
  margin-bottom: 48px;
  animation: slideUp 1s 0.8s var(--ease) forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 1s 1s var(--ease) forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-cream {
  background: var(--cream);
  color: var(--espresso);
  border: 1px solid var(--cream);
}
.btn-cream:hover { background: var(--rust); color: var(--cream); border-color: var(--rust); }
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn-dark {
  background: var(--espresso);
  color: var(--cream);
  border: 1px solid var(--espresso);
}
.btn-dark:hover { background: var(--rust); border-color: var(--rust); }

/* ============ HIGHLIGHTS ============ */
.highlights {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}
.hl-item {
  text-align: center;
}
.hl-item svg {
  color: var(--rust);
  margin: 0 auto 20px;
}
.hl-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 10px;
}
.hl-item p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ============ SECTION HEAD ============ */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
  font-variation-settings: 'opsz' 144;
}
.section-title em { font-style: italic; color: var(--rust); }
.section-desc {
  font-size: 15px;
  color: var(--text-soft);
  margin-top: 16px;
}
.section-head { margin-bottom: 64px; }
.section-head.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ============ STORY ============ */
.story {
  padding: 140px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.story-body {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-top: 24px;
}
.story-sign {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--espresso);
}
.story-sign small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-weight: 500;
}
.story-images {
  position: relative;
  height: 600px;
}
.story-img {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(42,24,16,0.2);
}
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-img.main {
  width: 80%;
  height: 80%;
  top: 0;
  right: 0;
}
.story-img.sub {
  width: 50%;
  height: 50%;
  bottom: 0;
  left: 0;
  border: 8px solid var(--bg);
}

/* ============ MENU ============ */
.menu {
  padding: 140px 0;
  background: var(--bg-warm);
}
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.tab {
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  background: transparent;
  transition: all 0.3s;
}
.tab:hover { color: var(--espresso); border-color: var(--espresso); }
.tab.active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.menu-list {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}
.menu-list:not(.active) { display: none; }
.menu-list.active { display: grid; }
.menu-item {
  padding: 24px 0;
  border-bottom: 1px dashed var(--border);
}
.item-info h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--espresso);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.dotted {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  margin-bottom: 6px;
}
.item-price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--rust);
  font-weight: 500;
  font-style: italic;
}
.item-info p {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============ BEANS ============ */
.beans {
  padding: 140px 0;
}
.beans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.bean-card {
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(42,24,16,0.06);
  transition: transform 0.5s var(--ease);
}
.bean-card:hover { transform: translateY(-8px); }
.bean-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.bean-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bean-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
}
.bean-body {
  padding: 28px 24px 24px;
}
.bean-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 12px;
}
.origin {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.flavor {
  font-size: 13px;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
}
.bean-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.weight {
  font-size: 12px;
  color: var(--text-soft);
}
.bean-price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--rust);
  font-weight: 500;
  font-style: italic;
}

/* ============ VISIT ============ */
.visit {
  padding: 140px 0;
  background: var(--espresso);
  color: var(--cream);
}
.visit .section-eyebrow { color: var(--rust); }
.visit .section-title { color: var(--cream); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.visit-desc {
  color: rgba(250,246,238,0.7);
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 48px;
}
.visit-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.info-block h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.info-block p {
  font-size: 14px;
  color: rgba(250,246,238,0.85);
  line-height: 1.7;
}
.visit-cta .btn-dark {
  background: var(--rust);
  border-color: var(--rust);
}
.visit-cta .btn-dark:hover {
  background: var(--cream);
  color: var(--espresso);
  border-color: var(--cream);
}
.visit-image {
  height: 600px;
  border-radius: 6px;
  overflow: hidden;
}
.visit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 140px 0;
  background: var(--cream);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testi-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.testi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(90, 52, 20, 0.1);
}
.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.testi-stars svg {
  width: 18px;
  height: 18px;
  color: #f5b942;
}
.testi-card blockquote {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--espresso);
  margin-bottom: 24px;
}
.testi-order {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.testi-order strong {
  color: var(--espresso);
  font-weight: 600;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-author strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2px;
}
.testi-author small {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

/* ============ FOOTER ============ */
.footer {
  background: #1a0e08;
  color: var(--cream);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-brand strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.footer-brand span {
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.6;
}
.footer-copy {
  font-size: 12px;
  opacity: 0.5;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--rust);
  border-color: var(--rust);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MOBILE NAV / HAMBURGER ============ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 1px solid rgba(250, 246, 238, 0.3);
  border-radius: 50%;
  z-index: 1001;
  transition: all 0.4s var(--ease);
}
.nav.scrolled .nav-toggle { border-color: var(--border); }
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: all 0.4s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--espresso); }
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .nav-toggle { border-color: rgba(250, 246, 238, 0.3) !important; }
body.menu-open .nav-toggle span { background: var(--cream) !important; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--espresso);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu-inner {
  min-height: 100%;
  padding: 110px 32px 60px;
  display: flex;
  flex-direction: column;
}
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid rgba(250, 246, 238, 0.15); }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid rgba(250, 246, 238, 0.15);
  font-family: var(--serif);
  font-size: 32px;
  color: var(--cream);
  transition: padding 0.3s var(--ease), color 0.3s;
}
.mobile-nav a span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rust);
}
.mobile-nav a:hover { padding-left: 12px; color: var(--rust); }
.mobile-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--rust);
  color: var(--cream);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 4px;
}
.mobile-foot {
  margin-top: auto;
  padding-top: 60px;
  font-size: 12px;
  color: rgba(250, 246, 238, 0.5);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 22px 32px; }
  .hero-title { font-size: clamp(56px, 9vw, 96px); }
  .highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
  .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .story-images { height: 500px; }
  .menu-list.active { grid-template-columns: 1fr; gap: 0; }
  .beans-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .visit-grid { grid-template-columns: 1fr; gap: 60px; }
  .visit-info { grid-template-columns: 1fr; }
  .visit-image { height: 400px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { padding: 16px 24px; }
  .container { padding: 0 24px; }
  .hero { min-height: 100vh; }
  .hero-content { padding-bottom: 110px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-title { font-size: clamp(46px, 12vw, 72px); line-height: 1.05; }
  .hero-sub { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { padding: 14px 22px; font-size: 12px; }

  .highlights, .story, .menu, .beans, .testimonials, .visit { padding: 80px 0; }
  .testi-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-eyebrow { font-size: 11px; }
  .section-title { font-size: clamp(36px, 9vw, 56px); }

  .highlight-grid { grid-template-columns: 1fr; gap: 50px; }
  .menu-tabs { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .tab { padding: 12px 22px; font-size: 12px; }

  .story-images { height: 400px; }
  .visit-image { height: 320px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 24px; padding: 40px 0; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(42px, 13vw, 56px); }
  .mobile-nav a { font-size: 26px; padding: 22px 0; }
  .mobile-menu-inner { padding: 100px 24px 50px; }
}
