/* Render the configured photograph separately from the readable text overlay. */
.hero.hero-photo-background {
  background: #100b09;
}

.hero-photo-background .hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero.hero-photo-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, rgb(16 11 9 / 88%), rgb(16 11 9 / 57%) 48%, rgb(16 11 9 / 25%));
}

/* Delivery areas and links remain visible without JavaScript. */
.home-delivery {
  padding-block: clamp(32px, 4vw, 56px);
  background: linear-gradient(120deg, #241810, #130e0b);
  border-bottom: 1px solid rgb(221 172 103 / 22%);
}

.home-delivery .section-head {
  text-align: left;
  margin-bottom: 24px;
}

.home-delivery .section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.home-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: stretch;
}

.home-delivery-area {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 16px 18px;
  border: 1px solid rgb(208 43 34 / 38%);
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
}

.home-delivery-area::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgb(24 13 10 / 90%), rgb(24 13 10 / 68%));
  content: "";
}

/* One local visual per sector keeps the cards lively while the dark veil
   preserves readable text and the existing red/gold button treatment. */
.home-delivery-area:nth-child(1) { background-image: url('../images/heritage/saint-julien.webp'); }
.home-delivery-area:nth-child(2) { background-image: url('../images/heritage/la-rose.png'); }
.home-delivery-area:nth-child(3) { background-image: url('../images/heritage/la-valentine.webp'); }
.home-delivery-area:nth-child(4) { background-image: url('../images/heritage/saint-loup.webp'); }
.home-delivery-area:nth-child(5) { background-image: url('../images/heritage/allauch.webp'); }

.home-delivery-area > * {
  position: relative;
  z-index: 1;
}

.home-delivery-area > h3 {
  display: flex;
  min-height: 58px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.home-delivery-area > p {
  margin: 0;
  color: #d8b898;
  line-height: 1.65;
}

.home-delivery .home-delivery-area--heritage {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 0;
  border: 1px solid rgb(218 116 56 / 30%);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff4dd, #ffe3bd);
  box-shadow: 0 12px 28px rgb(93 42 20 / 18%);
}

.home-delivery-area--heritage .home-delivery-photo {
  display: block;
  flex: 0 0 172px;
  width: 100%;
  height: 172px;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(1.18) contrast(.94) brightness(1.08);
}

.home-delivery-area--heritage .home-delivery-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px 22px 18px;
}

.home-delivery .home-delivery-history {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgb(221 172 103 / 32%);
}

.home-delivery .home-delivery-landmark {
  margin-bottom: 6px;
  font-weight: 700;
  color: #c4542f;
}

.home-delivery-history a,
.home-delivery-credit a {
  display: inline-block;
  padding-block: 4px;
  color: #ba482b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-delivery-history a:focus-visible,
.home-delivery-credit a:focus-visible {
  outline: 2px solid #ffdcaa;
  outline-offset: 3px;
}

.home-delivery .home-delivery-credit {
  margin-top: auto;
  padding-top: 14px;
  font-size: .75rem;
  line-height: 1.5;
  color: #775342;
}

.home-delivery-area h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.home-delivery-area--heritage .home-delivery-area h3,
.home-delivery-area--heritage h3 {
  min-height: 68px;
  display: flex;
  align-items: flex-start;
}

.home-delivery-area--heritage .home-delivery-area h3 a,
.home-delivery-area--heritage h3 a {
  width: 100%;
}

.home-delivery-area--heritage > .home-delivery-content > p:not(.home-delivery-credit) {
  color: #5e4033;
  min-height: 78px;
}

.home-delivery-area--heritage .home-delivery-history {
  margin-top: auto;
}

.home-delivery .home-delivery-area h3 a,
.home-pizzeria .home-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  border: 1px solid #efc88d;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5c518, #d35a27);
  color: #1b100d;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 16px rgb(0 0 0 / 22%);
  transition: background .18s ease, box-shadow .18s ease;
}

.home-delivery .home-delivery-area h3 a:hover,
.home-pizzeria .home-contact-button:hover {
  color: #1b100d;
  background: linear-gradient(135deg, #ffe16a, #ed7842);
  box-shadow: 0 6px 20px rgb(213 164 100 / 24%);
}

.home-delivery .home-delivery-area h3 a:focus-visible,
.home-pizzeria .home-contact-button:focus-visible {
  outline: 2px solid #ffdcaa;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .home-delivery .home-delivery-area h3 a,
  .home-pizzeria .home-contact-button {
    transition: none;
  }
}

.home-delivery-area p,
.home-delivery .home-delivery-note {
  color: #e2ccb0;
  font-size: .95rem;
  line-height: 1.65;
}

.home-delivery-area p {
  margin: 0;
}

.home-delivery .home-delivery-note {
  margin: 24px 0 0;
}

/* The storefront stays decorative; restaurant information remains real text. */
.order.home-pizzeria {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 6vw, 88px);
  border-block: 1px solid rgb(221 172 103 / 25%);
  background-color: #100b09;
  background-image:
    linear-gradient(90deg, #100b09 0%, rgb(16 11 9 / 96%) 36%, rgb(16 11 9 / 68%) 65%, rgb(16 11 9 / 12%) 100%),
    url('../images/source/devanture2.jpg');
  background-position: center, right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.home-pizzeria .section-head {
  max-width: 760px;
  margin-inline: 0;
  text-align: left;
}

.home-pizzeria .section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.12;
  text-wrap: balance;
}

.home-pizzeria .delivery-intro {
  max-width: 760px;
  margin-bottom: 0;
  gap: 24px;
}

.home-pizzeria .delivery-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: rgb(16 11 9 / 80%);
  border: 1px solid rgb(221 172 103 / 28%);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
}

.home-pizzeria .delivery-card h3 {
  margin: 0;
  color: #fff5e8;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
}

.home-pizzeria .delivery-card p {
  margin: 0;
  color: #f0dfc9;
  line-height: 1.65;
}

.home-pizzeria .delivery-card .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 767px) {
  .hero-photo-background .hero-photo {
    object-position: 60% center;
  }

  .hero.hero-photo-background::before {
    background: linear-gradient(180deg, rgb(16 11 9 / 74%), rgb(16 11 9 / 62%) 55%, rgb(16 11 9 / 84%));
  }

  .order.home-pizzeria {
    background-image:
      linear-gradient(180deg, rgb(16 11 9 / 66%), rgb(16 11 9 / 82%) 48%, #100b09 100%),
      url('../images/source/devanture2.jpg');
    background-position: center, center top;
    background-size: cover, 100% auto;
  }

  .home-pizzeria .delivery-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-pizzeria .delivery-card {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .home-pizzeria .section-head,
  .home-delivery .section-head,
  .home-delivery .home-delivery-note {
    text-align: center;
  }

  .home-delivery-grid {
    grid-template-columns: 1fr;
  }

  .home-delivery .home-delivery-area--heritage {
    min-height: 0;
  }

  .home-delivery-area--heritage .home-delivery-photo {
    flex-basis: 150px;
    height: 150px;
  }

  .home-delivery-area--heritage .home-delivery-area h3,
  .home-delivery-area--heritage h3,
  .home-delivery-area--heritage > .home-delivery-content > p:not(.home-delivery-credit) {
    min-height: 0;
  }

  .home-delivery-area {
    min-height: 0;
    padding: 0 0 20px;
    border-left: 0;
    border-bottom: 1px solid rgb(221 172 103 / 22%);
    text-align: center;
  }

  .home-delivery-area > h3 {
    min-height: 0;
    justify-content: center;
  }

  .home-delivery-area:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .home-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
