/**
 * The Churchill Experience sub-pages — About Us (`106:11968`), Property Amenities
 * (`106:13233`), Blog (`106:12160`) and Accessibility (`106:14846`).
 * They share a centred title, a prose column and the closing Amenities strip, so one
 * stylesheet serves all four.
 */

.subpage {
  padding-top: 60px;
}

/* A page that ends with the Amenities strip needs no room below the prose — that band
   brings its own. A page without one, such as Accessibility, would otherwise leave the
   photograph flush against the footer. 60/120 is the same rhythm .feature-page uses. */
.subpage > .container:last-child {
  padding-bottom: 120px;
}

.subpage__title {
  margin-bottom: 60px;
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-medium);
  letter-spacing: -1.12px;
  text-align: center;
  color: var(--color-grey-dark);
}

/* ============================================================
   Prose beside a photograph
   ============================================================ */

/* Figma `106:11972`: the copy takes the remaining width against a fixed 585px photo. */
.subpage__split {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.subpage__prose {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* Figma sets the phone number and address inside the prose in bold body colour rather
   than as tinted links; they stay clickable here but take the design's weight. */
.subpage__prose a {
  font-weight: var(--weight-semibold);
  color: inherit;
}

.subpage__prose a:hover {
  color: var(--color-green-primary);
}

.subpage__figure {
  flex: none;
  width: 585px;
  height: 374px;
  border-radius: var(--radius-control-lg);
  overflow: hidden;
}

.subpage__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Standard amenities — four columns of grouped lists
   ============================================================ */

/* Figma rules off the lede with a hairline across the full content width. */
.subpage__lede {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-grey-light);
  font-size: var(--text-h3);
  line-height: 30px;
  text-align: center;
  color: var(--color-grey-dark);
}

/* Figma `106:13240`: four 358px columns on a 40px gutter. */
.amenity-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10);
  align-items: start;
}

.amenity-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.amenity-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amenity-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-h3);
  line-height: 24px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

.amenity-group__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  color: var(--color-green-primary);
}

.amenity-group__list {
  padding-left: 27px;
  list-style: disc;
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* ============================================================
   Blog index
   ============================================================ */

/* Figma `106:12164`: a 1092px post column beside a 400px sidebar on a 60px gutter. */
.blog {
  display: grid;
  grid-template-columns: minmax(0, 1092fr) minmax(0, 400fr);
  gap: 60px;
  align-items: start;
}

.blog__main {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.blog__main > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-grey-light);
}

.post__title {
  font-size: var(--text-h3);
  line-height: 30px;
  font-weight: var(--weight-semibold);
  color: var(--color-green-primary);
}

.post__title a {
  color: inherit;
}

.post__excerpt {
  font-size: 18px;
  line-height: 32px;
  color: var(--color-grey-dark);
}

/* --- Pagination --- */

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.page-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0.8px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: var(--weight-medium);
  color: var(--color-grey-secondary);
}

/* The design draws these as buttons; they are links here so each page has a real URL. */
a.page-btn:hover {
  text-decoration: none;
}

.page-btn.is-current {
  border-color: var(--color-green-primary);
  background: var(--color-green-primary);
  color: var(--text-inverse);
}

.page-btn.is-disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: var(--text-body);
  line-height: 24px;
  color: var(--color-grey-secondary);
}

/* --- Sidebar --- */

/* Figma `106:12180`: a white card on a hairline, 20px padding, with the entries ruled
   off from one another. */
.blog__side {
  padding: 20px;
  border: 1px solid rgba(217, 217, 217, 0.6);
  border-radius: var(--radius-control-lg);
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(2, 117, 131, 0.05);
}

.blog__side-heading {
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
  line-height: 30px;
  font-weight: var(--weight-medium);
  color: var(--color-grey-dark);
}

.blog__side-list {
  display: flex;
  flex-direction: column;
}

.blog__side-list li + li {
  border-top: 1px solid var(--color-grey-light);
}

.blog__side-list a {
  display: block;
  padding-block: var(--space-4);
  font-size: var(--text-sm);
  line-height: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-green-primary);
}

.blog__side-list li:first-child a {
  padding-top: 0;
}

.blog__side-list a:hover {
  text-decoration: underline;
}

/* ============================================================
   Closing Amenities strip
   ============================================================ */

/* Figma `163:18416`: white band, 90px of padding top and bottom, 60px to the tiles. */
.explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin-top: 60px;
  padding: 90px 80px;
  background: var(--color-white);
}

.explore__title {
  font-size: var(--text-h2);
  line-height: 64px;
  font-weight: var(--weight-medium);
  letter-spacing: -1.12px;
  text-align: center;
  color: var(--color-grey-dark);
}

.explore__tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.explore__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 250px;
  height: 152px;
  padding-block: var(--space-5);
  border-radius: var(--radius-control-lg);
}

.explore__icon {
  display: grid;
  place-items: center;
  width: 85px;
  height: 85px;
  color: var(--color-green-primary);
}

.explore__label {
  font-size: 22px;
  line-height: 22px;
  font-weight: var(--weight-semibold);
  color: var(--color-grey-dark);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .amenity-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage__figure {
    width: 40%;
    height: auto;
    aspect-ratio: 585 / 374;
  }
}

@media (max-width: 900px) {
  .subpage {
    padding-top: var(--space-22);
  }

  .subpage > .container:last-child {
    padding-bottom: var(--space-22);
  }

  .subpage__title,
  .explore__title {
    margin-bottom: var(--space-8);
    line-height: normal;
  }

  .subpage__split {
    flex-direction: column;
    gap: var(--space-6);
  }

  .subpage__figure {
    order: -1;
    width: 100%;
  }

  .subpage__prose {
    font-size: var(--text-body);
    line-height: 28px;
  }

  .subpage__lede {
    font-size: var(--text-lead);
    line-height: 28px;
    text-align: left;
  }

  .amenity-columns {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .blog {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .blog__main,
  .blog__main > div:first-child {
    gap: var(--space-8);
  }

  .post__title {
    font-size: var(--text-h4);
    line-height: 26px;
  }

  .post__excerpt {
    font-size: var(--text-body);
    line-height: 28px;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .blog__side {
    padding: 0;
  }

  .blog__side-heading {
    font-size: var(--text-h3);
    line-height: 30px;
  }

  .amenity-column {
    gap: var(--space-8);
  }

  .amenity-group__head {
    font-size: var(--text-h4);
    line-height: 26px;
  }

  .amenity-group__list {
    font-size: var(--text-body);
    line-height: 28px;
  }

  .explore {
    margin-top: var(--space-10);
    padding: var(--space-22) var(--gutter);
    gap: var(--space-8);
  }
}
