/* ==========================================================================
   El Cappuccino vibe layer — day/night hero, pour, quotes, tonight, grain
   Scoped to body.elc; respects prefers-reduced-motion.
   ========================================================================== */

/* —— Film grain (dark sections / global) —— */
body.elc .elc-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Soft gold shimmer on .gold-text */
body.elc .gold-text {
  background-size: 200% 100%;
  animation: elc-gold-shimmer 9s ease-in-out infinite;
}
@keyframes elc-gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Ornament shimmer */
body.elc .elc-ornament span {
  position: relative;
  overflow: hidden;
}
body.elc .elc-ornament span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,240,200,0.55), transparent);
  transform: translateX(-120%);
  animation: elc-ornament-sweep 7s ease-in-out infinite;
}
@keyframes elc-ornament-sweep {
  0%, 70% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* —— Tonight strip —— */
.elc-tonight {
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.25rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #0c0c0e 0%, #121214 100%);
  border-bottom: 1px solid rgba(201,164,76,0.28);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--t-soft);
}
.elc-tonight-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--t-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.elc-tonight-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6b7280;
  box-shadow: 0 0 0 3px rgba(107,114,128,0.2);
}
.elc-tonight.is-open .elc-tonight-dot {
  background: #c9a44c;
  box-shadow: 0 0 0 3px rgba(201,164,76,0.25), 0 0 12px rgba(201,164,76,0.45);
}
.elc-tonight-hours { color: var(--muted); }
.elc-tonight-specials {
  color: var(--gold-light, #ecd08c);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,164,76,0.35);
  padding-bottom: 1px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
}
.elc-tonight-specials:hover { color: #f4e1a6; border-color: var(--gold, #c9a44c); }
.elc-tonight-specials[hidden] { display: none !important; }

/* —— Day / Night hero —— */
body.elc .hero.hero-mood {
  position: relative;
}
body.elc .hero-overlay-night {
  opacity: 0;
  transition: opacity 1.1s ease;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(201,164,76,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(180,120,40,0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(4,3,2,0.55) 0%, rgba(8,6,4,0.35) 28%, rgba(6,5,4,0.7) 65%, rgba(4,3,2,0.97) 100%),
    linear-gradient(90deg, rgba(4,3,2,0.75) 0%, rgba(4,3,2,0.25) 55%, rgba(4,3,2,0.1) 100%);
}
html:not([data-theme="day"]) body.elc .hero.hero-mood .hero-overlay-night { opacity: 1; }
html:not([data-theme="day"]) body.elc .hero.hero-mood .hero-overlay:not(.hero-overlay-night) { opacity: 0.35; }
body.elc .hero.hero-mood .hero-overlay:not(.hero-overlay-night) {
  transition: opacity 1.1s ease;
}
body.elc .hero-night-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,220,140,0.18) 0%, transparent 8%),
    radial-gradient(circle at 28% 12%, rgba(255,210,120,0.12) 0%, transparent 6%),
    radial-gradient(circle at 42% 16%, rgba(255,220,140,0.16) 0%, transparent 7%),
    radial-gradient(circle at 58% 10%, rgba(255,210,120,0.1) 0%, transparent 5%),
    radial-gradient(circle at 72% 14%, rgba(255,220,140,0.14) 0%, transparent 6%),
    radial-gradient(circle at 85% 20%, rgba(255,200,100,0.1) 0%, transparent 8%);
  filter: blur(1px);
}
html:not([data-theme="day"]) body.elc .hero.hero-mood .hero-night-glow { opacity: 1; }
html:not([data-theme="day"]) body.elc .hero.hero-mood .hero-photo {
  filter: brightness(0.72) saturate(1.15) contrast(1.05);
  transition: filter 1.1s ease;
}
body.elc .hero.hero-mood .hero-photo { transition: filter 1.1s ease; }

.hero-mood-copy { transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-mood-copy[hidden] {
  display: block !important;
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  opacity: 0;
  pointer-events: none;
}
.hero-mood-slot { position: relative; }
.hero-mood-copy { width: 100%; }
html:not([data-theme="day"]) .hero.hero-mood .hero-mood-copy--day{
  opacity: 0;
  position: absolute;
  left: 0; right: 0; top: 0;
  pointer-events: none;
  visibility: hidden;
}
html:not([data-theme="day"]) .hero.hero-mood .hero-mood-copy--night{
  opacity: 1;
  position: relative;
  visibility: visible;
}

.hero-mood-toggle {
  position: absolute;
  right: max(1rem, calc((100% - var(--max, 74rem)) / 2 + 1rem));
  bottom: 1.25rem;
  z-index: 5;
  display: inline-flex;
  border: 1px solid rgba(201,164,76,0.4);
  border-radius: 999px;
  background: rgba(10,10,11,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.2rem;
  gap: 0.15rem;
}
.hero-mood-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--t-soft);
  font-family: var(--font-sans, Manrope, sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.hero-mood-toggle button[aria-pressed="true"] {
  background: rgba(201,164,76,0.28);
  color: #f4e1a6;
}
.hero-mood-toggle button:focus-visible { outline: 2px solid var(--gold-light, #ecd08c); outline-offset: 2px; }
@media (max-width: 559px) {
  .hero-mood-toggle { right: 1rem; bottom: 0.85rem; }
}

/* —— Slow pour —— */
.elc-pour {
  position: relative;
  padding: 4.5rem 0;
  background: #08080a;
  overflow: hidden;
  border-top: 1px solid rgba(201,164,76,0.18);
  border-bottom: 1px solid rgba(201,164,76,0.18);
}
.elc-pour::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(201,164,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 40%, rgba(80,50,20,0.2) 0%, transparent 55%);
  pointer-events: none;
}
.elc-pour-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .elc-pour-inner { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}
.elc-pour-copy .section-label { margin-bottom: 0.75rem; }
.elc-pour-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}
.elc-pour-copy p {
  color: var(--t-soft);
  max-width: 32rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.elc-pour-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,164,76,0.22);
  background: #0e0e10;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.elc-pour-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.85) saturate(1.05);
}
.elc-pour-svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  z-index: 2;
}
.elc-pour-caption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 3;
  font-family: var(--font-display, Cormorant Garamond, Georgia, serif);
  font-size: 1.15rem;
  font-style: italic;
  color: #f4e1a6;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.elc-pour-credit {
  position: absolute;
  right: 0.65rem;
  top: 0.55rem;
  z-index: 3;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Pour animation pieces */
.pour-stream {
  stroke: #f5efe3;
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: pour-stream 12s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255,250,240,0.35));
}
.pour-fill {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pour-fill 12s ease-in-out infinite;
}
.pour-foam {
  opacity: 0;
  animation: pour-foam 12s ease-in-out infinite;
}
.pour-steam path {
  fill: none;
  stroke: rgba(255,255,255,0.28);
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: pour-steam 12s ease-in-out infinite;
}
.pour-steam path:nth-child(2) { animation-delay: 0.4s; }
.pour-steam path:nth-child(3) { animation-delay: 0.8s; }

@keyframes pour-stream {
  0%, 8% { stroke-dashoffset: 90; opacity: 0; }
  12% { opacity: 1; }
  28% { stroke-dashoffset: 0; opacity: 1; }
  42% { stroke-dashoffset: 0; opacity: 0.85; }
  50%, 100% { stroke-dashoffset: -90; opacity: 0; }
}
@keyframes pour-fill {
  0%, 12% { transform: scaleY(0.08); }
  45% { transform: scaleY(1); }
  78%, 100% { transform: scaleY(1); }
}
@keyframes pour-foam {
  0%, 30% { opacity: 0; transform: translateY(6px); }
  45% { opacity: 0.95; transform: translateY(0); }
  78% { opacity: 0.9; }
  92%, 100% { opacity: 0; }
}
@keyframes pour-steam {
  0%, 40% { opacity: 0; transform: translateY(8px); }
  55% { opacity: 0.7; transform: translateY(0); }
  75% { opacity: 0.35; transform: translateY(-10px); }
  90%, 100% { opacity: 0; transform: translateY(-18px); }
}

/* —— Review pull-quotes —— */
.elc-quotes {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 1.25rem;
  background: #08080a;
}
.elc-quotes-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.85) contrast(1.05);
  transform: scale(1.04);
}
.elc-quotes-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.72) 45%, rgba(8,8,9,0.9) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.elc-quotes-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  text-align: center;
}
.elc-quotes-inner .section-label { color: var(--gold-light, #ecd08c); margin-bottom: 1.5rem; }
.elc-quote-stack { position: relative; min-height: 11rem; }
.elc-quote {
  margin: 0;
  transition: opacity 0.8s ease;
}
.elc-quote[hidden] {
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.elc-quote.is-active { opacity: 1; position: relative; }
.elc-quote p {
  font-family: var(--font-display, Cormorant Garamond, Georgia, serif);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--t-strong);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.elc-quote p::before { content: "“"; color: var(--gold, #c9a44c); margin-right: 0.05em; }
.elc-quote p::after { content: "”"; color: var(--gold, #c9a44c); margin-left: 0.05em; }
.elc-quotes-cite {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.elc-quote-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.elc-quote-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}
.elc-quote-dots button[aria-current="true"] {
  background: var(--gold, #c9a44c);
  box-shadow: 0 0 10px rgba(201,164,76,0.5);
}

/* —— Patio at night —— */
.elc-patio-night {
  position: relative;
  min-height: min(85vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050506;
}
.elc-patio-night img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.55) saturate(1.2) contrast(1.08) sepia(0.12);
}
.elc-patio-night-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 15%, rgba(255,210,120,0.2) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4,3,2,0.35) 0%, rgba(4,3,2,0.15) 35%, rgba(4,3,2,0.75) 75%, rgba(4,3,2,0.95) 100%);
  pointer-events: none;
}
.elc-patio-night-line {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max, 74rem));
  margin: 0 auto 3.5rem;
  font-family: var(--font-display, Cormorant Garamond, Georgia, serif);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-style: italic;
  font-weight: 500;
  color: #f4e1a6;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.65);
}
.elc-patio-night .photo-credit {
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  z-index: 3;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}


/* —— Scroll reveal —— */
.elc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.elc-reveal.is-in { opacity: 1; transform: none; }

/* —— Sticky Call / Directions polish —— */
body.elc .sticky-call {
  gap: 0.6rem;
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
}
body.elc .sticky-call .btn-call-pulse {
  position: relative;
  animation: elc-call-pulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(201,164,76,0.45);
}
@keyframes elc-call-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,164,76,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201,164,76,0); }
}
body.elc {
  --sticky-cta-h: 4.5rem;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  body.elc .gold-text { animation: none; }
  body.elc .elc-ornament span::after { animation: none; display: none; }
  .pour-stream, .pour-fill, .pour-foam, .pour-steam path { animation: none !important; }
  .pour-stream { stroke-dashoffset: 0; opacity: 0.7; }
  .pour-fill { transform: scaleY(1); }
  .pour-foam { opacity: 0.9; transform: none; }
  .pour-steam path { opacity: 0.35; transform: none; }
  body.elc .sticky-call .btn-call-pulse { animation: none; }
  .elc-reveal { opacity: 1; transform: none; transition: none; }
  body.elc .hero.hero-mood .hero-photo,
  body.elc .hero-overlay-night,
  body.elc .hero-night-glow,
  .hero-mood-copy { transition: none !important; }
  .elc-quote { transition: none; }
}

/* Placeholder while the real bar photo is pending */
.elc-photo-pending{position:relative;width:100%;height:100%;min-height:240px;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;text-align:center;
  background:radial-gradient(120% 90% at 50% 40%,rgba(201,162,74,.16),rgba(10,10,11,0) 60%),linear-gradient(160deg,#141210,#0a0a0b);
  border:1px solid rgba(201,162,74,.25);}
.elc-photo-pending span{font-family:"Cormorant Garamond",serif;font-size:clamp(1.3rem,2.4vw,1.8rem);color:#e9dcc0;letter-spacing:.04em;line-height:1.2}
.elc-photo-pending em{color:#c9a24a;font-style:italic;font-size:.8em}
