/* ============================================================
   CSR – Social Responsibility page
   Palette: amber-dark #B36A1A · gold-light #EDC38C · black #090909
            brown #8A6542 · tan #C6AA8B · amber #CA8627 · cream #F0E2D8
   ============================================================ */
.csr-page {
  --pp-amber-dark: #B36A1A;
  --pp-gold-light: #EDC38C;
  --pp-black: #090909;
  --pp-brown: #8A6542;
  --pp-tan: #C6AA8B;
  --pp-amber: #CA8627;
  --pp-cream: #F0E2D8;
  --csr-ink: #3b2a1c;
  --csr-muted: #6b5b4a;
  --csr-line: rgba(198, 170, 139, .45);
  --csr-shadow: 0 30px 60px -38px rgba(138, 101, 66, .55);
}

.csr-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Hero / page shell ---------- */
.csr-hero {
  position: relative;
  padding: calc(clamp(1.5rem, 3vw, 2.5rem) + 4.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: #EFE1D5;
  overflow: hidden;
}
.csr-hero::before,
.csr-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202,134,39,.16), transparent 70%);
  pointer-events: none;
}
.csr-hero::before { width: 560px; height: 560px; top: -220px; left: -200px; }
.csr-hero::after  { width: 480px; height: 480px; bottom: -200px; right: -160px; }
.csr-hero .policy-inner { position: relative; z-index: 1; }

.csr-head {
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.csr-head.is-visible { opacity: 1; transform: none; }
.csr-head .sec-desc { color: var(--csr-muted); margin-top: .55rem; }
.csr-head .sec-kicker { margin-bottom: .3rem; }
.csr-head .sec-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.csr-head .sec-rule { margin-top: .5rem; }

/* ---------- Shared panel ---------- */
.csr-panel {
  position: relative;
  padding: clamp(1.2rem, 2.2vw, 1.7rem) clamp(1.2rem, 2.6vw, 2rem);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 42%),
    linear-gradient(165deg, #fffdfb 0%, #fff 58%, #fbf6f0 100%);
  border: 1px solid rgba(198, 170, 139, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 22px 44px -30px rgba(90, 58, 28, .5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease, box-shadow .35s ease, border-color .35s ease;
}
.csr-panel.is-visible { opacity: 1; transform: none; }
.csr-panel:hover {
  border-color: rgba(202, 134, 39, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 28px 50px -28px rgba(90, 58, 28, .55);
}
.csr-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #b36a1a 16%, #edc38c 50%, #ca8627 84%, transparent);
}
.csr-panel + .csr-panel,
.csr-panel + .csr-pair,
.csr-pair + .csr-panel { margin-top: clamp(.9rem, 1.8vw, 1.4rem); }
.csr-pair > .csr-panel { margin-top: 0; }

.csr-panel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(.9rem, 1.6vw, 1.2rem);
}
.csr-panel-title {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pp-black);
}
.csr-panel-rule {
  display: block;
  width: 3.15rem;
  height: 3px;
  margin-top: .75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e2a44c 18%, #f4d08a 50%, #c4842a 82%, transparent);
  box-shadow: 0 0 10px rgba(202, 134, 39, 0.45);
}

/* ---------- Environment (6 items) ---------- */
.csr-env-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: .35rem clamp(1.2rem, 3vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.csr-env {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .85rem;
  align-items: center;
  padding: .5rem .8rem .5rem .6rem;
  border-radius: 16px;
  background: rgba(243, 235, 226, .42);
  border: 1px solid rgba(198, 170, 139, .22);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .55s ease calc(var(--i, 0) * 70ms),
    transform .55s ease calc(var(--i, 0) * 70ms),
    background .25s ease, border-color .25s ease;
}
.csr-panel.is-visible .csr-env { opacity: 1; transform: none; }
.csr-panel.is-visible .csr-env:hover {
  background: #fff;
  border-color: rgba(202, 134, 39, .4);
  transform: translateY(-2px);
}
.csr-env-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: var(--pp-amber-dark);
  box-shadow: 0 8px 16px -10px rgba(9, 9, 9, .55), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .35s ease;
}
.csr-env:hover .csr-env-icon { transform: translateY(-2px); }
.csr-env-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
}
.csr-env-icon--waste img { width: 84%; height: 84%; }
.csr-env-icon--energy img { width: 80%; height: 80%; }
.csr-env-icon--water img { width: 78%; height: 78%; }
.csr-env-icon--pack img { width: 74%; height: 74%; }
.csr-env-icon--monitor img { width: 80%; height: 80%; }
.csr-env-icon--forest img { width: 90%; height: 90%; }
.csr-env-icon--waste { background: #B22222; }
.csr-env-icon--waste img,
.csr-env-icon--monitor img,
.csr-env-icon--water img,
.csr-env-icon--forest img { filter: brightness(0) invert(1); }
.csr-env-icon--energy { background: #FFFF00; }
.csr-env-icon--energy img { filter: brightness(0); }
.csr-env-icon--pack { background: #9400D3; }
.csr-env-icon--monitor { background: #228B22; }
.csr-env-icon--water { background: #0033FF; }
.csr-env-icon--forest { background: #FF69B4; }
.csr-env h3 {
  margin: 0 0 .15rem;
  font-family: var(--font-th);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--pp-black);
}
.csr-env p {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(.9rem, 1.05vw, .98rem);
  line-height: 1.55;
  color: var(--csr-muted);
}

/* ---------- Community + Employee (2 cards) ---------- */
.csr-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
}
.csr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.csr-card:nth-child(2) { transition-delay: .12s; }
.csr-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  margin-bottom: .7rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #e0a44a, #b36a1a);
  box-shadow: 0 12px 22px -12px rgba(179, 106, 26, .75), inset 0 1px 0 rgba(255,255,255,.35);
}
.csr-card-icon--amber {
  background: #D2691E;
  box-shadow: 0 12px 22px -12px rgba(210, 105, 30, .75), inset 0 1px 0 rgba(255,255,255,.35);
}
.csr-card-icon--brown {
  background: linear-gradient(145deg, #a67c52, #8a6542);
  box-shadow: 0 12px 22px -12px rgba(138, 101, 66, .7), inset 0 1px 0 rgba(255,255,255,.3);
}
.csr-card-icon--ink {
  background: #8A2BE2;
  color: #fff;
  box-shadow: 0 12px 22px -12px rgba(138, 43, 226, .75), inset 0 1px 0 rgba(255,255,255,.28);
}
.csr-card-icon svg,
.csr-card-icon img { width: 72%; height: 72%; }
.csr-card-icon--amber img { width: 78%; height: 78%; }
.csr-card-icon img {
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.csr-card-title {
  margin: 0 0 clamp(.6rem, 1.2vw, .9rem);
  font-family: var(--font-th);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--pp-black);
}
.csr-points {
  display: grid;
  gap: .2rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.csr-points li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .75rem;
  align-items: center;
  padding: .4rem .7rem;
  border-radius: 12px;
  background: rgba(243, 235, 226, .5);
  border: 1px solid rgba(198, 170, 139, .18);
  font-family: var(--font-th);
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  line-height: 1.55;
  color: var(--csr-ink);
}
.csr-points-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ca8627;
  box-shadow: 0 0 0 3px rgba(202, 134, 39, .16);
}
.csr-card--community .csr-points-dot { background: #b36a1a; box-shadow: 0 0 0 3px rgba(179, 106, 26, .16); }
.csr-card--employee .csr-points-dot { background: #8a6542; box-shadow: 0 0 0 3px rgba(138, 101, 66, .16); }

/* ---------- Philosophy ---------- */
.csr-pair + .csr-philosophy { margin-top: clamp(1.8rem, 3.4vw, 2.8rem); }
.csr-philosophy { text-align: center; scroll-margin-top: 5rem; }
.csr-philosophy .csr-panel-title { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.csr-philosophy .csr-panel { margin-top: clamp(.9rem, 1.8vh, 1.4rem); }
@media (min-width: 1200px) and (min-height: 900px) {
  .csr-philosophy .csr-panel { margin-top: 2rem; }
}
@media (min-width: 961px) {
  .csr-philosophy {
    min-height: calc(100dvh - 4.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 0;
    padding: .4rem 0 1rem;
  }
  .csr-pair + .csr-philosophy { margin-top: 0; }
  .csr-philosophy .csr-panel-head { margin-bottom: .7rem; }
  .csr-quote { padding: 1rem 1.4rem 1.15rem; }
  .csr-quote-mark { width: 52px; height: 52px; margin-bottom: .55rem; }
  .csr-quote-mark svg,
  .csr-quote-mark img { width: 38px; height: 38px; }
  .csr-quote blockquote p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
  .csr-quote-desc { margin-top: .65rem; font-size: .95rem; line-height: 1.6; }
  .csr-future { padding: 1rem .9rem .95rem; }
  .csr-future-icon { width: 46px; height: 46px; margin-bottom: .65rem; }
  .csr-future-icon svg { width: 24px; height: 24px; }
  .csr-future h3 { margin-bottom: .25rem; }
  .csr-future p { line-height: 1.45; }
}
.csr-philosophy .csr-panel-head { margin-bottom: clamp(1.2rem, 2.2vw, 1.7rem); }
.csr-quote {
  position: relative;
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.4rem, 2.8vw, 2.2rem) clamp(1.2rem, 3vw, 2.6rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(237, 195, 140, .35), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(202, 134, 39, .16), transparent 50%),
    rgba(240, 226, 216, .55);
  border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.csr-quote:hover { background: #fff; border-color: var(--csr-line); }
.csr-quote-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, var(--pp-amber), var(--pp-amber-dark));
  box-shadow: 0 12px 24px -10px rgba(179, 106, 26, .7);
}
.csr-quote-mark svg,
.csr-quote-mark img { width: 42px; height: 42px; object-fit: contain; }
.csr-quote-mark img { filter: brightness(0) invert(1); }
.csr-quote blockquote {
  margin: 0;
  padding: 0;
}
.csr-quote blockquote p {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--pp-amber-dark);
}
.csr-quote-desc {
  max-width: 760px;
  margin: clamp(1rem, 2vw, 1.4rem) auto 0;
  font-family: var(--font-th);
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: var(--csr-muted);
}

/* ---------- Future commitments (3 cards) ---------- */
.csr-future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.csr-future {
  --tint: rgba(237, 195, 140, .35);
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem) 1.2rem;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--tint), transparent 70%),
    rgba(240, 226, 216, .55);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .6s ease calc(var(--i, 0) * 90ms),
    transform .6s ease calc(var(--i, 0) * 90ms),
    border-color .3s ease, background .3s ease;
}
.csr-panel.is-visible .csr-future { opacity: 1; transform: none; }
.csr-future:hover { border-color: var(--csr-line); background: #fff; }
.csr-future { --tint: rgba(127, 255, 0, .2); }
.csr-future--brown { --tint: rgba(0, 0, 255, .12); }
.csr-future--black { --tint: rgba(255, 0, 0, .12); }
.csr-future-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: #7FFF00;
  box-shadow: 0 12px 26px -10px rgba(127, 255, 0, .75);
  overflow: hidden;
  transition: transform .4s ease;
}
.csr-future--brown .csr-future-icon {
  background: #0000FF;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 255, .6);
}
.csr-future--black .csr-future-icon {
  background: #FF0000;
  box-shadow: 0 12px 26px -10px rgba(255, 0, 0, .6);
}
.csr-future:hover .csr-future-icon { transform: translateY(-3px) rotate(-4deg); }
.csr-future-icon svg { width: 28px; height: 28px; }
.csr-future-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.csr-future-icon--sales img { width: 72%; height: 72%; filter: brightness(0); }
.csr-future-icon--platform img { width: 74%; height: 74%; }
.csr-future h3 {
  margin: 0 0 .45rem;
  font-family: var(--font-th);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--pp-black);
}
.csr-future p {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(.9rem, 1.05vw, .98rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--csr-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 961px) and (max-height: 820px) {
  .csr-hero { padding-top: 7.4rem; padding-bottom: 1.5vh; }
  .csr-head { margin-bottom: 2vh; }
  .csr-head .sec-kicker { margin-bottom: .4vh; }
  .csr-head .sec-title { font-size: 1.5rem; }
  .csr-head .sec-rule { margin-top: .8vh; }
  .csr-head .sec-desc { margin-top: .8vh; font-size: .92rem; }
  .csr-panel { padding: 2.6vh 1.6rem; }
  .csr-panel + .csr-pair { margin-top: 2vh; }
  .csr-panel-head { margin-bottom: 1.5vh; }
  .csr-panel-title { font-size: 1.18rem; }
  .csr-panel-rule { margin-top: .8vh; }
  .csr-env-grid { row-gap: .9vh; }
  .csr-env { padding: .9vh .65rem; gap: .75rem; grid-template-columns: 46px 1fr; }
  .csr-env h3 { font-size: 1rem; margin-bottom: .1rem; }
  .csr-env p { font-size: .84rem; line-height: 1.4; }
  .csr-pair { gap: 1rem; }
  .csr-card-icon { margin-bottom: 1vh; }
  .csr-card-title { margin-bottom: 1vh; font-size: 1.08rem; }
  .csr-points { gap: .7vh; }
  .csr-points li { padding-block: .4vh; font-size: .9rem; line-height: 1.45; }
}
@media (min-width: 961px) and (max-height: 900px) {
  .csr-philosophy {
    min-height: 0;
    justify-content: flex-start;
    padding: 7.4rem 0 1.25rem;
  }
  .csr-philosophy > * { flex-shrink: 0; }
  .csr-philosophy .csr-panel-title { font-size: 1.72rem; }
  .csr-philosophy .csr-panel-head { margin-bottom: .95rem; }
  .csr-philosophy .csr-panel-rule { margin-top: .55rem; }
  .csr-philosophy .csr-quote {
    max-width: 820px;
    padding: 1.25rem 1.7rem 1.35rem;
  }
  .csr-philosophy .csr-quote-mark { width: 56px; height: 56px; margin-bottom: .6rem; }
  .csr-philosophy .csr-quote-mark svg,
  .csr-philosophy .csr-quote-mark img { width: 40px; height: 40px; }
  .csr-philosophy .csr-quote blockquote p { font-size: 1.38rem; line-height: 1.4; }
  .csr-philosophy .csr-quote-desc {
    max-width: 680px;
    margin-top: .65rem;
    font-size: .95rem;
    line-height: 1.6;
  }
  .csr-philosophy .csr-panel { margin-top: 1.15rem; padding: 1.05rem 1.15rem 1.15rem; }
  .csr-philosophy .csr-future-grid { gap: .95rem; }
  .csr-philosophy .csr-future { padding: 1.15rem .9rem 1.2rem; }
  .csr-philosophy .csr-future-icon { width: 50px; height: 50px; margin-bottom: .65rem; border-radius: 15px; }
  .csr-philosophy .csr-future-icon svg { width: 24px; height: 24px; }
  .csr-philosophy .csr-future h3 { font-size: 1.08rem; margin-bottom: .28rem; }
  .csr-philosophy .csr-future p { font-size: .9rem; line-height: 1.5; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .csr-hero { padding-top: 7rem; }
  .csr-head { margin-bottom: 1.2vh; }
  .csr-panel { padding: 1.8vh 1.5rem; }
  .csr-panel + .csr-pair { margin-top: 1.4vh; }
  .csr-panel-head { margin-bottom: 1vh; }
  .csr-env-grid { row-gap: .4vh; }
  .csr-env { padding-block: .5vh; }
  .csr-card-icon { margin-bottom: .6vh; }
  .csr-card-title { margin-bottom: .6vh; }
  .csr-points { gap: .3vh; }
  .csr-points li { padding-block: .2vh; }
}
@media (max-width: 960px) {
  .csr-env-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .csr-pair { grid-template-columns: 1fr; }
  .csr-card:nth-child(2) { transition-delay: 0s; }
  .csr-future-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .csr-panel { border-radius: 22px; }
  .csr-quote { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .csr-head, .csr-panel, .csr-env, .csr-future {
    opacity: 1; transform: none; transition: none;
  }
}
