/* ============================================================
   swgm.css — Solid Waste Gasification page
   NO body rules. global.css handles everything untouched.
   Exact same pattern as minerals.css.
   ============================================================ */

:root {
  --swgm-green: #5fbe79;
  --swgm-dark: #123f4a;
  --swgm-navy: #184753;
  --swgm-font-heading: 'League Spartan', sans-serif;
  --swgm-font-body: 'Montserrat', sans-serif;
  --swgm-section-padding: 80px 0;
  --swgm-max: 1200px;
}

/* ============================================================
   HERO — Cinematic & Engaging (Matches Minerals Page Pattern)
   ============================================================ */
.swgm-hero-elite {
  height: 90vh;
  min-height: 700px;
  background: linear-gradient(135deg, rgba(18, 63, 74, 0.85) 0%, rgba(18, 63, 74, 0.4) 100%), 
              url('/Images/projects/swgm/hero.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

@media (max-width: 1023px) {
  .swgm-hero-elite {
    background-size: 130% 140%; /* Crop the baked-in top and bottom white borders on mobile/tablet */
  }
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(95, 190, 121, 0.12) 0%, transparent 60%);
  z-index: 1;
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge-elegant {
  display: inline-block;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero-title-elegant {
  font-family: 'Russo One', sans-serif;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 400;
}

.hero-subtitle-elegant {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-hero-elegant {
  display: inline-block;
  padding: 16px 50px;
  background: linear-gradient(135deg, var(--swgm-green) 0%, #4ca864 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'Russo One', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(95, 190, 121, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.btn-hero-elegant:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(95, 190, 121, 0.5);
  background: linear-gradient(135deg, #4ca864 0%, #3e8e52 100%);
}

/* Hero Harmonization */
.portfolio-hero--swgm {
  height: auto;
  min-height: calc(100vh - 80px);
  padding: 48px 6%;
}

.portfolio-hero--swgm .portfolio-hero__title {
  margin-bottom: 16px;
}

.portfolio-hero--swgm .portfolio-hero__subtitle {
  max-width: 760px;
}

@media (max-width: 1023px) {
  .portfolio-hero--swgm {
    height: 600px;
    min-height: 600px;
    padding: 80px 6% 60px;
  }
}

@media (max-width: 767px) {
  .portfolio-hero--swgm {
    height: 520px;
    min-height: 520px;
    padding: 60px 6% 40px;
  }
}


/* ============================================================
   PAGE BODY — dark background for all sections below hero
   ============================================================ */
.swgm-main {
  background-color: var(--swgm-dark);
  color: #fff;
}

.swgm-container {
  width: min(calc(100% - 32px), var(--swgm-max));
  margin: 0 auto;
  box-sizing: border-box;
}

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.swgm-section-label {
  display: block;
  margin: 0 0 12px;
  font-family: var(--swgm-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--swgm-green);
}

.swgm-section-title {
  margin: 0;
  font-family: var(--swgm-font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.swgm-problem-section {
  padding: var(--swgm-section-padding);
  background: var(--swgm-dark);
}

.swgm-problem-section .swgm-header { text-align: center; }

.swgm-problem-body {
  max-width: 720px;
  margin: 20px auto 48px;
  font-family: var(--swgm-font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.swgm-problem-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.swgm-stat-card {
  padding: 32px 24px;
  border-radius: 8px;
  background: var(--swgm-navy);
  text-align: center;
}

.swgm-stat-card__icon { margin-bottom: 20px; font-size: 40px; color: var(--swgm-green); }

.swgm-stat-card__value {
  margin: 0 0 12px;
  font-family: var(--swgm-font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.swgm-stat-card__label {
  margin: 0;
  font-family: var(--swgm-font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.swgm-solution-section {
  padding: var(--swgm-section-padding);
  background: #f8f9fc;
  color: var(--swgm-dark);
}

.swgm-solution-section .swgm-section-label { color: var(--swgm-green); }
.swgm-solution-section .swgm-section-title { color: var(--swgm-dark); }

.swgm-solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 60px;
  align-items: center;
}

.swgm-solution-subheading {
  margin: 16px 0 0;
  font-family: var(--swgm-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--swgm-green);
}

.swgm-solution-text p {
  margin: 18px 0 0;
  font-family: var(--swgm-font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--swgm-dark);
}

.swgm-solution-quote {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--swgm-green);
  background: #eef1f8;
}

.swgm-solution-quote p { margin: 0; font-size: 16px; font-style: italic; color: var(--swgm-dark); }

.swgm-solution-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.swgm-carousel { margin-top: 48px; overflow: hidden; border-radius: 8px; }

.swgm-marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: swgmMarquee 34s linear infinite;
}

.swgm-carousel:hover .swgm-marquee-track { animation-play-state: paused; }

.swgm-marquee-card {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #dbe7ea;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.swgm-marquee-card img { display: block; width: 100%; height: 150px; object-fit: cover; }

@keyframes swgmMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 9px)); }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.swgm-process-section { padding: var(--swgm-section-padding); background: var(--swgm-dark); }
.swgm-process-section .swgm-header { text-align: center; }
.swgm-process-title { margin-bottom: 56px; color: #fff; }

.swgm-process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.swgm-process-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px 16px;
  border-radius: 8px;
  background: var(--swgm-navy);
  text-align: center;
}

.swgm-step-number { margin: 0; font-family: var(--swgm-font-heading); font-size: 32px; font-weight: 700; color: var(--swgm-green); }
.swgm-step-title { margin: 8px 0 0; font-family: var(--swgm-font-heading); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.swgm-step-desc { margin: 8px 0 0; font-family: var(--swgm-font-body); font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); }

.swgm-process-chevron {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 30px; color: var(--swgm-green); font-size: 18px; align-self: center;
}

/* Down arrow hidden by default — only shown on mobile */
.swgm-chevron-v { display: none !important; }
/* Right arrow shown by default — hidden on mobile */
.swgm-chevron-h { display: none !important; }

/* Single arrow via CSS pseudo — right on desktop, down on mobile */
.swgm-process-chevron::after {
  content: '›';
  font-size: 32px;
  line-height: 1;
  color: var(--swgm-green);
  display: block;
}

.swgm-process-note {
  margin: 40px auto 0; max-width: 800px;
  font-family: var(--swgm-font-body); font-size: 13px; font-weight: 300; line-height: 1.7;
  text-align: center; color: rgba(255,255,255,0.45);
}

/* ============================================================
   WASTE INPUT SECTION
   ============================================================ */
.swgm-waste-section { padding: var(--swgm-section-padding); background: #f8f9fc; }
.swgm-waste-section .swgm-header { text-align: center; }
.swgm-waste-section .swgm-section-title { color: var(--swgm-dark); }

.swgm-waste-intro {
  max-width: 640px; margin: 16px auto 48px;
  font-family: var(--swgm-font-body); font-size: 16px; font-weight: 300; line-height: 1.8;
  text-align: center; color: rgba(18,63,74,0.7);
}

.swgm-waste-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px; align-items: start; }

.swgm-waste-col-heading {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font-family: var(--swgm-font-heading); font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--swgm-green);
}
.swgm-waste-col-heading--no { color: #e74c3c; }
.swgm-waste-col-img { width: 100%; border-radius: 8px; margin-bottom: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.swgm-waste-list { margin: 0; padding: 0; list-style: none; }
.swgm-waste-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-family: var(--swgm-font-body); font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--swgm-dark); }
.swgm-waste-icon { flex: 0 0 auto; margin-top: 4px; color: var(--swgm-green); }
.swgm-waste-icon--no { color: #e74c3c; }
.swgm-waste-note { margin: 8px 0 0; font-family: var(--swgm-font-body); font-size: 13px; font-weight: 300; font-style: italic; line-height: 1.7; color: rgba(18,63,74,0.55); }

/* ============================================================
   BYPRODUCTS SECTION
   ============================================================ */
.swgm-byproducts-section { padding: var(--swgm-section-padding); background: var(--swgm-dark); }
.swgm-byproducts-section .swgm-header { text-align: center; }
.swgm-byproducts-section .swgm-section-title { color: #fff; }

.swgm-byproducts-intro { max-width: 680px; margin: 16px auto 48px; font-family: var(--swgm-font-body); font-size: 16px; font-weight: 300; line-height: 1.8; text-align: center; color: rgba(255,255,255,0.7); }

.swgm-byproducts-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }

.swgm-byproduct-card { overflow: hidden; border-radius: 8px; background: var(--swgm-navy); text-align: center; }
.swgm-byproduct-card img { display: block; width: 100%; height: 220px; object-fit: cover; }
.swgm-byproduct-body { padding: 24px 20px; }
.swgm-byproduct-title { margin: 0 0 10px; font-family: var(--swgm-font-heading); font-size: 18px; font-weight: 700; color: #fff; }
.swgm-byproduct-text { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); }
.swgm-byproduct-tag { display: inline-block; margin-top: 14px; padding: 4px 14px; border: 1px solid var(--swgm-green); border-radius: 20px; background: rgba(95,190,121,0.15); font-family: var(--swgm-font-body); font-size: 12px; color: var(--swgm-green); }

.swgm-emission-callout { max-width: 800px; margin: 48px auto 0; padding: 24px 32px; border: 1px solid var(--swgm-green); border-radius: 8px; background: rgba(95,190,121,0.08); text-align: center; }
.swgm-emission-callout__icon { display: block; margin-bottom: 12px; font-size: 28px; color: var(--swgm-green); }
.swgm-emission-callout__title { margin: 0 0 8px; font-family: var(--swgm-font-heading); font-size: 18px; font-weight: 700; color: #fff; }
.swgm-emission-callout__text { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.65); }

/* ============================================================
   ADVANTAGES SECTION
   ============================================================ */
.swgm-advantages-section { padding: var(--swgm-section-padding); background: #f8f9fc; }
.swgm-advantages-section .swgm-header { text-align: center; }
.swgm-advantages-title { margin-bottom: 48px; color: var(--swgm-dark); }

.swgm-advantages-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

.swgm-advantage-card { padding: 32px 24px; border-top: 3px solid var(--swgm-green); border-radius: 8px; background: #fff; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.swgm-advantage-card__icon { margin-bottom: 16px; font-size: 36px; color: var(--swgm-green); }
.swgm-advantage-card__title { margin: 0 0 10px; font-family: var(--swgm-font-heading); font-size: 18px; font-weight: 700; color: var(--swgm-dark); }
.swgm-advantage-card__body { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(10,15,44,0.7); }

/* ============================================================
   CREDENTIALS SECTION
   ============================================================ */
.swgm-credentials-section { padding: var(--swgm-section-padding); background: var(--swgm-dark); }
.swgm-credentials-section .swgm-header { text-align: center; }
.swgm-credentials-section .swgm-section-title { color: #fff; }
.swgm-credentials-intro { max-width: 640px; margin: 16px auto 48px; font-family: var(--swgm-font-body); font-size: 16px; font-weight: 300; line-height: 1.8; text-align: center; color: rgba(255,255,255,0.7); }

.swgm-credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }

.swgm-credential-card { padding: 32px 28px; border-left: 4px solid var(--swgm-green); border-radius: 8px; background: var(--swgm-navy); }
.swgm-credential-card__icon { margin-bottom: 14px; font-size: 28px; color: var(--swgm-green); }
.swgm-credential-card__title { margin: 0 0 8px; font-family: var(--swgm-font-heading); font-size: 17px; font-weight: 700; color: #fff; }
.swgm-credential-card__issuer { margin: 0 0 12px; font-family: var(--swgm-font-body); font-size: 13px; font-weight: 300; color: var(--swgm-green); }
.swgm-credential-card__body { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); }

.swgm-emission-test { max-width: 860px; margin: 48px auto 0; padding: 28px 32px; border: 1px solid var(--swgm-green); border-radius: 8px; background: rgba(95,190,121,0.1); }
.swgm-emission-test__icon { float: left; margin-right: 16px; color: var(--swgm-green); font-size: 24px; }
.swgm-emission-test__title { margin: 0 0 8px; font-family: var(--swgm-font-heading); font-size: 17px; font-weight: 700; color: #fff; }
.swgm-emission-test__body { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.7); }
.swgm-emission-test::after { content: ""; display: block; clear: both; }

/* ============================================================
   ROLE SECTION
   ============================================================ */
.swgm-role-section { padding: var(--swgm-section-padding); background: #f8f9fc; }
.swgm-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 80px; align-items: center; }
.swgm-role-title { color: var(--swgm-dark); }
.swgm-role-text p { margin: 18px 0 0; font-family: var(--swgm-font-body); font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--swgm-dark); }
.swgm-role-list { display: flex; flex-direction: column; gap: 24px; }
.swgm-role-item { padding-left: 20px; border-left: 4px solid var(--swgm-green); }
.swgm-role-item__title { margin: 0 0 8px; font-family: var(--swgm-font-heading); font-size: 16px; font-weight: 700; color: var(--swgm-dark); }
.swgm-role-item__body { margin: 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(10,15,44,0.7); }

/* ============================================================
   MARKETS SECTION
   ============================================================ */
.swgm-markets-section { padding: var(--swgm-section-padding); background: var(--swgm-dark); }
.swgm-markets-section .swgm-header { text-align: center; }
.swgm-markets-section .swgm-section-title { color: #fff; }
.swgm-markets-intro { max-width: 600px; margin: 16px auto 48px; font-family: var(--swgm-font-body); font-size: 16px; font-weight: 300; line-height: 1.8; text-align: center; color: rgba(255,255,255,0.7); }

.swgm-markets-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }

.swgm-market-card { position: relative; overflow: hidden; padding: 36px 32px; border-radius: 8px; background: var(--swgm-navy); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.swgm-market-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--swgm-green); }
.swgm-market-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.swgm-market-card__icon { margin-bottom: 16px; font-size: 36px; color: var(--swgm-green); }
.swgm-market-card__title { margin: 0 0 12px; font-family: var(--swgm-font-heading); font-size: 22px; font-weight: 700; color: #fff; }
.swgm-market-card__body { margin: 0; font-family: var(--swgm-font-body); font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); }
.swgm-markets-closing { margin: 48px 0 0; font-family: var(--swgm-font-body); font-size: 15px; font-weight: 300; font-style: italic; text-align: center; color: rgba(255,255,255,0.55); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.swgm-cta-section { padding: 100px 0; background: #16515d; }
.swgm-cta-inner { max-width: 800px; text-align: center; }
.swgm-cta-line { width: 60px; height: 2px; margin: 0 auto 32px; background: var(--swgm-green); }
.swgm-cta-title { margin: 0; font-family: var(--swgm-font-heading); font-size: 42px; font-weight: 700; line-height: 1.1; color: #fff; }
.swgm-cta-body { margin: 16px 0 0; font-family: var(--swgm-font-body); font-size: 18px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.75); }
.swgm-cta-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 16px 40px; border: 0; border-radius: 4px; background: var(--swgm-green); color: #fff; font-family: var(--swgm-font-heading); font-size: 16px; font-weight: 600; text-decoration: none !important; transition: background-color 0.25s ease, transform 0.25s ease; }
.swgm-cta-button:hover { background: #4ca864; transform: translateY(-2px); color: #fff !important; text-decoration: none !important; }
.swgm-cta-note { margin: 20px 0 0; font-family: var(--swgm-font-body); font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); }
.swgm-cta-note a { color: var(--swgm-green); text-decoration: none; }
.swgm-cta-note a:hover { text-decoration: underline; }

/* Footer override */
.swgm-footer-fix { margin-top: 0 !important; }
.swgm-footer-main-fix { padding-top: 60px; }

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 991px) {
  .swgm-byproducts-grid  { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .swgm-advantages-grid  { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 767px) {
  .hero-title-elegant { font-size: 2rem; }
  /* Process arrows — rotate chevron to point down */
  .swgm-process-chevron::after { transform: rotate(90deg); }

  .swgm-section-title                { font-size: 28px; }
  .swgm-problem-body                 { font-size: 16px; margin-bottom: 32px; }
  .swgm-problem-stats                { grid-template-columns: 1fr; }
  .swgm-stat-card__value             { font-size: 36px; }
  .swgm-solution-grid                { grid-template-columns: 1fr; gap: 32px; }
  .swgm-solution-image               { order: -1; }
  .swgm-marquee-card                 { width: 180px; }
  .swgm-marquee-card img             { height: 124px; }
  /* Process arrows — show down, hide right */
  .swgm-process-flow                 { flex-direction: column; align-items: stretch; }
  .swgm-process-chevron              { min-height: 28px; }


  .swgm-waste-grid                   { grid-template-columns: 1fr; }
  .swgm-byproducts-grid              { grid-template-columns: 1fr; }
  .swgm-advantages-grid              { grid-template-columns: 1fr; }
  .swgm-credentials-grid             { grid-template-columns: 1fr; }
  .swgm-emission-test                { padding: 24px 20px; }
  .swgm-emission-test__icon          { float: none; display: block; margin-right: 0; margin-bottom: 12px; }
  .swgm-role-grid                    { grid-template-columns: 1fr; gap: 40px; }
  .swgm-markets-grid                 { grid-template-columns: 1fr; }
  .swgm-cta-section                  { padding: 84px 0; }
  .swgm-cta-title                    { font-size: 30px; }
  .swgm-cta-body                     { font-size: 17px; }
}
/* (High-specificity !important hero overrides removed — global.css handles
   the mobile hero sizing consistently across all portfolio pages.) */