/* Environmental & Sustainability Policy.
   Same two-column shape as the contact page — tonal block and dot grid top-left,
   content left, a sticky panel right — with an EcoVadis-leaning green accent
   used only on this page. */

.env-page { --eco: #1f7a52; --eco-soft: #e4efe8; --eco-deep: #0f4d33; padding: 0; }

.env-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }

/* Left column ----------------------------------------------------------- */
.env-left { position: relative; padding: 96px var(--gutter) 90px; }
.env-tone { position: absolute; top: 0; left: 0; z-index: 0; width: min(82%, 640px); height: min(46%, 420px); background: var(--eco-soft); pointer-events: none; }
.env-dots { position: absolute; top: 0; left: 0; z-index: 1; width: min(44%, 320px); height: min(40%, 300px); background-image: radial-gradient(rgba(15, 77, 51, .25) 1.4px, transparent 1.5px); background-size: 22px 22px; opacity: .6; pointer-events: none; }
.env-left > *:not(.env-tone):not(.env-dots) { position: relative; z-index: 2; }

.env-eyebrow { margin: 0 0 14px; color: var(--eco); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.env-heading { margin: 0 0 26px; max-width: 16ch; font-size: clamp(38px, calc(4.4 * var(--vw, 1vw)), 64px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.env-lede { max-width: 60ch; margin: 0 0 44px; color: rgba(10, 10, 10, .72); font-size: clamp(16px, calc(1.3 * var(--vw, 1vw)), 19px); line-height: 1.6; }
.env-lede strong { font-weight: 700; color: var(--eco-deep); }

.env-h2 { margin: 54px 0 10px; font-size: clamp(20px, calc(1.8 * var(--vw, 1vw)), 24px); font-weight: 400; letter-spacing: -0.02em; }
.env-note { max-width: 62ch; margin: 0 0 22px; color: rgba(10, 10, 10, .55); font-size: 14px; line-height: 1.6; }

/* Headline figures ------------------------------------------------------ */
.env-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 26px 0; border-top: 1px solid rgba(15, 77, 51, .2); border-bottom: 1px solid rgba(15, 77, 51, .2); }
.env-stat-num { display: block; color: var(--eco-deep); font-size: clamp(34px, calc(3.6 * var(--vw, 1vw)), 50px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.env-stat-sup { font-size: .42em; vertical-align: super; letter-spacing: 0; }
.env-stat-label { display: block; margin-top: 10px; color: rgba(10, 10, 10, .58); font-size: 13px; line-height: 1.45; }

/* EcoVadis theme scores ------------------------------------------------- */
.env-scores { display: grid; gap: 18px; max-width: 620px; }
.env-score-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.env-score-name { font-size: 14px; }
.env-score-val { color: var(--eco-deep); font-size: 15px; font-weight: 700; }
.env-bar { display: block; height: 6px; border-radius: 3px; background: rgba(15, 77, 51, .12); overflow: hidden; }
.env-bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--eco); }

/* Emissions chart ------------------------------------------------------- */
.env-chart { display: flex; align-items: flex-end; gap: clamp(10px, calc(2 * var(--vw, 1vw)), 26px); max-width: 620px; height: 190px; padding-top: 10px; }
.env-col { display: flex; flex-direction: column; justify-content: flex-end; flex: 1 1 0; height: 100%; text-align: center; }
.env-col-bar { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--eco); opacity: .85; }
.env-col-val { display: block; margin-top: 8px; color: var(--eco-deep); font-size: 12px; font-weight: 700; }
.env-col-year { display: block; margin-top: 2px; color: rgba(10, 10, 10, .45); font-size: 12px; }

.env-list { max-width: 64ch; margin: 0; padding: 0; list-style: none; }
.env-list li { position: relative; padding: 0 0 14px 22px; color: rgba(10, 10, 10, .72); font-size: 15px; line-height: 1.6; }
.env-list li::before { content: ""; position: absolute; top: 10px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--eco); }

/* Memberships ----------------------------------------------------------- */
.env-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 620px; background: rgba(15, 77, 51, .16); border: 1px solid rgba(15, 77, 51, .16); }
.env-member { display: block; padding: 18px 20px; background: #fffdfa; color: inherit; text-decoration: none; transition: background-color .3s var(--ease); }
.env-member:hover { background: var(--eco-soft); }
.env-member-name { display: block; font-size: 15px; }
.env-member-note { display: block; margin-top: 4px; color: rgba(10, 10, 10, .5); font-size: 12px; }

/* Document panel -------------------------------------------------------- */
.env-right { position: sticky; top: 84px; padding: 96px var(--gutter) 90px 0; }
.env-doc { border: 1px solid rgba(15, 77, 51, .2); background: #fffdfa; }
.env-doc-head { padding: 22px 24px 18px; border-bottom: 1px solid rgba(15, 77, 51, .16); background: var(--eco-soft); }
.env-doc-kicker { margin: 0 0 8px; color: var(--eco); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.env-doc-title { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.env-doc-meta { margin: 6px 0 0; color: rgba(10, 10, 10, .52); font-size: 12px; }
/* The cover sits behind the embed, so the panel still reads if a browser blocks
   inline PDFs or the viewer is slow to paint. */
.env-viewer { position: relative; height: clamp(360px, calc(52 * var(--vh, 1vh)), 560px); background: #e9e6df center/cover no-repeat; background-image: image-set(url("../assets/opt/policy-cover-1000.webp") type("image/webp"), url("../assets/images/policy-cover.jpg") type("image/jpeg")); }
.env-frame { position: relative; z-index: 1; }
.env-frame { display: block; width: 100%; height: 100%; border: 0; }
.env-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 24px; }
.env-btn { display: inline-block; padding: 11px 18px; border: 1px solid var(--eco-deep); color: var(--eco-deep); font-size: 13px; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.env-btn:hover { background: var(--eco-soft); }
.env-btn-solid { background: var(--eco-deep); border-color: var(--eco-deep); color: #fffdfa; }
.env-btn-solid:hover { background: var(--eco); border-color: var(--eco); color: #fffdfa; }
.env-doc-foot { margin: 0; padding: 0 24px 22px; color: rgba(10, 10, 10, .48); font-size: 12px; line-height: 1.5; }

@media (max-width: 1080px) {
  .env-grid { grid-template-columns: 1fr; }
  .env-left { padding: 84px var(--gutter) 30px; }
  .env-right { position: static; padding: 0 var(--gutter) 70px; }
}
@media (max-width: 620px) {
  .env-stats { grid-template-columns: 1fr; gap: 20px; }
  .env-members { grid-template-columns: 1fr; }
  .env-chart { height: 150px; gap: 8px; }
  .env-col-val { font-size: 11px; }
}

/* Bigger document: columns split evenly, viewer takes most of the viewport. */
.env-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.env-right { top: 0; padding-top: 92px; }
.env-viewer { height: clamp(480px, calc(calc(100 * var(--vh, 1vh)) - 290px), 980px); }

/* EcoVadis badges — one per assessment year. */
.env-badges { display: flex; flex-wrap: wrap; gap: 22px; }
.env-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 128px; text-align: center; }
.env-badge-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3aa574, var(--eco-deep)); box-shadow: inset 0 0 0 5px rgba(255,255,255,.18), 0 10px 26px rgba(15,77,51,.28); color: #fffdfa; }
.env-badge-mark { font-size: 11px; letter-spacing: .04em; opacity: .9; }
.env-badge-mark b { font-weight: 800; }
.env-badge-score { font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; }
.env-badge-year { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.env-badge-label { color: rgba(10,10,10,.58); font-size: 12px; line-height: 1.4; }

@media (max-width: 1080px) {
  .env-grid { grid-template-columns: 1fr; }
  .env-viewer { height: clamp(520px, calc(85 * var(--vh, 1vh)), 900px); }
}
@media (max-width: 620px) {
  .env-viewer { height: auto; aspect-ratio: 1 / 1.3; background-size: contain; }
  .env-badge { width: 104px; }
  .env-badge-ring { width: 96px; height: 96px; }
  .env-badge-score { font-size: 28px; }
}
.env-badge-img { display: block; width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(10,10,10,.18)); }
@media (max-width: 620px) { .env-badge-img { width: 96px; height: 96px; } }

.env-tone { height: 250px; width: min(62%, 520px); }
.env-dots { height: 190px; }
.env-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: rgba(10,10,10,.6); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.env-back:hover { color: var(--eco-deep); }
@media (max-width: 620px) { .env-tone, .env-dots { display: none; } }
/* Sticky panel must fit the screen to follow the page; clip (not hidden) keeps sticky working in Safari. */
.env-viewer { height: clamp(420px, calc(calc(100 * var(--vh, 1vh)) - 360px), 900px); }
@media (max-width: 1080px) { .env-viewer { height: clamp(520px, calc(85 * var(--vh, 1vh)), 900px); } }
@media (max-width: 620px) { .env-viewer { height: auto; } }
body:has(.env-page) { overflow-x: clip; }
/* PDF facade: the cover shows until the document is requested. */
.env-load { position: absolute; left: 50%; bottom: 24px; z-index: 2; transform: translateX(-50%); padding: 12px 20px; border: 0; border-radius: 999px; background: var(--eco-deep); color: #fffdfa; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(10,10,10,.25); transition: background-color .3s var(--ease); }
.env-load:hover { background: var(--eco); }
