/* ===== Tokens — logo reds/greens + flame amber sampled from content/heroBG.png ===== */
:root {
  --paper: #faf6ec;
  --paper-deep: #f3eedf;
  --paper-line: #ded9c8;
  --ink: #242424;
  --ink-soft: #5b564f;
  --red: #d9291d;
  --red-deep: #a81e15;
  --red-bright: #f03024;
  --green: #1f7a34;
  --green-bright: #309c3c;
  --flame: #e0862e;
  --flame-bright: #fab450;
  --cream: #ffffff;

  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-label: "Fredoka", "Segoe UI", sans-serif;

  --container: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ===== Pizza-pattern ribbon divider ===== */
.ribbon {
  height: 46px;
  background-image: url("content/1.webp");
  background-size: auto 130%;
  background-repeat: repeat-x;
  background-position: center;
  background-color: var(--paper);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(20, 13, 9, 0.55), transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(36, 36, 36, 0.08);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cream);
  transition: color 0.3s ease;
}
.nav.is-scrolled .nav__brand { color: var(--red-deep); }

.nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.1rem);
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}
.nav.is-scrolled .nav__links { color: var(--ink-soft); }

.nav__links a { position: relative; transition: color 0.2s ease; }
.nav__links a:hover { color: var(--flame-bright); }
.nav.is-scrolled .nav__links a:hover { color: var(--red); }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
  box-shadow: 0 10px 24px -10px rgba(168, 30, 21, 0.7);
}
.btn--primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(168, 30, 21, 0.75);
}

.btn--ghost {
  background: rgba(20, 13, 9, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--cream);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 4vw, 3rem) 4.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 9, 6, 0.92) 0%, rgba(15, 9, 6, 0.55) 42%, rgba(15, 9, 6, 0.25) 68%, rgba(15, 9, 6, 0.45) 100%);
}

.hero__mascot {
  position: absolute;
  top: 14%;
  right: -4%;
  width: min(220px, 34vw);
  transform: rotate(14deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  opacity: 0;
  animation: mascotIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards, mascotFloat 5s ease-in-out 1.5s infinite;
}
@keyframes mascotIn {
  from { opacity: 0; transform: rotate(30deg) scale(0.6) translateY(-30px); }
  to { opacity: 1; transform: rotate(14deg) scale(1) translateY(0); }
}
@keyframes mascotFloat {
  0%, 100% { transform: rotate(14deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-12px); }
}
@media (max-width: 720px) {
  .hero__mascot { width: 120px; top: 8%; right: -6%; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--flame-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--flame-bright);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  color: var(--cream);
}
.hero__title em {
  font-style: normal;
  color: var(--flame-bright);
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Section shell ===== */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--paper-line);
}
.divider__mark {
  width: 10px;
  height: 10px;
  background: var(--red-bright);
  border-radius: 3px;
  transform: rotate(45deg);
  transform-origin: center;
  opacity: 0;
  animation: markIn 0.5s ease-out forwards;
}

.section__head {
  max-width: 620px;
  margin: 0 auto clamp(2.4rem, 5vw, 3.2rem);
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--red-deep);
  margin: 0.5rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible .divider__mark {
  animation: markIn 0.5s ease-out 0.3s forwards;
}

@keyframes markIn {
  from { opacity: 0; transform: rotate(45deg) scale(0); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* ===== Story ===== */
.story__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
}

.story p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 54ch;
}

.story__stats {
  display: flex;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: 2rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--paper-line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--red);
}
.stat__label {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.story__art {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.story__dish {
  position: absolute;
  inset: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 24px 44px -18px rgba(36, 36, 36, 0.4);
  transform: scale(0.85) rotate(-6deg);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}
.reveal.is-visible .story__dish {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
.story__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* ===== Testimonials ===== */
.testimonials {
  position: relative;
  background-color: var(--paper-deep);
  background-image: url("content/1.webp");
  background-size: 260px;
  background-blend-mode: multiply;
  background-repeat: repeat;
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 236, 0.9);
}
.testimonials .wrap { position: relative; }

.quote-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem) 2.6rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  box-shadow: 0 20px 40px -24px rgba(36, 36, 36, 0.3);
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--green-bright);
  margin-bottom: -0.5rem;
}

.quote-stars {
  color: var(--red-bright);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}

.quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--red-deep);
  margin: 0 0 1.2rem;
}

.quote-attr {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.quote-more {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}
.quote-more:hover { color: var(--red); }

/* ===== Order section ===== */
.order {
  position: relative;
  background-color: var(--paper);
  background-image: url("content/4.webp");
  background-size: 220px;
  background-repeat: repeat;
}
.order::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 236, 0.92);
}
.order .wrap { position: relative; }

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.order-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.9rem 1.6rem 1.6rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-top: 4px solid var(--accent, var(--red));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px -14px rgba(36, 36, 36, 0.3);
}

.order-card__seal {
  position: absolute;
  top: -14px;
  right: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent, var(--red));
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--cream);
  box-shadow: 0 2px 6px rgba(36, 36, 36, 0.25);
  transform: scale(0) rotate(-25deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.is-visible .order-card__seal {
  transform: scale(1) rotate(-8deg);
}

.order-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--red-deep);
}

.order-card__desc {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1;
}

.order-card__link {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--accent, var(--red));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.order-card__link .arrow { transition: transform 0.2s ease; }
.order-card:hover .order-card__link .arrow { transform: translateX(4px); }

.order-card--menu {
  background: linear-gradient(135deg, rgba(48, 156, 60, 0.12), var(--cream));
}

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1.9rem 1.6rem;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-top: 4px solid var(--green-bright);
}

.contact-card__label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  margin: 0;
}

.contact-card__value {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
  flex: 1;
}

/* ===== Footer ===== */
.footer {
  padding: 2.4rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-weight: 600;
}
.footer__brand img { width: 32px; height: 32px; border-radius: 50%; }

.footer__links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.footer__links a:hover { color: var(--red); }

/* ===== Legal pages ===== */
.legal-hero {
  padding: 8.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--paper-line);
}
.legal-hero .eyebrow { color: var(--red); }
.legal-hero .eyebrow::before { background: var(--red); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--red-deep);
  margin: 0.4rem 0 0;
}
.legal-hero p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0.9rem 0 0;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--red-deep);
  margin: 2.4rem 0 0.9rem;
}
.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin: 1.6rem 0 0.6rem;
}

.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.3rem;
  margin: 0.6rem 0 1rem;
}
.legal li { margin-bottom: 0.4rem; }

.legal a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--paper-line);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--red); }

.legal .fact-card {
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--green-bright);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0 1.8rem;
}
.legal .fact-card p { margin: 0.25rem 0; color: var(--ink); }
.legal .fact-card p strong { color: var(--ink); font-weight: 600; }

.legal .note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}
