/* ============================================================
   Kawiarnia „Pod Wiśnią" — przykładowa strona-wizytówka
   Szablon wisnia.dev · czysty CSS, jasna ciepła paleta.
   ============================================================ */

:root {
  --cream: #faf5ee;
  --paper: #fffdf9;
  --coffee: #3a2723;
  --coffee-2: #6d5047;
  --cherry: #b3123e;
  --cherry-soft: #f6dfe4;
  --gold: #c9a227;
  --line: rgba(58, 39, 35, 0.12);
  --radius: 18px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--coffee);
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap { width: min(1080px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
h1 em { font-style: italic; color: var(--cherry); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== pasek demo ===== */
.demo-ribbon {
  display: block;
  background: var(--coffee);
  color: #f5ead9;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 14px;
  text-decoration: none;
}
.demo-ribbon b { color: #ffd9e2; }
.demo-ribbon:hover b { text-decoration: underline; }

/* ===== nagłówek ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--coffee);
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  color: var(--coffee-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--cherry); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.burger span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--coffee);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== przyciski ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-solid {
  background: var(--cherry);
  color: #fff;
  box-shadow: 0 10px 24px rgba(179, 18, 62, 0.28);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(179, 18, 62, 0.38); }
.btn-line {
  border: 2px solid var(--coffee);
  color: var(--coffee);
}
.btn-line:hover { background: var(--coffee); color: var(--cream); }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

/* ===== hero ===== */
.hero {
  position: relative;
  padding-block: 84px 96px;
  background:
    radial-gradient(640px 420px at 88% 10%, var(--cherry-soft), transparent 70%),
    radial-gradient(520px 380px at 4% 90%, #f0e4cf, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.overline {
  color: var(--cherry);
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin-bottom: 20px; }
.lead {
  color: var(--coffee-2);
  font-size: 1.12rem;
  max-width: 48ch;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}
.badges li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(58, 39, 35, 0.06);
}

/* hero — wizual */
.hero-visual { position: relative; display: grid; place-items: center; }
.cup-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 56px 30px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(58, 39, 35, 0.14);
  transform: rotate(2deg);
}
.cup-emoji { font-size: 5.2rem; display: block; }
.cup-caption { margin-top: 10px; color: var(--coffee-2); font-size: 0.95rem; }
.cup-caption b { color: var(--cherry); font-size: 1.1rem; }

.cup-steam {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 7px;
  height: 26px;
  border-radius: 999px;
  background: rgba(58, 39, 35, 0.16);
  animation: steam 2.6s ease-in-out infinite;
}
.cup-steam.s1 { margin-left: -18px; animation-delay: 0s; }
.cup-steam.s2 { margin-left: -3px; animation-delay: 0.5s; }
.cup-steam.s3 { margin-left: 12px; animation-delay: 1s; }
@keyframes steam {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.7; }
  50% { transform: translateY(-14px) scaleY(1.25); opacity: 0.15; }
}

.chip {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 14px 30px rgba(58, 39, 35, 0.12);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 4%; left: -2%; }
.chip-2 { bottom: 2%; right: -2%; animation-delay: 2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== sekcje ===== */
.section { padding-block: 84px; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.center { text-align: center; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.body-text { color: var(--coffee-2); margin-bottom: 14px; max-width: 54ch; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

/* statystyki */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stats li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(58, 39, 35, 0.05);
}
.stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--cherry);
}
.stats span { color: var(--coffee-2); font-size: 0.88rem; }

/* ===== menu ===== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.menu-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 28px rgba(58, 39, 35, 0.06);
}
.menu-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.price-list { list-style: none; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 9px;
  font-size: 0.98rem;
}
.price-list li + li { border-top: 1px dashed var(--line); }
.price-list i {
  flex: 1;
  border-bottom: 2px dotted rgba(58, 39, 35, 0.22);
  transform: translateY(-4px);
}
.price-list span:last-child { font-weight: 800; }
.price-list em {
  font-style: normal;
  background: var(--cherry);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.menu-note {
  text-align: center;
  color: var(--coffee-2);
  font-size: 0.9rem;
  margin-top: 26px;
}

/* ===== dlaczego my ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(58, 39, 35, 0.1);
}
.feature-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--coffee-2); font-size: 0.95rem; }

/* ===== opinie ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.review {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review blockquote {
  font-size: 0.98rem;
  color: var(--coffee);
  margin-bottom: 14px;
}
.review figcaption { color: var(--coffee-2); font-weight: 700; font-size: 0.9rem; }

/* ===== kontakt ===== */
.contact-list {
  list-style: none;
  margin-block: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.02rem;
}
.contact-list a { color: var(--cherry); text-decoration: none; font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }

.hours-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 28px rgba(58, 39, 35, 0.07);
}
.hours-card h3 { margin-bottom: 16px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding-block: 10px; font-size: 1rem; }
.hours td:last-child { text-align: right; font-weight: 800; }
.hours tr + tr td { border-top: 1px dashed var(--line); }
.hours-note { margin-top: 16px; color: var(--coffee-2); font-size: 0.9rem; }

/* ===== stopka ===== */
.footer {
  background: var(--coffee);
  color: #d9c9bd;
  padding-block: 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer a { color: #ffd9e2; font-weight: 700; }

/* ===== animacje wejścia ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ===== responsywność ===== */
@media (max-width: 900px) {
  .hero-inner, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 56px 72px; }
  .hero-visual { order: -1; }
  .cup-card { transform: rotate(0); padding: 34px 44px 24px; }
  .menu-grid, .features, .reviews { grid-template-columns: 1fr; }
  .features, .reviews { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(58, 39, 35, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a {
    padding: 16px 6%;
    border-top: 1px solid var(--line);
  }
  .nav .nav-cta {
    margin: 14px 6%;
    text-align: center;
    border-radius: 999px;
  }
  .chip-1 { left: 2%; }
  .chip-2 { right: 2%; }
}
