/* ==========================================================================
   Astley House: additional styles for the November 2026 SEO update.
   Linked after all other stylesheets so nothing in the legacy CSS is edited.
   Palette from the existing site: navy #253774, grey #4d4a49, white,
   with #828080 for body text and #dddddd for borders.
   ========================================================================== */

/* Section headings that must be real h2 elements but look like .headingOpening */
.whHeading {
  font-weight: normal;
  line-height: 1.3;
  margin: 0.5em 0;
}

.whHeading img {
  vertical-align: middle;
}

/* Care service cards (home page) */
.whCards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0 10px 0;
  padding: 0;
  list-style: none;
}

.whCard {
  flex: 0 1 calc(33.33% - 20px);
  margin: 10px;
  padding: 22px 22px 18px 22px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-top: 4px solid #253774;
  text-align: left;
  box-sizing: border-box;
}

.whCard h3 {
  font-size: 21px;
  font-weight: bold;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.whCard h3 a {
  color: #253774;
  text-decoration: none;
}

.whCard h3 a:hover,
.whCard h3 a:focus {
  text-decoration: underline;
}

.whCard p {
  font-size: 17px;
  line-height: 1.5;
  color: #828080;
  margin: 0 0 14px 0;
}

/* Same look as the site buttons: navy, white text, grey on hover */
.whCardLink {
  display: inline-block;
  padding: 0.6em 1.1em;
  background: #253774;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.whCardLink:hover,
.whCardLink:focus {
  background: #4d4a49;
  color: #ffffff;
  text-decoration: none;
}

/* Care sections: photo and text side by side, alternating (residential-care.html) */
.whBlock {
  clear: both;
  margin: 0 0 30px 0;
  padding: 32px;
  background: #ffffff;
}

.whBlock.whAlt {
  background: #f2f2f2;
}

.whSplit {
  display: flex;
  align-items: center;
}

.whSplit.whReverse {
  flex-direction: row-reverse;
}

.whImg {
  flex: 0 0 42%;
  max-width: 42%;
  margin: 0 36px 0 0;
}

.whReverse .whImg {
  margin: 0 0 0 36px;
}

.whImg img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid #dddddd;
  background: #dddddd;
}

.whBody {
  flex: 1 1 auto;
  min-width: 0;
}

.whBody .mainText:first-child {
  margin-top: 0;
}

/* Footer additions */
.whFooterAreas {
  margin: 10px 0 0 0;
  text-align: center;
}

.whFooterLinks {
  margin: 8px 0 0 0;
  text-align: center;
}

.whFooterLinks a {
  margin: 0 6px;
}

/* Responsive */
@media only screen and (max-width: 1024px) {
  .whCard {
    flex-basis: calc(50% - 20px);
  }
}

@media only screen and (max-width: 768px) {
  .whCard {
    flex-basis: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .whBlock {
    padding: 20px;
  }
  .whSplit,
  .whSplit.whReverse {
    flex-direction: column;
    align-items: stretch;
  }
  .whImg,
  .whReverse .whImg {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
  .whFooterLinks a {
    display: inline-block;
    margin: 4px 6px;
  }
}

/* The footer columns have a fixed 250px height in foundation.css; let them grow
   to fit the extra areas and care links, with space before the grey footer */
.footerLg .heightSLP {
  height: auto;
  min-height: 250px;
  padding-bottom: 20px;
}

/* Keep the three footer columns, and their divider lines, the same height on wider screens */
@media only screen and (min-width: 768px) {
  .footerLg .heightSLP {
    min-height: 380px;
  }
}