:root {
  --ink: #1f130f;
  --coffee: #4b1f12;
  --caramel: #c86f2c;
  --cream: #fff8ec;
  --mint: #0f766e;
  --berry: #7c3aed;
  --paper: #ffffff;
  --muted: #755f54;
  --line: rgba(75, 31, 18, 0.14);
  --shadow: 0 24px 60px rgba(75, 31, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 111, 44, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff8ec 0%, #f8eee0 45%, #fffaf2 100%);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  --cursor-x: 18%;
  --cursor-y: 16%;
}

body::before,
body::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

body::before {
  animation: cafeSteam 14s ease-in-out infinite alternate;
  background:
    radial-gradient(ellipse 34rem 28rem at var(--cursor-x) var(--cursor-y), rgba(200, 111, 44, 0.2), transparent 70%),
    radial-gradient(ellipse 28rem 24rem at 86% 18%, rgba(15, 118, 110, 0.14), transparent 72%),
    radial-gradient(ellipse 24rem 20rem at 12% 84%, rgba(124, 58, 237, 0.12), transparent 70%);
  z-index: 0;
}

body::after {
  background-image:
    linear-gradient(rgba(75, 31, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 31, 18, 0.035) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 64px 64px, 64px 64px, auto;
  mask-image: radial-gradient(ellipse 82% 62% at 50% 32%, black 20%, transparent 86%);
  z-index: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.navbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(31, 19, 15, 0.9);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.logo {
  color: #ffd6a5;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nav-menu a,
.icon-btn {
  border-radius: 999px;
  color: var(--cream);
  padding: 9px 13px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: none;
}

.hero,
.section,
.page-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 72px);
  padding: 48px 0;
}

.page-hero {
  padding: 74px 0 28px;
}

.eyebrow {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6.4rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  margin-bottom: 14px;
}

.hero-copy p:not(.eyebrow),
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.btn {
  background: var(--coffee);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  padding: 13px 20px;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--coffee);
}

.mood-result {
  color: var(--coffee);
  font-weight: 800;
}

.hero-stage {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #36150e, #8b4320);
  border-radius: 30px;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.float-img {
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.28));
  max-width: 82%;
  position: relative;
  z-index: 2;
  animation: floatCup 4.6s ease-in-out infinite;
}

.steam {
  background: rgba(255, 248, 236, 0.55);
  border-radius: 999px;
  filter: blur(4px);
  height: 86px;
  position: absolute;
  top: 16%;
  width: 10px;
  animation: steamRise 2.8s ease-in-out infinite;
}

.steam-one { left: 38%; }
.steam-two { left: 50%; animation-delay: 0.4s; }
.steam-three { left: 62%; animation-delay: 0.8s; }

.section {
  padding: 54px 0;
}

.strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.strip article,
.card,
.tray,
.stamp-card,
.timeline article,
.menu-card,
.booking-form,
.contact-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(75, 31, 18, 0.08);
}

.strip article {
  padding: 22px;
}

.strip strong {
  display: block;
  font-size: 2rem;
}

.section-heading {
  margin-bottom: 24px;
}

.cards,
.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  overflow: hidden;
  padding-bottom: 18px;
}

.card img {
  background: #fff2db;
  height: 220px;
  object-fit: contain;
  width: 100%;
}

.card h3,
.card p,
.card button {
  margin-left: 18px;
  margin-right: 18px;
}

.card p,
.timeline p,
.contact-card p {
  color: var(--muted);
}

.mini-add {
  background: #fff2db;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--coffee);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 13px;
}

.order-panel,
.two-col,
.contact-layout,
.menu-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.tray {
  padding: 22px;
}

.tray ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.tray li {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tray-total {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  padding-top: 14px;
}

.stamp-card {
  cursor: pointer;
  padding: 24px;
}

.stamp-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}

.stamp {
  align-items: center;
  aspect-ratio: 1;
  background: #f4dfc3;
  border: 2px dashed rgba(75, 31, 18, 0.28);
  border-radius: 50%;
  display: grid;
  font-weight: 900;
  justify-items: center;
}

.stamp.filled {
  background: var(--caramel);
  border-color: var(--coffee);
  color: white;
}

.timeline article {
  padding: 20px;
}

.timeline span {
  color: var(--berry);
  font-weight: 900;
}

.menu-tools {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 82px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 12px;
}

.filter-pills .active {
  background: var(--coffee);
  color: white;
}

.search-box {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.menu-items {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.menu-card {
  padding: 18px;
}

.menu-card .tag {
  color: var(--mint);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.menu-card footer {
  align-items: center;
  background: transparent;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid button {
  background: white;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 16px 36px rgba(75, 31, 18, 0.08);
}

.gallery-grid img {
  aspect-ratio: 1.2 / 1;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.gallery-grid button:hover img {
  transform: scale(1.04);
}

.lightbox {
  align-items: center;
  background: rgba(31, 19, 15, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  border-radius: var(--radius);
  max-height: 72vh;
  object-fit: contain;
}

.lightbox p {
  color: white;
  font-weight: 900;
}

#closeLightbox {
  background: white;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 15px;
  position: absolute;
  right: 20px;
  top: 20px;
}

.booking-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-card {
  padding: 24px;
}

.form-message {
  color: var(--mint);
  font-weight: 900;
}

footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 40px;
  padding: 28px;
  text-align: center;
}

@keyframes floatCup {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(40px) scaleY(0.4); }
  50% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-30px) scaleY(1.1); }
}

@keyframes cafeSteam {
  0% { transform: translate3d(-1%, 1%, 0) scale(1); filter: hue-rotate(0deg); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.035); filter: hue-rotate(10deg); }
}

@media (max-width: 860px) {
  .icon-btn {
    display: inline-flex;
  }

  .nav-menu {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero,
  .order-panel,
  .two-col,
  .contact-layout,
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .strip,
  .cards,
  .timeline,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .menu-tools {
    position: static;
  }
}
