/* Bootstrap owns the display and positioning of active/next/prev slides. */
.home-hero {
  height: min(680px, 80vh);
  min-height: 460px;
  overflow: hidden;
  background: #17383a;
}
.home-hero .carousel-inner,
.home-hero .carousel-inner > .item {
  height: 100%;
  max-height: none;
}
.home-hero-picture { display: block; height: 100%; }
.home-hero-picture img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,44,47,.84), rgba(9,44,47,.28) 72%, rgba(0,0,0,.1));
}
/* Override the legacy odd/even caption offsets, scoped to this hero. */
#banner.home-hero .item .carousel-caption {
  left: 8%;
  right: 8%;
  bottom: 17%;
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 2;
  text-align: left;
  text-shadow: none;
}
.home-hero-copy { max-width: 680px; }
.home-hero h1, .home-hero h2 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.12;
  font-weight: 700;
}
.home-hero p { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.45; margin: 18px 0 24px; }
.home-hero .btn, .home-quote .btn { font-size: 16px; padding: 12px 24px; }
.home-hero .carousel-control { width: 6%; z-index: 3; }
.home-hero .carousel-indicators { z-index: 4; }

/* Editorial introduction and material links. */
.home-intro { padding: 76px 0 0; background: #fff; border-top: 5px solid var(--brand); }
.home-eyebrow { color: var(--brand-action); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 16px; }
.home-intro h2, .home-quote h2, .home-section-heading h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.17; font-weight: 700; margin: 0 0 24px; }
.home-intro p:not(.home-eyebrow), .home-quote p:not(.home-eyebrow) { font-size: 16px; line-height: 1.7; color: #40585a; }
.home-intro .home-lead { font-size: 20px !important; color: var(--brand-ink) !important; line-height: 1.5 !important; max-width: 600px; }
.home-intro-row, .home-quote-row { display: flex; align-items: center; }
.home-intro-visual { position: relative; max-width: 384px; margin: 0 0 0 auto; padding: 0 0 20px 20px; }
.home-intro-visual::before { content: ''; position: absolute; left: 0; bottom: 0; width: 70%; height: 80%; background: var(--brand-soft); }
.home-intro-visual picture { position: relative; display: block; background: #fff; }
.home-intro-visual img { display: block; width: 100%; height: auto; }
.home-intro-visual figcaption { position: relative; padding: 18px 24px; background: var(--brand-ink); color: #fff; font-size: 17px; line-height: 1.5; border-left: 4px solid var(--brand-accent); }
.home-text-link { display: inline-block; color: var(--brand-action); font-weight: 700; font-size: 15px; margin-top: 10px; text-decoration: none; }
.home-text-link span { padding-left: 9px; }
.home-text-link:hover, .home-text-link:focus { color: var(--brand-hover); text-decoration: underline; }
.home-materials { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--brand-line); }
.home-materials a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; color: var(--brand-ink); font-weight: 700; font-size: 16px; border-right: 1px solid var(--brand-line); }
.home-materials a:first-child { padding-left: 0; }
.home-materials a:last-child { border-right: 0; }
.home-materials a:hover, .home-materials a:focus { background: var(--brand-soft); }

/* Restore the existing backdrop as a full-width dividing band. */
.home-guidance {
  color: #fff;
  padding: 72px 0 76px;
  background-color: #28575b;
  background-image: linear-gradient(105deg, rgba(25,65,69,.94), rgba(40,87,91,.88)), url('/images/standard/back/layer1.jpg');
  background-size: cover;
  background-position: center;
  border-top: 6px solid var(--brand);
  border-bottom: 6px solid var(--brand);
}
@supports (background-image: image-set(url('/images/optimized/back/layer1.webp') type('image/webp'))) {
  .home-guidance { background-image: linear-gradient(105deg, rgba(25,65,69,.94), rgba(40,87,91,.88)), image-set(url('/images/optimized/back/layer1.webp') type('image/webp'), url('/images/standard/back/layer1.jpg') type('image/jpeg')); }
}
.home-section-heading { max-width: 730px; margin-bottom: 34px; }
.home-guidance .home-eyebrow { color: #eab8ab; }
.home-guidance .home-section-heading h2 { color: #fff; margin-bottom: 16px; }
.home-guidance .home-section-heading > p:last-child { color: #e5f1f0; font-size: 18px; line-height: 1.6; }
.home-application-row { display: flex; }
.home-application-row > div { display: flex; }
.home-application { display: flex; flex-direction: column; width: 100%; padding: 30px 26px; background: #fff; border-top: 4px solid var(--brand-accent); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.home-application-row > div:nth-child(2) .home-application { background: var(--brand-warm); }
.home-application picture { display: block; margin-bottom: 10px; }
.home-application h3 { color: var(--brand-ink); font-size: 25px; font-weight: 700; margin: 12px 0 16px; }
.home-application p { font-size: 16px; line-height: 1.6; color: #40585a; }
.home-application ul { padding: 14px 0 18px 18px; margin: 0; font-size: 14px; line-height: 1.7; color: #40585a; }
.home-application .home-text-link { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--brand-line); }

.home-quote { padding: 76px 0; background: var(--brand-warm); border-bottom: 1px solid #e4ddd3; }
.home-quote .home-eyebrow { color: var(--brand-accent-hover); }
.home-quote .btn { margin-top: 15px; }
.home-quote-steps { padding: 0; margin: 0; list-style: none; counter-reset: quote-step; }
.home-quote-steps li { counter-increment: quote-step; position: relative; padding: 0 0 24px 66px; margin-bottom: 24px; border-bottom: 1px solid #e4ddd3; }
.home-quote-steps li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.home-quote-steps li::before { content: '0' counter(quote-step); position: absolute; left: 0; top: 0; width: 45px; height: 45px; background: var(--brand-soft); color: var(--brand-action); font-size: 21px; font-weight: 700; text-align: center; line-height: 45px; }
.home-quote-steps h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: var(--brand-ink); }
.home-quote-steps p { margin: 0; }
@media (max-width: 991px) {
  .home-intro-row, .home-quote-row { display: block; }
  .home-intro-visual { margin: 32px auto 0; }
  .home-quote-steps { margin-top: 38px; }
  .home-application { padding: 24px 18px; }
}
@media (max-width: 767px) {
  .home-hero { height: 620px; min-height: 620px; }
  #banner.home-hero .item .carousel-caption { left: 11%; right: 11%; bottom: 13%; }
  .home-hero .carousel-control { width: 8%; }
  .home-hero h1, .home-hero h2 { font-size: 29px; }
  .home-hero p { font-size: 16px; }
  .home-hero-picture img { object-position: center; }
  .home-intro { padding-top: 44px; }
  .home-intro h2 br, .home-quote h2 br { display: none; }
  .home-intro .home-lead { font-size: 18px !important; }
  .home-materials { grid-template-columns: 1fr; margin-top: 32px; }
  .home-materials a, .home-materials a:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .home-materials a:last-child { border-bottom: 0; }
  .home-guidance, .home-quote { padding: 46px 0; }
  .home-application-row { display: block; }
  .home-application-row > div { display: block; margin-bottom: 20px; }
  .home-application-row > div:last-child { margin-bottom: 0; }
  .home-application { padding: 26px; }
}
