/* ==========================================================================
   Halfmoon — sections.css (pages built from ACF sections, incl. home)
   One block per layout in template-parts/sections/.
   Visual language: warm cream paper, ink type, one confident red, and the
   half-moon as the only decorative shape.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 80px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.hero-copy .status-open {
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.hero h1 .accent {
  color: var(--red-600);
}
.hero .sub {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-700);
  max-width: 44ch;
  margin: var(--space-5) 0 var(--space-6);
}
.hero h1 + .btn-row {
  margin-top: var(--space-6);
}
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-700);
}
.hero-proof b {
  color: var(--ink-900);
  margin-right: 2px;
}
.hero-proof:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The pizza sits on a red half-moon — the brand mark, used once and big. */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}
.hero-moon {
  position: absolute;
  inset: 8% 0 0 8%;
  border-radius: 50%;
  background: linear-gradient(to right, var(--red-600) 50%, transparent 50%);
  transform: rotate(-35deg);
}
.hero-pizza {
  position: relative;
  width: 92%;
  height: auto;
  margin: 4% 0 0 4%;
  filter: drop-shadow(0 24px 40px rgba(27, 23, 20, 0.28));
}
.hero-deal {
  position: absolute;
  right: 0;
  bottom: 4%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  align-items: end;
  min-width: 250px;
  padding: 16px 18px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(27, 23, 20, 0.3);
  transition: transform var(--dur) var(--ease);
}
.hero-deal:hover {
  transform: translateY(-2px);
}
.hero-deal-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-400);
}
.hero-deal-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-deal-price {
  grid-row: 2 / 4;
  grid-column: 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
}
.hero-deal-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-300);
}
.hero-deal-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-300);
}
.hero-deal-cta .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Deals ---------- */
.deals-section {
  background: var(--cream-200);
}
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.deal-card:hover {
  box-shadow: 0 0 0 2px var(--ink-900);
}
.deal-media {
  position: relative;
  aspect-ratio: 16/11;
  background: var(--cream-300);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.deal-media img {
  width: 78%;
  height: 92%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.deal-card:hover .deal-media img {
  transform: rotate(-6deg) scale(1.03);
}
.deal-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink-900);
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}
.deal-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.deal-body h3 {
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.deal-body .desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 6px 0 0;
}
.deal-card {
  container-type: inline-size;
}
.deal-body .p-amount {
  font-size: 1.3125rem;
}
.deal-card .foot .p-add .icon {
  width: 18px;
  height: 18px;
}
.deal-card.is-promo .deal-media {
  background: var(--red-600);
}
.promo-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  text-align: center;
}
.promo-value small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.deal-card.is-promo .deal-kicker {
  background: #fff;
  color: var(--red-700);
}

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cat-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--tile, var(--cream-200));
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.cat-media img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cat-media {
  background: var(--cream-300);
}
.cat-card:hover .cat-media img {
  transform: rotate(-8deg) scale(1.05);
}
.cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  line-height: 1.2;
}
.cat-card:hover .cat-name {
  color: var(--red-600);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}
.photo-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.photo-card .cat-media {
  aspect-ratio: 3/2;
  background: var(--cream-200);
}
.photo-card .cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card:hover .cat-media img {
  transform: scale(1.04);
}
.photo-card .cat-name {
  font-size: var(--text-xl);
}

/* ---------- Facts strip (was feature cards) ---------- */
.features {
  padding-block: var(--space-8);
}
.features.is-dark {
  background: var(--ink-900);
  color: var(--ink-300);
}
.features.is-dark .section-head h2,
.features.is-dark .fact h3 {
  color: #fff;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink-900);
}
.is-dark .facts {
  border-color: rgba(255, 255, 255, 0.25);
}
.fact {
  padding: var(--space-5) var(--space-5) 0 0;
}
.fact + .fact {
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-border);
}
.is-dark .fact + .fact {
  border-color: rgba(255, 255, 255, 0.12);
}
.fact-icon {
  width: 26px;
  height: 26px;
  color: var(--red-600);
  margin-bottom: var(--space-3);
}
.is-dark .fact-icon {
  color: var(--amber-400);
}
.fact h3 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.fact p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 34ch;
}
.is-dark .fact p {
  color: var(--ink-300);
}

/* ---------- Reviews ---------- */
.reviews-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.rating-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--ink-300);
}
.rating-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #fff;
}
.rating-source .icon {
  width: 18px;
  height: 18px;
}
.rating-big {
  margin: var(--space-3) 0 4px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #fff;
}
.rating-card .stars .icon {
  width: 20px;
  height: 20px;
}
.rating-card .stars .is-empty {
  color: rgba(255, 255, 255, 0.2);
}
.rating-count {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
}
.rating-others {
  list-style: none;
  margin: var(--space-5) 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  font-size: var(--text-sm);
}
.rating-others li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
}
.rating-others a,
.rating-others span {
  color: #fff;
  font-weight: 600;
}
.rating-others a:hover {
  text-decoration: underline;
}
.rating-others b {
  color: var(--amber-400);
}
.rating-others small {
  grid-column: 1;
  font-size: var(--text-xs);
}
.rating-card .link-arrow {
  color: #fff;
}
.quotes {
  display: grid;
  gap: 0;
}
.quote {
  margin: 0;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}
.quote:first-child {
  padding-top: 0;
}
.quote blockquote {
  margin: 0;
}
.quote blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink-900);
}
.quote blockquote p::before {
  content: "“";
  color: var(--red-600);
}
.quote blockquote p::after {
  content: "”";
  color: var(--red-600);
}
.quote figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.quote figcaption b {
  color: var(--ink-900);
  margin-right: 6px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--amber-500);
}
.stars .icon {
  width: 16px;
  height: 16px;
}
.stars .is-full {
  fill: currentColor;
}
.stars .is-empty {
  color: var(--ink-200);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red-600);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: var(--space-3) 0 0;
  font-size: 1.125rem;
}

/* ---------- Text + media ---------- */
.tm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.is-image-left .tm-media {
  order: -1;
}
.tm-copy .section-head {
  margin-bottom: var(--space-5);
}
.tm-copy .btn {
  margin-top: var(--space-6);
}
.tm-copy .prose {
  font-size: 1.0625rem;
}
.tm-media {
  margin: 0;
}
.tm-media img {
  width: 100%;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- Stats ---------- */
.stats-section {
  padding-block: var(--space-7);
}
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 2px solid var(--ink-900);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--space-5) var(--space-5) 0 0;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.stat dt {
  margin-top: 6px;
  color: var(--color-muted);
  font-weight: 600;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}
.step {
  counter-increment: step;
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink-900);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--red-600);
  margin-bottom: var(--space-3);
}
.step h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step p {
  margin: 0;
  color: var(--color-muted);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.gallery-grid figure {
  margin: 0;
}
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-5);
  align-items: stretch;
}
.contact-cards {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}
a.contact-card:hover {
  border-color: var(--ink-900);
}
.contact-card .ic {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--red-600);
  padding-top: 2px;
}
.contact-card .ic .icon {
  width: 22px;
  height: 22px;
}
.contact-card small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-card b {
  color: var(--ink-900);
  font-size: 1.0625rem;
  word-break: break-word;
}
.contact-card.is-hours > span:last-child {
  flex: 1;
}
.contact-card .hours-row {
  font-size: var(--text-sm);
  margin-top: 4px;
}
.contact-card .hours-row b {
  font-size: var(--text-sm);
}
.contact-card .status-open {
  margin-top: var(--space-3);
}
.map-facade {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, var(--cream-300) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--cream-300) 0 1px, transparent 1px 48px),
    var(--cream-200);
}
.map-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Rich text ---------- */
.content-section .prose {
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .reviews-layout,
  .tm-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .is-image-left .tm-media {
    order: 0;
  }
  .steps,
  .photo-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  /* Compact hero: copy first, then the pizza + deal ticket in one short row. */
  .hero {
    padding-top: var(--space-5);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .hero .sub {
    margin: var(--space-3) 0 var(--space-5);
  }
  .hero .btn-lg {
    padding: 15px 22px;
  }
  .hero-proof {
    margin-top: var(--space-4);
  }
  .hero-visual {
    aspect-ratio: auto;
    max-width: none;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 42% 1fr;
    align-items: center;
    gap: var(--space-3);
  }
  .hero-moon {
    inset: auto;
    left: 0;
    top: 50%;
    width: 42%;
    aspect-ratio: 1;
    translate: 0 -50%;
  }
  .hero-pizza {
    width: 100%;
    margin: 0;
  }
  .hero-deal {
    position: static;
    min-width: 0;
  }
  .hero-deal-name {
    font-size: 1.0625rem;
  }
  .hero-deal-price {
    font-size: 1.375rem;
  }
}
@media (max-width: 680px) {
  /* Deals and categories scroll sideways instead of stacking into a long page. */
  .deals-grid,
  .cat-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .deals-grid::-webkit-scrollbar,
  .cat-grid::-webkit-scrollbar {
    display: none;
  }
  .deal-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .cat-card {
    flex: 0 0 30%;
    scroll-snap-align: start;
  }
  .cat-name {
    font-size: var(--text-sm);
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .fact,
  .fact + .fact {
    padding: var(--space-4) 0;
    border-left: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .steps,
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .cta-band .btn-row {
    width: 100%;
  }
  .cta-band .btn {
    flex: 1;
  }
  .rating-big {
    font-size: 3.5rem;
  }
}
