:root {
  --cream: #F7F1E8;
  --beige: #EDE2D2;
  --beige-deep: #E2D3BD;
  --latte: #A47551;
  --latte-dark: #8A5F40;
  --terracotta: #C8664A;
  --terracotta-dark: #B0533A;
  --espresso: #3B2A20;
  --espresso-soft: #6A564A;
  --white: #FFFCF7;
  --open: #4F8A5B;
  --closed: #B0533A;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -14px rgba(59, 42, 32, .28);
  --shadow-lift: 0 22px 40px -18px rgba(59, 42, 32, .38);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--espresso);
  letter-spacing: -.01em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--latte-dark); }
address { font-style: normal; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--espresso); color: var(--cream);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1rem/1 var(--font-body);
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--latte); color: var(--white); box-shadow: 0 8px 20px -10px rgba(164, 117, 81, .9); }
.btn-primary:hover { background: var(--latte-dark); }
.btn-accent { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 20px -10px rgba(200, 102, 74, .9); }
.btn-accent:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--beige-deep); }
.btn-ghost:hover { background: var(--beige); }
.btn-sm { padding: .7rem 1.15rem; font-size: .95rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--beige-deep); box-shadow: 0 6px 20px -16px rgba(59, 42, 32, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--espresso); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--terracotta); color: var(--cream);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  text-decoration: none; color: var(--espresso); font-weight: 600;
  position: relative; padding: .25rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  padding: .35rem .75rem; border-radius: 999px;
  background: var(--beige); color: var(--espresso-soft);
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: #E3EEDC; color: var(--open); }
.status-pill.is-closed { background: #F4DDD4; color: var(--closed); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--beige); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 700; margin-bottom: .25em; }
.tagline { font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: var(--espresso-soft); max-width: 32ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.hero-today { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--espresso-soft); margin: 0; }
.hero-today .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--latte); box-shadow: 0 0 0 4px rgba(164, 117, 81, .2); flex-shrink: 0; }
.hero-today.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px rgba(79, 138, 91, .2); }
.hero-today.is-closed .dot { background: var(--closed); box-shadow: 0 0 0 4px rgba(176, 83, 58, .18); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 78%; aspect-ratio: 1; background: var(--beige); top: 4%; right: 4%; }
.blob-2 { width: 34%; aspect-ratio: 1; background: rgba(200, 102, 74, .18); bottom: 6%; left: 6%; }
.cup-card {
  position: relative;
  width: min(320px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-lift);
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
.cup-svg { width: 100%; height: auto; display: block; }
.steam path { animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.steam path:nth-child(2) { animation-delay: .5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
.cup-caption { display: flex; flex-direction: column; text-align: center; margin-top: .5rem; }
.cup-caption strong { font-family: var(--font-display); font-size: 1.1rem; }
.cup-caption span { color: var(--espresso-soft); font-size: .95rem; }

@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: .75; transform: translateY(-4px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--beige); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-sub { color: var(--espresso-soft); margin: 0; }

/* ---------- Menu ---------- */
.menu-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 2.5rem;
}
.menu-tab {
  font: 700 .95rem/1 var(--font-body);
  padding: .75rem 1.3rem; border-radius: 999px;
  border: 2px solid var(--beige-deep); background: var(--white); color: var(--espresso);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.menu-tab:hover { transform: translateY(-2px); border-color: var(--latte); }
.menu-tab.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.menu-group { margin-bottom: 3rem; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group.is-hidden { display: none; }
.menu-group-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.menu-group-head h3 { font-size: 1.65rem; margin: 0; }
.menu-group-head .group-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: var(--beige); font-size: 1.45rem; flex-shrink: 0;
}
.menu-group-head .group-line { flex: 1; height: 2px; background: var(--beige-deep); border-radius: 2px; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.menu-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(226, 211, 189, .7);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex; flex-direction: column; gap: .4rem;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-card h4 { font-size: 1.2rem; margin: 0; }
.menu-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--terracotta); white-space: nowrap;
}
.menu-desc { color: var(--espresso-soft); font-size: .97rem; margin: 0; }
.menu-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.menu-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--beige); color: var(--latte-dark);
}
.menu-tag.is-accent { background: rgba(200, 102, 74, .14); color: var(--terracotta-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-copy p { color: var(--espresso-soft); }
.about-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-card {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 1.2rem;
  box-shadow: var(--shadow);
}
.feature-card div { display: flex; flex-direction: column; }
.feature-card strong { font-size: 1rem; }
.feature-card span:not(.feature-icon) { font-size: .92rem; color: var(--espresso-soft); line-height: 1.45; }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--cream); font-size: 1.3rem; flex-shrink: 0;
}

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: stretch; }
.map-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--beige); min-height: 360px; border: 6px solid var(--white);
}
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.info-stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.info-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: .6rem; }
.info-card address { font-size: 1.05rem; margin-bottom: .5rem; }
.info-line { margin: 0 0 1.1rem; }
.info-line a { font-weight: 700; text-decoration: none; }
.info-line a:hover { text-decoration: underline; }
.info-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.copy-feedback { min-height: 1.4em; margin: .6rem 0 0; font-size: .9rem; font-weight: 600; color: var(--open); }
.copy-feedback.is-error { color: var(--closed); }

.hours-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.hours-head h3 { margin: 0; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .75rem; border-radius: 10px;
}
.hours-list li + li { border-top: 1px dashed var(--beige-deep); }
.hours-list li.is-today { background: var(--cream); font-weight: 700; border-top-color: transparent; }
.hours-list li.is-today + li { border-top-color: transparent; }
.hours-list .day { display: inline-flex; align-items: center; gap: .5rem; }
.hours-list .today-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--terracotta); color: var(--white); padding: .15rem .45rem; border-radius: 999px;
}
.hours-note { font-size: .85rem; color: var(--espresso-soft); margin: .9rem 0 0; }

/* ---------- Instagram ---------- */
.ig-handle { color: var(--espresso); text-decoration: none; background-image: linear-gradient(var(--terracotta), var(--terracotta)); background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 100%; }
.ig-handle:hover { color: var(--terracotta); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ig-tile {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--white);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ig-tile:hover, .ig-tile:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-art { position: absolute; inset: 0; display: grid; place-items: center; }
.ig-art svg { width: 46%; height: auto; opacity: .92; transition: transform .4s ease; }
.ig-tile:hover .ig-art svg { transform: scale(1.08) rotate(-4deg); }
.ig-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 2.2rem 1rem .9rem;
  background: linear-gradient(to top, rgba(59, 42, 32, .78), rgba(59, 42, 32, 0));
  display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem;
  font-size: .9rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease;
}
.ig-tile:hover .ig-overlay, .ig-tile:focus-visible .ig-overlay { opacity: 1; transform: none; }
.ig-likes { white-space: nowrap; }
.ig-cta { text-align: center; margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: #E9DCCB; padding: 4rem 0 1.5rem; }
.site-footer h4 { color: var(--cream); font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer .brand { color: var(--cream); margin-bottom: 1rem; }
.site-footer p { color: #CDBBA7; }
.site-footer address { color: #E9DCCB; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 2.5rem; }
.hours-list-compact li { padding: .4rem 0; }
.hours-list-compact li + li { border-top-color: rgba(233, 220, 203, .15); }
.hours-list-compact li.is-today { background: transparent; color: var(--cream); }
.hours-list-compact .today-badge { background: var(--latte); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a, .back-top { color: #E9DCCB; text-decoration: none; }
.footer-links a:hover, .back-top:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(233, 220, 203, .15);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .tagline { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--beige-deep);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 16px 30px -20px rgba(59, 42, 32, .5);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--beige); }
  .site-nav a::after { display: none; }
  .site-nav .status-pill { align-self: flex-start; margin-top: 1rem; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .ig-overlay { opacity: 1; transform: none; padding: 1.6rem .7rem .6rem; font-size: .8rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: min(1140px, 100% - 2rem); }
  .about-features { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .map-card, .map-card iframe { min-height: 280px; }
  .info-card { padding: 1.3rem; }
  .info-actions .btn { flex: 1 1 auto; }
  .ig-overlay .ig-caption { display: none; }
  .ig-overlay { justify-content: flex-end; }
}
