/* ==========================================================================
   POP PIZZA - HERO
   Mobile-first first-screen composition with a single crop and spacing model.
   ========================================================================== */

.hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  padding-top: var(--header-height);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.82) 0%, rgba(246, 241, 232, 0) 48%),
    linear-gradient(180deg, #F6F1E8 0%, #F2ECE3 100%);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.hero__pizza-stage {
  position: relative;
  width: 100%;
  height: clamp(184px, 58vw, 252px);
  overflow: hidden;
  isolation: isolate;
}

.hero__pizza-center {
  position: absolute;
  z-index: 2;
  top: clamp(-149px, -35vw, -131px);
  left: 50%;
  width: clamp(332px, 98vw, 420px);
  transform: translateX(-50%);
}

.hero__pizza-float {
  width: 100%;
  animation: pizzaFloat 5.8s ease-in-out infinite;
}

.hero__pizza-spin {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
  transform-origin: center;
  will-change: transform;
  animation: pizzaSpin 32s linear infinite;
}

.hero__pizza-shadow {
  display: none;
}

.hero__content {
  width: min(100%, 680px);
  padding: 38px 22px 38px;
}

.hero__eyebrow {
  max-width: 42ch;
  margin: 0 0 12px;
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: clamp(11px, 2.9vw, 12px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__eyebrow span {
  margin-inline: 0.25em;
  color: var(--color-red);
}

.hero__headline {
  max-width: 12.5ch;
  margin: 0 0 16px;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-size: clamp(34px, 9.4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.hero__headline span {
  display: block;
}

.hero__headline span:last-child {
  color: var(--color-red);
}

.hero__text {
  max-width: 30ch;
  margin-bottom: 22px;
  color: #66645D;
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.5;
}

.hero__cta {
  display: grid;
  gap: 11px;
  margin: 0;
}

.hero__button {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1.5px solid transparent;
  border-radius: 13px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    opacity 200ms ease;
}

.hero__button--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(230, 43, 50, 0.14);
}

.hero__button--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 28px rgba(230, 43, 50, 0.19);
  transform: translateY(-2px);
}

.hero__button--secondary {
  border-color: var(--color-green);
  background: var(--color-cream);
  color: var(--color-green);
}

.hero__button--secondary:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero__button:active {
  opacity: 0.88;
  transform: translateY(0) scale(0.995);
}

@keyframes pizzaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pizzaFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 599px) {
  .hero__layout {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
  }
}

@media (max-width: 340px) {
  .hero__content {
    padding-inline: 18px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  .hero__pizza-stage {
    height: 150px;
  }

  .hero__pizza-center {
    top: -110px;
    width: 280px;
  }

  .hero__content {
    padding-top: 38px;
    padding-bottom: 0;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
    font-size: 10.5px;
  }

  .hero__headline {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .hero__text {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .hero__cta {
    gap: 10px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hero__pizza-stage {
    height: 280px;
  }

  .hero__pizza-center {
    top: -210px;
    width: min(68vw, 520px);
  }

  .hero__content {
    width: min(calc(100% - 96px), 640px);
    margin-inline: auto;
    padding: 38px 0 34px;
  }

  .hero__cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .hero__layout {
    width: min(calc(100% - 96px), 1320px);
    min-height: auto;
    margin-inline: auto;
    padding: 36px 0 42px;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
    align-items: center;
    gap: clamp(42px, 6vw, 88px);
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .hero__pizza-stage {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: clamp(470px, 37vw, 500px);
    overflow: visible;
  }

  .hero__pizza-center {
    top: 50%;
    left: 50%;
    width: min(42vw, 560px);
    transform: translate(-50%, -50%);
  }

  .hero__pizza-shadow {
    position: absolute;
    z-index: 1;
    bottom: 7%;
    left: 50%;
    width: min(34vw, 400px);
    height: 64px;
    display: block;
    border-radius: 50%;
    background: rgba(25, 26, 23, 0.11);
    filter: blur(32px);
    transform: translateX(-50%) scaleX(1.08);
  }

  .hero__eyebrow {
    margin-bottom: 17px;
    font-size: 0.75rem;
  }

  .hero__headline {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: clamp(3.2rem, 4.6vw, 4.5rem);
    line-height: 0.99;
  }

  .hero__text {
    max-width: 34ch;
    margin-bottom: 28px;
    font-size: 1.0625rem;
  }

  .hero__cta {
    grid-template-columns: repeat(2, max-content);
    gap: 13px;
  }

  .hero__button {
    width: auto;
    min-width: 188px;
  }
}

@media (min-width: 1280px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(500px, 0.94fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pizza-float,
  .hero__pizza-spin {
    animation: none;
  }
}
