/* ---------------------------------------------------------------------------
   Site blocks added for the estates content: who we are, the target-client
   strip and case studies. Loaded by the public site layout, after the design
   sheet, so it only ever touches the marketing pages.
--------------------------------------------------------------------------- */

/* Who we are: the founder-led block that sits directly under Why Choose Us. */
.el .who-we-are-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.05fr 1fr;
  gap: 48px;
  width: 100%;
  align-items: center;
}

/* DJ's portrait, sitting beside the copy. */
.el .who-we-are-portrait {
  width: 100%;
}

.el .who-we-are-portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-color: var(--second-off-white);
}

.el .who-we-are-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
}

.el .who-we-are-portrait-note {
  margin: 12px 0 0;
  color: #456260;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.el .who-we-are-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--dark-green);
}

.el .who-we-are-text {
  max-width: 40rem;
  color: #004649;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.el .who-we-are-card {
  background-color: var(--off-white);
  border-radius: 10px;
  padding: 32px 30px;
  color: var(--dark-green);
}

.el .who-we-are-card-title {
  margin-bottom: 18px;
  color: #6c8a88;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.el .who-we-are-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el .who-we-are-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.el .who-we-are-item img {
  flex: none;
  margin-top: 2px;
}

@media screen and (max-width: 991px) {
  .el .who-we-are-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .el .who-we-are-card {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .el .who-we-are-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .el .who-we-are-card {
    grid-column: auto;
  }
}

/* Case studies: the page opens on the same white card as the other subpages,
   lifted over the top of the page so the wordmark tucks behind it. */
.el .section.case-study-page {
  background-color: var(--white);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: -53px;
  box-shadow: 0 -4px 5px #0003;
  padding-top: 120px;
}

/* About: six sector cards in three columns, and the case studies link. */
.el .who-we-help-boxes .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 991px) {
  .el .who-we-help-boxes .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

.el .about-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.el .about-case-link {
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.el .about-case-link:hover {
  color: #007e83;
}

/* Target clients: a compact strip of the six sectors. */
.el .sectors-intro,
.el .case-studies-intro {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  color: #456260;
}

.el .sector-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.el .sector-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background-color: var(--white);
  border-radius: 10px;
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.el .sector-chip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--elementum-green);
}

@media screen and (max-width: 991px) {
  .el .sector-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 479px) {
  .el .sector-strip {
    grid-template-columns: 1fr;
  }
}

/* Case studies: cards on the home page and on the case studies index. */
.el .case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
}

.el .case-study-card {
  overflow: hidden;
  background-color: var(--off-white);
  border-radius: 10px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.el .case-study-card:hover {
  box-shadow: 0 6px 16px rgba(0, 70, 73, 0.08);
  transform: translateY(-1px);
}

.el .case-study-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.el .case-study-card-link:focus-visible {
  outline: 3px solid #007e83;
  outline-offset: 3px;
}

.el .case-study-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.el .case-study-card-more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
}

.el .case-study-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
}

.el .case-study-sector {
  color: #007e83;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.el .case-study-card-title {
  margin: 0;
  color: #004649;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.el .case-study-card-meta {
  color: #456260;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.el .case-study-card-text {
  margin: 0;
  color: #004649;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.el .case-study-placeholder {
  max-width: 46rem;
  margin: 0 auto;
  padding: 34px 32px;
  background-color: var(--off-white);
  border-radius: 10px;
  color: var(--dark-green);
}

.el .case-studies-more {
  margin-top: 32px;
}

.el .case-studies-more a {
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.el .case-studies-more a:hover {
  color: #007e83;
}

@media screen and (max-width: 991px) {
  .el .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .el .case-study-grid {
    grid-template-columns: 1fr;
  }
}

/* Case study detail page. The top block is the same white card as every other
   page: rounded corners, pulled up over the wordmark, with a soft shadow. */
.el .section.case-study-detail {
  background-color: var(--white);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: -53px;
  box-shadow: 0 -4px 5px #0003;
  padding-top: 120px;
}

.el .case-study-back {
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.el .case-study-back:hover {
  color: #007e83;
}

.el .case-study-shell {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  text-align: left;
}

.el .case-study-head {
  max-width: 46rem;
  margin-top: 26px;
}

.el .main-wrapper .case-study-title {
  margin-top: 10px;
  font-size: 3rem;
  line-height: 1.1;
}

.el .main-wrapper .case-study-summary {
  margin-top: 14px;
  color: #456260;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

.el .case-study-lead-image {
  display: block;
  width: 100%;
  max-height: 30rem;
  margin-top: 34px;
  object-fit: cover;
  border-radius: 10px;
}

.el .case-study-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 22px 0;
  border-top: 1px solid #dce8e7;
  border-bottom: 1px solid #dce8e7;
}

.el .case-study-fact-label {
  margin-bottom: 4px;
  color: #6c8a88;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.el .case-study-fact-value {
  margin: 0;
  color: var(--dark-green);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.el .case-study-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.el .case-study-block {
  margin-top: 32px;
}

.el .case-study-pair .case-study-block {
  margin-top: 0;
}

.el .case-study-body {
  margin-top: 36px;
}

.el .case-study-body .rich-text p {
  color: #456260;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.el .main-wrapper .case-study-block-title {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.el .main-wrapper .case-study-body-text {
  color: #456260;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.el .case-study-cta {
  margin-top: 44px;
  padding: 32px;
  background-color: var(--off-white);
  border-radius: 10px;
}

@media screen and (max-width: 767px) {
  .el .main-wrapper .case-study-title {
    font-size: 2.25rem;
  }

  .el .case-study-pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .el .case-study-facts {
    grid-template-columns: 1fr;
  }
}
