/* ==========================================================================
   Wyvis House: additional styles for the October 2026 SEO update.
   Linked after all other stylesheets so nothing in the legacy CSS is edited.
   Palette: black #000000, silver #9c9d9f (as used in the header, footer and
   hero buttons), white #ffffff. Body text #555555 for readable contrast.
   ========================================================================== */

/* Fourth hero slide on the home page (clean version of the care photograph) */
.cd-hero-slider li:nth-of-type(4) {
  background-color: #9c9d9f;
  background-image: url("../assets/slider-care.jpg");
}

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

/* Care type cards */
.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 #9c9d9f;
  border-top: 4px solid #000000;
  border-radius: 0;
  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: #000000;
  text-decoration: none;
}

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

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

/* Same look as the "Make an Enquiry" hero buttons: black, white text, silver on hover */
.whCardLink {
  display: inline-block;
  padding: 0.6em 1.1em;
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.whCardLink:hover,
.whCardLink:focus {
  background: #9c9d9f;
  color: #ffffff;
}

/* Ornamental divider: silver line, WH monogram, silver line */
.whDivider {
  display: flex;
  align-items: center;
  margin: 40px 0;
}

.whDivider::before,
.whDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #9c9d9f;
}

.whDivider img {
  display: block;
  margin: 0 22px;
}

/* Jump links to the care sections (residential-care.html) */
.whJumpWrap {
  padding: 5px 0 10px 0;
  text-align: center;
}

.whJumpLabel {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.4;
  color: #000000;
}

.whJump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.whJump li {
  margin: 6px;
}

.whJump a {
  display: block;
  padding: 0.7em 1.3em;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.whJump a:hover,
.whJump a:focus {
  background: #000000;
  color: #ffffff;
}

/* Care sections: photo and text side by side, alternating (residential-care.html) */
.whBlock {
  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;
  border: 6px solid #ffffff;
  outline: 1px solid #9c9d9f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

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

.whSectionHeading {
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #000000;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.25;
  color: #000000;
  text-align: left;
}

.whBody .mainText {
  text-align: left;
}

/* FAQ (details and summary, no JavaScript needed) */
.whFaq details {
  margin: 0 0 10px 0;
  background: #ffffff;
  border: 1px solid #9c9d9f;
}

.whFaq summary {
  padding: 14px 18px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  color: #000000;
  cursor: pointer;
}

.whFaq summary:hover,
.whFaq summary:focus,
.whFaq details[open] summary {
  background: #000000;
  color: #ffffff;
}

.whFaq details p {
  margin: 0;
  padding: 14px 18px 8px 18px;
}

/* 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: 640px) {
  .whCard {
    flex-basis: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .whFooterLinks a {
    display: inline-block;
    margin: 4px 6px;
  }
}

@media only screen and (max-width: 768px) {
  .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;
  }
  .whSectionHeading {
    font-size: 24px;
  }
  .whDivider {
    margin: 28px 0;
  }
}

/* At a glance facts strip (nursing-homes-accommodation.html) */
.whFacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 20px 0;
  padding: 0;
  list-style: none;
}

.whFacts li {
  flex: 0 1 calc(33.33% - 20px);
  margin: 10px;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #9c9d9f;
  border-top: 4px solid #000000;
  text-align: center;
  box-sizing: border-box;
}

.whFacts strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
  color: #000000;
}

.whFacts span {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  color: #555555;
}

/* Brand line pull quote (nursing-homes-aims.html) */
.whQuote {
  margin: 0;
  padding: 10px 20px;
  border: 0;
  text-align: center;
}

.whQuote p {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  color: #000000;
}

.whQuote span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9c9d9f;
}

/* Subheadings and text links inside the split blocks */
.whBody .whLinkLine {
  margin-top: 6px;
}

@media only screen and (max-width: 768px) {
  .whFacts li {
    flex-basis: calc(50% - 20px);
  }
  .whQuote p {
    font-size: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .whFacts li {
    flex-basis: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Careers buttons and contact map */
.whButtons {
  margin: 10px 0 20px 0;
  text-align: center;
}

.whButtons .whCardLink {
  margin: 6px;
  padding: 0.9em 1.6em;
}

.whMap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
}

@media only screen and (max-width: 768px) {
  .whMap iframe {
    height: 320px;
  }
}