/* ===========================================================
   CAFFEINE — STYLES
   -----------------------------------------------------------
   Colors, fonts and spacing all live as CSS variables at the
   top of this file. To change the accent color site-wide,
   just edit --accent below (a few options are suggested).
   =========================================================== */

:root {
  --paper: #f2e6d0;
  --paper-card: #fbf3e4;
  --paper-card-2: #e8d8ba;
  --ink: #241a12;
  --ink-soft: #59493a;
  --ink-softer: #6b5a48;
  --gold: #8a6b3e;

  /* --accent options: #b5502e (rust), #5b6b45 (olive), #8a6b3e (amber), #7a4a8f (plum) */
  --accent: #5b6b45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.logo-link img { width: 36px; height: 36px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- HERO ---------- */
.hero { max-width: 1320px; margin: 0 auto; padding: 56px 24px 40px; }
.hero-topline {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 8px 0; margin-bottom: 28px; flex-wrap: wrap; gap: 6px;
}
.hero-center { text-align: center; }
.hero-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.hero-logo img { width: 84px; height: 84px; object-fit: contain; }
.eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hero-title {
  font-family: 'Newsreader', serif; font-weight: 600; font-style: italic;
  font-size: clamp(48px, 11vw, 128px); line-height: 0.95; margin: 0; letter-spacing: -0.01em;
}
.hero-tagline-fr { font-family: 'Newsreader', serif; font-size: clamp(16px, 2.4vw, 22px); font-style: italic; color: var(--ink-soft); margin-top: 14px; }
.hero-tagline-en { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.hero-ctas { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { font-family: 'Space Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 13px 26px; text-decoration: none; border-radius: 2px; display: inline-block; }
.btn-primary { background: var(--accent); color: var(--paper-card); box-shadow: 3px 3px 0 var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }

/* ---------- INTRO ---------- */
.intro {
  max-width: 880px; margin: 0 auto; padding: 20px 24px 60px;
  border-top: 1px solid rgba(36,26,18,0.25); border-bottom: 1px solid rgba(36,26,18,0.25);
}
.intro-columns { columns: 2; column-gap: 36px; font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.6; color: #3a2c1f; padding-top: 26px; }
.intro-columns p { margin: 0 0 14px; }
.intro-columns .drop-cap { font-family: 'Newsreader', serif; font-weight: 700; font-size: 44px; float: left; line-height: 0.8; margin: 2px 8px 0 0; }
.intro-en { font-size: 13px; color: var(--gold); margin-top: 14px; font-style: italic; }

/* ---------- MENU ---------- */
.menu-section { max-width: 1320px; margin: 0 auto; padding: 56px 0 20px; }
.menu-header { text-align: center; padding: 0 24px; }
.menu-header h2 { font-family: 'Newsreader', serif; font-weight: 600; font-style: italic; font-size: clamp(36px, 6vw, 56px); margin: 6px 0 8px; }
.menu-subtitle { font-size: 14px; color: var(--ink-soft); }

.quick-jump {
  display: flex; gap: 12px; overflow-x: auto; padding: 30px 24px 18px;
  border-bottom: 1px dashed rgba(36,26,18,0.35);
  scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper);
}
.chip {
  flex-shrink: 0; font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; background: var(--paper-card); border: 1.5px solid var(--ink); color: var(--ink);
  padding: 9px 18px; border-radius: 22px; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--accent); color: var(--paper-card); border-color: var(--accent); }

.category { padding: 34px 24px 8px; }
.category-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px;
}
.category-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.category-title { font-family: 'Newsreader', serif; font-weight: 600; font-style: italic; font-size: clamp(24px, 3.4vw, 32px); margin: 0; }
.category-title-en { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; }
.category-nav-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.nav-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); font-size: 16px; cursor: pointer; line-height: 1;
}
.nav-btn.next { background: var(--ink); color: var(--paper); }

.scroll-row {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 4px 22px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper);
}

.card {
  scroll-snap-align: start; flex: 0 0 auto; min-width: 270px; max-width: 300px;
  background: var(--paper-card); border: 1px solid rgba(36,26,18,0.5); border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(36,26,18,0.18); display: flex; flex-direction: column;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 5px 6px 0 rgba(36,26,18,0.22); }
.card-photo {
  position: relative; height: 190px; background: linear-gradient(135deg, var(--paper-card-2), #ddc9a3);
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(36,26,18,0.35);
  overflow: hidden;
}
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cup-emoji { font-size: 60px; opacity: 0.55; filter: sepia(0.3); }
.ribbon {
  position: absolute; top: 12px; right: -26px; background: var(--accent); color: var(--paper-card);
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 34px; transform: rotate(28deg); box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.heart-btn {
  position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.88); display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; z-index: 2; color: rgba(36,26,18,0.35);
}
.heart-btn.liked { color: #c1502e; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-family: 'Newsreader', serif; font-weight: 600; font-size: 20px; line-height: 1.25; }
.card-desc { font-size: 13px; color: var(--ink-softer); line-height: 1.45; flex: 1; }
.card-price { margin-top: auto; padding-top: 8px; font-family: 'Space Mono', monospace; font-size: 16px; font-weight: 700; color: var(--accent); }

/* ---------- REVIEWS ---------- */
.reviews-section { max-width: 1320px; margin: 60px auto 0; padding: 40px 24px; border-top: 2px solid var(--ink); }
.reviews-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.reviews-header h2 { font-family: 'Newsreader', serif; font-weight: 600; font-style: italic; font-size: clamp(30px, 5vw, 44px); margin: 6px 0 0; }
.rating-badge { text-align: right; font-family: 'Newsreader', serif; }
.rating-number { font-size: 44px; font-weight: 700; line-height: 1; }
.rating-number span { font-size: 20px; color: var(--accent); }
.rating-sub { font-size: 12px; color: var(--ink-soft); }

.marquee-wrap { position: relative; overflow: hidden; margin-top: 6px; }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marqueeScroll 38s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.fade-edge { position: absolute; top: 0; bottom: 0; width: 90px; pointer-events: none; }
.fade-edge.left { left: 0; background: linear-gradient(to right, var(--paper), rgba(242,230,208,0)); }
.fade-edge.right { right: 0; background: linear-gradient(to left, var(--paper), rgba(242,230,208,0)); }

.review-card {
  flex: 0 0 auto; width: 320px; background: linear-gradient(180deg, rgba(251,243,228,0.95), rgba(232,216,186,0.6));
  border: 1px solid rgba(36,26,18,0.15); border-top: 3px solid var(--accent); border-radius: 8px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--paper-card);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-stars { color: var(--accent); font-size: 11px; letter-spacing: 1px; }
.review-text { font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; line-height: 1.55; color: #3a2c1f; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- LOCATION ---------- */
.location-section { max-width: 1320px; margin: 20px auto 0; padding: 40px 24px 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.location-col { border-top: 2px solid var(--ink); padding-top: 22px; }
.section-eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.section-title { font-family: 'Newsreader', serif; font-weight: 600; font-style: italic; font-size: clamp(28px, 4.5vw, 40px); margin: 6px 0 18px; }
.address-block { font-size: 15px; line-height: 1.7; color: #3a2c1f; }
.address-block .hours-note { margin-top: 4px; color: var(--ink-soft); font-style: italic; }
.reservation-note { margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(36,26,18,0.4); }
.reservation-note .title { font-family: 'Newsreader', serif; font-style: italic; font-size: 16px; }
.reservation-note .body { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-link {
  display: flex; align-items: center; justify-content: space-between; background: var(--paper-card);
  border: 1px solid var(--ink); padding: 16px 18px; border-radius: 2px; text-decoration: none;
  font-weight: 600;
}
.social-link span.arrow { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); }
.tag-note { margin-top: 20px; font-size: 13px; color: var(--gold); font-style: italic; }

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(36,26,18,0.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: var(--paper-card); width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.modal-photo {
  position: relative; height: 280px; background: linear-gradient(135deg, var(--paper-card-2), #ddc9a3);
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px 6px 0 0;
}
.modal-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-photo .cup-emoji { font-size: 96px; }
.modal-close, .modal-heart {
  position: absolute; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close { left: 14px; }
.modal-heart { right: 14px; color: rgba(36,26,18,0.35); }
.modal-heart.liked { color: #c1502e; }
.modal-body { padding: 28px 28px 32px; }
.modal-eyebrow { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.modal-name { font-family: 'Newsreader', serif; font-weight: 600; font-style: italic; font-size: 32px; margin-top: 8px; line-height: 1.15; }
.modal-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 12px; }
.modal-price { font-family: 'Space Mono', monospace; font-size: 24px; font-weight: 700; color: var(--accent); margin-top: 18px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 3px solid var(--accent); background: var(--ink); color: var(--paper); }
.footer-grid { max-width: 1320px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-logo-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--paper); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-badge img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-name { font-family: 'Newsreader', serif; font-style: italic; font-weight: 600; font-size: 24px; }
.footer-tagline { font-size: 13.5px; color: #c9b389; line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer-col-title { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--paper); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1320px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid rgba(242,230,208,0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #8a7358; text-transform: uppercase;
}
.footer-bottom .copyright { text-transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 14px; }
  .location-section { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .intro-columns { columns: 1; }
}

@media (max-width: 480px) {
  .nav-inner { flex-wrap: wrap; row-gap: 8px; justify-content: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 14px; font-size: 11px; }
}
