/* ===== Culori și fonturi (modifică aici pentru alt aspect) ===== */
:root {
  --red: #c8361f;
  --red-dark: #9e2614;
  --cream: #fbf6ee;
  --dough: #f1e4cf;
  --ink: #2a1d16;
  --muted: #7a6a5e;
  --green: #3f7a3a;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--cream);
  /* model discret cu frunze de busuioc și roșii */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg opacity='.07'%3E%3Cpath d='M20 40c8-14 32-14 40 0-8 14-32 14-40 0z' fill='%233f7a3a'/%3E%3Ccircle cx='115' cy='110' r='14' fill='none' stroke='%23c8361f' stroke-width='3'/%3E%3Ccircle cx='115' cy='110' r='4' fill='%23c8361f'/%3E%3Cpath d='M100 30c6-10 22-10 28 0-6 10-22 10-28 0z' fill='%233f7a3a' transform='rotate(40 114 30)'/%3E%3Ccircle cx='40' cy='125' r='6' fill='%23c8361f'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .logo, .price, .phone-big {
  font-family: "Playfair Display", Georgia, serif;
}

a { color: inherit; text-decoration: none; }

/* ===== Antet ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    /* jar de cuptor în colțuri */
    radial-gradient(ellipse at 0% 100%, rgba(200, 54, 31, .45), transparent 55%),
    radial-gradient(ellipse at 35% 0%, rgba(255, 140, 60, .12), transparent 50%),
    #1a1310;
  color: #fff;
  padding: 0 20px 110px;
}

/* Valul de jos al antetului */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 2;
}

.nav, .hero-content { position: relative; z-index: 2; }

/* ===== Decor antet ===== */
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Poza Pizza Spic, care se topește în fundalul întunecat */
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 64%;
  background: url("img/hero.jpg") 40% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 50%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 50%);
  transform-origin: 60% 50%;
  animation: slowzoom 26s ease-in-out infinite alternate;
}
/* umbră caldă peste poză (vignetă) */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 19, 16, .75), transparent 35%),
    radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(26, 19, 16, .55) 100%);
}

/* granulație de film */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* desene cu creta */
.chalk {
  position: absolute;
  fill: none;
  stroke: #f6ead8;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .5;
}
.chalk path, .chalk circle {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 3.5s ease-out forwards;
}
.chalk circle { fill: #f6ead8; stroke: none; animation: none; stroke-dasharray: none; }
.wheat { height: 300px; left: 41%; bottom: 60px; transform: rotate(14deg); }
.wheat g path { animation-delay: .6s; }
.basil { width: 110px; left: 38%; top: 120px; transform: rotate(-18deg); }
.basil path { animation-delay: 1.2s; }
.swirl { width: 190px; right: 5%; top: 92px; opacity: .4; }
.swirl path { animation-delay: 1.8s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slowzoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
  .chalk path { animation: none; stroke-dashoffset: 0; }
}

.hero h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }

/* text scris de mână */
.script {
  font-family: "Caveat", cursive;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: #ffb27a;
  transform: rotate(-3deg);
  transform-origin: left;
  display: inline-block;
  margin: -4px 0 22px 4px;
  line-height: 1;
}
.script svg {
  display: block;
  width: 100%;
  height: 14px;
  fill: none;
  stroke: #ffb27a;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-wheat {
  width: 28px; height: 28px;
  fill: none;
  stroke: #ffb27a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 901px) {
  .hero { min-height: 680px; }
  .hero-content { margin-top: 80px; }
}

@media (max-width: 900px) {
  .hero-photo {
    width: 100%;
    -webkit-mask-image: none;
            mask-image: none;
    opacity: .5;
  }
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(26, 19, 16, .6), rgba(26, 19, 16, .85));
  }
  .basil, .swirl, .wheat { display: none; }
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.logo { font-size: 1.5rem; font-weight: 800; }

.nav-phone {
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .6);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .2s;
}
.nav-phone:hover { background: rgba(255, 255, 255, .15); }

.hero-content {
  max-width: 1100px;
  margin: 60px auto 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: #ffb27a;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 1.15rem;
  max-width: 480px;
  opacity: .92;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(200, 54, 31, .5);
}
.btn-primary:hover { background: #dd4129; }
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ===== Meniu ===== */
.menu {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: -50px auto 0;
  padding: 0 20px 80px;
}

.section-head {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(60, 30, 10, .08);
}
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); }

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.menu-tabs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.menu-tabs a {
  background: var(--dough);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.menu-tabs a:hover { background: var(--red); color: #fff; }

.category {
  font-size: 1.8rem;
  margin: 36px 0 16px;
  scroll-margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.category::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--dough), transparent);
}

.pizza-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--dough);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.pizza-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(60, 30, 10, .12);
}

.photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--dough);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.pizza-card:hover .photo img { transform: scale(1.06); }

.photo .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.card-body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.weight {
  margin-top: auto;
  padding-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.pizza-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--dough);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.pizza-top h3 { font-size: 1.35rem; }

.price {
  color: var(--red);
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}
.price small { font-size: .9rem; font-family: "Inter", sans-serif; font-weight: 600; }

.tag {
  display: inline-block;
  background: #eaf3e8;
  color: var(--green);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ingredients { color: var(--muted); }

/* ===== Comandă ===== */
.order {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.order h2 { font-size: 2.4rem; margin-bottom: 8px; }
.order > p { opacity: .8; }

.phone-big {
  display: inline-block;
  margin: 26px 0 40px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  color: #ffb27a;
  transition: color .2s;
}
.phone-big:hover { color: #fff; }

.info {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.info h3 { font-size: 1.1rem; color: #ffb27a; margin-bottom: 4px; }
.info p { opacity: .85; }
.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #ffb27a;
  border-bottom: 1px solid rgba(255, 178, 122, .5);
}
.map-link:hover { color: #fff; border-color: #fff; }

.footer {
  text-align: center;
  padding: 24px;
  font-size: .85rem;
  color: var(--muted);
}

/* ===== Buton de apel (doar pe telefon) ===== */
.call-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(200, 54, 31, .45);
  z-index: 10;
}

@media (max-width: 640px) {
  .hero { padding-bottom: 70px; }
  .hero-content { margin-top: 30px; }
  .nav-phone { display: none; }
  .section-head { padding: 22px; }
  .pizza-grid { grid-template-columns: 1fr; }
  .call-fab { display: inline-block; }
  .footer { padding-bottom: 90px; }
}
