/* Sustainability page — Swiss botanical redesign, 2026-08 */
:root {
  --ink: #0a2540;
  --muted: #5f6f7d;
  --green: #147a55;
  --lime: #78a83b;
  --sky: #00529b;
  --mint: #edf5ef;
  --cream: #f8faf8;
  --line: #dbe4df;
  --navy: #0a2540;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(10, 37, 64, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body h1, body h2, body h3, body p {
  text-wrap: pretty;
}

.container {
  width: min(1350px, calc(100% - 80px));
}
section {
  padding: 0;
}

.hero {
  margin-top: 107px;
  position: relative;
  min-height: 444px;
  padding: 56px 0;
  isolation: isolate;
  background: url("./src/sustainability-hero-green-label.png") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 270px;
  right: -120px;
  top: 104px;
  border: 1px solid rgba(20, 122, 85, .18);
  border-radius: 100% 0 100% 0;
  transform: rotate(-18deg);
  box-shadow:
    -110px 34px 0 -109px rgba(20, 122, 85, .25),
    -220px 68px 0 -219px rgba(20, 122, 85, .18),
    -330px 102px 0 -329px rgba(20, 122, 85, .14);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(10, 37, 64, .055) 50%, transparent 50.08%),
    radial-gradient(circle at 89% 18%, rgba(0, 82, 155, .45) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 72%, rgba(20, 122, 85, .42) 0 3px, transparent 4px);
  pointer-events: none;
}

.hero .leaf-decor {
  display: block;
}

.hero .leaf-decor i {
  color: var(--green);
  opacity: .055;
  filter: none;
}

.hero .leaf-decor i:nth-child(1) {
  top: 13%;
  left: -2%;
  font-size: 10rem;
  transform: rotate(-28deg);
}

.hero .leaf-decor i:nth-child(2) {
  top: 4%;
  right: 8%;
  font-size: 15rem;
  transform: rotate(32deg);
  opacity: .045;
}

.hero .leaf-decor i:nth-child(3) {
  right: -1%;
  bottom: -22%;
  font-size: 18rem;
  transform: rotate(-48deg);
  opacity: .04;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, .86fr);
  gap: 64px;
}

.eyebrow, .section-kicker, .green-standard-eyebrow {
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero h1 {
  max-width: 720px;
  margin: 13px 0 18px;
  color: var(--ink);
  font-size: clamp(2.75rem, 4.35vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: -.06em;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: .95rem;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  border-radius: 8px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--sky);
  box-shadow: 0 10px 22px rgba(0, 82, 155, .18);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .75);
  color: var(--ink);
}

.hero-mark {
  position: relative;
  width: 278px;
  height: 278px;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 82, 155, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .36), 0 24px 60px rgba(10, 37, 64, .08);
}

.hero-mark::before, .hero-mark::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero-mark::before {
  inset: 32px;
  border: 1px dashed rgba(20, 122, 85, .34);
  border-radius: 50%;
}

.hero-mark::after {
  width: 430px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 122, 85, .4) 20%, rgba(20, 122, 85, .4) 80%, transparent);
}

.hero-mark img {
  width: auto;
  height: 166px;
  filter: drop-shadow(0 16px 18px rgba(20, 122, 85, .12));
}

/* Composited hero artwork: the emblem is baked into this image. */
.hero {
  background: url("./src/sustainability-hero-green-label.png?v=16") center / cover no-repeat;
}

.hero::before, .hero::after, .hero .leaf-decor, .hero-mark {
  display: none;
}

.intro {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: stretch;
  padding: 32px 0;
}

.intro-grid>div:first-child, .products .section-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.intro h2, .section-heading h2 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.intro-copy {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.68;
}

.intro-copy+.intro-copy {
  margin-top: 10px;
}

.intro-links {
  gap: 18px;
  margin-top: 18px;
}

.text-link {
  color: var(--sky);
  font-size: .86rem;
  font-weight: 750;
}

.points {
  /* 可換行的 flex：寬時三項並排，放不下就自動折行，不需要額外斷點
     （原本固定 3 欄，在 1160px 以下每欄只剩 117px 文字寬） */
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
}

.points li {
  flex: 1 1 170px;
  display: block;
  padding: 6px 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: .82rem;
}

.points li>i {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 122, 85, .28);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}

.points strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .94rem;
}

.products {
  padding: 42px 0 48px;
  background: #fbfcfb;
  border-bottom: 1px solid var(--line);
}

.products .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.green-standard {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'visual copy' 'visual list';
  gap: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}

.green-standard-copy {
  grid-area: copy;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  background: #f8fbf9;
}

.green-standard h3 {
  max-width: 13em;
  margin: 9px 0 10px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.35;
}

.green-standard-summary {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

.green-standard-visual {
  grid-area: visual;
  min-height: 430px;
  padding: 22px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-left: 0;
  border-radius: 0;
  background: var(--mint);
  box-shadow: none;
}

.green-standard-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(10, 37, 64, .09);
}

.green-standard-list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--surface);
}

.green-standard-list li {
  min-height: 0;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
}

.green-standard-list li:nth-child(2n) {
  border-right: 0;
}

.green-standard-list li:nth-last-child(-n+2) {
  border-bottom: 0;
}

.green-standard-list strong {
  margin-bottom: 5px;
  color: var(--green);
  font-size: .92rem;
}

.products .section-heading {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  max-width: 820px;
  margin: 18px 0 8px;
  padding-right: 0;
}

.section-heading>p:last-child {
  color: var(--muted);
  font-size: .9rem;
}

.products-grid {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 55% minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(10, 37, 64, .055);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 82, 155, .28);
  box-shadow: var(--shadow);
}

.product-image {
  height: auto;
  min-height: 330px;
  padding: 0;
  border-radius: 0;
  background: var(--mint);
}

.product-image::after {
  display: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.product-content {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.product-label {
  color: var(--green);
  font-size: .67rem;
  letter-spacing: .04em;
}

.product-content h3 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.product-content p {
  color: var(--muted);
  font-size: .84rem;
}

.product-content .text-link {
  margin-top: 18px;
}

.commitment {
  position: relative;
  padding: 32px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.commitment::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 180px;
  right: -120px;
  bottom: -120px;
  border: 1px solid rgba(20, 122, 85, .12);
  border-radius: 100% 0 100% 0;
  transform: rotate(-16deg);
}

.commitment .leaf-decor, .commitment .eco-scene {
  display: none;
}

.commitment .container {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: stretch;
}

.commitment .section-heading {
  margin: 0;
  align-self: center;
}

.commitment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.commitment-card {
  flex: 1 1 240px;
  padding: 20px 28px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.commitment-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 122, 85, .3);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.1rem;
}

.commitment-card h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.08rem;
}

.commitment-card p {
  color: var(--muted);
  font-size: .84rem;
}

.cta {
  padding: 20px 0 32px;
  background: var(--surface);
  color: #fff;
  text-align: left;
}

.cta .container {
  position: relative;
  min-height: 116px;
  padding: 24px 38px;
  /* 改為可換行的 flex：欄位放不下時自動折行，不必靠斷點 */
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(10, 37, 64, .98), rgba(0, 82, 155, .92)),
    linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, .08) 49% 51%, transparent 52%);
  overflow: hidden;
}

.cta .container::after {
  content: '\f06c';
  position: absolute;
  right: 21%;
  bottom: -64px;
  color: rgba(255, 255, 255, .06);
  font-family: 'Font Awesome 6 Free';
  font-size: 13rem;
  font-weight: 900;
  transform: rotate(-32deg);
}

.cta h2 {
  flex: 1 1 320px;
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.cta p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
}

.cta .button {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--sky);
}

footer {
  padding: 25px 0;
  background: #061d35;
  color: rgba(255, 255, 255, .58);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(0, 82, 155, .32);
  outline-offset: 3px;
}

/* Readability scale: body copy is comfortably legible at normal desktop distance. */
body {
  font-size: 20px;
}

.eyebrow, .section-kicker, .green-standard-eyebrow {
  font-size: .8rem;
}

.hero h1 {
  font-size: clamp(3.25rem, 5vw, 5rem);
}

.hero p {
  font-size: 1.35rem;
  line-height: 1.82;
}

.button {
  font-size: 1.12rem;
}

.intro h2, .section-heading h2 {
  font-size: clamp(2.3rem, 3.35vw, 3rem);
}

.intro-copy {
  font-size: 1.35rem;
  line-height: 1.86;
}

.text-link {
  font-size: 1.1rem;
}

.points li {
  font-size: 1.2rem;
  line-height: 1.78;
}

.points strong {
  font-size: 1.2rem;
}

.green-standard h3 {
  font-size: 1.9rem;
}

.green-standard-summary, .green-standard-list li {
  font-size: 1.2rem;
  line-height: 1.78;
}

.green-standard-list strong {
  font-size: 1.16rem;
}

.section-heading>p:last-child {
  font-size: 1.25rem;
  line-height: 1.8;
}

.product-label {
  font-size: .78rem;
}

.product-content h3 {
  font-size: 1.72rem;
}

.product-content p {
  font-size: 1.2rem;
  line-height: 1.78;
}

.commitment-card h3 {
  font-size: 1.42rem;
}

.commitment-card p {
  font-size: 1.2rem;
  line-height: 1.78;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.cta p {
  font-size: 1.2rem;
  line-height: 1.78;
}

footer {
  font-size: .9rem;
}

/* ===== 斷點統一為全站三段：1024 / 768 / 480 ===== */
@media (max-width: 1024px) {

  .hero-grid {
    gap: 42px;
  }

  .green-standard {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'visual copy' 'visual list';
  }

  .green-standard-list {
    border-top: 1px solid var(--line);
  }

  .products .section-heading, .products-grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(100% - 40px, 1320px);
  }

  .hero {
    margin-top: 107px;
    min-height: auto;
    padding: 48px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 4.2rem);
  }

  .hero-mark {
    width: 250px;
    height: 250px;
  }

  .hero-mark img {
    height: 145px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .points {
    grid-template-columns: 1fr;
  }

  .points li {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .points li>i {
    margin-bottom: 10px;
  }

  .green-standard {
    grid-template-columns: 1fr;
    grid-template-areas: 'copy' 'visual' 'list';
  }

  .green-standard-visual {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .products .container {
    display: block;
  }

  .products .section-heading {
    margin-bottom: 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .green-standard {
    margin-bottom: 36px;
  }

  .commitment .container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .commitment-card:first-child {
    border-left: 0;
  }

  .cta .container {
    grid-template-columns: 1fr auto;
  }

  .cta p {
    grid-column: 1 / 2;
  }

  .cta .button {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 1320px);
  }

  .hero {
    margin-top: 65px;
    padding: 36px 0;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: center;
  }

  .green-standard-copy {
    padding: 26px 22px;
  }

  .green-standard-list {
    grid-template-columns: 1fr;
  }

  .green-standard-list li, .green-standard-list li:nth-child(2n), .green-standard-list li:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .green-standard-list li:last-child {
    border-bottom: 0;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 190px;
  }

  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .commitment-card {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cta .container {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .cta p, .cta .button {
    grid-column: 1;
    grid-row: auto;
  }

  .cta .button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}