/* Scrap Metal B.V. — unified dark catalog theme */
:root {
  --bg: #1a1f26;
  --bg-panel: #222a33;
  --bg-elevated: #2a3440;
  --bg-input: #1e252d;
  --ink: #eef1f4;
  --ink-muted: #a8b0b9;
  --ink-subtle: #7a8590;
  --accent: #e07a3a;
  --accent-hover: #f08f52;
  --accent-soft: rgba(224, 122, 58, 0.15);
  --recycle-green: #6bc98a;
  --recycle-green-hover: #85d9a3;
  --recycle-green-soft: rgba(107, 201, 138, 0.18);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --header-h: 72px;
  --container: min(1180px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(26, 31, 38, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.logo-mark {
  flex-shrink: 0;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-left: auto;
}

.lang-switch {
  position: relative;
  z-index: 220;
}

.lang-switch-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, transform 0.15s;
}

.lang-switch-trigger:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lang-flag {
  display: inline-flex;
  width: 28px;
  height: 19px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-chevron {
  opacity: 0.7;
  margin-left: 0.1rem;
}

.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.lang-switch-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-switch-option:hover,
.lang-switch-option.is-active {
  background: var(--accent-soft);
}

.lang-flag-lg {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
}

.lang-switch-names {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.lang-switch-native {
  font-size: 0.875rem;
  font-weight: 600;
}

.lang-switch-en {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

html[dir="rtl"] .lang-switch-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header-tools {
  margin-left: 0;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(224, 122, 58, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* Panels */
.panel {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.panel-trust {
  padding: 1rem 0;
  background: var(--bg-panel);
}

.trust-inner p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.panel-catalog {
  background: linear-gradient(180deg, var(--bg) 0%, #151a20 100%);
}

.panel-contact {
  background: var(--bg-panel);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop-image {
  position: absolute;
  inset: -2%;
  background-image: url("images/hero-scrap-bg.jpg");
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.75) brightness(0.45);
  transform: scale(1.03);
}

.hero-backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(20, 24, 30, 0.94) 0%, rgba(20, 24, 30, 0.82) 42%, rgba(20, 24, 30, 0.62) 70%, rgba(20, 24, 30, 0.78) 100%),
    linear-gradient(180deg, transparent 55%, rgba(20, 24, 30, 0.55) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-muted);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}

.hero-panels {
  display: grid;
  gap: 0.85rem;
}

.hero-panel {
  padding: 1.15rem 1.35rem;
  background: rgba(34, 42, 51, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.hero-panel-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  margin-bottom: 0.25rem;
}

.hero-panel-val {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Section headers */
.section-header {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-header-compact {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-icon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Catalog layout */
.catalog-shell {
  max-width: min(1280px, calc(100% - 2rem));
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.catalog-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.catalog-aside-label {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
}

.catalog-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.catalog-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.catalog-nav-link:hover {
  background: var(--bg-elevated);
  color: var(--ink);
}

.catalog-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.catalog-nav-count {
  font-size: 0.75rem;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.catalog-nav-link.is-active .catalog-nav-count {
  color: var(--accent-hover);
}

.catalog-toolbar {
  margin-bottom: 1.25rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.search-icon {
  color: var(--ink-subtle);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.search-field input::placeholder {
  color: var(--ink-subtle);
}

.search-meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  min-height: 1.25rem;
}

/* Category gallery */
.category-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.category-gallery-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-gallery-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.category-gallery-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.category-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.category-gallery-card:hover .category-gallery-media img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.95);
}

.category-gallery-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 18, 22, 0.75) 100%);
  pointer-events: none;
}

.category-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}

.category-gallery-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.category-gallery-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-subtle);
  white-space: nowrap;
}

.grade-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.grade-category {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.grade-category.is-empty {
  display: none;
}

.grade-category-photo {
  position: relative;
  margin: 0 0 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21 / 9;
  max-height: 220px;
  background: var(--bg-panel);
}

.grade-category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
}

.grade-category-photo-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(12, 15, 18, 0.88));
}

.grade-category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.grade-category-titles h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.grade-category-titles p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.grade-count-pill {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Tables */
.materials-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.materials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.materials-table th,
.materials-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.materials-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.materials-table .col-no {
  width: 3.25rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.materials-table .col-thumb,
.materials-table .col-thumb-h {
  width: 5.25rem;
  padding-right: 0.35rem;
}

.grade-thumb-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
  background: rgba(0, 0, 0, 0.35);
}

.grade-thumb {
  display: block;
  width: 72px;
  height: 40px;
  object-fit: cover;
}

.grade-thumb-empty {
  display: block;
  width: 72px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: var(--ink-subtle);
  font-size: 0.75rem;
}

.grade-type {
  font-weight: 600;
  color: var(--ink);
}

.col-desc {
  color: var(--ink-muted);
  min-width: 12rem;
}

.materials-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.materials-table tbody tr.is-hidden {
  display: none;
}

.materials-table tbody tr:last-child td {
  border-bottom: none;
}

/* Category badges */
.cat-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cat-overview { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.cat-ferrous { background: rgba(200, 120, 80, 0.2); color: #f0c4a8; }
.cat-paper { background: rgba(160, 140, 100, 0.25); color: #e8dcc8; }
.cat-aluminium { background: rgba(140, 170, 200, 0.2); color: #c8dcf0; }
.cat-copper { background: rgba(200, 100, 60, 0.22); color: #f5c4a8; }
.cat-brass { background: rgba(200, 170, 60, 0.2); color: #f5e0a0; }
.cat-plastic { background: rgba(80, 160, 120, 0.22); color: #a8e0c8; }
.cat-granules { background: rgba(100, 200, 160, 0.22); color: #b8f0d8; }
.cat-flakes { background: rgba(90, 170, 210, 0.22); color: #b8dff0; }
.cat-regrind { background: rgba(150, 130, 200, 0.22); color: #d4c8f0; }
.cat-other { background: rgba(120, 140, 180, 0.22); color: #c8d8f0; }

/* Recycling process map */
.panel-recycling {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(224, 122, 58, 0.06) 50%, var(--bg) 100%);
}

.recycling-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.recycling-symbol {
  margin: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: #6bc98a;
  position: sticky;
  top: 5.5rem;
}

.recycling-symbol-svg {
  width: min(220px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(107, 201, 138, 0.2));
}

.recycling-symbol-caption {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.recycling-map {
  position: relative;
}

.recycle-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recycle-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.recycle-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.48rem;
  top: 3.1rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(224, 122, 58, 0.15) 100%);
}

.recycle-flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  z-index: 1;
}

.recycle-flow-body {
  padding: 1.15rem 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.recycle-flow-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--ink);
}

.recycle-flow-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Trade terms */
.trade-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.trade-term-card {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
}

.trade-term-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.trade-term-card > p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.trade-term-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.trade-term-list li {
  margin-bottom: 0.35rem;
}

.trade-terms-note {
  margin: 1.35rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-subtle);
  text-align: center;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-steps li {
  position: relative;
  padding: 1.35rem;
  padding-top: 2.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.process-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.contact-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  margin-bottom: 0.85rem;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
}

.contact-details a {
  color: var(--ink);
  font-weight: 600;
}

.contact-details a.contact-email {
  color: var(--recycle-green);
}

.contact-details a.contact-email:hover {
  color: var(--recycle-green-hover);
}

.contact-form {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-note.success {
  color: #6ecf9a;
}

.form-note.error {
  color: #f0a07a;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: #12161b;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.footer-brand p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-width: 22rem;
}

.footer-founded {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}

.spec-page .footer-founded {
  margin: 0 0 0.35rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-subtle);
}

/* SEO landing pages */
.landing-main {
  padding: 3rem 0 4rem;
}

.landing-wrap {
  max-width: 40rem;
}

.landing-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.landing-list {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.landing-visual {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.landing-page .site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .catalog-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-aside {
    position: static;
  }

  .catalog-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .features-grid,
  .process-steps,
  .recycling-layout,
  .trade-terms-grid {
    grid-template-columns: 1fr;
  }

  .recycling-symbol {
    position: static;
  }

}

/* Collapsible nav dropdown (tablet + phone) */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
    order: 2;
  }

  .header-tools #lang-switch-anchor,
  .header-tools .lang-switch {
    order: 1;
  }

  .header-tools .site-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--border);
    display: none;
  }

  .header-tools .site-nav.is-open {
    display: flex;
  }

  .header-tools .site-nav a:not(.btn) {
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
  }

  .header-tools .site-nav a:not(.btn):hover,
  .header-tools .site-nav a:not(.btn):focus-visible {
    background: var(--accent-soft);
    color: var(--ink);
  }

  .header-tools .site-nav .nav-cta {
    margin-top: 0.35rem;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .category-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .grade-category-photo {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.whatsapp-fab:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.whatsapp-fab-icon {
  display: block;
}

html[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 1.25rem;
}

@media (max-width: 720px) {
  .whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  html[dir="rtl"] .whatsapp-fab {
    left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
