:root {
  --mx: 50%;
  --my: 30%;
  --primary: #C2410C;
  --secondary: #92400E;
  --accent: #F59E0B;
  --cream: #FFF7ED;
  --paw: #FB7185;
  --bg: #1C1009;
  --surface: #2B1A10;
  --muted: #D6B99A;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: var(--cream); }

/* ---------- Descriptively named background images ---------- */
.bg-hero-sunrise-cafe-interior {
  background-image: url("images/photo-1501339847302-ac426a4a7cbb.png");
  background-size: cover;
  background-position: center;
}
.bg-guide-dog-walk-golden-retriever {
  background-image: url("images/smiling-golden-retriever-enjoying-a-sunny-morning-outing.png");
  background-size: cover;
  background-position: center;
}
.bg-about-latte-art-ceramic-cup {
  background-image: url("images/enlarged-caf-gallery-photograph.png");
  background-size: cover;
  background-position: center;
}
.bg-listings-warm-cafe-counter {
  background-image: url("images/photo-1554118811-1e0d58224f24.png");
  background-size: cover;
  background-position: center;
}
.bg-legal-coffee-beans-cup {
  background-image: url("images/photo-1442512595331-e89e73853f31.png");
  background-size: cover;
  background-position: center;
}

/* ---------- UI primitives ---------- */
.glass {
  background: rgba(43, 26, 16, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 247, 237, 0.12);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(194, 65, 12, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(245, 158, 11, .6); }
.btn-ghost {
  border: 1px solid rgba(255, 247, 237, .2);
  color: var(--cream);
  background: rgba(255, 247, 237, .03);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; }

.cafe-card { transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.cafe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(245, 158, 11, .35);
  border-color: rgba(245, 158, 11, .3);
}

.cat-pill { transition: all .25s ease; cursor: pointer; }
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: var(--cream); }

.nav-link { position: relative; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link.active::after, .nav-link:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--paw));
}

.score-bar { height: 8px; border-radius: 999px; background: rgba(255, 247, 237, .08); overflow: hidden; }
.score-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

.prose-legal h2 { font-family: "Playfair Display", serif; font-size: 1.6rem; margin: 2.5rem 0 .8rem; color: var(--cream); }
.prose-legal p, .prose-legal li { color: var(--muted); line-height: 1.8; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: .6rem 0; }
.prose-legal a { color: var(--accent); text-decoration: underline; }

/* ---------- Hero: Morning Coffee & Paws ---------- */
.hero-sunlight {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(245, 158, 11, .45), rgba(194, 65, 12, .2) 28%, transparent 60%);
  mix-blend-mode: screen;
}
.hero-sunrise-sweep {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 220, 160, .14) 45%, transparent 60%);
  background-size: 250% 100%;
  animation: sunSweep 14s ease-in-out infinite;
}
@keyframes sunSweep {
  0% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
  100% { background-position: 120% 0; }
}
.parallax-layer { transition: transform .6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }

.float-el { animation: floatY 9s ease-in-out infinite; }
.float-el.delay-1 { animation-delay: -2s; animation-duration: 11s; }
.float-el.delay-2 { animation-delay: -4s; animation-duration: 13s; }
.float-el.delay-3 { animation-delay: -6s; animation-duration: 10s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

/* 3D ceramic coffee cup */
.cup-scene { perspective: 900px; }
.cup-3d { position: relative; transform-style: preserve-3d; animation: cupSway 8s ease-in-out infinite; }
@keyframes cupSway {
  0%, 100% { transform: rotateX(12deg) rotateY(-14deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateY(14deg) translateY(-12px); }
}
.cup-saucer {
  position: absolute; left: 50%; bottom: -26px; width: 250px; height: 60px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #fff7ed 0%, #e8d2b8 55%, #b98c63 100%);
  box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .6);
}
.cup-body {
  position: relative; width: 170px; height: 150px; margin: 0 auto;
  border-radius: 0 0 85px 85px / 0 0 110px 110px;
  background: linear-gradient(90deg, #c9a37f 0%, #fff7ed 35%, #f3e1cc 60%, #b48963 100%);
  box-shadow: inset -14px -10px 30px rgba(146, 64, 14, .35);
}
.cup-top {
  position: absolute; top: -18px; left: 0; width: 170px; height: 36px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #fff7ed 0 62%, #e8d2b8 64% 100%);
}
.cup-coffee {
  position: absolute; top: 5px; left: 10px; width: 150px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at 45% 45%, #c58a52 0%, #7a3b12 45%, #3b1a08 100%);
  overflow: hidden;
}
.cup-coffee::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 18px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 247, 237, .85) 0 40%, transparent 70%);
  border-radius: 50%;
}
.cup-handle {
  position: absolute; right: -46px; top: 22px; width: 64px; height: 76px;
  border: 14px solid #e8d2b8; border-left-color: transparent; border-radius: 50%;
  box-shadow: inset -3px 0 6px rgba(146, 64, 14, .3);
}
.cup-logo {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  color: var(--primary); opacity: .85;
}

/* Rotating dog collar tag */
.collar-tag {
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 50%, #92400e 100%);
  box-shadow: 0 0 0 4px rgba(255, 247, 237, .15), 0 20px 40px -10px rgba(245, 158, 11, .6);
  display: grid; place-items: center; color: #3b1a08;
  animation: tagSpin 7s linear infinite;
}
@keyframes tagSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.collar-ring { width: 22px; height: 22px; border: 4px solid #d6b99a; border-radius: 50%; margin: 0 auto -6px; }

/* Mini café table */
.mini-table-top { width: 120px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff7ed, #d6b99a 70%, #92400e); }
.mini-table-leg { width: 8px; height: 60px; margin: 0 auto; background: linear-gradient(90deg, #92400e, #d6b99a, #92400e); }
.mini-table-foot { width: 60px; height: 10px; margin: 0 auto; border-radius: 50%; background: #92400e; }

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

/* Lightbox */
#lightbox.open { display: flex; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}