/* ==========================================================================
   XGreen Solar — agricultural PV case study (2026-11)
   Page head, fact strip, case gallery and the products-page case band.
   Loaded after style.css / v4.css.
   ========================================================================== */

/* Case page head ---------------------------------------------------------- */
.pagehead--case {
  background:
    linear-gradient(90deg, rgba(6,20,28,.92) 0%, rgba(6,20,28,.80) 46%, rgba(6,20,28,.35) 72%, rgba(6,20,28,.18) 100%),
    url("../img/agri-hero.jpg") 50% 46% / cover no-repeat,
    var(--navy);
  padding: 70px 0 64px;
}
.pagehead--case::after { display: none; }
.pagehead--case h1 { max-width: 760px; }
.pagehead--case p { max-width: 640px; font-size: 17px; }
@media (max-width: 760px) {
  .pagehead--case {
    padding: 48px 0 44px;
    background:
      linear-gradient(180deg, rgba(6,20,28,.92) 0%, rgba(6,20,28,.78) 54%, rgba(6,20,28,.90) 100%),
      url("../img/agri-hero.jpg") 62% 50% / cover no-repeat,
      var(--navy);
  }
  .pagehead--case p { font-size: 15.5px; }
}
.pagehead--case .crumbs { color: #9fb4c0; }
.pagehead--case .crumbs a { color: #9fb4c0; }
.pagehead--case .crumbs a:hover { color: #fff; }
.pagehead--case .eyebrow { color: #8fe0b4 !important; }

/* Fact strip -------------------------------------------------------------- */
.case-facts { background: #fff; border-bottom: 1px solid var(--line); }
.case-facts .wrap {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0; padding-top: 20px; padding-bottom: 20px;
}
.case-fact { border-left: 1px solid var(--line); padding: 2px 18px; min-width: 0; }
.case-fact:first-child { border-left: 0; padding-left: 0; }
.case-fact span {
  display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 3px;
}
.case-fact b { display: block; font-size: 15.5px; line-height: 1.35; color: var(--navy); font-weight: 650; letter-spacing: -.01em; }
@media (max-width: 980px) {
  .case-facts .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; }
  .case-fact:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .case-facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-fact { padding: 2px 12px; }
  .case-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .case-fact b { font-size: 14.5px; }
}

/* Editorial blocks -------------------------------------------------------- */
.case-lead { font-size: 17.5px; line-height: 1.72; color: #2b3d47; }
.case-quote {
  margin: 26px 0 0; padding: 20px 24px; border-left: 3px solid var(--green);
  background: var(--green-soft); border-radius: 0 12px 12px 0;
  font-size: 16px; line-height: 1.65; color: #1e3a2e;
}
.case-quote b { color: var(--green-d); }
.case-block { margin-top: 14px; }
.case-block h3 { margin-top: 26px; font-size: 18px; }
.pb-text h3 { margin-top: 28px; }
.case-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Photo gallery ----------------------------------------------------------- */
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.case-gallery figure { margin: 0; }
.case-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line); background: #e9efec;
}
.case-gallery figure.wide { grid-column: 1 / -1; }
.case-gallery figure.wide img { aspect-ratio: 16 / 9; object-position: center 62%; }
.case-gallery figcaption { margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.case-gallery figcaption b { color: var(--navy); font-weight: 650; }
@media (max-width: 760px) { .case-gallery { grid-template-columns: 1fr; } }

/* Detail row: three square close-ups under the wide opening shot */
.case-gallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery--three img { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .case-gallery--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .case-gallery--three { grid-template-columns: 1fr; } }

/* Two-column comparison (open field vs greenhouse) ------------------------ */
.case-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.case-compare .option { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.case-compare .option h3 { font-size: 17px; margin-bottom: 8px; }
.case-compare .option p { margin-bottom: 10px; }
.case-compare .option ul { margin: 0; padding-left: 18px; font-size: 14px; color: #33454f; line-height: 1.7; }
@media (max-width: 820px) { .case-compare { grid-template-columns: 1fr; } }

/* Products page — case band ---------------------------------------------- */
.case-band {
  display: grid; grid-template-columns: 1.02fr .98fr; margin-top: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; color: inherit; box-shadow: var(--shadow-sm);
}
.case-band:hover { color: inherit; border-color: #cfe3d8; }
.case-band__media { position: relative; min-height: 330px; overflow: hidden; background: #dde7e2; }
.case-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case-band:hover .case-band__media img { transform: scale(1.035); }
.case-band__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(10,26,36,.86); color: #fff; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: 6px 11px;
}
.case-band__body { padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.case-band__body .eyebrow { margin-bottom: 8px; }
.case-band__body h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: -.02em; }
.case-band__body p { color: #44585f; font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
.case-band__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.case-band__facts li {
  position: relative; padding-left: 22px; font-size: 13.5px; color: #33454f; line-height: 1.5; margin: 0;
}
.case-band__facts li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--green-soft); border: 1px solid #bde5cf;
}
.case-band__facts li::after {
  content: ""; position: absolute; left: 4.5px; top: 8.5px; width: 4px; height: 7px;
  border: solid var(--green-d); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.case-band__facts b { color: var(--navy); font-weight: 650; }
.case-band__link {
  font-size: 14px; font-weight: 700; color: var(--green-d);
  display: inline-flex; align-items: center; gap: 6px;
}
.case-band:hover .case-band__link { color: var(--green); }
@media (max-width: 900px) {
  .case-band { grid-template-columns: 1fr; }
  .case-band__media { min-height: 230px; aspect-ratio: 16 / 9; }
  .case-band__body { padding: 24px 22px; }
  .case-band__body h3 { font-size: 20px; }
}
