/* === FONTS === */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

/* === DESIGN TOKENS === */
:root {
  /* Brand palette: green + gold + a single red accent */
  --green-700: #0B3B28;
  --green-900: #062B1D;
  --green-600: #10553A;   /* links/highlights on light bg (AA) */
  --gold-500:  #C5A253;
  --gold-300:  #E6D3A3;   /* gold text on green */
  --gold-700:  #7D6224;   /* gold text on light/cream (AA) */
  --red-600:   #AE1E24;   /* single accent; used in the service icon strokes */
  --cream-100: #F7F3E8;
  --black:     #161616;   /* body text */

  --border-light:       #E5E2D8;
  --gold-hairline:      rgba(197, 162, 83, 0.35);
  --gold-hairline-soft: rgba(197, 162, 83, 0.22);

  /* Neutrals */
  --color-white: #fff;

  /* Text on dark surfaces */
  --text-on-dark:        rgba(255, 255, 255, 0.85);
  --text-on-dark-muted:  rgba(255, 255, 255, 0.72);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.55);

  /* Surfaces on dark */
  --surface-on-dark: rgba(255, 255, 255, 0.04);

  /* Typography */
  --font-sans:    'Barlow', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;

  /* Type scale */
  --text-xs:    0.8125rem;  /* 13px — eyebrow */
  --text-sm:    0.875rem;   /* 14px — nav, buttony */
  --text-base:  1rem;       /* 16px — body */
  --text-md:    1.0625rem;  /* 17px — lead */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.5rem;     /* 24px */
  --display-sm: clamp(1.4rem, 4vw, 2.125rem);  /* H2 — 34px */
  --display-md: 2.375rem;                      /* 38px — staty hero */
  --display-lg: clamp(2rem, 6vw, 4rem);        /* H1 — 64px */

  --leading-tight:   1.1;
  --leading-snug:    1.4;
  --leading-base:    1.5;
  --leading-normal:  1.65;
  --leading-relaxed: 1.75;

  /* Spacing (4px base unit) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius: 4px;

  /* Motion */
  --transition-fast: 0.2s;

  /* Layout */
  --container-max: 1100px;
}

/* === RESET / BASE === */
* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--color-white);
}

main { flex: 1; }
address { font-style: normal; }

/* === A11Y === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--green-600); /* AA: white text needs >=4.5:1 */
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

main > section { padding: var(--space-16) var(--space-8); }

/* === TYPOGRAPHY PRIMITIVES === */
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--gold-700); /* AA on light/cream; overridden to gold-300 on dark sections */
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--display-sm);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--green-700);
}

.lead {
  max-width: 680px;
  margin-bottom: var(--space-12);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--black);
}
.lead--on-dark { color: var(--text-on-dark); }

/* Gold tick ornament */
.divider {
  width: 34px;
  height: 2px;
  margin: var(--space-4) 0 var(--space-8);
  background: var(--gold-500);
}

/* === NAVIGATION === */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) 0;
  background: var(--green-900);
  border-bottom: 1px solid var(--gold-hairline);
}
.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo img {
  height: 2.2rem;
  width: auto;
  max-width: 100%;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}
.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.is-active { color: var(--gold-300); }
.nav__links a.nav__cta {
  padding: var(--space-2) var(--space-5);
  background: var(--gold-500);
  color: var(--black);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav__links a.nav__cta:hover,
.nav__links a.nav__cta:focus-visible {
  background: var(--gold-300);
  color: var(--black);
}

/* Language switch DE | EN */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.lang-switch a {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark-subtle);
  transition: color var(--transition-fast);
}
.lang-switch a:hover,
.lang-switch a:focus-visible { color: var(--gold-300); }
.lang-switch a[aria-current="page"] { color: var(--color-white); }
.lang-switch span { color: var(--text-on-dark-subtle); opacity: 0.5; }

/* === HERO === */
/* Photo + scrim layers (.hero::before / ::after) are at the end of this file. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: var(--space-20) var(--space-8) var(--space-16);
  display: flex;
  align-items: center;
  background: var(--green-900);
}
.hero__accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  height: 5px;
  background: var(--gold-500);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.hero__tick {
  width: 34px;
  height: 2px;
  margin-bottom: var(--space-4);
  background: var(--gold-500);
}
.hero .eyebrow { margin-bottom: var(--space-6); color: var(--gold-300); }
.hero h1 {
  margin: 0 0 var(--space-6);
  max-width: 700px;
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
  color: var(--color-white);
}
.hero h1 span { color: var(--gold-300); }
.hero .lead { max-width: 580px; margin-bottom: var(--space-8); }

.hero__stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.hero__stats > div {
  display: flex;
  flex-direction: column-reverse;
}
.hero__stat-num {
  margin: 0; /* reset <dd> browser default */
  font-family: var(--font-display);
  font-size: var(--display-md);
  line-height: 1;
  color: var(--gold-300);
}
.hero__stat-num span { font-weight: 700; }
/* AI-Transparenz (Art. 50 Abs. 4 KI-VO): Plakette über dem KI-Hintergrundbild.
   Eigener dunkler Untergrund, da das Foto keinen Kontrast garantiert (WCAG 1.4.3). */
.ai-disclosure {
  position: absolute;
  /* Anchored to the photo column (same inset formula as .hero::before), not the
     hero edge — the label must stay visually attached to the image it discloses
     (Art. 50(4) AI Act: "unmittelbar daneben") on wide viewports too. */
  right: calc(max(var(--space-8), (100% - var(--container-max)) / 2) + var(--space-2));
  bottom: calc(5px + var(--space-3)); /* above the gold accent bar */
  z-index: 3;
  padding: var(--space-1) var(--space-3);
  /* Opaque bg: with a translucent one the contrast would depend on the photo
     underneath, so the AA floor below couldn't be guaranteed. */
  background: var(--green-900);
  border-radius: var(--radius);
  color: #7C9088; /* 4.52:1 on green-900 — deliberately at the WCAG AA floor (4.5:1) */
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-disclosure:hover { color: var(--color-white); }

.hero__stat-label {
  margin-top: 3px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* === ABOUT === */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--black);
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.stat-card {
  padding: var(--space-4) var(--space-5);
  background: var(--cream-100);
  border-left: 3px solid var(--gold-500);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--green-700);
}
.stat-card span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--black);
}

.about__features {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-12) var(--space-10);
  background: var(--green-700);
  border: 1px solid var(--gold-hairline-soft);
  border-radius: var(--radius);
  background-clip: padding-box; /* prevents corner artifacts in Firefox */
}
.about__features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 58%, rgba(6, 43, 29, 0.5) 58.5%);
  pointer-events: none;
}
.about__feature {
  position: relative;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.about__feature-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-top: 7px; /* optical alignment with the first title line */
  background: var(--gold-500);
}
.about__feature strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-white);
}
.about__feature p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-on-dark);
}

/* === SERVICES / AKORDEON === */
#services { background: var(--cream-100); }

/* Header: title left, intro right */
.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6) var(--space-12);
  margin-bottom: var(--space-12);
}
.services__head .divider { margin-bottom: 0; }
.services__intro {
  margin: 0;
  max-width: 460px;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--black);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.accordion__item {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  /* isolation:isolate forces a stacking context so Firefox actually clips the
     header/panel backgrounds to the rounded corners (overflow alone leaves
     1px artifacts there). */
  border-radius: var(--radius);
  overflow: hidden;
  /* Fix for Firefox bugs */
  background-clip: padding-box;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
}
.accordion__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-7);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}
.accordion__head:hover,
.accordion__item.is-open .accordion__head { background: #FBF9F2; }
.accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex: none;
}
.accordion__icon svg { display: block; }
.accordion__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.4375rem; /* 23px */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
}
/* +/- indicator: horizontal bar stays, vertical bar hides when open */
.accordion__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
    overflow: hidden;
  isolation: isolate;
}
.accordion__toggle::before,
.accordion__toggle::after {
  content: "";
  position: absolute;
  background: var(--gold-700);
}
.accordion__toggle::before { width: 14px; height: 2px; }
.accordion__toggle::after {
  width: 2px;
  height: 14px;
  transition: transform 0.3s, opacity 0.3s;
}
.accordion__item.is-open .accordion__toggle::after {
  transform: scaleY(0);
  opacity: 0;
}
/* Animacja rozwijania przez grid-template-rows 0fr -> 1fr */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
}
.accordion__list {
  list-style: none;
  margin: 0;
  padding: var(--space-6) var(--space-7);
  columns: 280px;
  column-gap: 44px;
  border-top: 1px solid var(--gold-hairline-soft);
}
.accordion__list li {
  break-inside: avoid;
  padding: 0 0 var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--black);
}

/* === CONTACT / TEAM === */
#contact { background: var(--green-700); }
#contact .section-title { color: var(--color-white); }
#contact .eyebrow { color: var(--gold-300); }
#contact .lead--on-dark { max-width: 620px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.team-card {
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
  justify-content: space-between;
  padding: var(--space-5);
  background: var(--surface-on-dark);
  border: 1px solid var(--gold-hairline-soft);
  border-radius: var(--radius);
  /* overflow + padding-box clip content to rounded corners; prevents
     border-corner artifacts in Firefox */
  overflow: hidden;
  background-clip: padding-box;
}
.team-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.team-card__head {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
/* Initials avatar — mobile only (desktop header has no avatar) */
.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
}
.team-card__role {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.team-card__email {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--text-on-dark-muted);
  overflow-wrap: anywhere;
  transition: color var(--transition-fast);
}
.team-card__email img { width: 16px; height: 16px; opacity: 0.7; }
.team-card__email:hover,
.team-card__email:focus-visible { color: var(--gold-300); }
.team-card__vcf {
  display: inline-block;
  padding: 7px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-300);
  border: 1px solid var(--gold-hairline);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.team-card__vcf:hover,
.team-card__vcf:focus-visible {
  color: var(--color-white);
  border-color: var(--gold-500);
}
/* Przycisk QR — otwiera modal z kodem */
.team-card__qr {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-1) 0 var(--space-5);
  background: none;
  border: none;
  border-left: 1px solid var(--gold-hairline-soft);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.team-card__qr:hover,
.team-card__qr:focus-visible { opacity: 1; }
.team-card__qr img { width: 36px; height: 36px; display: block; }
.team-card__qr span {
  max-width: 70px;
  font-size: var(--text-xs);
  line-height: 1.35;
  text-align: center;
  color: var(--text-on-dark-subtle);
}

/* === QR-MODAL === */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.qr-modal[hidden] { display: none; }
.qr-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 43, 29, 0.75);
}
.qr-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-10) var(--space-12) var(--space-8);
  background: var(--green-700);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.qr-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-on-dark-subtle);
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1;
  transition: color var(--transition-fast);
}
.qr-modal__close:hover,
.qr-modal__close:focus-visible { color: var(--color-white); }
.qr-modal__code {
  width: 280px;
  height: 280px;
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius);
}
.qr-modal__code img {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-modal__label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.qr-modal__hint {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-on-dark-subtle);
}

/* === LEGAL PAGES === */
.legal-page {
  padding: var(--space-16) var(--space-8) var(--space-20);
  background: var(--color-white);
}
.legal-content {
  max-width: 720px;
  margin-top: var(--space-10);
}
.legal-section { margin-bottom: var(--space-6); }
.legal-section h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
}
.legal-section h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--green-700);
}
.legal-section p,
.legal-section address {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--black);
}
.legal-section a {
  color: var(--green-600); /* AA on light */
  text-decoration: none;
}
.legal-section a:hover,
.legal-section a:focus-visible { text-decoration: underline; }

/* === FOOTER === */
footer {
  padding: var(--space-16) var(--space-8) 0;
  background: var(--green-900);
  border-top: 1px solid var(--gold-hairline);
  color: var(--text-on-dark-subtle);
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.footer__logo { height: 2rem; width: auto; display: block; }
.footer__brand p {
  margin: 0;
  max-width: 260px;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-on-dark-subtle);
}
.footer__heading {
  margin-bottom: var(--space-3);
  color: var(--gold-300);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
footer address,
.footer__hours {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-on-dark-muted);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
footer a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}
footer a:hover,
footer a:focus-visible { color: var(--gold-300); }
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--gold-hairline-soft);
}
.footer__bar span {
  font-size: var(--text-xs);
  color: var(--text-on-dark-subtle);
}
.footer__legal { display: flex; gap: var(--space-6); }
.footer__legal a {
  font-size: var(--text-xs);
  color: var(--text-on-dark-subtle);
}

/* Legal pages: minimal footer — only the copyright + legal links, centered.
   Reuses .footer__bar tokens so it stays visually consistent with the home page. */
.footer--minimal { padding: var(--space-10) var(--space-8); }
.footer--minimal .footer__bar {
  max-width: var(--container-max);
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  border-top: none;
  padding: 0;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Wide horizontal logo needs the full bar. The single separator is the nav's
     own bottom border; the DE|EN links + CTA drop just below it, floating over
     the hero photo on the right (absolutely positioned, out of the nav flow). */
  nav { position: relative; z-index: 3; }
  .nav__links {
    position: absolute;
    top: 100%;
    right: var(--space-5);
    justify-content: flex-end;
    gap: var(--space-5);
    padding-top: var(--space-3);
  }
  .nav__links a { font-size: var(--text-xs); }
  .nav__cta { white-space: nowrap; }
  .lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 var(--space-2);
  }

  .hero {
    padding: var(--space-16) var(--space-5) var(--space-10);
    min-height: auto;
  }
  .hero__stats { gap: var(--space-6); }

  main > section { padding: var(--space-12) var(--space-5); }

  .about__features { padding: var(--space-7) var(--space-5); gap: var(--space-5); }

  .about__grid { grid-template-columns: 1fr; gap: var(--space-8); }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  .legal-page { padding: var(--space-12) var(--space-5) var(--space-16); }
}

/* Mobile: team cards without QR, initials avatar; single-column footer */
@media (max-width: 600px) {
  .team-card { flex-direction: column; }
  .team-card__body { width: 100%; }
  .team-card__qr { display: none; }
  .team-card__vcf {
    display: block;
    padding: 11px 12px;
    text-align: center;
  }

  footer { padding: var(--space-12) var(--space-5) 0; }
  .footer__cols { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__bar { flex-direction: column; gap: var(--space-3); text-align: center; }
}

@media (max-width: 480px) {
  .nav__inner { padding: 0 var(--space-4); }
  .nav__links { right: var(--space-4); gap: var(--space-3); }
  .nav__links a { font-size: 0.75rem; letter-spacing: 0.04em; }
  .nav__links a.nav__cta { padding: var(--space-2) var(--space-3); }

  .about__highlights { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--space-5); }
  .hero { padding: var(--space-16) var(--space-4) var(--space-8); }
  main > section { padding: var(--space-10) var(--space-4); }

  .about__features { padding: var(--space-5) var(--space-4); }

  .accordion__head { padding: var(--space-4) var(--space-5); gap: var(--space-3); }
  .accordion__icon { width: 32px; }
  .accordion__list { padding: var(--space-6) var(--space-5) var(--space-5); }

  .team-card { padding: var(--space-4); }
  .qr-modal__dialog { padding: var(--space-8) var(--space-6) var(--space-6); }
  .qr-modal__code { width: 240px; height: 240px; }

  .hero__stat-num { font-size: var(--text-xl); }
  .team-card__name { font-size: var(--text-md); }

  .legal-page { padding: var(--space-10) var(--space-4) var(--space-12); }
}

/* === HERO PHOTO ===
   Photographic background in the header. Kept together at the end so the
   image is easy to swap, tune or remove. */

/* Photo layer: constrained to the content column width and centered; a
   symmetric mask fades both edges into the background. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(var(--space-8), calc((100% - var(--container-max)) / 2));
  right: max(var(--space-8), calc((97% - var(--container-max)) / 2));
  z-index: 0;
  background: url('../images/hero-photo.png') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 97%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 97%);
  transform: scale(1.06);
}

/* Scrim: full bg colour on the left, gradually revealing the building on the
   right; weighted from the bottom where the photo is busier. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      var(--green-900) 0%,
      var(--green-900) 22%,
      rgba(6, 43, 29, 0.62) 38%,
      rgba(6, 43, 29, 0.26) 52%,
      rgba(6, 43, 29, 0.06) 66%,
      transparent 78%),
    linear-gradient(0deg,
      rgba(6, 43, 29, 0.82) 0%,
      transparent 42%);
}

/* Tablet / narrow desktop: scrim reaches further right, photo slightly dimmed. */
@media (max-width: 900px) {
  .hero::before { opacity: 0.9; }
  .hero::after {
    background:
      linear-gradient(90deg,
        var(--green-900) 0%,
        var(--green-900) 30%,
        rgba(6, 43, 29, 0.78) 52%,
        rgba(6, 43, 29, 0.42) 76%,
        rgba(6, 43, 29, 0.18) 100%),
      linear-gradient(0deg,
        rgba(6, 43, 29, 0.88) 0%,
        transparent 42%);
  }
}

/* Phone: photo drops to a faint texture, solid dark scrim keeps contrast. */
@media (max-width: 600px) {
  .hero::before { opacity: 0.45; }
  .hero::after {
    background: linear-gradient(180deg,
      rgba(6, 43, 29, 0.88) 0%,
      rgba(6, 43, 29, 0.78) 55%,
      var(--green-900) 100%);
  }
}

/* Small phones (≤600px): drop the photo entirely — unreadable at this size and
   it hurts text legibility; display:none also avoids the download. */
@media (max-width: 600px) {
  .hero::before { display: none; }
  .ai-disclosure { display: none; } /* no AI image shown -> nothing to disclose */
}

/* Reduced motion: no zoom */
@media (prefers-reduced-motion: reduce) {
  .hero::before { transform: scale(1.02); }
}
