/* Shared polish for Orchard Route's main customer-facing pages.
   Real evening photography replaces the synthetic festoon dots used by the sunset theme. */

/* Keep the warmth, but remove the heavy brown veil from the main site. */
.page-main {
  background:
    radial-gradient(circle at 84% -10%, rgba(239, 149, 45, .07), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(143, 46, 18, .04), transparent 28rem),
    linear-gradient(180deg, #191a11 0%, #1b170f 38%, #11120c 100%);
}

.page-main .hero::before {
  background:
    radial-gradient(circle at 76% 18%, rgba(253, 213, 101, .14), transparent 26rem),
    linear-gradient(90deg, rgba(7, 9, 5, .56), rgba(9, 10, 6, .20) 48%, rgba(7, 8, 5, .46)),
    linear-gradient(180deg, rgba(5, 6, 4, .02), rgba(6, 7, 4, .52));
}

.page-main .route-page-hero,
.page-main .about-hero {
  background-color: #10120b;
  background-image:
    radial-gradient(circle at 78% 14%, rgba(253, 213, 101, .12), transparent 29rem),
    linear-gradient(90deg, rgba(7, 9, 5, .60), rgba(9, 10, 6, .24) 52%, rgba(7, 8, 5, .50)),
    linear-gradient(180deg, rgba(5, 6, 4, .02), rgba(6, 7, 4, .50)),
    url("../img/orchard-hero.png");
}

.page-cider-houses .directory-hero {
  background:
    radial-gradient(circle at 78% 12%, rgba(253, 213, 101, .14), transparent 30rem),
    radial-gradient(circle at 18% 74%, rgba(143, 46, 18, .06), transparent 30rem),
    linear-gradient(135deg, #30331b 0%, #1a1b10 54%, #10110b 100%);
}

/* Header contact/social icons */
.page-main .header-socials {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px;
}

.page-main .header-social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(253, 213, 101, .18);
  border-radius: 999px;
  color: rgba(255, 246, 213, .84);
  background: rgba(34, 31, 18, .34);
  text-decoration: none;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.page-main .header-social-link svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.page-main .header-social-link:hover,
.page-main .header-social-link:focus-visible {
  transform: translateY(-2px);
  color: #fff7da;
  border-color: rgba(253, 213, 101, .42);
  background: rgba(69, 62, 31, .42);
  box-shadow: 0 0 22px rgba(239, 149, 45, .12);
  outline: none;
}

/* Remove the drawn bulb hot-spots from the main-page card system. */
.page-main .route-page-card::before,
.page-main .route-page-panel::before,
.page-main .route-page-cta::before,
.page-main .about-panel::before,
.page-main .about-principle-card::before,
.page-main .about-cta-panel::before,
.page-main .directory-copy-panel::before,
.page-main .directory-guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 1;
  background:
    radial-gradient(ellipse at top left, rgba(253, 213, 101, .06), transparent 34%),
    radial-gradient(ellipse at top right, rgba(239, 149, 45, .04), transparent 36%),
    radial-gradient(ellipse at bottom center, rgba(143, 46, 18, .03), transparent 40%);
}

/* Restore the producer marks on the cider-house directory cards. */
.page-cider-houses .directory-card::before {
  content: "";
  position: relative;
  inset: auto;
  z-index: 1;
  width: min(72%, var(--logo-max-width, 255px));
  height: var(--logo-max-height, 104px);
  min-height: 92px;
  margin-bottom: auto;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
  border-radius: 0;
  opacity: 1;
  background: transparent var(--producer-logo) left center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
  transition: transform .18s ease, filter .18s ease;
}

.page-cider-houses .directory-card:hover::before,
.page-cider-houses .directory-card:focus-visible::before {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .28));
}

/* Homepage image sections: neutral darkening lets the real colours show through. */
.page-home .home-intro::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(253, 213, 101, .10), transparent 18rem),
    linear-gradient(180deg, rgba(7, 9, 5, .50), rgba(7, 9, 5, .36)),
    url("../img/tree-lights-cosy.png") center center / cover no-repeat;
}

.page-home .makers-section::before {
  background:
    radial-gradient(circle at 78% 16%, rgba(253, 213, 101, .09), transparent 20rem),
    linear-gradient(180deg, rgba(7, 9, 5, .54), rgba(7, 9, 5, .40)),
    url("../img/festoon-lights.png") center center / cover no-repeat;
}

/* Homepage typography: keep the display character while bringing body copy closer in scale. */
.page-home .hero h1 {
  font-size: clamp(2.55rem, 5.7vw, 5.25rem);
}

.page-home .hero-lede {
  font-size: clamp(1.05rem, 1.75vw, 1.20rem);
  line-height: 1.62;
  color: rgba(255, 246, 213, .90);
}

.page-home .section-heading h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
}

.page-home .home-intro-panel h2 {
  font-size: clamp(2.05rem, 3vw, 2.95rem);
  line-height: 1.04;
}

.page-home .home-final-panel h2 {
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  line-height: 1.02;
}

.page-home .section-heading > p:not(.section-label),
.page-home .home-intro-panel p,
.page-home .maker-card p,
.page-home .home-final-panel p {
  font-size: clamp(1rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

.page-home .home-intro-panel p,
.page-home .maker-card p,
.page-home .home-final-panel p {
  color: rgba(255, 246, 213, .85);
}

/* For pubs: the ordering section feels like the same real evening world as the homepage. */
.page-for-pubs #order {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff6d5;
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .54), rgba(7, 9, 5, .40)),
    url("../img/tree-lights-cosy.png") center center / cover no-repeat;
}

.page-for-pubs #order .section-heading > p:not(.section-label),
.page-for-pubs #order .route-page-card p {
  color: rgba(255, 246, 213, .82);
}

.page-for-pubs #order .section-label {
  color: #fdd565;
}

.page-for-pubs #order .route-page-card {
  border-color: rgba(253, 213, 101, .22);
  background: linear-gradient(145deg, rgba(45, 42, 24, .56), rgba(12, 14, 8, .74));
  box-shadow: 0 20px 54px rgba(0, 0, 0, .25);
}

.page-for-pubs .route-page-section-dark {
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .44)),
    url("../img/festoon-lights.png") center center / cover no-repeat;
}

/* Cider makers: alternate the two real evening images through the dark sections. */
.page-for-cider-makers .route-page-section-dark {
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .42)),
    url("../img/tree-lights-cosy.png") center center / cover no-repeat;
}

.page-for-cider-makers .route-page-cta-section {
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .44)),
    url("../img/festoon-lights.png") center center / cover no-repeat;
}

/* About: keep the story warm and photographic, then let the details settle back into timber. */
.page-about .about-story {
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .40)),
    url("../img/tree-lights-cosy.png") center center / cover no-repeat;
}

.page-about .about-principles {
  color: #fff6d5;
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .42)),
    url("../img/festoon-lights.png") center center / cover no-repeat;
}

.page-about .about-principles .section-heading > p:not(.section-label) {
  color: rgba(255, 246, 213, .80);
}

.page-about .about-principles .section-label {
  color: #fdd565;
}

/* Directory: real lights behind the editorial intro and producer grid. */
.page-cider-houses .directory-intro {
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .56), rgba(7, 9, 5, .40)),
    url("../img/tree-lights-cosy.png") center center / cover no-repeat;
}

.page-cider-houses .directory-list-section {
  color: #fff6d5;
  background:
    linear-gradient(180deg, rgba(7, 9, 5, .58), rgba(7, 9, 5, .44)),
    url("../img/festoon-lights.png") center center / cover no-repeat;
}

.page-cider-houses .directory-list-section .section-heading > p:not(.section-label) {
  color: rgba(255, 246, 213, .80);
}

.page-cider-houses .directory-list-section .section-label {
  color: #fdd565;
}

.page-cider-houses .directory-guide {
  background:
    radial-gradient(circle at 82% 12%, rgba(239, 149, 45, .07), transparent 28rem),
    linear-gradient(180deg, #1e2013, #11120c);
}

/* Homepage delivery relationship: make the OTL role visual, not just copy. */
.page-home .home-otl-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
}

.page-home .home-otl-brand span {
  color: rgba(255, 246, 213, .70);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-home .home-otl-brand img {
  width: 96px;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .24));
}

@media (max-width: 980px) {
  .page-main .header-socials {
    order: 20;
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
  }

  .page-main .header-social-link {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 620px) {
  .page-cider-houses .directory-card::before {
    width: min(82%, var(--logo-max-width, 235px));
    height: min(96px, var(--logo-max-height, 96px));
  }

  .page-home .home-otl-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .page-home .home-otl-brand img {
    width: 88px;
  }
}
