/* For Pubs ordering journey.
   Aligned with the current Orchard Route evening-photo / dark-panel design system. */

#order {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 118px;
}

#order::before {
  content: none;
}

#order .section-inner {
  position: relative;
  z-index: 1;
}

#order .section-heading {
  max-width: 850px;
}

#order .section-heading > p:not(.section-label) {
  max-width: 760px;
  color: rgba(255, 246, 213, .84);
}

#order .route-page-grid {
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

#order .route-page-card,
#order .route-page-card:nth-child(1),
#order .route-page-card:nth-child(2),
#order .delivery-card {
  min-height: 0;
  padding: clamp(28px, 3.4vw, 40px);
  justify-content: flex-start;
  color: #fff6d5;
  border: 1px solid rgba(253, 213, 101, .22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 4%, rgba(253, 213, 101, .055), transparent 17rem),
    linear-gradient(145deg, rgba(39, 38, 23, .74), rgba(8, 11, 6, .88));
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 213, .055),
    0 22px 54px rgba(0, 0, 0, .24);
}

#order .route-page-card h3,
#order .route-page-card:nth-child(2) h3,
#order .delivery-card h3 {
  margin-bottom: 12px;
  color: #fff6d5;
  font-size: clamp(2rem, 2.9vw, 2.85rem);
  line-height: 1.03;
}

#order .route-page-card p,
#order .route-page-card:nth-child(1) p,
#order .route-page-card:nth-child(2) p,
#order .delivery-card > p:not(.section-label) {
  color: rgba(255, 246, 213, .84);
}

#order .route-page-card .button-row {
  margin-top: auto;
  padding-top: 24px;
}

/* Existing OTL customer: cider-gold emphasis. */
#order .route-page-card:nth-child(1) .section-label {
  color: #fdd565;
}

#order .route-page-card:nth-child(1) .btn-primary {
  color: #28160e;
  border-color: rgba(255, 236, 189, .32);
  background: linear-gradient(180deg, #f7d977, #efa533);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .20);
}

/* Direct Orchard Route: warm apple/cider accent, while keeping the card readable. */
#order .route-page-card:nth-child(2) .section-label {
  color: #ef9b70;
}

#order .route-page-card:nth-child(2) a:not(.btn) {
  color: #f4bd84;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#order .route-page-card:nth-child(2) .btn-secondary {
  color: #fff7e7;
  border-color: rgba(216, 111, 68, .62);
  background: linear-gradient(180deg, #b85b3b, #8e3e29);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

#order .route-page-card:nth-child(2) .btn-secondary:hover,
#order .route-page-card:nth-child(2) .btn-secondary:focus-visible {
  background: linear-gradient(180deg, #c66743, #99472f);
}

/* Delivery: same dark panel system, with the OTL mark in the footer zone. */
#order .delivery-card .section-label {
  order: 1;
  color: #fdd565;
}

#order .delivery-card h3 {
  order: 2;
  max-width: none;
  margin-top: 0;
}

#order .delivery-card > p:not(.section-label) {
  order: 3;
}

.otl-delivery-brand {
  order: 4;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.otl-delivery-brand span {
  color: rgba(255, 246, 213, .72);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.otl-delivery-brand img {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .28));
}

@media (hover: hover) and (pointer: fine) {
  #order .route-page-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }

  #order .route-page-card:hover {
    transform: translateY(-3px);
    border-color: rgba(253, 213, 101, .34);
    box-shadow: 0 28px 64px rgba(0, 0, 0, .28);
  }
}

@media (max-width: 620px) {
  #order {
    scroll-margin-top: 104px;
  }

  #order .route-page-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  #order .route-page-card h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .otl-delivery-brand {
    padding-top: 22px;
  }

  .otl-delivery-brand img {
    width: 62px;
    height: 62px;
  }
}
