@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Lato:wght@300;400;500;700&display=swap");

:root {
  --primary: #7698a8;
  --secondary: #4d626b;
  --black: #111111;
  --light: #e8ecef;
  --white: #ffffff;
  --text: #1c1c1c;
  --muted: #6b7378;
  --border: #d9dee2;

  --wrap: 1180px;
  --pad: 24px;

  --font-head: "Montserrat", sans-serif;
  --font-body: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--black);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn--solid {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn--solid:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn--cookie {
  letter-spacing: 0.5px;
  margin: 0 4px;
}
.btn--cookie-main, .btn--cookie-main:hover {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.btn--cookie-alt, .btn--cookie-alt:hover {
  background-color: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn--ghost-light {
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #efefef;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--black);
  transition: color 0.35s ease;
}
.logo svg {
  display: block;
  height: 40px;
  width: auto;
}
.logo svg path {
  fill: currentColor;
}
.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -1px;
  color: var(--black);
  border: 2.5px solid var(--black);
  padding: 2px 8px 3px;
  line-height: 0.9;
  position: relative;
}
.logo-mark sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  vertical-align: baseline;
  bottom: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  padding: 6px 0;
  position: relative;
  transition: color 0.35s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}
.nav a:hover {
  color: var(--primary);
}
.nav a.active {
  color: var(--primary);
}

.logo-mark,
.lang__toggle,
.nav-divider,
.nav-toggle span {
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.nav-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
}
.lang {
  position: relative;
}
.lang__toggle {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--black);
  padding: 6px 0;
}
.lang__toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}
.lang.open .lang__toggle svg {
  transform: rotate(180deg);
}
.lang__menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 60;
}
.lang.open .lang__menu {
  display: block;
}
.lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--black);
  padding: 10px 18px;
}
.lang__menu button:hover {
  background: var(--light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--black);
  display: block;
  transition: 0.3s;
}

/* ---------- Home: transparent header overlapping the hero ---------- */
body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
body.home .nav a,
body.home .lang__toggle,
body.home .logo-mark,
body.home .logo {
  color: #fff;
}
body.home .logo-mark {
  border-color: #fff;
}
body.home .nav-divider {
  background: rgba(255, 255, 255, 0.3);
}
body.home .nav-toggle span {
  background: #fff;
}
body.home .nav a:hover,
body.home .nav a.active {
  color: var(--primary);
}

/* solid state once scrolled past the hero */
body.home .site-header.scrolled {
  background: var(--white);
  border-bottom: 1px solid #efefef;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}
body.home .site-header.scrolled .nav a,
body.home .site-header.scrolled .lang__toggle,
body.home .site-header.scrolled .logo-mark,
body.home .site-header.scrolled .logo {
  color: var(--black);
}
body.home .site-header.scrolled .logo-mark {
  border-color: var(--black);
}
body.home .site-header.scrolled .nav-divider {
  background: var(--border);
}
body.home .site-header.scrolled .nav-toggle span {
  background: var(--black);
}
body.home .site-header.scrolled .nav a:hover,
body.home .site-header.scrolled .nav a.active {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.55) 0%,
      rgba(17, 17, 17, 0.35) 40%,
      rgba(17, 17, 17, 0.75) 100%
    ),
    repeating-linear-gradient(135deg, #2a3338 0 22px, #232b30 22px 44px);
  background-size: cover;
}
.hero__media::after {
  content: attr(data-label);
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* dark overlay so the heading stays legible over the video */
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.55) 0%,
    rgba(17, 17, 17, 0.35) 45%,
    rgba(17, 17, 17, 0.8) 100%
  );
  pointer-events: none;
}

/* inner-page hero (À propos, Expertise, etc.) */
.hero--page .hero__inner {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--pad);
}
.hero--page h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 60px);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__rule {
  width: 64px;
  height: 3px;
  background: var(--primary);
  margin-top: 22px;
}

/* full-width banner image (inner pages) */
.hero--banner {
  display: block;
  background: var(--black);
  line-height: 0;
}
.hero--banner .banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* photo banner with live overlaid heading (clean source photo) */
.hero--photo .hero__media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero--photo .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* left-to-right darkening so the heading stays legible */
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.9) 0%,
    rgba(17, 17, 17, 0.66) 40%,
    rgba(17, 17, 17, 0.46) 100%
  );
  /* black inset shadow (vignette) — the depth the raw photo lacks */
  box-shadow: inset 0 0 200px 90px rgba(0, 0, 0, 0.9);
}
.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;
}

/* home hero */
.hero--home .hero__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--pad);
}
.hero--home h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 60px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 760px;
}
.hero--home h1 b {
  font-weight: 800;
  color: var(--primary);
}
.hero--home .btn {
  margin-top: 60px;
  align-self: flex-start;
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section--tight {
  padding: 64px 0;
}

.section-head h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 34px);
}
.section-head .rule {
  width: 54px;
  height: 3px;
  background: var(--primary);
  margin-top: 18px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--secondary);
  color: var(--white);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.cta-band h3 {
  color: var(--white);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
}
.footer-main {
  padding: 70px var(--pad) 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-col address {
  font-style: normal;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  font-weight: 500;
}
.footer-col address a {
  display: inline;
  text-decoration: underline;
  margin: 0;
}

.footer-bottom {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
}
.footer-legal {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-legal a:hover {
  color: var(--white);
}
.footer-ssl {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-ssl svg {
  width: 50px;
  height: 50px;
}
.footer-ssl svg path {
  fill: rgba(255, 255, 255, 0.7);
}
.footer-ssl b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}
.footer-ssl small {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  line-height: 1;
}

/* ---------- Home split (about + expertise list) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split .exp-list {
  border-left: 1px solid var(--border);
  padding-left: 70px;
}
.split__text p {
  margin: 26px 0 30px;
  max-width: 480px;
  font-weight: 500;
}
.link-more {
  display: block;
  text-align: right;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exp-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  color: var(--black);
  padding: 16px 0;
}
.exp-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--secondary);
}
.exp-ico svg {
  width: 100%;
  height: 100%;
  fill: var(--secondary);
}
.ecard-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
}
.ecard-ico svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
}

/* ---------- Stats band (À propos) ---------- */
.stats {
  background: var(--light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin-top: -64px; /* overlaps below hero spacing if needed */
}
.stats {
  margin-top: 0;
}
.stat {
  padding: 40px 16px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: #cfd6db;
}
.stat-digit {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  margin-top: 12px;
  display: block;
  font-weight: 500;
}

/* ---------- Value cards (Vision / Promesse / Mission) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.vcard {
  border: 1px solid var(--border);
  padding: 44px 44px;
  text-align: center;
}
.vcard .kicker {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}
.vcard h3 {
  font-weight: 900;
  font-size: 26px;
  margin: 6px 0 40px;
}
.vcard p {
  margin: 0;
  line-height: 1.8;
}

/* ---------- Expertise cards ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.ecard {
  border: 1px solid var(--border);
  padding: 46px 42px;
}
.ecard__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.ecard__head .exp-ico {
  width: 34px;
  height: 34px;
}
.ecard__head h3 {
  font-weight: 700;
  font-size: 20px;
}
.ecard p {
  margin: 0;
}

/* ---------- Careers list ---------- */
.jobs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.job {
  border: 1px solid var(--border);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition:
    border-color 0.2s,
}
.job:hover {
  border-color: var(--primary);
}
.job__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
}
.job__meta {
  display: flex;
  gap: 46px;
}
.job__meta div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.job__meta svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.contact-intro p {
  margin: 0 0 36px;
  max-width: 420px;
  font-weight: 500;
}
.contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-weight: 500;
  line-height: 1.6;
}
.contact-info svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {

}
.contact-form {
  background: var(--light);
  padding: 44px;
}
.contact-form .field {
  width: 100%;
  border: 0;
  background: var(--white);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
.contact-form .field::placeholder {
  color: #9aa2a7;
}
.contact-form textarea.field {
  min-height: 150px;
  resize: vertical;
}
.contact-form .form-group {
  margin-bottom: 16px;
}
.contact-form .form-group .field {
  margin-bottom: 0;
}
.contact-form .field-error {
  display: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #c0392b;
  margin-top: 6px;
}
.contact-form .form-group.has-error .field-error {
  display: block;
}
.contact-form .form-group.has-error .field {
  outline: 1.5px solid #c0392b;
  outline-offset: -1.5px;
}
.contact-form .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .form-success {
  margin: 0;
  margin-right: auto;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: #1f7a4d;
}
.contact-form .btn--solid {
  letter-spacing: 2px;
  padding: 13px 44px;
}
.contact-result {
  border: 2px solid;
  padding: 22px 44px;
  margin-bottom: 50px;
  border-radius: 5px;
  display: none;
}
.contact-success {
  border-color: rgb(1, 175, 1);
}
.contact-error {
  border-color: rgb(214, 0, 0);
}

/* ============================================================
   Motion — hovers, hero entrance, scroll reveal
   ============================================================ */

/* Buttons */
.btn {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
}
.btn:disabled {
  background-color: var(--muted);
}
.btn:disabled:hover {
  background-color: var(--muted);
}
/* Logo subtle press */
.logo:hover .logo-mark {
  transform: translateY(-1px);
}
.logo-mark {
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.3s ease;
}

/* Value + expertise cards */
.vcard,
.ecard {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s ease;
}
.ecard .exp-ico {
  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

/* Expertise list */
.exp-list li {
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    color 0.3s ease;
}
.exp-list li:hover {
  transform: translateX(10px);
}
.exp-list li .exp-ico {
  transition:
    transform 0.3s ease
}

/* Job rows */
.job {
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}
.job:hover svg {
  color: var(--secondary);
}
.job svg {
  transition: color 0.3s ease;
}

/* footer links nudge */
.link-more {
  transition:
    color 0.25s ease,
    letter-spacing 0.25s ease;
}
.link-more:hover {
  color: var(--secondary);
}
.footer-col a {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  line-height: 1.7;
}
.footer-col a:hover {
  transform: translateX(4px);
}

/* Form fields focus glow */
.contact-form .field {
  transition:
    box-shadow 0.25s ease,
    outline-color 0.25s ease;
}
.contact-form .field:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Stats count subtle hover */
.stat {
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
}

/* Hero entrance */
.hero__inner > * {
  animation: heroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__inner > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__inner > *:nth-child(2) {
  animation-delay: 0.18s;
}
.hero__inner > *:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal (added by reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal--in {
  opacity: 1;
  transform: none;
}
/* staggered cards within a grid */
.cards-2 .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.cards-2 .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.cards-2 .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.cards-3 .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.cards-3 .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner > *,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .cta-band .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split .exp-list {
    border-left: 0;
    padding-left: 0;
  }
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid #eee;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px var(--pad);
    width: 100%;
  }
  .nav-divider {
    display: none;
  }
  .lang {
    width: 100%;
  }
  .lang__toggle {
    padding: 14px var(--pad);
    width: 100%;
  }
  .lang__menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px var(--pad);
  }
  .lang__menu button {
    padding: 8px 0;
  }
  .hero--home .hero__inner {
    min-height: 100vh;
  }

  body.home .nav a,
  body.home .lang__toggle {
    color: var(--black);
  }

  body.home .nav a.active {
    color: var(--primary);
  }

  .nav a:hover::after,
  .nav a.active::after {
    content: none;
  }
  .lang__menu button:hover {
    background: none;
  }
}

@media (max-width: 720px) {
  .footer-bottom .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat::before {
    display: none !important;
  }
  .stat + .stat {
    border-top: 1px solid #cfd6db;
  }
  .job {
    flex-direction: column;
    align-items: flex-start;
  }
  .job__meta {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================================
   Generic content page — header + flexible content + footer-bottom
   ============================================================ */
body.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.page main {
  flex: 1;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 100px var(--pad) 100px;
}
.page-content > *:first-child {
  margin-top: 0;
}
.page-content > *:last-child {
  margin-bottom: 0;
}
.page-content h1 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: 0.5px;
  margin: 0 0 40px;
}
.page-content h2 {
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 56px 0 16px;
}
.page-content h3 {
  font-weight: 700;
  font-size: 19px;
  margin: 36px 0 12px;
}
.page-content p {
  margin: 0 0 20px;
}
.page-content .lead {
  font-size: 18px;
  color: #333;
  margin-bottom: 36px;
}
.page-content ul,
.page-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.page-content li {
  margin-bottom: 8px;
}
.page-content li::marker {
  color: var(--primary);
}
.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.page-content a:hover {
  color: var(--secondary);
}
.page-content blockquote {
  margin: 32px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--primary);
  background: var(--light);
  color: #333;
  font-style: italic;
}
.page-content blockquote p:last-child {
  margin-bottom: 0;
}
.page-content hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
