/**
 * Components: header, nav, footer, buttons, cards, forms, slider, journey labels
 */

/* ----- Journey stage (Hành trình khách hàng) ----- */
.journey-strip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.journey-strip--awareness {
  background: rgba(150, 254, 129, 0.15);
  color: var(--color-heading);
  border: 1px solid rgba(116, 189, 67, 0.4);
}

.journey-strip--consult {
  background: rgba(171, 116, 66, 0.12);
  color: var(--color-primary-hover);
  border: 1px solid rgba(171, 116, 66, 0.35);
}

.journey-strip--verify {
  background: var(--color-technical-soft);
  color: var(--journey-verify);
  border: 1px solid rgba(0, 113, 188, 0.25);
}

.journey-strip--transparency {
  background: rgba(1, 113, 67, 0.12);
  color: var(--journey-transparency);
  border: 1px solid rgba(1, 113, 67, 0.3);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent-cta);
  color: var(--color-white);
  border-color: var(--color-accent-cta);
}

.btn--primary:hover {
  background: var(--color-accent-cta-hover);
  border-color: var(--color-accent-cta-hover);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost-light:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--ghost-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn--ghost-white:hover,
.btn--ghost-white:focus-visible {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--color-white);
}

.btn--ghost-white:active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.3);
}

.btn--soft-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn--soft-white:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ----- Section eyebrow / title / lead (synced with components.css) ----- */
.section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: var(--text-h2);
  line-height: var(--line-height-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
}

@media (min-width: 35.5rem) {
  .section__title { font-size: var(--text-h2-lg); }
}

.section__lead {
  font-size: 1.0625rem;
  line-height: var(--line-height-body);
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* ----- Cards & grids ----- */
.card-grid {
  display: grid;
  gap: 1.875rem;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Whole-card CTA: click anywhere to navigate */
.card--link,
.proof-card--link {
  position: relative;
  cursor: pointer;
}

.card--link .card__link,
.proof-card--link .proof-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--link:hover .card__title,
.proof-card--link:hover .proof-card__title {
  color: var(--color-primary);
}

.card--link:has(.card__link:focus-visible),
.proof-card--link:has(.proof-card__link:focus-visible) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--color-mist) 0%, #d0d5d0 50%, var(--color-charcoal) 100%);
  background-size: cover;
  overflow: hidden;
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__media--wood {
  background:
    linear-gradient(90deg, rgba(28, 29, 31, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(92deg,
      #3d3429 0px,
      #5c4f3f 4px,
      #4a4035 8px,
      #6b5c48 14px);
}

.card__media--news-a {
  background: linear-gradient(160deg, #e8ebe8, #b8c4d4);
}

.card__media--news-b {
  background: linear-gradient(160deg, #e8ebe8, #9eb8a8);
}

.card__media--news-c {
  background: linear-gradient(160deg, #e8ebe8, #c4b8a8);
}

.trust-line {
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__body .btn {
  margin-top: auto !important;
  width: 100%;
  min-height: 3.25rem;
}

.card__meta {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: var(--text-h6);
  line-height: var(--line-height-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast, 0.15s ease);
}

@media (min-width: 35.5rem) {
  .card__title {
    font-size: var(--text-h6-lg);
  }
}

.card__excerpt {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* ----- Badges (certificates) ----- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.badge-row img {
  display: block;
  max-height: 5.5rem;
  width: auto;
  object-fit: contain;
}

.badge-cert {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  background: var(--color-white);
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.badge-cert--highlight {
  border-color: var(--color-technical);
  color: var(--color-technical);
  background: var(--color-technical-soft);
}

a.badge-cert {
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

a.badge-cert:hover,
a.badge-cert.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

a.badge-cert.badge-cert--highlight:hover,
a.badge-cert.badge-cert--highlight.is-active {
  background: var(--color-technical);
  color: var(--color-white);
}

/* Certification filter hides non-matching cards (.card uses display:flex) */
[data-cert-products] > .card.is-cert-hidden,
[data-cert-products] > .card[hidden] {
  display: none !important;
}

/* ===== CERTIFICATION SECTION ===== */
.cert-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 900px) {
  .cert-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.cert-section__title {
  font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.2 var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 var(--space-4);
}

.cert-section__desc {
  font: 400 0.95rem/1.6 'Manrope', sans-serif;
  color: var(--color-text);
  margin: 0 0 var(--space-8);
}

/* Pills */
.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
}

.cert-pill {
  padding: 0.45rem 1rem;
  font: 600 0.8rem/1 var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.cert-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cert-pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Detail panels */
.cert-details {
  position: relative;
  min-height: 100px;
}

.cert-detail {
  display: none;
}

.cert-detail.is-active {
  display: block;
  animation: certFadeIn 0.3s ease;
}

@keyframes certFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cert-detail h4 {
  font: 600 1rem/1.3 var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.cert-detail p {
  font: 400 0.9rem/1.6 'Manrope', sans-serif;
  color: var(--color-text);
  margin: 0;
}

/* Right: Certificate Slider */
.cert-section__right {
  position: sticky;
  top: 6rem;
}

.cert-slider {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.cert-slider__track {
  position: relative;
  min-height: 320px;
}

.cert-slide {
  display: none;
  animation: certFadeIn 0.35s ease;
}

.cert-slide.is-active {
  display: block;
}

/* Certificate card (home cert slider only — do not override page trust cards) */
.cert-slider .cert-card {
  display: flex;
  flex-direction: column;
}

.cert-card__badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-fomex-green);
  color: white;
}

.cert-slider .cert-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.cert-card__label {
  font: 700 1.1rem/1 var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cert-slider .cert-card__body {
  padding: 1.5rem;
}

.cert-card__body h5 {
  font: 600 1.05rem/1.3 var(--font-heading);
  color: var(--color-heading);
  margin: 0 0 0.35rem;
}

.cert-card__code {
  font: 400 0.8rem/1.4 'Roboto Mono', monospace;
  color: var(--color-text-secondary);
  margin: 0 0 0.75rem;
}

.cert-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: 600 0.8rem/1 'Manrope', sans-serif;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.cert-card__status--valid {
  background: #e6f7ee;
  color: #017143;
}

.cert-card__scope {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-card__scope li {
  font: 400 0.85rem/1.5 'Manrope', sans-serif;
  color: var(--color-text);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cert-card__scope li:last-child {
  border-bottom: none;
}

/* Slider nav */
.cert-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.cert-slider__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-heading);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.cert-slider__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cert-slider__counter {
  font: 500 0.85rem/1 var(--font-heading);
  color: var(--color-text);
  min-width: 3rem;
  text-align: center;
}

/* ----- Hero (Plyterra-style full-screen) ----- */
.hero {
  position: relative;
  min-height: 85vh;
  margin-top: calc(-1 * var(--header-height));
  background: var(--color-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Decorative watermark icon */
.hero__watermark {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 650px;
  opacity: 0.1;
  pointer-events: none;
}

.hero__watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tree SVG decoration */
.hero__tree {
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero__tree img {
  display: block;
  height: clamp(280px, 45vh, 475px);
  width: auto;
}

/* Slides container */
.hero__slides {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: 5rem;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* Two-column hero layout */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1200px) {
  .hero__layout.container {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .hero__layout {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-12);
  }
}

/* Left side: big headline */
.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.2vw, 6rem);
  line-height: 1.05;
  color: var(--color-white);
  margin: 0;
  letter-spacing: -0.01em;
}

.hero__content .hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  line-height: var(--line-height-body);
  margin: 0 0 var(--space-6);
  max-width: 40rem;
}

.hero__content .hero__lead p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  max-width: none;
}

.hero__content .hero__lead p + p {
  margin-top: 0.55em;
}

/* Right side: info card */
.hero__right {
  position: relative;
  z-index: 2;
}

.hero__info-card {
  max-width: 24rem;
  margin-left: auto;
  padding-left: var(--space-6);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.5rem;
}

.hero__info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.hero__info-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* Global Slide Navigation */
.hero__global-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hero__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 8rem;
  /* Make it taller */
  background: transparent;
  /* No background */
  border: none;
  /* No circle border */
  color: var(--color-white);
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
  opacity: 0.6;
}

.hero__nav-btn svg {
  width: 3rem;
  height: 3rem;
  pointer-events: none;
  /* Prevent SVG from swallowing clicks just in case */
}

.hero__nav-btn:hover {
  background: transparent;
  color: var(--color-white);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.hero__nav-btn--prev {
  left: 0.5rem;
}

.hero__nav-btn--next {
  right: 0.5rem;
}

@media (min-width: 900px) {
  .hero__nav-btn--prev {
    left: 2rem;
  }

  .hero__nav-btn--next {
    right: 2rem;
  }
}

.hero__global-counter {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;

  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__counter-slash {
  font-weight: 300;
  opacity: 0.5;
  margin: 0 0.5rem;
}

.hero__counter-total {
  font-weight: 300;
}

/* ----- About Section (Plyterra-style) ----- */
.about-section {
  background: var(--color-surface);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* Master 2-column grid: label left, content right */
.about-master {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.about-master--content-only {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about-master {
    grid-template-columns: 10rem 1fr;
    gap: var(--space-8);
  }

  .about-master--content-only {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .about-master {
    grid-template-columns: 12rem 1fr;
    gap: var(--space-10);
  }

  .about-master--content-only {
    grid-template-columns: 1fr;
  }

  .about-index__num {
    font-size: 1.75rem;
  }

  .about-headline {
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  }
}

/* Section index label (top-left) */
.about-index {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-index__num {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.about-index__label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.04em;
}

/* Right content body */
.about-body {
  min-width: 0;
}

/* Headline */
.about-headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.625rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-heading);
  margin: 0 0 var(--space-10) 0;
  max-width: 70rem;
}

.about-headline__accent {
  color: var(--color-primary);
}

/* Row: video btn left + 2 text columns right */
.about-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .about-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* 2-column text grid */
.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  flex: 1;
}

@media (min-width: 600px) {
  .about-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.about-columns__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ----- Factory Interactive Block (Plyterra Style) ----- */
.about-factory {
  grid-column: 1 / -1;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
}

.about-factory__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-heading);
  margin-bottom: var(--space-8);
  max-width: 850px;
}

.factory-tabs-shell {
  position: relative;
  min-width: 0;
  margin-bottom: var(--space-6);
}

.factory-tabs-shell::before,
.factory-tabs-shell::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 1px;
  width: clamp(2.5rem, 5vw, 4.5rem);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.factory-tabs-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface) 15%, transparent);
}

.factory-tabs-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface) 15%, transparent);
}

.factory-tabs-shell.is-scrollable:not(.is-at-start)::before,
.factory-tabs-shell.is-scrollable:not(.is-at-end)::after {
  opacity: 1;
}

.factory-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.factory-tabs::-webkit-scrollbar {
  display: none;
}

.factory-tabs__arrow {
  display: none;
}

@media (min-width: 768px) {
  .factory-tabs__arrow {
    position: absolute;
    z-index: 3;
    top: 0;
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    transition:
      color 160ms ease-out,
      border-color 160ms ease-out,
      opacity 160ms ease-out;
  }

  .factory-tabs__arrow--prev {
    left: 0;
  }

  .factory-tabs__arrow--next {
    right: 0;
  }

  .factory-tabs-shell.is-scrollable:not(.is-at-start) .factory-tabs__arrow--prev,
  .factory-tabs-shell.is-scrollable:not(.is-at-end) .factory-tabs__arrow--next {
    pointer-events: auto;
    opacity: 1;
  }

  .factory-tabs__arrow:hover {
    color: var(--color-surface);
    background: var(--color-primary);
    border-color: var(--color-primary);
  }

  .factory-tabs__arrow:disabled {
    pointer-events: none;
    opacity: 0;
  }
}

.factory-tab {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0 0 var(--space-3) 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 0.3s ease;
}

.factory-tab:hover {
  color: var(--color-heading);
}

.factory-tab.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.factory-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.factory-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.factory-tab-content.is-active {
  display: block;
}

.factory-pane {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .factory-pane {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-10);
  }
}

.factory-pane__image {
  flex: 1.5;
  position: relative;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.factory-pane__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

@media (min-width: 768px) {
  .factory-pane__overlay {
    width: 55%;
    padding-right: 2rem;
  }
}

.factory-pane__name {
  font: 500 clamp(1.1rem, 1.66vw, 1.5rem)/1.3em 'Montserrat', sans-serif;
  margin-bottom: var(--space-10);
  color: white;
}

.factory-pane__stat {
  margin-bottom: var(--space-6);
}

.factory-pane__stat-label {
  display: block;
  font: 400 clamp(0.75rem, 1.04vw, 0.95rem)/1.4em 'Manrope', sans-serif;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.factory-pane__stat-val {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font: bold clamp(1.75rem, 2.5vw, 2.5rem)/0.94em 'NeuePower', 'Georgia', serif;
  letter-spacing: -0.02em;
}

.factory-pane__stat-val small {
  font: 500 clamp(0.7rem, 0.9vw, 0.85rem)/1em 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.factory-pane__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.factory-pane__info p {
  font: 400 clamp(0.85rem, 1.04vw, 0.95rem)/1.4em 'Manrope', sans-serif;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.factory-pane__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn--pill {
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-heading);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn--pill:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-heading);
}



/* Video button (pill shape) */
.about-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem 0.625rem 0.625rem;
  border-radius: 3rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-heading);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}

.about-video-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(1, 113, 67, 0.1);
  text-decoration: none;
}

/* YouTube video modal (Who we are — Company) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 11, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 96px rgba(0, 0, 0, 0.65);
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.video-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

body.is-video-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .video-modal {
    padding: var(--space-3);
    align-items: center;
  }

  .video-modal__frame {
    border-radius: var(--radius-sm);
  }

  .video-modal__close {
    top: var(--space-2);
    right: var(--space-2);
    width: 2.25rem;
    height: 2.25rem;
  }
}

.about-video-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
}

.about-video-btn__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .about-section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .about-master {
    gap: var(--space-4);
  }

  .about-index {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-2);
  }

  .about-index__num {
    font-size: 1rem;
  }

  .about-index__label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .about-headline {
    font-size: 1.45rem;
    line-height: 1.22;
    margin-bottom: var(--space-6);
  }

  .about-row,
  .about-columns {
    gap: var(--space-4);
  }

  .about-columns__text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .about-video-btn {
    width: fit-content;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }

  .about-video-btn__icon {
    width: 2rem;
    height: 2rem;
  }

  .about-factory {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
  }

  .about-factory__title {
    font-size: 1.22rem;
    line-height: 1.28;
    margin-bottom: var(--space-5);
  }

  .factory-tabs {
    gap: var(--space-4);
    padding: 0 var(--container-pad) var(--space-2);
    scroll-padding-inline: var(--container-pad);
  }

  .factory-tabs-shell {
    margin-right: calc(-1 * var(--container-pad));
    margin-bottom: var(--space-6);
    margin-left: calc(-1 * var(--container-pad));
  }

  .factory-tab {
    font-size: 0.92rem;
    padding-bottom: var(--space-2);
  }

  .factory-pane {
    gap: var(--space-5);
  }

  .factory-pane__image {
    min-height: 20rem;
    border-radius: var(--radius-lg);
  }

  .factory-pane__overlay {
    padding: var(--space-5);
    justify-content: flex-end;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.62) 56%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .factory-pane__name {
    font-size: 1rem;
    line-height: 1.32;
    margin-bottom: var(--space-5);
  }

  .factory-pane__stat {
    margin-bottom: var(--space-3);
  }

  .factory-pane__stat-label {
    font-size: 0.76rem;
  }

  .factory-pane__stat-val {
    font-size: 1.45rem;
    line-height: 1;
  }

  .factory-pane__info p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: var(--space-5);
  }
}

@media (max-width: 420px) {
  .about-headline {
    font-size: 1.32rem;
  }

  .about-factory__title {
    font-size: 1.12rem;
  }

  .factory-pane__image {
    min-height: 17.5rem;
  }
}

/* ----- Markets Section (Plyterra-style) ----- */
.markets-section {
  background: var(--color-surface);
}

.markets-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1200px) {
  .markets-grid {
    grid-template-columns: 1fr 28rem;
    gap: var(--space-8);
  }
}

/* Right Sidebar */
.markets-sidebar {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
}

.markets-sidebar__top {
  margin-bottom: var(--space-12);
}

.markets-sidebar__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 var(--space-4) 0;
  color: var(--color-heading);
}

.markets-sidebar__accent {
  font-weight: 600;
  color: var(--color-primary);
}

.markets-sidebar__number {
  font-family: var(--font-heading);
  font-size: 10rem;
  line-height: 0.8;
  font-weight: 300;
  margin-bottom: var(--space-4);
  letter-spacing: -0.05em;
  color: var(--color-primary);
}

.markets-sidebar__desc {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-heading);
}

/* Filter Pills */
.markets-sidebar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-12);
}

.markets-pill {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.markets-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.markets-pill--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Left Content (Map) */
.markets-map-container {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.markets-map {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.markets-map-container svg.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
  will-change: transform;
}

/* Map Base Styles */
.world-map-svg path {
  fill: #E5E7EB;
  /* Light gray for default countries */
  stroke: var(--color-surface);
  /* White stroke for borders */
  stroke-width: 0.5px;
  transition: fill 0.4s ease;
}

/* Hover effect */
.world-map-svg path:hover {
  opacity: 0.8;
}

/* ----- Partners strip ----- */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0.85;
}

.partner-placeholder {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

/* ----- Spec table (technical blue) ----- */
.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-mist);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.spec-table th {
  font-family: var(--font-heading);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-technical);
  color: var(--color-white);
  font-weight: 700;
}

.spec-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-mist);
  color: var(--color-text-muted);
}

.spec-table tr:nth-child(even) td {
  background: var(--color-off-white);
}

/* ----- Process steps (QC) ----- */
.process-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-primary);
}

.process-step__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h6);
  line-height: var(--line-height-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

@media (min-width: 35.5rem) {
  .process-step h3 {
    font-size: var(--text-h6-lg);
  }
}

.process-step p {
  font-size: var(--text-sm);
  margin: 0;
}

/* ----- Forms ----- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form__row,
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form label,
.form__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-heading);
  display: block;
  margin-bottom: var(--space-2);
}

.form input:not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
}

.form input:not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form__success {
  display: none;
  padding: var(--space-4);
  background: rgba(116, 189, 67, 0.15);
  border: 1px solid rgba(116, 189, 67, 0.4);
  border-radius: var(--radius-md);
  color: var(--color-charcoal);
  font-size: var(--text-sm);
}

.form__success.is-visible {
  display: block;
}

.map-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-mist) 0%, #b8c4d4 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.contact-address {
  font-style: normal;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.contact-hours {
  color: var(--color-text-muted);
}

.map-embed {
  position: relative;
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.map-embed__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .video-embed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-charcoal);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.two-col {
  display: grid;
  gap: var(--space-10);
}

.two-col > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ----- Section label & header ----- */
.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__header {
  margin-bottom: var(--space-10);
}

/* ----- Button small ----- */
.btn--sm {
  padding: 0.625rem 1.375rem;
  font-size: var(--text-sm);
}

.btn--nav-cta {
  padding: 0.5rem 1.125rem;
  font-size: var(--text-sm);
  background: var(--color-orange-cta);
  color: var(--color-white);
  border-color: var(--color-orange-cta);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn--nav-cta:hover {
  background: #e07030;
  border-color: #e07030;
}

/* (Hero value props + Quick-links bar removed — replaced by Plyterra-style hero__products in hero section) */

/* ----- Video block ----- */
.video-block__placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-mist) 0%, #b8c4d4 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: box-shadow var(--transition-base);
}

.video-block__placeholder:hover {
  box-shadow: var(--shadow-md);
}

.video-block__play {
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1;
}

.video-block__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ----- Products workbench (sidebar + card) ----- */
.foa {
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(24rem, 30vw, 36rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
}

@media (min-width: 900px) {
  .foa {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .foa {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  .foa {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .foa__sidebar {
    padding: var(--space-8);
  }

  .foa__card-content {
    padding: var(--space-10) var(--space-8);
  }

  .foa__card-title {
    font-size: clamp(2.2rem, 3vw, 3.25rem);
  }
}

/* Left sidebar */
.foa__sidebar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-right: 1px solid var(--color-white);
}

.foa__sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.foa__sidebar-num {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.foa__sidebar-label {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.2vw, 1.4rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.foa__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.35;
}

/* Sidebar topic nav (pill list only — no per-item headings) */
.foa__groups {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
}

.foa__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.8vw, 0.9rem);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: normal;
  line-height: 1.35;
  text-align: center;
}

.foa__pill:hover,
.foa__pill--active {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.foa__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Right content card */
.foa__card {
  background: var(--color-primary);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .foa__card {
    grid-template-columns: 60% 40%;
    grid-template-rows: 1fr auto;
  }
}

.foa__card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-10) var(--space-8);
  padding-right: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.foa__card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  pointer-events: none;
  order: -1;
}

@media (min-width: 900px) {
  .foa__card-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    order: unset;
  }
}

.foa__card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Soft ease-out fade across the full media width (layout width unchanged). */
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    rgba(1, 113, 67, 0.97) 5%,
    rgba(1, 113, 67, 0.9) 12%,
    rgba(1, 113, 67, 0.8) 20%,
    rgba(1, 113, 67, 0.68) 30%,
    rgba(1, 113, 67, 0.54) 40%,
    rgba(1, 113, 67, 0.4) 50%,
    rgba(1, 113, 67, 0.28) 60%,
    rgba(1, 113, 67, 0.18) 70%,
    rgba(1, 113, 67, 0.1) 80%,
    rgba(1, 113, 67, 0.04) 90%,
    rgba(1, 113, 67, 0.01) 96%,
    transparent 100%
  );
  pointer-events: none;
}

@media (max-width: 899px) {
  .foa__card-media::after {
    background: linear-gradient(180deg, transparent 40%, var(--color-primary) 100%);
  }
}

.foa__card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.foa__card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 1.18;
  color: var(--color-white);
  margin: 0 0 var(--space-5);
}

.foa__card-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.foa__card-link {
  color: inherit;
}

.foa__card-link:hover {
  color: inherit;
}

.foa__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 3vw, 3.25rem);
  height: clamp(2.5rem, 3vw, 3.25rem);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-charcoal);
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  line-height: 1;
  vertical-align: middle;
  margin: 0 0.25rem;
}

.foa__card-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 40rem;
}

/* Nav arrows */
.foa__card-nav {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  gap: var(--space-3);
  z-index: 2;
}

.foa__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.25rem, 3.5vw, 4.25rem);
  height: clamp(3.25rem, 3.5vw, 4.25rem);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.foa__nav-btn:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

@media (max-width: 899px) {
  .foa__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--color-white);
    padding: var(--space-8) var(--space-6);
    align-items: center;
  }

  .foa__groups {
    max-width: 22rem;
    margin-inline: auto;
  }

  .foa__cta {
    margin-top: var(--space-4);
    max-width: 22rem;
    margin-inline: auto;
  }

  .foa__card {
    min-height: auto;
  }

  .foa__card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .foa__card-content {
    padding: var(--space-6) var(--space-5);
    padding-bottom: var(--space-16);
  }

  .foa__card-nav {
    bottom: var(--space-5);
    right: var(--space-5);
  }
}

/* ----- Principles row ----- */
.principles-row {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .principles-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.principle__btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-align: left;
  font-family: var(--font-heading);
}

.principle__btn:hover,
.principle__btn.is-active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.principle__num {
  font-weight: 800;
  font-size: var(--text-h4);
  color: var(--color-primary);
  line-height: 1;
}

.principle__name {
  font-weight: 700;
  font-size: var(--text-h6);
  color: var(--color-heading);
}

@media (min-width: 35.5rem) {
  .principle__name {
    font-size: var(--text-h6-lg);
  }
}

.principle__content {
  display: none;
  padding: var(--space-5);
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3);
}

.principle__content.is-open {
  display: block;
}

.principle__content h3 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-2);
}

.principle__content p {
  font-size: var(--text-sm);
  margin: 0;
}

@media (min-width: 768px) {
  .principles-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .principle__btn {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .principle__content {
    margin-top: 0;
  }
}

/* ----- Stats bar ----- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding: var(--space-10);
  }
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .stat__num {
    font-size: 3rem;
  }
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ----- Factory grid ----- */
.factory-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .factory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.factory-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.factory-card:hover {
  box-shadow: var(--shadow-md);
}

.factory-card__image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.factory-card__image--a {
  background: linear-gradient(135deg, #e8f5ef 0%, #c5e4d4 50%, #a8d4be 100%);
}

.factory-card__image--b {
  background: linear-gradient(135deg, #e5f4fb 0%, #c5dfe8 50%, #a8cdd8 100%);
}

.factory-card__body {
  padding: var(--space-6);
}

.factory-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h5);
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

@media (min-width: 35.5rem) {
  .factory-card__name {
    font-size: var(--text-h5-lg);
  }
}

.factory-card__location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.factory-card__stats {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
}

.factory-card__stat {
  display: flex;
  flex-direction: column;
}

.factory-card__stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-h4);
  color: var(--color-primary);
  line-height: 1.1;
}

.factory-card__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.factory-card__products {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.factory-card__products li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.factory-card__products li:last-child {
  border-bottom: none;
}

/* ----- Project tabs ----- */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.project-tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.project-tab:hover {
  color: var(--color-primary);
}

.project-tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.project-panel {
  display: none;
}

.project-panel.is-active {
  display: block;
}

.project-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-card__media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.project-card__media--a {
  background: linear-gradient(160deg, #e8ebe8, #b8c4d4);
}

.project-card__media--b {
  background: linear-gradient(160deg, #e8ebe8, #9eb8a8);
}

.project-card__media--c {
  background: linear-gradient(160deg, #e8ebe8, #c4b8a8);
}

.project-card__body {
  padding: var(--space-5);
}

.project-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-h6);
  line-height: var(--line-height-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

@media (min-width: 35.5rem) {
  .project-card__title {
    font-size: var(--text-h6-lg);
  }
}

.project-card__excerpt {
  font-size: var(--text-sm);
  margin: 0;
}

/* ----- Catalogue pages ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.catalogue-page {
  background: var(--color-surface-alt);
}

.catalogue-page__header {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 900px) {
  .catalogue-page__header {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.56fr);
    align-items: end;
  }
}

.catalogue-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalogue-card--large {
    grid-column: span 2;
  }
}

.catalogue-card {
  position: relative;
  min-height: 24rem;
  padding: var(--space-8);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.catalogue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.catalogue-card__kicker {
  position: relative;
  z-index: 1;
  font: 700 var(--text-xs)/1 var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-3);
}

.catalogue-card h2 {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  margin-bottom: var(--space-3);
  max-width: 16rem;
}

.catalogue-card p {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.catalogue-card img {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: min(58%, 20rem);
  height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.18));
  transform: scale(1.08);
  pointer-events: none;
}

.catalogue-card--large img {
  width: min(46%, 28rem);
  height: 64%;
}

.catalogue-card__arrow {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.5rem;
}

.category-hero {
  background: var(--color-primary);
  color: var(--color-white);
}

.category-hero .breadcrumb,
.category-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.category-hero .journey-strip--verify,
.product-item-hero .journey-strip--verify {
  background: rgba(255, 255, 255, 0.13);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.34);
}

.category-hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .category-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.7fr);
  }
}

.category-hero__copy h1 {
  color: var(--color-white);
}

.category-hero__copy p {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-lg);
}

.category-hero__media {
  margin: 0;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-hero__media img {
  width: min(100%, 34rem);
  max-height: 25rem;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.18));
  transform: scale(1.08);
}

.category-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
  max-width: 44rem;
}

.category-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: var(--space-4);
}

.category-stat strong {
  display: block;
  color: var(--color-white);
  font: 800 clamp(1.5rem, 2.4vw, 2.4rem)/1 var(--font-heading);
}

.category-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.category-tab-link {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-primary);
  background: var(--color-white);
  text-decoration: none;
  font: 700 var(--text-sm)/1 var(--font-heading);
}

.category-tab-link:hover,
.category-tab-link.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  text-decoration: none;
}

.category-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 980px) {
  .category-layout {
    grid-template-columns: 18rem minmax(0, 1fr);
    align-items: start;
  }
}

.category-filter {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

@media (min-width: 980px) {
  .category-filter {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
  }
}

.category-filter h2 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-6);
}

.category-filter__group + .category-filter__group {
  margin-top: var(--space-6);
}

.category-filter__group h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.category-filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip,
.category-filter__reset {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 100px;
  padding: 0.55rem 0.85rem;
  font: 700 var(--text-xs)/1 var(--font-heading);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--color-primary);
  color: var(--color-white);
  background: var(--color-primary);
}

.category-filter__reset {
  width: 100%;
  margin-top: var(--space-6);
  color: var(--color-primary);
}

.category-products__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.category-products__head h2 {
  margin: 0;
}

.category-products__head span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.category-products__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .category-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category-product-card {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr);
  min-height: 18rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.category-product-card__media {
  margin: 0;
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.category-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.12));
}

.category-product-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-product-card__body h3 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-3);
}

.category-product-card__body p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.category-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: auto 0 var(--space-5);
}

.category-product-card__tags span {
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

@media (max-width: 620px) {
  .category-product-card {
    grid-template-columns: 1fr;
  }

  .category-product-card__media {
    min-height: 14rem;
  }
}

/* FEATURED PRODUCTS SLIDER */
.featured-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -1rem;
  padding: 1rem;
}

.featured-slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
}

.featured-slider-track > .category-product-card {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 280px;
}

@media (max-width: 1024px) {
  .featured-slider-track > .category-product-card {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 768px) {
  .featured-slider-track > .category-product-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .featured-slider-track > .category-product-card {
    flex: 0 0 100%;
  }
}

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

.category-product-card--vertical .category-product-card__media {
  min-height: 200px;
}

.featured-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.featured-slider-nav:hover {
  background: var(--color-surface-hover);
  color: var(--color-primary);
}

.featured-slider-nav.prev {
  left: 0.5rem;
}

.featured-slider-nav.next {
  right: 0.5rem;
}

@media (max-width: 1200px) {
  .featured-slider-nav.prev { left: 0.5rem; }
  .featured-slider-nav.next { right: 0.5rem; }
}

.product-item-hero {
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.product-item-hero .breadcrumb,
.product-item-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.product-item-hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .product-item-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.62fr);
  }
}

.product-item-hero__copy h1 {
  color: var(--color-white);
  max-width: 52rem;
}

.product-item-hero__copy p {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-lg);
}

.product-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.product-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-xs);
  font-weight: 800;
}

.product-item-hero__media {
  margin: 0;
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-item-hero__media img {
  width: min(100%, 34rem);
  max-height: 28rem;
  object-fit: contain;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.2));
  transform: scale(1.08);
}

.product-detail-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 0.58fr) minmax(24rem, 0.42fr);
  }
}

.product-detail-copy h2 {
  max-width: 34rem;
}

.product-detail-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.product-spec-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}

.product-spec-card h2 {
  font-size: var(--text-h5);
  margin-bottom: var(--space-5);
}

.product-spec-card dl {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.product-spec-card dl div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.product-spec-card dl div:nth-child(odd) {
  background: var(--color-surface-alt);
}

.product-spec-card dt {
  color: var(--color-text-muted);
  font: 700 var(--text-xs)/1.45 var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-spec-card dd {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.product-related-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .product-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-related-empty {
  margin: 0;
  color: var(--color-text-muted);
}

@media (max-width: 620px) {
  .product-spec-card dl div {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* New Product Detail Layout */
.product-showcase-section {
  background: var(--color-surface);
}
.product-showcase-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .product-showcase-grid {
    grid-template-columns: minmax(0, 0.55fr) minmax(20rem, 0.45fr);
    gap: var(--space-12);
  }
}

.product-gallery__main {
  position: relative;
  margin: 0;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.product-gallery__main:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
}
.product-gallery .product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
  width: 72px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  order: -1;
}
.product-gallery .thumb-btn {
  position: relative;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 0;
  background: var(--color-mist);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.product-gallery .thumb-btn img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.product-gallery .thumb-btn:hover { border-color: var(--color-border-hover); }
.product-gallery .thumb-btn.is-active { border-color: var(--color-primary); }

/* Mobile: thumbs in a horizontal row under the main image */
@media (max-width: 640px) {
  .product-gallery {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .product-gallery .product-gallery__thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    order: 1;
    gap: var(--space-2);
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .product-gallery .product-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
  }

  .product-gallery .product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
  }

  .product-gallery__main {
    order: 0;
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .product-gallery .thumb-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.product-key-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}
.key-spec-item {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.key-spec-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.key-spec-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
}

/* Tabs */
.product-tabs {
  margin-top: var(--space-10);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  overflow-x: auto;
}
.tab-btn {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-white);
}

.tab-content {
  display: none;
  padding: var(--space-8);
}
.tab-content.is-active { display: block; }

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 30%;
  background: rgba(0,0,0,0.01);
}

/* Good Site Practices (Compact) */
.practices-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 680px) {
  .practices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.practice-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface-alt);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.practice-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.practice-item__content h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.practice-item__content p {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin: 0;
  line-height: 1.4;
}

/* ----- CTA section ----- */
.cta-section {
  background: linear-gradient(135deg, var(--color-fomex-green) 0%, #015a36 100%);
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn--secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.cta-section .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ----- Contact Routing Cards ----- */
.routing-card {
  background: var(--color-white);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.routing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.routing-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  color: var(--color-heading);
}

.routing-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.routing-card__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: auto;
}

/* Hide Google Translate UI */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt {
  display: none !important;
}
body {
  top: 0px !important;
}
/* ==========================================================================
   Mobile Responsive Fixes
   ========================================================================== */

@media (max-width: 899px) {
  /* ----- Typography Scale Fixes ----- */
  :root {
    --text-h1: 2rem;
    --text-h2: 1.75rem;
    --text-h3: 1.375rem;
    --text-h4: 1.125rem;
  }

  /* ----- Hero Section ----- */
  /* Distill homepage banner: keep full-bleed absolute slides (do not force relative). */
  .hero:not(.hero--distill) {
    min-height: auto;
    padding: 90px 0 60px;
  }

  .hero:not(.hero--distill) .hero__slides {
    display: grid;
    grid-template-areas: "slide";
    position: relative;
    align-items: start;
  }

  .hero:not(.hero--distill) .hero__slide {
    grid-area: slide;
    position: relative;
    padding-top: 1rem;
    padding-bottom: 2rem;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .hero:not(.hero--distill) .hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  
  .hero__layout {
    align-items: start;
  }
  
  .hero__title {
    font-size: 1.875rem;
  }
  
  .hero__left {
    min-height: 110px; /* Forces 3 lines height to prevent layout jump */
  }
  
  .hero__info-card {
    padding-left: 0;
    border-left: none;
    margin-top: var(--space-6);
    margin-left: 0;
  }
  
  .hero__info-text {
    min-height: 75px; /* Forces 3 lines height for description */
  }
  
  .hero__nav-btn {
    top: auto;
    bottom: 1.5rem;
    transform: none;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
  }
  
  .hero__nav-btn--prev { left: 1rem; }
  .hero__nav-btn--next { left: 4.5rem; }
  
  .hero__global-counter {
    bottom: 2rem;
    right: 1rem;
    left: auto;
  }

  /* Distill homepage banner: keep absolute slides so dots stay tappable */
  .hero.hero--distill {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    min-height: min(72vh, 34rem);
    padding: 0;
  }

  .hero.hero--distill .hero__slides {
    display: block;
    position: relative;
    flex: 1;
    min-height: min(72vh, 34rem);
    width: 100%;
  }

  .hero.hero--distill .hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: calc(var(--space-10) + 2.75rem);
    align-items: flex-end;
  }

  .hero.hero--distill .hero__slide::before {
    background-size: cover;
    background-position: center;
  }

  .hero.hero--distill .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero.hero--distill .hero__actions .btn {
    width: 100%;
  }

  .hero.hero--distill .hero__content h1,
  .hero.hero--distill .hero__content h2,
  .hero.hero--distill .hero__content .hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero.hero--distill .hero__content p,
  .hero.hero--distill .hero__content .hero__lead {
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
  }

  .hero.hero--distill .hero__content .hero__lead p {
    margin-bottom: 0;
  }

  .hero.hero--distill .hero__dots {
    padding-bottom: var(--space-4);
  }

  .about-headline {
    font-size: 1.75rem;
  }

  .about-factory {
    min-width: 0;
  }

  .about-factory__title {
    font-size: 1.35rem;
  }

  .factory-tabs {
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  
  .factory-tab {
    flex-shrink: 0;
  }

  .factory-pane__image {
    min-height: 280px;
  }
  
  /* ----- Tabs overflow ----- */
  .hero__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  /* Make routing cards wrap to 1 column */
  .routing-card__grid,
  .solutions__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Ensure features or stat grids don't overlap */
  .stats-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* ----- Image Map ----- */
  .markets-map-wrapper svg {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 900px) {
  /* Hide nav toggle on desktop */
  .nav-toggle {
    display: none;
  }
}

/* ================================================================
   PROOF OF OPERATION GRID & CARDS
   ================================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.proof-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proof-card__media {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.proof-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
  transition: color var(--transition-fast, 0.15s ease);
}

.proof-card__desc {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
