/* ============================================================
   Recycling by Katevara — layout & component styles (mobile-first)
   Design tokens live in tokens.css — load that BEFORE this file.
   Breakpoints: 720px (tablet/desktop split), 900px (footer split)
   ============================================================ */

/* ---------- Local fonts (self-hosted to avoid render-blocking on Google Fonts) ---------- */

/* Bicyclette — display headings */
@font-face {
  font-family: "Bicyclette";
  src: url("/recycling/assets/fonts/Bicyclette-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Roboto — body. 400 / 500 / 700, latin + latin-ext (covers et/en/de) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto Mono — italic 600 for the tagline */
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-mono-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/recycling/assets/fonts/roboto-mono-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — eyebrows + tag pills (400 / 800) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/recycling/assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/recycling/assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/recycling/assets/fonts/jetbrains-mono-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/recycling/assets/fonts/jetbrains-mono-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-surface-page);
  color: var(--color-text-default);
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-brand-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
dt {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

blockquote {
  margin: 0;
}

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ramp (matches Figma styles) ---------- */

.t-display-h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.t-display-h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.t-display-h5 {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.t-body-lg {
  font-family: var(--font-family-body);
  font-size: var(--font-size-lg);
  font-weight: 400;
}

.t-body-md {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: 400;
}

.t-body-md-bold {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: 700;
}

.t-body-sm {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

.t-eyebrow {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-md);
  font-weight: 400;
}

.t-tag-material {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-brand-orange);
}

.t-tagline {
  font-family: var(--font-family-tagline);
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-style: italic;
}

/* ---------- Site header (banner + hero region) ----------
   The site header wraps the topbar (logo + nav) AND the hero
   content. A ::before pseudo-element holds the hero image so it
   bleeds through the topbar's vertical margins, matching Figma.
   `background-size: cover` keeps the image's aspect ratio intact.
*/

.site-header {
  position: relative;
  background-color: var(--color-surface-page);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  background-color: var(--color-surface-raised);
  top: 6rem;
  left: 0;
  right: 0;
  height: 100%;
}

/* Hero image layer — sized region, image rendered with `cover` so it
   fills the region without stretching or squashing. Uses ::after but
   z-index: 0 keeps it behind the topbar (z:2) and hero (z:1). */
.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  background-image: url("/recycling/assets/img/hero/heroimage.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Mobile default: image is a 14rem banner across the top. */
  top: 0;
  left: 0;
  right: 0;
  height: 14rem;
}

/* Black topbar — opaque, with margin so the image shows in the strips. */
.site-header__topbar {
  position: relative;
  z-index: 2;
  background: var(--color-surface-header);
  margin-block: 1rem;
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.25rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__logo {
  flex: 1;
}
.site-header__logo img {
  height: 24px;
  width: auto;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch__link {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: 400;
  text-decoration: none;
  padding: 0.75rem;
  color: var(--color-text-default);
}

.lang-switch__link--active,
.lang-switch__link[aria-current="page"] {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 720px) {
  .site-header__logo {
    flex: none;
  }

  .site-header::after {
    /* Tablet+: image fills the right half from top to bottom (still cover, no stretch). */
    top: 0;
    bottom: 0;
    left: 50%;
    right: 0;
    height: auto;
  }

  .site-header__inner {
    gap: 2rem;
    flex-wrap: nowrap;
  }

  .site-header__logo img {
    height: 28px;
  }

  .lang-switch {
    gap: 0.75rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  /* Mobile: gray panel sits below the image banner. */
  background: var(--color-surface-raised);
  margin-top: 9rem; /* image is 14rem; topbar+margins ≈ 5rem; gap ≈ 9rem */
  padding: var(--section-y) 0 calc(var(--section-y) * 1.2);
}

.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  gap: 1.25rem;
}

.hero__heading {
  margin: 0;
}

.hero__heading img {
  width: min(100%, 30rem);
  height: auto;
}

.hero__intro {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.hero__intro strong {
  font-family: var(--font-family-tagline);
  font-weight: 700;
}

.hero__tags {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--color-brand-orange);
}

.hero__tags span {
  margin: 0 0.5em;
}

.hero__tagline {
  font-family: var(--font-family-tagline);
  font-size: var(--font-size-md);
  font-weight: 600;
  font-style: italic;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .hero {
    /* Tablet+: gray covers only the left half; image (header bg) shows on right. */
    margin-top: 0;
    background: none;
    padding: clamp(2rem, 5vw, 5rem) 0;
  }

  .hero__content {
    gap: 1.5rem;
    width: calc(50% - var(--gutter));
  }

  .hero__intro,
  .hero__tags,
  .hero__tagline {
    font-size: var(--font-size-lg);
  }

  .hero__tagline {
    margin-top: 1rem;
  }
}

/* ---------- Resources strip ---------- */

.resources {
  background: var(--color-surface-page);
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.resources__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.resource-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: end;
  padding-block: 1rem;
  border-block-end: 2px solid var(--color-foreground-muted);
}

.resource-card.patents {
  border-block-end: 2px solid var(--color-brand-orange);
}

.resource-card__eyebrow {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--color-text-default);
}

.resource-card__title {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 1.45;
  text-align: right;
}

.resource-card__title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 720px) {
  .resources__grid {
    grid-template-columns: 1fr 1fr;
  }

  .resource-card {
    grid-template-columns: minmax(6rem, 8rem) 1fr;
    gap: 2rem;
  }
}

/* ---------- Team grid ---------- */

.team {
  background: var(--color-surface-page);
  padding: var(--section-y) 0 calc(var(--section-y) * 1.2);
}

.team__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-card {
  background: var(--color-surface-raised);
  border-left: 12px solid var(--color-brand-orange);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1rem;
  align-items: start;
}

.team-card__portrait {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.team-card__body {
  display: grid;
  gap: 0.75rem;
}

.team-card__heading {
  display: grid;
  gap: 0.25rem;
}

.team-card__name {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.team-card__role {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-default);
}

.team-card__quote {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 1.5;
}

.team-card__quote p::before {
  content: "\201C";
}
.team-card__quote p::after {
  content: "\201D";
}

.team-card__contact {
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.team-card__contact a {
  color: inherit;
  text-decoration: none;
}

.team-card__contact a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 720px) {
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-surface-raised);
  color: var(--color-text-default);
  padding: var(--section-y) 0;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-company__identity {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}

.footer-company__logo img {
  width: 48px;
  height: auto;
}

.footer-company__name {
  font-family: var(--font-family-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.footer-company__tagline,
.footer-company__address {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
}

.associations {
  display: grid;
  gap: 1rem;
}

.association {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-family-body);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-default);
}

.association__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.association a {
  text-decoration: none;
}

/* Footer projects column */

.footer-projects__list {
  display: grid;
  gap: 2rem;
}

.project {
  display: grid;
  gap: 0.75rem;
}

.project__flags {
  width: 120px;
  height: auto;
}

.project__title {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.35;
}

.project__meta {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  display: grid;
  gap: 0.15rem;
}

.project__meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project__meta dt {
  font-weight: 400;
  color: var(--color-foreground-muted);
}

.project__meta dt::after {
  content: ":";
}

.project__meta dd {
  font-weight: 400;
  margin: 0;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
