/* Shared layout for reference-sourced Solutions / Sustainability pages.
   Generated pages link this alongside modern-site.css + order-page.css. */

.sec-body {
  background: #f1f1ef url("../rmc-texture.png") repeat;
  padding: clamp(34px, 5vw, 62px) 0 clamp(48px, 7vw, 86px);
}

.sec-shell {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.sec-narrow {
  max-width: 900px;
}

/* ---------- panel ---------- */
.sec-panel {
  background: #fff;
  border: 1px solid #e6e6e4;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 24, 32, 0.07);
  padding: clamp(22px, 3.2vw, 40px);
}

.sec-panel + .sec-panel {
  margin-top: 26px;
}

/* ---------- headings ---------- */
.sec-title {
  margin: 0;
  color: #141C24;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.sec-rule {
  width: 62px;
  height: 3px;
  margin: 14px 0 24px;
  border-radius: 2px;
  background: #141C24;
}

.sec-eyebrow {
  margin: 0 0 10px;
  color: #4d5560;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- prose ---------- */
.sec-prose {
  color: #333a42;
  font-size: 1rem;
  line-height: 1.78;
}

.sec-prose > *:first-child {
  margin-top: 0;
}

.sec-prose > *:last-child {
  margin-bottom: 0;
}

.sec-prose p {
  margin: 0 0 1.15em;
}

.sec-prose h2,
.sec-prose h3,
.sec-prose h4 {
  margin: 2em 0 0.6em;
  color: #141C24;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.sec-prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.sec-prose h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.sec-prose h4 { font-size: 1.08rem; }

.sec-prose strong { color: #23282e; }

.sec-prose a {
  color: #141C24;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sec-prose a:hover { color: #b3141b; }

.sec-prose img {
  width: 100%;
  height: auto;
  margin: 1.6em 0;
  border-radius: 10px;
}

.sec-prose ul,
.sec-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

.sec-prose li { margin-bottom: 0.5em; }

.sec-prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 5px solid #141C24;
  color: #23282e;
  font-size: 1.05rem;
}

.sec-prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.sec-prose th,
.sec-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid #ececea;
  text-align: left;
}

.sec-prose th {
  color: #141C24;
  font-weight: 800;
}

.sec-prose tbody tr:nth-child(even) { background: #fafafa; }

.sec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- arrow bullet list ---------- */
.sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sec-list li {
  position: relative;
  padding: 11px 0 11px 34px;
  border-top: 1px solid #efefed;
  color: #2f363e;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
}

.sec-list li:first-child { border-top: 0; }

.sec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 9'%3E%3Cpath d='M0 3.2h13.2V0L20 4.5 13.2 9V5.8H0z' fill='%23ed1c24'/%3E%3C/svg%3E")
    no-repeat center / contain;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sec-list li:hover::before { transform: translateX(4px); }

/* ---------- generic card grid ---------- */
.sec-grid {
  display: grid;
  gap: 22px;
}

.sec-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sec-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sec-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sec-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e6e4;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(17, 24, 32, 0.06);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease,
    border-color 0.25s ease;
}

a.sec-card:hover {
  transform: translateY(-5px);
  border-color: #141C24;
  box-shadow: 0 20px 40px rgba(17, 24, 32, 0.12);
}

.sec-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececea;
}

.sec-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.sec-card:hover .sec-card__media img { transform: scale(1.05); }

.sec-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.sec-card__title {
  margin: 0;
  color: #17202a;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

a.sec-card:hover .sec-card__title { color: #141C24; }

.sec-card__text {
  margin: 9px 0 0;
  color: #3d434c;
  font-size: 0.88rem;
  line-height: 1.6;
}

.sec-card__more {
  margin-top: 14px;
  color: #141C24;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sec-card__more::after {
  content: " \2197";
  display: inline-block;
  transition: transform 0.25s ease;
}

a.sec-card:hover .sec-card__more::after { transform: translate(3px, -3px); }

/* ---------- video grid ---------- */
.sec-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sec-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #11161b;
  box-shadow: 0 10px 26px rgba(17, 24, 32, 0.12);
}

.sec-video iframe,
.sec-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.sec-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: rgba(10, 14, 18, 0.28);
  cursor: pointer;
  transition: background 0.2s ease;
}

.sec-video__play:hover { background: rgba(10, 14, 18, 0.12); }

.sec-video__play span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #141C24;
  box-shadow: 0 8px 22px rgba(237, 28, 36, 0.45);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sec-video__play:hover span { transform: scale(1.08); }

.sec-video__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }

/* ---------- media slider ---------- */
.sec-slider {
  position: relative;
}

.sec-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 12px;
}

.sec-slider__track::-webkit-scrollbar { display: none; }

.sec-slider__track img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: center;
}

.sec-slider__nav {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.sec-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c9c6;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sec-slider__dot[aria-current="true"] {
  background: #141C24;
  transform: scale(1.25);
}

/* ---------- image gallery ---------- */
.sec-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sec-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.sec-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.sec-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.sec-figure {
  margin: 0;
}

/* ---------- call to action ---------- */
.sec-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid #141C24;
  border-radius: 30px;
  background: #141C24;
  color: #fff;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}

.sec-btn:hover {
  background: #cf1b15;
  border-color: #cf1b15;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(237, 28, 36, 0.28);
}

.sec-btn--ghost {
  background: #fff;
  color: #141C24;
}

.sec-btn--ghost:hover {
  background: #fff5f5;
  color: #b3141b;
}

.sec-note {
  margin: 14px 0 0;
  color: #4d5560;
  font-size: 0.83rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sec-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sec-grid--3,
  .sec-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sec-grid--2,
  .sec-grid--3,
  .sec-grid--4,
  .sec-video-grid { grid-template-columns: 1fr; }
  .sec-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-btn { width: 100%; }
  .sec-prose { font-size: 0.96rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sec-card,
  .sec-card__media img,
  .sec-btn,
  .sec-list li::before,
  .sec-video__play span {
    transition: none;
  }
}

/* ---------- alternating project showcase ---------- */
.sec-show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e6e4;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 24, 32, 0.07);
}

.sec-show + .sec-show {
  margin-top: 26px;
}

.sec-show__media {
  margin: 0;
  min-height: 280px;
  background: #ececea;
}

.sec-show__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.sec-show__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 38px);
}

.sec-show__body h2 {
  margin: 0 0 18px;
  color: #141C24;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.sec-show--flip .sec-show__media {
  order: 2;
}

/* ---------- division accordion ---------- */
.sec-acc {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e6e4;
  border-radius: 12px;
}

.sec-acc + .sec-acc {
  margin-top: 12px;
}

.sec-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  color: #17202a;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.sec-acc > summary::-webkit-details-marker {
  display: none;
}

.sec-acc > summary:hover {
  background: #fff5f5;
  color: #141C24;
}

.sec-acc > summary:focus-visible {
  outline: 3px solid rgba(237, 28, 36, 0.35);
  outline-offset: -3px;
}

.sec-acc__count {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #141C24;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.sec-acc__count::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sec-acc[open] > summary {
  background: #fff5f5;
  color: #141C24;
  border-bottom: 1px solid #f6d3d4;
}

.sec-acc[open] > summary .sec-acc__count::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.sec-acc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-acc__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: baseline;
  padding: 12px 20px;
  border-top: 1px solid #f4f4f2;
  color: #2f363e;
  font-size: 0.93rem;
  line-height: 1.5;
}

.sec-acc__list li:first-child {
  border-top: 0;
}

.sec-acc__list li:nth-child(even) {
  background: #fafafa;
}

.sec-acc__district {
  color: #4d5560;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .sec-show {
    grid-template-columns: 1fr;
  }

  .sec-show--flip .sec-show__media {
    order: 0;
  }

  .sec-show__media,
  .sec-show__media img {
    min-height: 220px;
  }

  .sec-acc__list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.sec-pagehead {
  margin-bottom: 26px;
}

/* Portrait campaign posters keep their own proportions. */
.sec-gallery--posters {
  align-items: start;
}

.sec-gallery--posters img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* Album covers are ordinary photographs, not 1920x700 banner art, so cap the
   hero. The wide banners render shorter than this and are unaffected. */
.page-banner img {
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}
