:root {
  color-scheme: light;
  --bg: #f6f4eb;
  --surface: #ffffff;
  --text: #1f2a2a;
  --muted: #5f6767;
  --accent: #1f7a3f;
  --accent-dark: #0e4f2a;
  --line: #dce3dd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  padding: 0.75rem 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 6.5rem;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 6.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 4.5rem;
}

.brand-logo {
  width: 4.5rem;
  height: 4.5rem;
  min-width: 4.5rem;
  min-height: 4.5rem;
  max-width: 4.5rem;
  max-height: 4.5rem;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: none;
}

.brand-mark {
  display: none;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #eef7f0;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 999px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero,
.page-hero {
  background: linear-gradient(135deg, #dff2e2 0%, #bfe0c3 45%, #7fc08d 100%);
  padding: 6rem 0 4.5rem;
}

.hero-content,
.page-hero .container {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  color: #102616;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  font-weight: 800;
  color: var(--accent-dark);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  color: #102616;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  background: var(--accent-dark);
  color: white;
  border-radius: 999px;
  font-weight: 600;
}

.section {
  padding: 4rem 0;
}

.intro {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.intro-copy h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  margin-top: 0;
  margin-bottom: 1rem;
  color: #102616;
  line-height: 1.08;
}

.intro-copy p {
  color: #2c3835;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-details {
  display: grid;
  gap: 1.5rem;
}

.mission-text {
  margin: 1.5rem 0 0;
  font-size: 1.4rem;
  color: #102616;
  line-height: 1.55;
  font-weight: 600;
}

.intro-copy-subtext {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: #2c3835;
  line-height: 1.55;
}
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.mission-box p:last-child {
  margin: 0;
  font-size: 1.05rem;
  color: #102616;
  line-height: 1.75;
}

.intro-copy a {
  color: var(--accent);
  font-weight: 600;
}

.image-row {
  display: grid;
  gap: 1rem;
}

.image-card {
  background: linear-gradient(135deg, #f4f6f2, #e6efe9);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 42, 25, 0.06);
}

.image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-section {
  background: #f4f6f2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(30, 44, 38, 0.04);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #102616;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions a {
  padding: 0.7rem 0.95rem;
  background: #eef7f0;
  color: var(--accent-dark);
  border-radius: 999px;
  font-weight: 600;
}

.quote-section {
  background: linear-gradient(135deg, #ffffff, #f0f3ed);
}

.quote-wrap {
  text-align: center;
  padding: 2.5rem 0;
}

.quote-wrap h2,
.quote-wrap h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0;
  color: var(--accent-dark);
}

.about-intro,
.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-grid h2,
.about-section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.about-grid > div:first-child {
  grid-column: 1 / -1;
}

.about-grid > div:first-child h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.about-grid > div:first-child p {
  font-size: 1.2rem;
  max-width: 100%;
}

.team-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.team-grid .team-card {
  max-width: 520px;
  flex: 0 0 48%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
}

.team-grid .team-card p {
  text-align: center;
}

.team-card {
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-card p {
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  color: var(--muted);
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.region-list span {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: #eef7f0;
  color: var(--accent-dark);
  font-weight: 600;
}

.about-section.alt {
  background: #f4f6f2;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.about-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.about-carousel .carousel-viewport {
  overflow: hidden;
  padding: 0.5rem 0;
  width: min(760px, 72%);
  max-width: 760px;
}

 .about-carousel .carousel-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
 }

/* Static 3-card layout for About page */
.about-carousel .carousel-viewport {
  overflow: visible;
  width: 100%;
  max-width: none;
}

.about-carousel .carousel-track {
  width: 100%;
  grid-auto-flow: column;
}

.about-carousel .subsidiary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-carousel .subsidiary-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--accent-dark);
  text-align: center;
}

.subsidiaries-heading {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--accent-dark);
}

.about-carousel .team-card {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: auto;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.75rem;
}

.about-carousel .team-card .button { margin-top: 1rem; }

/* Products carousel: restore original grid layout and track behavior */
.products-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.products-carousel .carousel-viewport {
  overflow: hidden;
  padding: 0.5rem 0;
}

.products-carousel .carousel-track {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: stretch;
}

/* Make team-card behave like product slides when inside a products-carousel */
.products-carousel .team-card {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 3);
  min-width: calc(100% / 3);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 10px 30px rgba(30, 44, 38, 0.04);
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.35s ease;
}

.products-carousel .team-card p { color: var(--muted); }

.material-card,
.product-card {

  background: linear-gradient(135deg, #f8faf7, #edf5eb);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.85rem;
}

.material-photo {
  width: 100%;
  height: 120px;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

.material-photo.shredded {
  background: linear-gradient(135deg, rgba(223,238,226,0.95), rgba(207,226,210,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23b9d8c2'/%3E%3Crect x='34' y='30' width='54' height='56' rx='8' fill='%233f6b4a'/%3E%3Crect x='100' y='24' width='64' height='62' rx='10' fill='%2368a579'/%3E%3Cpath d='M40 88h112' stroke='%23567a5b' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.material-photo.waste {
  background: linear-gradient(135deg, rgba(241,231,205,0.95), rgba(221,210,170,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23ead8a8'/%3E%3Cpath d='M72 78c10-18 28-30 56-34' stroke='%23946b2a' stroke-width='8' stroke-linecap='round'/%3E%3Crect x='44' y='36' width='38' height='40' rx='8' fill='%23a76f26'/%3E%3Crect x='96' y='44' width='30' height='30' rx='6' fill='%23d9b15c'/%3E%3C/svg%3E");
}

.material-photo.cathode-foil {
  background: linear-gradient(135deg, rgba(220,235,248,0.95), rgba(184,214,236,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23cfe2f0'/%3E%3Crect x='42' y='30' width='116' height='32' rx='8' fill='%23395d7a'/%3E%3Crect x='42' y='70' width='116' height='14' rx='6' fill='%236f98b8'/%3E%3C/svg%3E");
}

.material-photo.cathode-powder {
  background: linear-gradient(135deg, rgba(232,235,216,0.95), rgba(202,211,179,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23dde4c2'/%3E%3Ccircle cx='74' cy='56' r='24' fill='%237c8f3f'/%3E%3Ccircle cx='126' cy='54' r='20' fill='%23a5b55b'/%3E%3Cpath d='M56 86h92' stroke='%2364593a' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.material-photo.black-mass {
  background: linear-gradient(135deg, rgba(226,224,224,0.95), rgba(182,180,180,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23b8b3b3'/%3E%3Ccircle cx='70' cy='58' r='26' fill='%23323232'/%3E%3Ccircle cx='130' cy='56' r='24' fill='%235c5c5c'/%3E%3Cpath d='M56 84h92' stroke='%233f3f3f' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.material-photo.mhp {
  background: linear-gradient(135deg, rgba(235,223,241,0.95), rgba(205,184,223,0.95)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' rx='16' fill='%23d6c2e5'/%3E%3Crect x='54' y='34' width='92' height='48' rx='12' fill='%2369487e'/%3E%3Crect x='66' y='44' width='34' height='24' rx='6' fill='%23b199d0'/%3E%3Crect x='108' y='44' width='24' height='24' rx='6' fill='%23e0d2eb'/%3E%3C/svg%3E");
}

.material-card h3,
.product-card h2 {
  margin: 0;
  color: var(--accent-dark);
}

.product-card {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 3);
  min-width: calc(100% / 3);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 10px 30px rgba(30, 44, 38, 0.04);
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.35s ease;
}

.product-photo {
  width: 100%;
  min-height: 140px;
  border-radius: 0.9rem;
  background: transparent;
  border: 0;
  overflow: hidden;
  object-fit: cover;
  display: block;
}

.product-card.active {
  z-index: 2;
}

.product-card .formula {
  font-weight: 700;
  color: var(--accent);
  margin: 0.3rem 0 0.6rem;
}

.product-card p {
  color: var(--muted);
  margin: 0;
}

.carousel-btn {
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.carousel-status {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
}

.carousel-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.carousel-actions .button {
  display: inline-flex;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-details {
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: #f4f6f2;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.contact-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--accent-dark);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.sms-consent {
  font-size: 0.78rem;
  color: #5a6e60;
  line-height: 1.5;
  margin: 0;
}

.sms-consent a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer {
  background: #0f2416;
  color: #d9e8de;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 2rem;
  align-items: start;
}

.footer-links {
  order: 2;
}

.footer-contact {
  order: 1;
}

.footer-links a {
  color: #d9e8de;
}

.footer-contact h4 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: white;
}

.footer-contact p {
  margin: 0.3rem 0;
  color: #b8c8bd;
}

@media (max-width: 860px) {
  .intro-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: 0 10px 25px rgba(10, 29, 18, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .team-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .team-grid .team-card {
    padding: 1rem;
  }

  /* Carousel-specific sizing for About page */

  .about-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .about-carousel .carousel-viewport {
    overflow: hidden;
    width: min(760px, 72%);
    max-width: 760px;
  }

  .about-carousel .carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.45s cubic-bezier(.22,.9,.3,1);
    will-change: transform;
  }

  .about-carousel .team-card {
    flex: 0 0 100%;
    min-width: 300px;
    max-width: 760px;
    box-sizing: border-box;
  }

  /* Center text and content inside carousel slides */
  .about-carousel .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
  }

  /* Ensure inner paragraphs don't add extra left padding and are centered */
  .about-carousel .team-card p {
    padding: 0;
    margin: 0.5rem 0 0;
    text-align: center;
    color: var(--muted);
  }

  /* Constrain carousel to full width of container and center viewport */
  .about-carousel {
    width: 100%;
  }
  .about-carousel .carousel-viewport {
    margin: 0 auto;
  }

  .about-carousel .team-card .carousel-title {
    margin: 0 0 0.5rem;
    text-align: center;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    color: var(--accent-dark);
    font-weight: 700;
  }

  .carousel-btn {
    border: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--accent-dark);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .site-header {
    min-height: auto;
  }

  .header-inner {
    padding: 0.85rem 0;
    gap: 0.7rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.55rem 0.8rem;
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .hero,
  .page-hero {
    padding: 3rem 0 2.2rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .section {
    padding: 2rem 0;
  }

  .intro-copy h2,
  .about-section h2 {
    font-size: clamp(1.3rem, 5.3vw, 1.8rem);
  }

  .mission-text {
    font-size: 1.1rem;
  }

  .feature-card,
  .contact-form,
  .material-card,
  .product-card {
    padding: 1rem;
  }

  .team-grid {
    flex-direction: column;
  }

  .team-grid .team-card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 1rem;
    padding: 0.85rem 0.95rem;
  }

  .footer-grid {
    gap: 1.25rem;
  }
}
