/* Custom silo solutions page */
.custom-silo-page .section-pad {
  padding-top: clamp(52px, 5.5vw, 76px);
  padding-bottom: clamp(52px, 5.5vw, 76px);
}

.custom-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 28px !important;
  padding-bottom: 14px !important;
  color: var(--muted);
  font-size: 14px;
}

.custom-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.custom-breadcrumb a:hover { text-decoration: underline; }

.custom-silo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(38px, 5.5vw, 78px);
  align-items: center;
  padding-top: 24px !important;
}

.custom-silo-hero-copy { max-width: 690px; }

.custom-silo-hero h1 {
  margin: .35em 0 .42em;
  font-size: clamp(42px, 4.7vw, 66px);
  line-height: 1.04;
}

.custom-silo-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.custom-silo-hero .button { margin-top: 18px; }

.custom-silo-hero > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  max-height: 500px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 46%;
  background: var(--paper);
}

.custom-reasons,
.custom-information,
.custom-process { background: #f4f5f4; }

.custom-reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.custom-reason-grid article {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid #d7dcd9;
  border-top: 3px solid var(--green);
  border-radius: 7px;
  background: var(--white);
}

.custom-reason-grid h3 {
  margin: 0 0 13px;
  font-size: 19px;
  line-height: 1.35;
}

.custom-reason-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.custom-configurations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.custom-configurations .section-head {
  grid-column: 1 / -1;
  max-width: 800px;
  margin-bottom: 4px;
}

.custom-project {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.custom-project-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: zoom-in;
}

.custom-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}

.custom-project:nth-of-type(1) .custom-project-media img { object-position: 50% 27%; }
.custom-project:nth-of-type(2) .custom-project-media img { object-position: 50% 40%; }
.custom-project:nth-of-type(3) .custom-project-media img { object-position: 50% 54%; }

.custom-project-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  align-items: flex-start;
  padding: 26px 24px 24px;
}

.custom-project-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.18;
}

.custom-project-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.custom-tags {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}

.custom-tags span {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #ccd2ce;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.custom-project-copy .button {
  width: 100%;
  margin-top: 0;
  text-align: center;
}

.custom-project-copy .button.secondary {
  border-color: transparent;
  color: var(--white);
  background: var(--green);
}

.custom-project-copy .button.secondary:hover,
.custom-project-copy .button.secondary:focus-visible {
  color: var(--white);
  background: var(--green-dark);
}

.custom-information {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.custom-information > div { max-width: 530px; }

.custom-information > div > p:last-child {
  color: var(--muted);
  line-height: 1.68;
}

.custom-information ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-information li {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 12px 14px 12px 32px;
  border: 1px solid #d7dcd9;
  border-radius: 5px;
  background: var(--white);
  line-height: 1.45;
}

.custom-information li::before {
  position: absolute;
  left: 14px;
  color: var(--green);
  content: "•";
}

.custom-process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.custom-process li {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 26px 26px 28px;
  border: 1px solid #dfe3e0;
  border-top: 3px solid var(--green);
  border-radius: 7px;
  background: var(--white);
}

.custom-process li span {
  color: var(--green);
  font-weight: 700;
}

.custom-process h3 {
  margin: 15px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.custom-process p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.custom-silo-contact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.custom-silo-contact > div:first-child { max-width: 760px; }
.custom-silo-contact h2 { margin-bottom: 13px; }
.custom-silo-contact p:last-child { margin-bottom: 0; }

.custom-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px;
  justify-content: end;
}

.custom-contact-actions .button { white-space: nowrap; }

.custom-silo-contact .button.secondary {
  border-color: rgba(255, 255, 255, .75);
  color: var(--white);
}

.custom-lightbox[hidden] { display: none; }

.custom-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  padding: 64px clamp(12px, 4vw, 54px) 28px;
  background: rgba(5, 10, 14, .93);
}

.custom-lightbox figure {
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  margin: 0;
}

.custom-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 125px);
  object-fit: contain;
}

.custom-lightbox figcaption {
  align-self: end;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.custom-lightbox-close,
.custom-lightbox-nav {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 32px;
  cursor: pointer;
}

.custom-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
}

.custom-lightbox button:focus-visible,
.custom-project-media:focus-visible {
  outline: 3px solid #e9a12c;
  outline-offset: 3px;
}

body.has-custom-lightbox { overflow: hidden; }

@media (max-width: 1100px) {
  .custom-silo-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 36px;
  }

  .custom-silo-hero h1 { font-size: clamp(40px, 5.2vw, 56px); }
  .custom-silo-hero > img { min-height: 330px; }
  .custom-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-reason-grid article { min-height: 180px; }
  .custom-configurations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-process li { min-height: 225px; }

  .custom-silo-contact {
    grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  }

  .custom-contact-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .custom-contact-actions .button { width: 100%; }
}

@media (max-width: 800px) {
  .custom-silo-page .site-header { padding: 14px 20px; }

  .custom-silo-page .menu-toggle { display: block; }

  .custom-silo-page .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .custom-silo-page .site-nav.is-open { display: flex; }
  .custom-silo-page .site-nav a { padding: 12px; }

  .custom-silo-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .custom-silo-hero > img {
    min-height: 0;
    max-height: none;
  }

  .custom-information {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .custom-process ol { grid-template-columns: 1fr; }
  .custom-process li { min-height: 0; }

  .custom-silo-contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .custom-contact-actions {
    grid-template-columns: 1fr;
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .custom-silo-page .section-pad {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .custom-breadcrumb {
    overflow: hidden;
    padding-top: 22px !important;
    padding-bottom: 10px !important;
    white-space: nowrap;
  }

  .custom-breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .custom-silo-hero { padding-top: 16px !important; }
  .custom-silo-hero h1 { font-size: 38px; }
  .custom-silo-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .custom-reason-grid { grid-template-columns: 1fr; }
  .custom-reason-grid article { min-height: 0; }
  .custom-configurations { grid-template-columns: 1fr; gap: 22px; }
  .custom-project-copy { padding: 23px 20px 21px; }
  .custom-project-copy h3 { font-size: 26px; }
  .custom-tags { min-height: 0; }
  .custom-information ul { grid-template-columns: 1fr; }
  .custom-contact-actions { grid-template-columns: 1fr; }
  .custom-contact-actions .button { width: 100%; }

  .custom-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .custom-lightbox-close,
  .custom-lightbox-nav {
    width: 39px;
    height: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-silo-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
