:root {
  --cream: #fbf4ea;
  --cream-2: #f3e6d2;
  --brown: #6b3f26;
  --brown-dark: #3b2216;
  --accent: #c8793a;
  --accent-dark: #a85f27;
  --green: #4f6b50;
  --text: #3a2b22;
  --muted: #86705f;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(59, 34, 22, .12);
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--brown-dark); }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.section__head { text-align: center; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; border: 2px solid var(--brown);
  background: var(--brown); color: var(--cream); font: 600 .95rem var(--font-body); cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--brown-dark); border-color: var(--brown-dark); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--cream); }
.btn--small { padding: 9px 20px; font-size: .85rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.header.is-scrolled { background: rgba(251, 244, 234, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(59,34,22,.08); padding: 8px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font: 800 1.8rem var(--font-head); color: var(--brown-dark); }
.logo span { color: var(--accent); }
.logo--light { color: var(--cream); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--brown-dark); margin: 6px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 120px 0 72px;
  background:
    radial-gradient(900px 500px at 90% 10%, #f1d9b8 0%, transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #ecd3ae 0%, transparent 60%),
    var(--cream);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font: 700 1.3rem var(--font-head); color: var(--brown); }
.hero__stats span { font-size: .8rem; color: var(--muted); }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__blob {
  position: absolute; width: 92%; aspect-ratio: 1; background: var(--brown);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; animation: morph 10s ease-in-out infinite;
  box-shadow: var(--shadow);
}
.cup { position: relative; width: 78%; animation: float 5s ease-in-out infinite; }
.steam path { stroke-dasharray: 8 10; animation: steam 2.6s ease-in-out infinite; }
.steam .s2 { animation-delay: .5s; } .steam .s3 { animation-delay: 1s; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes morph { 50% { border-radius: 45% 55% 42% 58% / 55% 45% 55% 45%; } }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(6px); } 50% { opacity: .9; transform: translateY(-6px); } }

/* About */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__card {
  padding: 24px; border-radius: var(--radius); background: var(--cream-2); min-height: 160px;
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s;
}
.about__card:hover { transform: translateY(-6px) rotate(-1deg); }
.about__card span { font-size: 2.2rem; }
.about__card p { margin: 0; font-weight: 600; line-height: 1.35; }
.about__card small { font-weight: 400; color: var(--muted); }
.about__card.c1 { grid-row: span 2; background: #e7efe2; }
.about__card.c2 { background: #f6dcc0; }
.about__card.c3 { background: #efe3d3; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: .7rem; display: grid; place-items: center;
}

/* Menu */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--cream-2); background: var(--white);
  font: 500 .92rem var(--font-body); color: var(--text); cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--accent); }
.tab.is-active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.item {
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 16px rgba(59,34,22,.06);
  transition: transform .3s, box-shadow .3s; animation: pop .4s ease both; position: relative;
}
.item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.item__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; margin-bottom: 16px; }
.item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.item p { font-size: .88rem; color: var(--muted); margin-bottom: 16px; min-height: 2.9em; }
.item__foot { display: flex; align-items: center; justify-content: space-between; }
.item__price { font-weight: 700; color: var(--brown); font-size: 1.05rem; }
.item__add {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: transform .2s, background .2s;
}
.item__add:hover { background: var(--accent-dark); transform: scale(1.12) rotate(90deg); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Reviews */
.reviews { background: var(--brown-dark); }
.reviews h2 { color: var(--cream); }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; color: var(--cream); }
.stars { color: #f0b45a; letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; font-style: italic; opacity: .92; }
.review figcaption { font-size: .88rem; opacity: .75; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info li { display: flex; gap: 16px; margin-bottom: 20px; }
.info li > span { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; font-size: 1.3rem; }
.info a { color: var(--accent-dark); font-weight: 500; }
.form { background: var(--white); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.5rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; flex: 1; }
.row { display: flex; gap: 16px; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--cream-2);
  background: var(--cream); font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200,121,58,.15); }
.field.invalid input { border-color: #c0392b; }
.error { display: block; color: #c0392b; font-size: .78rem; min-height: 0; margin-top: 4px; }

/* Footer */
.footer { background: #2a180f; color: var(--cream-2); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .88rem; opacity: .7; }
.socials { display: flex; gap: 20px; font-size: .88rem; }
.socials a:hover { color: var(--accent); }

/* Toast + to-top */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 99;
  background: var(--brown-dark); color: var(--cream); padding: 14px 24px; border-radius: 14px;
  box-shadow: var(--shadow); font-size: .92rem; transition: transform .4s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.to-top {
  position: fixed; right: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

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

/* Responsive */
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 104px; }
  .hero__art { max-width: 380px; margin-inline: auto; order: -1; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; justify-content: center; gap: 24px;
    height: 100vh; background: var(--cream); font-size: 1.3rem; transform: translateY(-100%);
    transition: transform .4s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .burger { position: relative; z-index: 2; }
}
@media (max-width: 480px) {
  .row { flex-direction: column; gap: 0; }
  .form { padding: 24px; }
  .about__cards { grid-template-columns: 1fr; }
  .about__card.c1 { grid-row: auto; }
}

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