/* =========================================================================
   JBY CHAI COFFEE STUDIO — design tokens
   Palette pulled straight from the logo and printed menu: near-black
   espresso background, warm gold typography and linework, cream/brown
   accents from the badge, and a Playfair italic for the studio's own quote.
   ========================================================================= */
:root{
  --bg-black:      #120E0C;
  --bg-black-alt:  #1B1512;
  --card-bg:       #211A16;
  --card-border:   #34281E;

  --gold:          #D9A24B;
  --gold-light:    #F0C878;
  --gold-deep:     #B9822F;
  --cream:         #F4ECDD;
  --brown:         #6B4226;
  --brown-dark:    #3A2415;

  --text-light:    #F5F1EA;
  --text-muted:    #B8AA98;
  --text-faint:    #7C6C5C;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-quote:   'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', 'Segoe UI', sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-glow: 0 20px 50px -20px rgba(217,162,75,0.35);
  --shadow-soft: 0 14px 34px -18px rgba(0,0,0,0.6);
}

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

body{
  margin:0;
  background: var(--bg-black);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
::selection{ background: var(--gold); color: var(--bg-black); }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--gold); color:var(--bg-black);
  padding:.6rem 1rem; z-index:2000; border-radius:0 0 8px 0; font-weight:700;
}
.skip-link:focus{ left:0; }

/* subtle film-grain texture over the whole dark background */
.grain-overlay{
  position: fixed; inset:0; pointer-events:none; z-index: 1;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   TYPE HELPERS
   ========================================================================= */
.eyebrow{
  font-weight: 600; letter-spacing:.18em; text-transform:uppercase;
  font-size:.75rem; color: var(--gold); margin-bottom:.6rem;
}
.section-title{
  font-family: var(--font-display); font-weight:400; text-transform:uppercase;
  letter-spacing:.02em; color: var(--text-light);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 1.4rem;
}
.small-note{ color: var(--text-muted); font-size:.85rem; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-brew{
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--bg-black) !important;
  border: none; border-radius: 999px;
  padding:.75rem 1.7rem; font-weight:700; letter-spacing:.02em;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  position: relative;
}
.btn-brew:hover{ transform: translateY(-3px); box-shadow: var(--shadow-glow); filter: brightness(1.06); }
.btn-brew-outline{
  border: 2px solid var(--gold); color: var(--gold-light);
  border-radius: 999px; padding:.68rem 1.6rem; font-weight:700;
  display:inline-block; transition: all .2s ease;
}
.btn-brew-outline:hover{ background: var(--gold); color: var(--bg-black); transform: translateY(-3px); }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.custom-navbar{
  background: rgba(18,14,12,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding:.7rem 0; position: sticky; top:0; z-index: 1030;
}
.brand-mark{ display:flex; align-items:center; gap:.7rem; }
.brand-badge{ width:46px; height:46px; flex-shrink:0; display:block; }
.logo-badge-svg{ width:100%; height:100%; }
.badge-ring{ fill: var(--gold-deep); }
.badge-face{ fill: var(--cream); }
.badge-jby{ font-family: var(--font-display); font-size:11px; fill: var(--brown-dark); letter-spacing:1px; }
.badge-ccs{ font-family: var(--font-display); font-size:26px; fill: var(--brown-dark); }
.badge-cup path{ fill: var(--brown); }
.badge-cup-handle{ stroke: var(--brown); stroke-width:3; }
.badge-cup-base{ fill: var(--brown-dark); }
.badge-steam path{ stroke: var(--brown); stroke-width:2; opacity:.6; }
.badge-tagline{ font-size:6.5px; fill: var(--brown-dark); letter-spacing:1px; font-family: var(--font-body); font-weight:600; }

.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-jby{ font-family: var(--font-display); font-size:.7rem; letter-spacing:.2em; color: var(--gold); }
.brand-name{ font-family: var(--font-display); font-size:1.15rem; text-transform:uppercase; color: var(--text-light); letter-spacing:.01em; }

.custom-navbar .nav-link{ color: var(--text-muted); font-weight:600; padding:.5rem 1rem !important; transition: color .2s ease; }
.custom-navbar .nav-link:hover{ color: var(--gold-light); }
.navbar-toggler{ border-color: var(--card-border); }
.navbar-toggler-icon{ filter: invert(1); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero{ position:relative; padding: 4.5rem 0 3rem; overflow:hidden; }

.hero-glow{
  position:absolute; top:-20%; left:50%; transform: translateX(-50%);
  width: 900px; height:900px; border-radius:50%;
  background: radial-gradient(circle, rgba(217,162,75,0.18) 0%, rgba(217,162,75,0) 65%);
  pointer-events:none; z-index:0;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%,100%{ opacity:.75; transform: translateX(-50%) scale(1); }
  50%{ opacity:1; transform: translateX(-50%) scale(1.06); }
}

.floating-beans{ position:absolute; inset:0; pointer-events:none; z-index:0; }
.bean{
  position:absolute; width:14px; height:20px; border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--brown); opacity:.35;
  animation: floatBean 9s ease-in-out infinite;
}
.bean::after{ content:""; position:absolute; left:50%; top:10%; bottom:10%; width:1.5px; background: var(--bg-black-alt); transform: translateX(-50%); }
.b1{ top:12%; left:6%; animation-delay:0s; }
.b2{ top:70%; left:10%; animation-delay:1.5s; width:10px; height:14px; }
.b3{ top:20%; right:8%; animation-delay:.7s; }
.b4{ top:60%; right:14%; animation-delay:2.2s; width:11px; height:16px; }
.b5{ top:85%; left:40%; animation-delay:3s; width:9px; height:13px; }
.b6{ top:6%; right:35%; animation-delay:1.1s; width:12px; height:17px; }
@keyframes floatBean{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-22px) rotate(12deg); }
}

.hero .container{ position:relative; z-index:1; }
.hero-title{
  font-family: var(--font-display); text-transform:uppercase;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem); line-height:1.02; color: var(--text-light); margin:.4rem 0 0;
}
.hero-title-accent{ color: var(--gold); }
.hero-quote{
  font-family: var(--font-quote); font-style: italic; color: var(--gold-light);
  font-size: clamp(1.1rem, 2vw, 1.4rem); margin: .9rem 0 1rem;
}
.hero-copy{ max-width: 48ch; color: var(--text-muted); margin: 0 auto 1.7rem; }
.hero .col-lg-6.text-lg-start .hero-copy{ margin-left:0; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.7rem; justify-content:center; }
.hero .col-lg-6.text-lg-start .hero-actions{ justify-content:flex-start; }

.hero-art{ max-width: 420px; margin:0 auto; position:relative; z-index:1; }
.hero-cup-svg{ width:100%; height:auto; }
.hero-shadow{ fill: rgba(0,0,0,.5); }
.hero-saucer{ fill: var(--card-bg); stroke: var(--card-border); stroke-width:1; }
.hero-cup-body{ fill: var(--cream); }
.hero-cup-rim{ fill: #fff; }
.hero-coffee{ fill: var(--brown-dark); }
.hero-latte-art{ fill: var(--cream); opacity:.85; }
.hero-handle{ stroke: var(--cream); stroke-width: 14; }
.hero-bean{ fill: var(--brown); opacity:.5; }
.hero-steam path{ stroke: var(--gold-light); stroke-width:5; stroke-linecap:round; opacity:.55; fill:none; }
.steam-1{ animation: steamRise 3.4s ease-in-out infinite; }
.steam-2{ animation: steamRise 3.4s ease-in-out infinite .6s; }
.steam-3{ animation: steamRise 3.4s ease-in-out infinite 1.2s; }
@keyframes steamRise{
  0%{ opacity:0; transform: translateY(10px); }
  30%{ opacity:.6; }
  100%{ opacity:0; transform: translateY(-18px); }
}

/* =========================================================================
   TICKER
   ========================================================================= */
.ticker-strip{
  background: var(--gold); color: var(--bg-black);
  overflow:hidden; white-space:nowrap; padding:.7rem 0;
  font-weight:700; letter-spacing:.05em; font-size:.85rem; text-transform:uppercase;
}
.ticker-track{ display:inline-block; animation: tickerScroll 22s linear infinite; }
.ticker-track span{ margin: 0 .6rem; }
.ticker-track .dot{ opacity:.6; }
@keyframes tickerScroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* =========================================================================
   ABOUT / QUOTE
   ========================================================================= */
.about-band{ padding: 4.5rem 0 3.5rem; text-align:center; }
.about-copy{ color: var(--text-muted); max-width: 62ch; margin: 0 auto; }
.quote-frame{
  margin: 2.2rem auto 0; max-width: 480px;
  border: 1px solid var(--gold-deep); border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, rgba(217,162,75,0.06), transparent);
}
.quote-text{
  font-family: var(--font-quote); font-style: italic; font-size:1.3rem;
  color: var(--gold-light); margin:0;
}

/* =========================================================================
   MENU
   ========================================================================= */
.menu-section{ padding: 4.5rem 0; background: var(--bg-black-alt); border-top:1px solid var(--card-border); border-bottom:1px solid var(--card-border); }

.menu-tabs{
  display:flex; flex-wrap:wrap; justify-content:center; gap:.55rem;
  margin: 1.6rem 0 2.4rem; max-width: 920px; margin-left:auto; margin-right:auto;
}
.menu-tab{
  border: 1.5px solid var(--card-border); background: var(--card-bg); color: var(--text-muted);
  font-weight:600; font-size:.82rem; padding:.5rem 1.1rem; border-radius:999px;
  cursor:pointer; transition: all .18s ease;
}
.menu-tab:hover{ border-color: var(--gold-deep); color: var(--gold-light); }
.menu-tab.is-active{ background: var(--gold); border-color: var(--gold); color: var(--bg-black); }

.menu-panel{ max-width: 640px; margin:0 auto; text-align:center; }
.menu-panel-icon{ width:56px; height:56px; margin: 0 auto .6rem; }
.menu-panel-icon svg{ width:100%; height:100%; }
.menu-note{ color: var(--text-muted); font-style: italic; margin-bottom: 1.8rem; font-family: var(--font-quote); }

.menu-list{ list-style:none; margin:0; padding:0; text-align:left; }
.menu-item{
  display:flex; align-items:baseline; gap:.5rem; padding:.7rem 0;
  border-bottom: 1px dashed var(--card-border);
  animation: itemFadeIn .35s ease both;
}
.menu-item:last-child{ border-bottom:none; }
@keyframes itemFadeIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}
.item-name{ font-weight:600; color: var(--text-light); white-space:nowrap; }
.item-subtitle{ font-weight:400; font-style:italic; color: var(--text-faint); font-size:.85rem; }
.item-dots{ flex:1; border-bottom: 2px dotted var(--card-border); transform: translateY(-4px); }
.item-price{ font-weight:700; color: var(--gold-light); white-space:nowrap; }

.menu-loading, .menu-error{ text-align:center; color: var(--text-muted); padding:1rem 0; }
.menu-error{ color: #E38B7A; }
.menu-list.is-loading{ opacity:.3; transition: opacity .15s ease; }

/* generic menu icon coloring — used across all category icons */
.menu-icon .icon-fill{ fill: var(--gold-deep); }
.menu-icon .icon-cream{ fill: var(--cream); }
.menu-icon .icon-base{ fill: var(--card-border); }
.menu-icon .icon-line{ stroke: var(--gold-light); stroke-width:3; fill:none; }
.menu-icon .icon-heart{ fill: var(--cream); }
.menu-icon .icon-steam{ stroke: var(--gold-light); stroke-width:2.5; opacity:.7; }
.menu-icon .icon-fizz{ stroke: var(--gold-light); opacity:.6; }
.menu-icon .icon-leaf{ fill: #6E8B4C; }
.menu-icon .icon-stripe{ stroke: var(--bg-black-alt); opacity:.5; }
.menu-icon .icon-fry{ fill: var(--gold-light); }
.menu-icon .icon-rim{ fill: var(--gold-deep); }
.menu-icon .icon-noodle{ stroke: var(--gold-light); }
.menu-icon .icon-crumb{ fill: var(--gold-light); }
.menu-icon .icon-pleat{ stroke: var(--bg-black-alt); opacity:.4; }
.menu-icon .icon-bun{ fill: var(--gold-deep); }
.menu-icon .icon-lettuce{ fill: #6E8B4C; }
.menu-icon .icon-patty{ fill: var(--brown-dark); }
.menu-icon .icon-cheese{ fill: var(--gold-light); }
.menu-icon .icon-crust{ stroke: var(--bg-black-alt); opacity:.4; }

/* =========================================================================
   COMBO BUILDER / ORDER CHIT (signature interactive element)
   ========================================================================= */
.combo-section{ position:relative; padding: 4.8rem 0; overflow:hidden; }
.hero-glow--combo{ top:10%; width:700px; height:700px; }
.combo-section .container{ position:relative; z-index:1; }
.combo-intro{ color: var(--text-muted); max-width: 52ch; margin:0 auto 2.2rem; }

.combo-form{
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-soft);
}
.combo-label{ font-weight:700; color: var(--gold-light); margin-bottom:.4rem; display:block; font-size:.9rem; }
.combo-select{
  background: var(--bg-black-alt); color: var(--text-light);
  border: 1.5px solid var(--card-border); border-radius:10px; padding:.6rem .8rem;
}
.combo-select:focus{ border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(217,162,75,.25); background: var(--bg-black-alt); color: var(--text-light); }

.chit{
  background: var(--cream); color: var(--brown-dark);
  border-radius: 6px; padding: 1.8rem 1.6rem 1.6rem; position:relative;
  box-shadow: var(--shadow-glow);
  font-family: 'Courier New', monospace;
}
.chit::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:16px;
  background-image: radial-gradient(circle, var(--bg-black-alt) 6px, transparent 7px);
  background-size: 20px 20px; background-position: 0 -6px; background-repeat: repeat-x;
}
.chit-header{
  text-align:center; text-transform:uppercase; letter-spacing:.12em; font-weight:700;
  font-size:.85rem; border-bottom: 1px dashed var(--brown); padding-bottom:.8rem; margin-bottom:.9rem;
}
.chit-empty{ color: var(--brown); text-align:center; font-size:.88rem; font-style: italic; }
.chit-line{ display:flex; justify-content:space-between; font-size:.9rem; margin:.35rem 0; }
.chit-discount{ color: #7A4A1F; }
.chit-divider{ border:none; border-top: 1px dashed var(--brown); margin:.8rem 0; }
.chit-total{ display:flex; justify-content:space-between; font-weight:800; font-size:1.2rem; color: var(--brown-dark); }

/* =========================================================================
   GALLERY / DISH CARDS
   ========================================================================= */
.gallery-section{ padding: 4.5rem 0; }
.dish-card{
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.8rem; text-align:center; height:100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dish-card:hover{
  transform: translateY(-8px) rotate(-.6deg);
  box-shadow: var(--shadow-glow);
  border-color: var(--gold-deep);
}
.dish-card-icon{ width:64px; height:64px; margin: 0 auto 1rem; transition: transform .3s ease; }
.dish-card:hover .dish-card-icon{ transform: scale(1.12) rotate(4deg); }
.dish-card-title{ font-family: var(--font-display); text-transform:uppercase; font-size:1.1rem; color: var(--gold-light); letter-spacing:.01em; margin-bottom:.5rem; }
.dish-card-desc{ color: var(--text-muted); font-size:.92rem; margin:0; }
.gallery-note{ color: var(--text-faint); font-size:.82rem; margin-top: 2.4rem; }
.gallery-note code{ color: var(--gold); background: var(--card-bg); padding:.1rem .4rem; border-radius:4px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{ background: var(--bg-black-alt); border-top: 1px solid var(--card-border); }
.footer-brand{ margin-bottom: 1rem; }
.footer-quote{ font-family: var(--font-quote); font-style: italic; color: var(--gold-light); font-size:1.05rem; }
.footer-heading{ font-family: var(--font-display); text-transform:uppercase; font-size:1.1rem; color: var(--text-light); margin-bottom:.8rem; letter-spacing:.02em; }
.site-footer a{ color: var(--gold-light); }
.site-footer a:hover{ color: var(--gold); }
.footer-note{ color: var(--text-muted); font-size:.92rem; }

.newsletter-form{ display:flex; gap:.5rem; margin-top:.8rem; flex-wrap:wrap; }
.newsletter-form input{
  flex:1; min-width:180px; background: var(--bg-black); color: var(--text-light);
  border: 1.5px solid var(--card-border); border-radius:999px; padding:.55rem 1rem;
}
.newsletter-form input:focus{ outline:none; border-color: var(--gold); }
.newsletter-msg{ margin-top:.6rem; font-size:.85rem; color: var(--gold-light); }
.newsletter-msg.is-error{ color:#E38B7A; }

.footer-strip{
  border-top: 1px solid var(--card-border); padding: 1.1rem 0; text-align:center;
  font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold);
  display:flex; justify-content:center; gap:.6rem; flex-wrap:wrap;
}
.copyright{ text-align:center; font-size:.78rem; color: var(--text-faint); padding-bottom:1.2rem; margin:0; }

/* =========================================================================
   SCROLL-REVEAL ANIMATION (progressive enhancement via JS)
   ========================================================================= */
.reveal-up{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-up.is-visible{ opacity:1; transform: translateY(0); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991px){
  .hero{ text-align:center; }
}
@media (max-width: 575px){
  .menu-item{ flex-wrap:wrap; }
  .item-dots{ order:3; flex-basis:100%; }
  .newsletter-form{ flex-direction:column; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-glow, .bean, .ticker-track, .steam-1, .steam-2, .steam-3, .menu-item{ animation:none !important; }
  .reveal-up{ opacity:1; transform:none; transition:none; }
  .dish-card, .btn-brew, .btn-brew-outline{ transition:none; }
}
