/* Casfe Coffee landing page. Brand colours match the ordering app (tableserve
   frontend/src/styles.css): espresso, coffee, caramel, leaf, cream. */
:root {
  --espresso: #2f1e15;
  --coffee: #6b4226;
  --coffee-soft: #f3e7dc;
  --cream: #fbf6ef;
  --paper: #fffdf9;
  --caramel: #d9822b;
  --caramel-dark: #b8691c;
  --caramel-soft: #fbead6;
  --leaf: #3f7a3a;
  --leaf-soft: #e6f1e1;
  --ink: #2a1d16;
  --muted: #6f5f53;
  --line: #ebdfd2;
  --hairline: rgba(47, 30, 21, 0.1);
  --shadow: 0 1px 2px rgba(47, 30, 21, 0.05), 0 12px 30px -14px rgba(47, 30, 21, 0.22);
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coffee); }
h1, h2, h3 { font-family: var(--display); color: var(--espresso); line-height: 1.1; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--caramel); color: #fff; box-shadow: 0 8px 20px -10px var(--caramel-dark); }
.btn-primary:hover { background: var(--caramel-dark); }
.btn-ghost { border-color: var(--coffee); color: var(--coffee); background: transparent; }
.btn-ghost:hover { background: var(--coffee-soft); }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--caramel-dark); }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--caramel-soft) 0%, rgba(251, 234, 214, 0) 68%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  margin: 0 0 12px; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.02em; }
.hero h1 span { color: var(--caramel); font-style: italic; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--muted); font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.hero-facts strong { color: var(--espresso); }

.hero-art { position: relative; min-height: 440px; }
.plate {
  position: absolute; background: var(--paper); border-radius: 50%;
  box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center;
  border: 6px solid #fff;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-main { width: 340px; height: 340px; right: 40px; top: 30px; }
.plate-a { width: 170px; height: 170px; left: 10px; bottom: 10px; }
.plate-b { width: 140px; height: 140px; right: 0; bottom: -10px; border-radius: 28px; }
.plate-b img { object-position: top; }
.sticker {
  position: absolute; left: 40px; top: 40px; transform: rotate(-8deg);
  font-family: var(--display); font-style: italic; color: var(--coffee);
  background: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); line-height: 1.2;
}

/* Sections */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.01em; }
.note { color: var(--muted); margin: 12px 0 0; }

/* Favourites */
.favourites { background: var(--paper); border-block: 1px solid var(--hairline); }
.fav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fav {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 14px 14px 16px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; transition: transform .18s ease, box-shadow .18s ease;
}
.fav:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fav img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 8px; background: var(--cream); }
.fav-name { font-weight: 600; line-height: 1.3; }
.fav-price { color: var(--caramel-dark); font-size: .92rem; font-weight: 500; }

/* How ordering works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--espresso); color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
.offer {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--espresso); color: #f4e9df; border-radius: var(--radius); padding: 26px 30px;
}
.offer p { margin: 0; max-width: 46rem; }
.offer-title { font-family: var(--display); font-size: 1.5rem; color: #fff; margin-bottom: 6px !important; }
.offer-badge {
  flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--caramel); color: #fff;
  display: grid; place-content: center; text-align: center; font-family: var(--display); font-size: 1.7rem;
  font-weight: 700; line-height: 1; transform: rotate(8deg);
}
.offer-badge small { font-size: .8rem; font-family: var(--body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* Menu */
.menu { background: var(--paper); border-top: 1px solid var(--hairline); }
.chips {
  position: sticky; top: 64px; z-index: 10; display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0; margin-bottom: 24px; background: var(--paper); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.chip:hover { border-color: var(--coffee); }
.chip.active { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.menu-grid { columns: 3 320px; column-gap: 20px; }
.menu-cat {
  break-inside: avoid; margin-bottom: 20px; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 20px 22px 14px;
}
.menu-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.menu-cat-head h3 { font-size: 1.35rem; }
.menu-cat-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-cat li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.menu-cat li:first-child { border-top: 0; }
.menu-cat li > span:first-child { min-width: 0; }
.dots { flex: 1; }
.price { font-weight: 600; color: var(--coffee); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.visit-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
address { font-style: normal; font-size: 1.1rem; line-height: 1.7; }
.visit-phone { font-size: 1.25rem; font-weight: 600; margin: 14px 0 24px; }
.visit-phone a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--hairline); background: var(--coffee-soft); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Footer */
.footer { background: var(--espresso); color: #e8dccf; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer img { height: 36px; width: auto; background: var(--cream); border-radius: 10px; padding: 4px 8px; }
.footer p { margin: 0; }
.footer .small { margin-left: auto; font-size: .88rem; color: #bfae9f; }
.footer a { color: #f3c28f; }

/* Phones and tablets */
@media (max-width: 960px) {
  .fav-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 460px; width: 100%; margin-inline: auto; }
  .plate-main { width: 270px; height: 270px; right: 30px; }
  .plate-a { width: 140px; height: 140px; }
  .plate-b { width: 116px; height: 116px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .offer { flex-direction: column; align-items: flex-start; padding: 22px; }
  .offer-badge { width: 76px; height: 76px; font-size: 1.4rem; }
  .hero-art { min-height: 300px; }
  .plate-main { width: 220px; height: 220px; right: 10px; top: 10px; }
  .plate-a { width: 120px; height: 120px; left: 0; }
  .plate-b { width: 100px; height: 100px; }
  .sticker { left: 0; top: 0; font-size: .9rem; }
  .menu-cat { padding: 18px 16px 10px; }
  .footer .small { margin-left: 0; }
  .map iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fav { transition: none; }
}
