/* ==========================================================================
   components/page-intro.css
   The intro block under the page banner: components/common/SectionHeader.jsx
   (eyebrow + title on top, text below, centered).

   Used on the hotel pages: accommodation, dining, experiences, offers,
   gallery, meetings & events, contact.
   Background colour comes from the component (bgColor prop).

   Note: rules are written as html[data-cc-page] .x — that prefix only gives
   them the weight they need over globals.css / CSS modules / library CSS.
   ========================================================================== */

html[data-cc-page] .page-intro {
  padding: 92px 0 88px !important;
}

/* The section right under the intro drops its own top padding, so the gap is
   just the intro's bottom padding (like on the group pages) */
html[data-cc-page] .page-intro + section[class] {
  padding-top: 0 !important;
}

html[data-cc-page] .page-intro-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  align-items: center !important;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

html[data-cc-page] .page-intro-grid > div,
html[data-cc-page] .page-intro-grid > p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

html[data-cc-page] .page-intro .eyebrow {
  margin-bottom: 14px !important;
}

html[data-cc-page] .page-intro h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--inner-title) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
  margin: 0 !important;
}

html[data-cc-page] .page-intro p {
  color: var(--muted);
  font-size: var(--inner-body) !important;
  line-height: 1.82 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

/* Reveal: both halves rise 22px into place */
html[data-cc-page] .page-intro .reveal-left,
html[data-cc-page] .page-intro .reveal-right {
  transform: translateY(22px) !important;
}

html[data-cc-page] .page-intro .reveal-left.in-view,
html[data-cc-page] .page-intro .reveal-right.in-view {
  transform: none !important;
}

@media (max-width: 900px) {
  html[data-cc-page] .page-intro {
    padding: 72px 0 68px !important;
  }

  html[data-cc-page] .page-intro-grid {
    padding: 0 8px;
  }

  html[data-cc-page] .page-intro h2 {
    font-size: clamp(38px,7vw,50px) !important;
  }
}

@media (max-width: 560px) {
  html[data-cc-page] .page-intro {
    padding: 58px 0 54px !important;
  }

  html[data-cc-page] .page-intro h2 {
    font-size: 38px !important;
  }

  html[data-cc-page] .page-intro p {
    font-size: 13px !important;
  }
}
