/* ==========================================================================
   Synergy Textile Group — Sustainability Page
   Design tokens extracted 1:1 from Figma reference "Sustainability Page.png"
   Shared tokens (colors, fonts, .container, .eyebrow, .btn, .section-heading)
   come from style.css — this file holds Sustainability-page-only sections.
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */
.sustain-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 610px;
  background: var(--color-text);
}
.sustain-hero__bg { position: absolute; inset: 0; }
.sustain-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.sustain-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,4,.3) 0%, rgba(10,8,4,.4) 55%, rgba(10,8,4,.6) 100%);
}
.sustain-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.55);
}
.sustain-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.25;
  color: var(--color-white);
  max-width: 780px;
  margin: 0;
}
.sustain-hero__title b { font-weight: 800; }
.sustain-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-18);
  line-height: 30px;
  color: rgba(255,255,255,.92);
  max-width: 716px;
  margin: 0;
}

/* ==========================================================================
   4-PILLAR GRID
   ========================================================================== */
.sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sustain-grid__tile {
  position: relative;
  display: block;
  aspect-ratio: 960 / 345;
  overflow: hidden;
  color: var(--color-white);
}
.sustain-grid__tile img { width: 100%; height: 100%; object-fit: cover; }
.sustain-grid__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}
.sustain-grid__num {
  position: absolute; top: 20px; right: 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-48);
  color: var(--color-white);
  z-index: 1;
}
.sustain-grid__label {
  position: absolute; left: 40px; bottom: 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-42);
  color: var(--color-white);
  z-index: 1;
}

/* ==========================================================================
   CHAPTER — shared per-pillar structure
   ========================================================================== */
.sustain-chapter__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 690px;
}
.sustain-chapter__hero--tall { height: 690px; }
.sustain-chapter__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sustain-chapter__hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.6) 100%);
}
.sustain-chapter__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.6);
}
.sustain-chapter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-48);
  line-height: 60px;
  margin: 0;
}
.sustain-chapter__title--caps { text-transform: uppercase; letter-spacing: .08em; }
.sustain-chapter__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: var(--color-white);
}
.sustain-chapter__note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: var(--color-white);
  max-width: 620px;
  margin: 190px 0 0;
}
.sustain-chapter__links {
  display: flex;
  gap: 64px;
  align-items: center;
  margin-top: 190px;
  flex-wrap: wrap;
  justify-content: center;
}
.sustain-chapter__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-white);
}

/* Section header (eyebrow + headline) between hero and content rows */
.sustain-section-head {
  background: var(--color-white);
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.sustain-section-head__eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-24);
  color: var(--color-text);
  margin: 0;
}
.sustain-section-head__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 32px;
  line-height: 50px;
  color: var(--color-primary-green);
  margin: 0;
  max-width: 900px;
}

/* Alternating photo / text row */
.sustain-row {
  display: flex;
  align-items: center;
  background: var(--color-white);
}
.sustain-row--reverse { flex-direction: row-reverse; }
.sustain-row__photo { flex: 0 0 66%; aspect-ratio: 1500 / 720; overflow: hidden; }
.sustain-row__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sustain-row__text {
  flex: 1;
  min-width: 0;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sustain-row__eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-18);
  line-height: 30px;
  color: var(--color-primary-green);
  margin: 0;
}
.sustain-row__body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 24px;
  color: var(--color-text);
  margin: 0;
}
.sustain-row__lead {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 24px;
  color: var(--color-text-secondary);
  margin: 0;
}
.sustain-row__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sustain-row__list li {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 24px;
  color: var(--color-text-secondary);
  padding-left: 14px;
  position: relative;
}
.sustain-row__list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Dark green closing band */
.sustain-close {
  background: #005e2e;
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.sustain-close__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 32px;
  line-height: 50px;
  color: var(--color-white);
  margin: 0;
  max-width: 900px;
}
.sustain-close__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 24px;
  color: #bebebe;
  margin: 0;
  max-width: 780px;
}

/* ==========================================================================
   TRANSPARENCY — bright green feature band + outro
   ========================================================================== */
.sustain-transparency-band {
  background: var(--color-primary-green);
  padding: 80px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.sustain-transparency-band__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-white);
  flex: 1 1 220px;
  text-align: center;
  cursor: pointer;
}
.sustain-transparency-band__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.sustain-transparency-band__head span:first-child {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-18);
}
.sustain-transparency-band__plus {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  transition: transform 0.35s ease;
}
.sustain-transparency-band__item:hover .sustain-transparency-band__plus,
.sustain-transparency-band__item:focus-within .sustain-transparency-band__plus {
  transform: rotate(45deg);
}
.sustain-transparency-band__desc-wrap {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  transition: max-height 0.45s ease;
}
.sustain-transparency-band__item:hover .sustain-transparency-band__desc-wrap,
.sustain-transparency-band__item:focus-within .sustain-transparency-band__desc-wrap {
  max-height: 240px;
}
.sustain-transparency-band__desc {
  margin: 0;
  padding-top: 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sustain-transparency-band__item:hover .sustain-transparency-band__desc,
.sustain-transparency-band__item:focus-within .sustain-transparency-band__desc {
  opacity: 1;
  transition: opacity 0.35s ease 0.12s;
}

.sustain-outro {
  background: var(--color-white);
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.sustain-outro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-24);
  line-height: 30px;
  color: var(--color-text);
  margin: 0;
  max-width: 700px;
}
.sustain-outro__body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  line-height: 24px;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 780px;
}
.sustain-outro__body a { color: var(--color-primary-green); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .sustain-hero { height: auto; min-height: 500px; padding: 80px 20px; }
  .sustain-hero__title { font-size: 40px; }
  .sustain-chapter__hero { height: auto; min-height: 460px; padding: 60px 20px; }
  .sustain-chapter__links { margin-top: 80px; gap: 32px; }
  .sustain-chapter__note { margin-top: 80px; }
  .sustain-row { flex-direction: column !important; }
  .sustain-row__photo { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .sustain-row__text { padding: 32px 24px; }
  .sustain-transparency-band { flex-direction: column; align-items: center; padding: 56px 24px; }
}
@media (max-width: 640px) {
  .sustain-grid { grid-template-columns: 1fr; }
  .sustain-grid__tile { aspect-ratio: 4 / 3; }
  .sustain-hero__title { font-size: 32px; }
  .sustain-section-head__title { font-size: 24px; line-height: 1.4; }
  .sustain-close__title { font-size: 24px; line-height: 1.4; }
}
