/**
 * 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-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ----- 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: 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);
}

/* ----- Hero slider ----- */
.hero {
  position: relative;
  min-height: min(90vh, 44rem);
  overflow: hidden;
}

.hero__slides {
  position: relative;
  min-height: inherit;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0 var(--space-12);
}

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

.hero__slide>.container {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero__content a,
.hero__content button,
.hero__actions {
  pointer-events: auto;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-slide-image);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 32, 24, 0.56);
  pointer-events: none;
}

.hero__content {
  max-width: 52rem;
}

.hero__content h1,
.hero__content h2,
.hero__content .hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-size: var(--text-h1);
}

.hero__content .hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-heading, 1.15);
}

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

.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;
}

.hero__content p.hero__title {
  color: var(--color-white);
  font-size: var(--text-h1);
  line-height: var(--line-height-heading, 1.15);
  margin-bottom: var(--space-4);
  max-width: none;
}

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 0 var(--space-6);
  pointer-events: none;
}

.hero__dot {
  position: relative;
  width: auto;
  height: auto;
  border: none;
  padding: 0.5rem 0.25rem;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero__dot.is-active::before {
  background: var(--color-white);
  transform: scale(1.25);
}

/* ----- 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;
}

.form__failure,
.inquiry-alert {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form__failure,
.inquiry-alert--error {
  background: rgba(196, 64, 48, 0.08);
  border: 1px solid rgba(196, 64, 48, 0.35);
  color: var(--color-charcoal);
}

.inquiry-alert--success {
  background: rgba(116, 189, 67, 0.15);
  border: 1px solid rgba(116, 189, 67, 0.4);
  color: var(--color-charcoal);
}

.inquiry-alert--warning {
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: var(--color-charcoal);
}

.form__failure p,
.inquiry-alert p {
  margin: 0;
}

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

/* Contact Form 7 — match mockup form chrome */
.wpcf7 .screen-reader-response,
.wpcf7 .hidden-fields-container {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7 form.submitting .btn {
  opacity: 0.7;
  pointer-events: none;
}

.wpcf7-spinner {
  margin-left: var(--space-3);
  vertical-align: middle;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: #c44030;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #c44030;
}

.wpcf7 .wpcf7-response-output {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  display: none;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  display: block;
  background: rgba(196, 64, 48, 0.08);
  border-color: rgba(196, 64, 48, 0.35);
}

.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;
  }
}

/* ----- Button: small size + ghost-white for dark backgrounds ----- */
.btn--sm {
  padding: 0.625rem 1.375rem;
  font-size: var(--text-sm);
}

.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--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 eyebrow label (above H1) ----- */
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fresh-green);
  margin-bottom: var(--space-3);
}

/* ----- Stats bar (below hero) ----- */
.stats-bar {
  background: var(--color-charcoal);
  padding: var(--space-8) 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
}

@media (min-width: 640px) {
  .stats-bar__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.stat-item {
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
}

@media (min-width: 640px) {
  .stat-item+.stat-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

.stat-item__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: var(--font-weight-display);
  color: var(--color-fresh-green);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-item__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- Section eyebrow (replaces visible journey-strip labels) ----- */
.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);
}

/* ----- Cert card grid (trust / compliance — single-source hover) ----- */
.cert-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-4);
}

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

@media (min-width: 56.25rem) {
  .cert-card-grid--bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .cert-card-grid--bento .cert-card:first-child {
    grid-column: span 2;
  }
}

/* Four equal cert cards — one row on desktop, aligned heights */
@media (min-width: 40rem) {
  .cert-card-grid--four .cert-card {
    height: 100%;
    align-items: flex-start;
  }

  .cert-card-grid--four .cert-card__body {
    flex: 1;
    min-width: 0;
  }
}

@media (min-width: 40rem) and (max-width: 56.24rem) {
  .cert-card-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56.25rem) {
  .cert-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 39.9375rem) {
  .cert-card-grid:not(.cert-card-grid--stack) {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .cert-card-grid:not(.cert-card-grid--stack) .cert-card {
    flex: 0 0 min(18.5rem, 86vw);
    scroll-snap-align: start;
    max-width: 20rem;
  }
}

.cert-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  padding-top: calc(var(--space-4) + 2px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(1, 113, 67, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition:
    box-shadow 0.24s ease,
    transform 0.24s ease,
    border-color 0.24s ease;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--color-fresh-green) 0%,
      var(--color-primary) 55%,
      var(--color-technical) 100%);
  pointer-events: none;
}

.cert-card:hover {
  border-color: rgba(1, 113, 67, 0.45);
  box-shadow:
    0 12px 40px rgba(1, 113, 67, 0.12),
    0 2px 8px rgba(28, 29, 31, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
  .cert-card:hover {
    transform: translateY(-3px);
  }

  .cert-card__icon {
    transition: transform 0.24s ease;
  }

  .cert-card:hover .cert-card__icon {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .cert-card:hover .cert-card__icon {
    transform: none;
  }
}

.cert-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: radial-gradient(circle at 30% 25%,
      rgba(116, 189, 67, 0.22) 0%,
      rgba(224, 235, 230, 0.95) 45%,
      var(--color-mist) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cert-card__icon--lead {
  margin-bottom: var(--space-3);
}

.cert-card__imgicon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}



.cert-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.125rem;
}

.cert-card__issuer {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----- Export destinations map (home) — inside .container: max-width --container-max, padding --container-pad ----- */
.export-destinations-map {
  margin: 0;
}

.export-destinations-map__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--map-frame-border);
  background: var(--color-off-white);
}

.export-destinations-map__media {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 420ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .export-destinations-map:hover .export-destinations-map__media {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .export-destinations-map__media {
    transition: none;
  }
}

/* ----- Market cards (regional compliance — shared home + markets) ----- */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-4);
}

@media (max-width: 39.9375rem) {
  .market-grid--snap-mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-inline: calc(var(--container-pad) * -1);
    padding-inline: var(--container-pad);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .market-grid--snap-mobile .market-card {
    flex: 0 0 min(18.5rem, 88vw);
    scroll-snap-align: start;
    max-width: 21rem;
  }
}

.market-card {
  position: relative;
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(1, 113, 67, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.market-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--color-fresh-green) 0%,
      var(--color-primary) 55%,
      var(--color-technical) 100%);
  pointer-events: none;
}

.market-card:hover {
  box-shadow:
    0 12px 40px rgba(1, 113, 67, 0.1),
    0 2px 8px rgba(28, 29, 31, 0.06);
  border-color: rgba(1, 113, 67, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .market-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .market-card:hover {
    transform: none;
  }
}

.market-card--compact {
  padding: var(--space-4) var(--space-5);
}

.market-card--compact .market-card__flag {
  font-size: 1.625rem;
  margin-bottom: var(--space-2);
}

.market-card--compact .market-card__desc {
  margin-top: var(--space-1);
}

.market-card--compact .market-card__standards {
  margin-bottom: var(--space-1);
}

.market-card__flag {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-3);
  display: block;
}

.market-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.market-card__standards {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-blue-technical);
  margin-bottom: var(--space-2);
}

.market-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.market-card__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.market-card__link:hover {
  color: var(--color-primary-hover);
}

/* ----- Market Detail: compliance table ----- */
.compliance-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.compliance-table th,
.compliance-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compliance-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
}

.compliance-table td {
  color: var(--color-text);
}

.compliance-table .status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(1, 113, 67, 0.08);
  color: var(--color-primary);
}

/* ----- Market Detail: product recommendation cards ----- */
.market-products {
  display: grid;
  gap: var(--space-3);
}

.market-product-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: opacity var(--transition-fast);
}

.market-product-link:last-child {
  border-bottom: none;
}

.market-product-link:hover {
  opacity: 0.8;
}

.market-product-link__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  overflow: hidden;
}

.market-product-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.market-product-link__body {
  flex: 1;
  min-width: 0;
}

.market-product-link__name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
}

.market-product-link__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----- Market Detail: buyer profile info list ----- */
.buyer-info-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-3);
}

.buyer-info-list li {
  padding: 0;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.buyer-info-list li strong {
  color: var(--color-heading);
}

/* ----- Logos strip (buyer regions / partner logos) ----- */
.logos-strip {
  background: var(--color-grey-100);
  padding: var(--space-10) 0;
}

.logos-strip__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-8);
}

.logos-strip__eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

.logos-strip__lead {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-body);
}

.logos-strip__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-10);
}

.logo-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.logo-pill:hover {
  opacity: 1;
}

.logo-pill__flag {
  font-size: 1.375rem;
  line-height: 1;
}

/* ----- CTA banner (dark green pre-footer section) ----- */
.cta-banner {
  background: linear-gradient(120deg, #015a36 0%, #017143 60%, #025e3c 100%);
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-banner__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fresh-green);
  margin-bottom: var(--space-3);
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-display);
  color: var(--color-white);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.cta-banner__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  max-width: 36rem;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-body);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* ----- About stats row ----- */
.about-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  padding: var(--space-6) var(--space-8);
  background: var(--color-mist);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
}

.about-stats-row>div {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about-stats-row strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: var(--font-weight-display);
  color: var(--color-heading);
  margin-bottom: 0.125rem;
}

/* ----- Filter bar (product catalog) ----- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.filter-bar__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0;
}

.filter-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
}

.filter-bar__clear {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.filter-bar__clear:disabled,
.filter-bar__clear[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

.filter-bar__clear:not(:disabled):not([aria-disabled="true"]):hover,
.filter-bar__clear:not(:disabled):not([aria-disabled="true"]):focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-bar__clear:not(:disabled):not([aria-disabled="true"]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a.filter-bar__clear,
a.filter-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.filter-chip {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.section[data-family].is-hidden {
  display: none;
}

/* ----- Breadcrumbs ----- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  color: var(--color-border);
  user-select: none;
}

.breadcrumb__current {
  color: var(--color-heading);
  font-weight: 600;
  flex: 1 1 12rem;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers li {
  margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm, 4px);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.pagination .page-numbers a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .page-numbers .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination .page-numbers .dots {
  border-color: transparent;
  min-width: auto;
  padding-inline: 0.25rem;
}

/* ----- Hero actions (CTA pair) ----- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ----- Homepage distill: hero breathing room ----- */
.hero--distill .hero__slide {
  padding-top: var(--space-12);
  padding-bottom: calc(var(--space-12) + var(--space-8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 899px) {
  .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__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);
  }
}

/* ----- Trust strip (stats + cert icons) ----- */
.section--trust {
  padding: var(--space-10) 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-8);
}

.trust-strip__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-5) var(--space-6);
  flex: 1 1 auto;
  min-width: 0;
}

.trust-stat {
  flex: 1 0 auto;
  min-width: min-content;
}

.trust-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, var(--text-stat));
  font-weight: var(--font-weight-display);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
  white-space: nowrap;
}

.trust-stat__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-wrap: balance;
  max-width: 12rem;
}

.trust-strip__certs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4) var(--space-5);
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  margin-inline-start: auto;
  list-style: none;
  padding: var(--space-4) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.trust-strip__certs > li {
  flex: 0 1 auto;
}

.trust-strip__cert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.trust-strip__cert-link:hover {
  text-decoration: none;
}

.trust-strip__cert-link:focus {
  outline: none;
}

.trust-strip__cert-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.trust-strip__cert-badge {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.trust-strip__cert-text {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-heading);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity var(--transition-fast);
}

.trust-strip__cert-link:hover .trust-strip__cert-badge,
.trust-strip__cert-link:focus-visible .trust-strip__cert-badge,
.trust-strip__cert-link:hover .trust-strip__cert-text,
.trust-strip__cert-link:focus-visible .trust-strip__cert-text {
  opacity: 1;
}

.trust-strip__footer {
  margin: var(--space-6) 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.trust-strip__link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.trust-strip__link:hover {
  text-decoration: underline;
}

.trust-strip__sep {
  margin: 0 var(--space-2);
  color: var(--color-border);
}

.section--solutions-home {
  padding-top: 6rem;
}

/* ----- Product detail: documentation downloads ----- */
.spec-downloads {
  padding-top: var(--space-2);
}

.download-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.download-list > .download-link {
  display: inline-flex;
  max-width: 100%;
}

.link-secondary {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.link-secondary:hover {
  color: var(--color-primary-hover);
}

.download-link[data-pending="true"] {
  position: relative;
  cursor: help;
}

.download-link[data-pending="true"]:hover::after {
  content: "Coming soon";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-6px);
  padding: var(--space-2) var(--space-3);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 2;
}

/* ----- Contact: inquiry tabs ----- */
.inquiry-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.inquiry-tab {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inquiry-tab:hover {
  color: var(--color-charcoal);
}

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

.inquiry-pane {
  display: none;
}

.inquiry-pane.is-active {
  display: block;
  animation: inquiry-pane-in 0.4s ease-out;
}

#inquiry-form-shell.is-submitted .inquiry-pane {
  display: none !important;
}

#inquiry-form-shell.is-submitted .inquiry-success {
  display: block;
}

.inquiry-tabs[hidden],
.inquiry-pane[hidden],
.inquiry-success[hidden],
.inquiry-alert[hidden] {
  display: none !important;
}

@keyframes inquiry-pane-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Contact: inquiry success ----- */
.inquiry-success {
  margin-top: var(--space-8);
  padding: var(--space-10);
  max-width: 36rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: inquiry-success-in 0.3s ease;
}

@keyframes inquiry-success-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.inquiry-success__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-fresh-green);
  font-weight: 800;
}

.inquiry-success h3 {
  text-align: center;
  margin-bottom: var(--space-3);
}

.inquiry-success p {
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.inquiry-success__steps {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.inquiry-success__steps li {
  margin-bottom: var(--space-3);
}

.inquiry-success__steps li:last-child {
  margin-bottom: 0;
}

.inquiry-success .btn {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

/* ----- News article body ----- */
.news-article-body > *:first-child {
  margin-top: 0;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4,
.news-article-body h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
}

.news-article-body ul,
.news-article-body ol {
  padding-left: var(--space-5);
  margin: 0 0 1.25em;
}

.news-article-body li {
  margin-bottom: var(--space-3);
}

.news-article-body p {
  color: var(--color-text);
  line-height: 1.75;
}

.news-article-body blockquote {
  margin: 0 0 1.25em;
  padding-left: 1em;
  border-left: 3px solid var(--color-primary);
  color: var(--color-text-muted);
}

.news-article-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.5em 0;
}

.news-article-body .has-text-align-left {
  text-align: left;
}

.news-article-body .has-text-align-center {
  text-align: center;
}

.news-article-body .has-text-align-right {
  text-align: right;
}

.news-article-body .has-text-align-justify {
  text-align: justify;
}

/* ================================================================
   PRODUCT GALLERY — vertical thumb strip left, main image right
   ================================================================ */
.product-gallery {
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.product-gallery__main {
  position: relative;
  flex: 1;
  min-width: 0;
  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;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  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);
}

.product-gallery .thumb-btn.is-active {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

/* Mobile: horizontal thumbs below 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;
  }
}

/* Skeleton / shimmer while gallery & card images load */
.product-gallery__main,
.product-gallery .thumb-btn,
.card__media:has(img) {
  background-color: var(--color-mist);
}

.product-gallery__main::after,
.product-gallery .thumb-btn::after,
.card__media:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 32%,
    rgba(255, 255, 255, 0.82) 50%,
    rgba(255, 255, 255, 0.18) 68%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: media-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
}

.product-gallery .thumb-btn img,
.card__media img {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.product-gallery__main img {
  z-index: 2;
  transition: opacity 0.28s ease;
}

.product-gallery__main.is-loading img {
  opacity: 0;
}

.product-gallery__main img,
.product-gallery .thumb-btn img {
  position: relative;
}

.product-gallery .thumb-btn img.is-loaded,
.card__media img.is-loaded {
  opacity: 1;
}

.product-gallery__main.is-loaded::after,
.product-gallery__main:has(img.is-loaded)::after,
.product-gallery .thumb-btn.is-loaded::after,
.product-gallery .thumb-btn:has(img.is-loaded)::after,
.card__media.is-loaded::after,
.card__media:has(img.is-loaded)::after {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__main::after,
  .product-gallery .thumb-btn::after,
  .card__media:has(img)::after {
    animation: none;
    background: var(--color-mist);
  }

  .product-gallery__main img,
  .product-gallery .thumb-btn img,
  .card__media img {
    transition: none;
  }
}

@media (scripting: none) {
  .product-gallery__main img,
  .product-gallery .thumb-btn img,
  .card__media img {
    opacity: 1;
  }

  .product-gallery__main::after,
  .product-gallery .thumb-btn::after,
  .card__media:has(img)::after {
    display: none;
  }
}

/* ================================================================
   PRODUCT FEATURES LIST (2 columns)
   ================================================================ */
.product-features-list {
  display: grid;
  gap: var(--space-4) var(--space-8);
  margin-bottom: var(--space-6);
  padding-left: 0;
  list-style: none;
}

.product-features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0;
}

.product-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-primary);
  border-radius: 50%;
}

@media (min-width: 48rem) {
  .product-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   PRODUCT FEATURES CTA (Centered at bottom of Key Features)
   ================================================================ */
.product-features-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-features-cta .btn-group {
  justify-content: center;
}

/* Gallery main image fade is handled with .is-loaded in the skeleton block. */

/* Make badge-cert clickable without underline */
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;
}

/* ================================================================
   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;
}

/* ================================================================
   GALLERY VIEW (SLIDER & GRID)
   ================================================================ */
/* =========================================================
   GALLERY PAGE — Full redesign
   ========================================================= */

/* --- Jump navigation in hero --- */
.gallery-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.gallery-jump-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  color: var(--color-white);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.gallery-jump-nav__link:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.gallery-jump-nav__flag {
  font-style: normal;
}

/* --- Section header with stat --- */
.gallery-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .gallery-section__header {
    flex-direction: column;
    gap: var(--space-4);
  }
}

.gallery-section__meta {
  flex: 1;
}

.gallery-section__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 700px;
  margin-top: var(--space-3);
  margin-bottom: 0;
  line-height: var(--line-height-body);
}

.gallery-section__stat {
  flex-shrink: 0;
  text-align: right;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  width: 320px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .gallery-section__stat {
    text-align: left;
  }
}

.gallery-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-h3);
  line-height: 1.1;
  color: var(--color-heading);
  margin-bottom: var(--space-1);
}

.gallery-stat__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Per-market eyebrow accent colors --- */
.gallery-eyebrow--asia {
  color: var(--color-fomex-green);
}

.gallery-eyebrow--mena {
  color: #c07830; /* amber — Gulf heat, sand */
}

.gallery-eyebrow--useu {
  color: var(--color-blue-technical);
}

/* --- Per-market section left accent border on stat box --- */
.gallery-section--asia .gallery-section__stat {
  border-left: 3px solid var(--color-fomex-green);
}

.gallery-section--mena .gallery-section__stat {
  border-left: 3px solid #c07830;
}

.gallery-section--useu .gallery-section__stat {
  border-left: 3px solid var(--color-blue-technical);
}

/* --- Gallery view container --- */
.gallery-view {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-6);
  padding: 0 4rem;
}

/* --- Gallery track --- */
.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Gallery items: figure with img + caption --- */
.gallery-item {
  flex: 0 0 calc(33.333% - 1rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: zoom-in;
  margin: 0;
  position: relative;
  background: var(--color-charcoal);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

figcaption.gallery-item-caption,
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(12, 32, 24, 0.88) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Always show caption in grid mode */
.gallery-view[data-view="grid"] .gallery-item figcaption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-item figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Grid view --- */
.gallery-view[data-view="grid"] {
  overflow: visible;
  padding: 0;
}

.gallery-view[data-view="grid"] .gallery-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
  transform: none !important;
  transition: none !important;
}

.gallery-view[data-view="grid"] .gallery-item {
  flex: none;
  width: auto;
}

.gallery-view[data-view="grid"] .gallery-nav {
  display: none;
}

/* --- Controls row (dots + counter + toggle) --- */
.gallery-controls {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* --- Pagination dots --- */
.gallery-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gallery-view[data-view="grid"] .gallery-dots,
.gallery-view[data-view="grid"] .gallery-counter {
  display: none;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), width var(--transition-fast);
  flex-shrink: 0;
}

.gallery-dot.is-active {
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

.gallery-dot:hover:not(.is-active) {
  background: var(--color-text-muted);
}

/* --- Slide counter --- */
.gallery-counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 3rem;
  text-align: center;
}

/* --- Prev / next arrows --- */
.gallery-nav {
  position: absolute;
  top: calc(50% - 2rem); /* vertically centered on image, above controls */
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-text-dark);
}

.gallery-nav:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
  box-shadow: var(--shadow-lg);
}

.gallery-nav--prev {
  left: 0.5rem;
}

.gallery-nav--next {
  right: 0.5rem;
}

/* --- Lightbox --- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 16, 0.94);
  cursor: zoom-out;
}

.gallery-lightbox__frame {
  position: relative;
  z-index: 2;
  width: min(96vw, 1800px);
  max-width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) 0;
}

.gallery-lightbox__img-container {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: min(88vh, calc(100vh - 6rem));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1800px);
  max-height: min(88vh, calc(100vh - 6rem));
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox__meta {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

.gallery-lightbox__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  max-width: 60ch;
  line-height: 1.5;
  margin: 0;
  padding-top: var(--space-4);
}

.gallery-lightbox__caption[hidden] {
  display: none;
}

.gallery-lightbox__counter {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-align: center;
  padding-bottom: var(--space-2);
}

.gallery-lightbox__counter[hidden] {
  display: none;
}

.gallery-lightbox__product-btn {
  margin-top: var(--space-4);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-xs);
  background: var(--color-accent-cta);
  color: var(--color-white);
  border-color: var(--color-accent-cta);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-lightbox__product-btn:hover {
  background: var(--color-accent-cta-hover);
  border-color: var(--color-accent-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 114, 36, 0.5);
  color: var(--color-white);
}

.gallery-lightbox__close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.gallery-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__nav--prev {
  left: var(--space-6);
}

.gallery-lightbox__nav--next {
  right: var(--space-6);
}

.gallery-lightbox__nav[hidden],
.gallery-lightbox__product-btn[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .gallery-lightbox__nav {
    display: none;
  }

  .gallery-lightbox__close {
    top: var(--space-4);
    right: var(--space-4);
  }
}
/* =========================================================
   PRODUCT STICKY CTA BAR
   ========================================================= */
.product-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-sticky-cta.is-visible {
  transform: translateY(0);
}

.product-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.product-sticky-cta__label {
  font-size: 0.75rem;
  font-family: 'Roboto Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted, #888);
  white-space: nowrap;
  margin-right: auto;
}

.product-sticky-cta__buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .product-sticky-cta__label {
    display: none;
  }
  .product-sticky-cta__buttons {
    width: 100%;
    justify-content: center;
  }
}


/* ----- Market Detail: Grid Layout ----- */
.two-col--market {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .two-col--market {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
  }
}

/* ----- Market Detail: Trust Cards ----- */
.trust-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--space-2);
  margin-bottom: 0;
  flex: 1;
}

.trust-card .link-primary {
  margin-top: var(--space-4);
  align-self: flex-start;
}
