:root {
  --ink: #12344a;
  --paper: #ffffff;
  --muted: #61727a;
  --line: #d9e3e6;
  --lime: #82d957;
  --red: #2478c5;
  --mono: 'DM Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}

body[dir="rtl"] {
  direction: rtl;
}

body[dir="rtl"] .main-nav {
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .site-header {
  direction: rtl;
}

body[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

h1 {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: clamp(4rem, 8vw, 7.4rem);
}

html[lang="fr"] h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
}

h1 em,
h2 em {
  color: var(--red);
  font-style: normal;
}

.section-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: relative;
  width: min(1320px, calc(100% - 64px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-logo {
  display: block;
  width: auto;
}

.brand-logo-full {
  height: 35px;
}

.brand-logo-short {
  height: 34px;
  display: none;
}

.main-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  align-items: center;
}

.main-nav .nav-cta {
  margin-left: 10px;
}

.language-switcher {
  position: relative;
}

.flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(18, 52, 74, 0.1);
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 52, 74, 0.06);
}

.language-toggle::after {
  width: 8px;
  height: 8px;
  content: '';
  background: var(--ink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.language-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(18, 52, 74, 0.12);
}

.language-list[hidden] {
  display: none;
}

.language-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font: 600 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.language-list li:hover,
.language-list li[aria-selected="true"] {
  background: #eef7f4;
  color: var(--red);
}

body[dir="rtl"] .language-list {
  left: auto;
  right: 0;
}

.main-nav a,
.text-link,
.card-link {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.text-link:hover,
.card-link:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.8rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 24px rgba(18, 52, 74, 0.08);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 52, 74, 0.12);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.7rem;
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(18, 52, 74, 0.2);
}

.button-lime {
  background: linear-gradient(180deg, #9ae36d 0%, var(--lime) 100%);
  color: var(--ink);
  border-color: rgba(116, 173, 78, 0.5);
}

.button-lime:hover {
  background: linear-gradient(180deg, #8de05c 0%, #75d54b 100%);
}

/* Hero */
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  gap: 80px;
  align-items: center;
  padding: 94px 0 110px;
}

.hero-lede {
  max-width: 470px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.text-link {
  font-size: 0.82rem;
  font-weight: 600;
}

.text-link span {
  margin-left: 8px;
  color: var(--red);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #e4f0eb;
  border-left: 1px solid #c6dcd6;
}

.hero-photo {
  isolation: isolate;
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  opacity: 0.16;
  background-image: linear-gradient(#b8d6d0 1px, transparent 1px), linear-gradient(90deg, #b8d6d0 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  background: linear-gradient(180deg, rgba(18, 52, 74, 0.18), transparent 45%, rgba(18, 52, 74, 0.2));
}

.visual-label,
.visual-caption {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-family: var(--mono);
  text-shadow: 0 1px 8px rgba(18, 52, 74, 0.45);
}

.visual-label {
  top: 22px;
  left: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.visual-caption {
  right: 23px;
  bottom: 19px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Services */
.content-section {
  padding: 130px 0;
}

#products {
  border-top: 1px solid var(--line);
}

#inventory {
  padding-top: 95px;
  padding-bottom: 95px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: block;
  max-width: 900px;
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-bottom: 24px;
}

.section-intro {
  max-width: 700px;
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--lime);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  min-height: 405px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  background: #eef7f4;
}

.product-card-dark {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--red);
}

.card-index {
  align-self: flex-end;
  color: var(--muted);
  font: 0.65rem var(--mono);
}

.product-card-dark .card-index {
  color: #9ab0b8;
}

.product-photo {
  width: calc(100% + 52px);
  height: 145px;
  margin: 8px -26px 24px;
  object-fit: cover;
}

.component-card {
  overflow: hidden;
}

.product-card h3 {
  margin-bottom: 9px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.product-card p {
  max-width: 270px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card-dark p {
  color: #a4b9ba;
}

.card-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-link span {
  margin-left: 10px;
  color: var(--red);
}

.brands-label {
  margin: 70px 0 24px;
  color: var(--muted);
  font: 0.95rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-marquee {
  position: relative;
  direction: ltr;
  overflow: hidden;
}

.logo-marquee::before,
.logo-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 56px;
  content: '';
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.logo-item {
  flex: none;
  display: block;
  height: 84px;
  width: auto;
  margin-right: 20px;
  border-radius: 10px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: center;
  gap: 60px;
}

.inventory-layout .section-heading {
  margin-bottom: 0;
}

.carousel {
  position: relative;
  width: min(520px, 100%);
  margin: 0;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #eef7f4;
}

.carousel-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: ltr;
  touch-action: pan-y;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-width: 100%;
}

.carousel-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.carousel-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 32px 28px;
  direction: initial;
}

.carousel-index {
  flex: none;
  color: var(--muted);
  font: 0.65rem var(--mono);
  letter-spacing: 0.08em;
}

.carousel-caption {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(18, 52, 74, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  color: var(--red);
  border-color: var(--red);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  direction: ltr;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot[aria-selected="true"] {
  width: 22px;
  background: var(--red);
}

/* Story and principles */
.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 120px;
  padding: 125px 0;
  border-top: 1px solid var(--line);
}

.split-statement > p:last-child {
  max-width: 380px;
  color: var(--muted);
}

.principles {
  position: relative;
  padding: 10px 0 10px 24px;
}

.principles::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: '';
  background: linear-gradient(var(--red), var(--lime));
}

.principle {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px 18px 24px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.25s ease, background 0.25s ease;
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle::before {
  position: absolute;
  top: 32px;
  left: -29px;
  width: 8px;
  height: 8px;
  content: '';
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.principle:nth-child(2)::before {
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}

.principle:nth-child(3)::before {
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.principle:hover {
  padding-left: 12px;
  background: rgba(228, 240, 235, 0.52);
}

.principle-number {
  padding-top: 3px;
  color: var(--red);
  font: 500 0.7rem var(--mono);
}

.principle:nth-child(2) .principle-number {
  color: #5eaa43;
}

.principle h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.principle p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Environmental impact */
.impact-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 28px;
  align-items: end;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.impact-heading p:last-child {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

.impact-stat {
  min-height: 220px;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
}

.impact-stat strong {
  display: block;
  color: var(--red);
  font: 600 clamp(3.4rem, 6vw, 6rem) var(--sans);
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.impact-stat strong span {
  color: var(--lime);
}

.impact-stat p {
  margin: 28px 0 0;
  color: #b4c8cd;
  font: 0.72rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.impact-stat-green {
  background: var(--lime);
  color: var(--ink);
}

.impact-stat-green strong {
  color: var(--ink);
}

.impact-stat-green strong span {
  color: var(--red);
}

.impact-stat-green p {
  color: #345d4c;
}

/* Contact and footer */
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 110px;
  padding: 130px 0 150px;
  border-top: 1px solid var(--line);
}

.contact-intro > p {
  max-width: 370px;
  color: var(--muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 45px;
  font: 0.75rem var(--mono);
}

.contact-details a {
  color: var(--red);
}

.contact-details span {
  color: var(--muted);
}

.quote-form {
  display: flex;
  flex-direction: column;
}

.quote-form label {
  margin: 0 0 8px;
  font: 0.7rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-form label span {
  color: var(--red);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  margin-bottom: 26px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #b8c8cd;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  font: 1rem var(--sans);
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-bottom-color: var(--red);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #8a9aa0;
}

.button-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form-note {
  min-height: 22px;
  margin: 15px 0 0;
  color: #4d8a40;
  font: 0.75rem var(--mono);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

.footer-code {
  font: 0.65rem var(--mono);
}

/* Motion */
.reveal {
  animation: rise 0.8s both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.22s;
}

.principle:nth-child(1) {
  animation: principle-rise 0.7s 0.22s both;
}

.principle:nth-child(2) {
  animation: principle-rise 0.7s 0.34s both;
}

.principle:nth-child(3) {
  animation: principle-rise 0.7s 0.46s both;
}

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

@keyframes principle-rise {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 820px) {
  .section-shell,
  .site-header {
    width: min(100% - 38px, 620px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand-logo-full {
    display: none;
  }

  .brand-logo-short {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .main-nav .nav-cta {
    display: inline-flex;
    width: calc(100% - 36px);
    margin: 12px 18px 8px;
    padding: 0 18px;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 22px rgba(18, 52, 74, 0.12);
  }

  .main-nav .language-switcher {
    margin: 4px 18px 14px;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 0 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 24px rgba(18, 52, 74, 0.1);
  }

  .site-header.menu-open .main-nav a {
    padding: 14px 18px;
  }

  .site-header.menu-open .main-nav {
    padding-bottom: 12px;
    border-radius: 0 0 18px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 75px 0 85px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .product-grid,
  .split-section,
  .impact-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  #inventory {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .inventory-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .inventory-layout .section-heading {
    margin-bottom: 0;
  }

  .carousel {
    margin: 0 auto;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card {
    min-height: 350px;
  }

  .carousel {
    width: 100%;
  }

  .carousel-meta {
    padding: 18px 20px 22px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .impact-section {
    gap: 12px;
    padding: 85px 0;
  }

  .impact-stat {
    min-height: 180px;
  }

  .split-section,
  .contact-section,
  .content-section {
    padding: 85px 0;
  }

  .split-section,
  .contact-section {
    gap: 55px;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section-shell,
  .site-header {
    width: calc(100% - 32px);
  }

  .site-header .button {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .hero-visual {
    min-height: 350px;
  }

  .brands-label {
    margin-top: 50px;
  }

  .logo-item {
    height: 58px;
  }

  .logo-marquee::before,
  .logo-marquee::after {
    width: 32px;
  }

  .logo-track {
    animation-duration: 16s;
  }

  .visual-caption {
    font-size: 0.55rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-section h2 {
    font-size: 3.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
