/* ------------------------------------------------------------------
   BNA CH S.A.R.L — bnach.ch
   Static site stylesheet
------------------------------------------------------------------ */

:root {
  --paper:      #FAF9F6;
  --sand:       #F3EDE1;
  --cream:      #F2E9D9;
  --card:       #FFFDF9;
  --rule:       #E6DFD0;
  --rule-warm:  #E6DCC8;

  --ink:        #14171A;
  --body:       #55595E;
  --muted:      #6B6F74;
  --muted-warm: #8C8578;

  --gold:       #9A6B2A;
  --gold-dark:  #7A5220;
  --gold-line:  #C99C57;
  --sun:        #B8651A;

  --green:      #3E6B4E;
  --green-mid:  #547A5B;
  --green-deep: #2C4B3B;
  --green-dark: #254032;
  --green-btn:  #33563E;
  --green-soft: #E6EEE4;
  --green-pale: #B7C4B2;
  --green-text: #8DA089;

  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1440px;
  --gutter: 80px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; text-wrap: pretty; }
p { margin: 0; }

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

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 16px; top: 16px; color: var(--paper); }

/* ---------------- Header / nav ---------------- */

.masthead { width: 100%; background: var(--cream); position: relative; overflow: hidden; }
.masthead--plain { background: var(--cream); }

.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 88px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: #4E5248;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sun); }

.nav__toggle { display: none; }

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

.hero { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 250px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 72px; align-items: start;
}

.eyebrow { color: var(--gold); margin-bottom: 34px; }

.hero h1 { font-size: 72px; line-height: 1.03; letter-spacing: -0.025em; margin-bottom: 30px; }

.hero__lead { font-size: 18px; line-height: 1.65; color: #4E5248; max-width: 540px; margin-bottom: 42px; }

.range {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 420px;
  display: block; pointer-events: none; z-index: 1;
}

/* ---------------- Buttons ---------------- */

.btns { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; padding: 15px 26px;
  border: 1px solid transparent;
}
.btn--solid { background: var(--green-btn); color: #F6F1E6; }
.btn--solid:hover { background: #294632; color: #F6F1E6; }
.btn--ghost { border-color: #C9BCA3; color: var(--ink); font-weight: 500; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- Spec card ---------------- */

.spec { border: 1px solid #DED2BA; background: rgba(251, 247, 239, 0.86); padding: 32px; }
.spec__title { color: var(--muted-warm); margin-bottom: 24px; }
.spec__row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-top: 1px solid var(--rule-warm);
  font-family: var(--mono); font-size: 12.5px;
}
.spec__row:last-of-type { border-bottom: 1px solid var(--rule-warm); }
.spec__row dt { color: var(--muted-warm); margin: 0; }
.spec__row dd { margin: 0; text-align: right; }
.spec__note { font-size: 13.5px; line-height: 1.6; color: #6E6A60; margin-top: 24px; }
.t-green { color: var(--green); }
.t-gold { color: var(--gold); }

/* ---------------- Sections ---------------- */

.section { padding-top: 112px; padding-bottom: 112px; }
.section--band { background: var(--sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section__mark { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.section__mark .num { color: var(--gold); }
.section__mark .label { color: var(--muted); }

.section h2 { font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; max-width: 800px; }
.section__lead { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 640px; }

/* ---------------- Service grid ---------------- */

.services {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.service { background: var(--paper); padding: 40px 44px 44px 0; }
.services > .service:nth-child(even) { padding: 40px 0 44px 44px; }
.services > .service:nth-child(n+3) { border-top: 1px solid var(--rule); }
.service .num { color: var(--gold); display: block; margin-bottom: 18px; }
.service h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 14px; }
.service p { font-size: 15.5px; line-height: 1.65; color: var(--body); max-width: 460px; }

/* ---------------- Three-column points ---------------- */

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.point { border-top: 2px solid var(--ink); padding-top: 26px; }
.point--green { border-top-color: var(--green); }
.point h3 { font-size: 19px; margin-bottom: 14px; }
.point p { font-size: 15.5px; line-height: 1.65; color: var(--body); }

/* ---------------- Cards ---------------- */

.cards { display: grid; gap: 28px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--rule); background: var(--card);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.card h3 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 14px; }
.card p { font-size: 15.5px; line-height: 1.65; color: var(--body); margin-bottom: 28px; }
.card__link { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--gold); }

.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #4A4F55; background: #F0EBE0; padding: 6px 10px;
}
.tag--live { color: var(--green); background: var(--green-soft); }

.card__banner {
  height: 96px; margin: -36px -32px 26px -32px;
  background: #F8F3E9; border-bottom: 1px solid #EAE2D3;
  position: relative; overflow: hidden;
}
.card__banner svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; }

/* ---------------- Page header (interior pages) ---------------- */

.pagehead { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 120px; }
.pagehead h1 { font-size: 58px; line-height: 1.04; letter-spacing: -0.025em; max-width: 900px; }
.pagehead__lead { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 620px; margin-top: 26px; }
.ridge-thin { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; display: block; pointer-events: none; z-index: 1; }

/* ---------------- Split layouts ---------------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; }
.split--product { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; }
.split--product .prose, .split--product .prose-lead { max-width: 640px; }
.stack { display: flex; flex-direction: column; gap: 36px; }

.prose-lead { font-size: 20px; line-height: 1.6; color: var(--ink); margin-bottom: 28px; max-width: 540px; }
.prose { font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 560px; margin-bottom: 22px; }
.prose:last-child { margin-bottom: 0; }
.prose h2 { font-size: 26px; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }

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

.person__photo {
  background: #F0EBE0; border: 1px solid var(--rule); aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; padding: 20px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #948C7C;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.person__name h3 { font-size: 24px; letter-spacing: -0.018em; }
.person__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.person p { font-size: 15.5px; line-height: 1.7; color: var(--body); max-width: 480px; }

.partner__logo {
  min-height: 44px; display: flex; align-items: center; margin-bottom: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #948C7C;
}
.partner__logo span { border: 1px dashed #D6CDBB; padding: 8px 14px; }
.partner__kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

/* ---------------- Contact block ---------------- */

.contact-band { width: 100%; background: var(--green-deep); color: #F4EFE3; position: relative; overflow: hidden; }
.contact-band .ridge-top { position: absolute; left: 0; top: 0; width: 100%; height: 200px; display: block; pointer-events: none; z-index: 1; }
.contact-band__inner { position: relative; z-index: 2; padding-top: 168px; padding-bottom: 104px; }
.contact-band h2 { font-size: 42px; line-height: 1.08; margin-bottom: 22px; }
.contact-band p { font-size: 17px; line-height: 1.65; color: var(--green-pale); max-width: 480px; }
.contact-band a { color: #E5B76B; }
.contact-band a:hover { color: #F0CB8A; }

.deflist { display: flex; flex-direction: column; padding-top: 8px; }
.deflist__row { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid #3E6350; font-size: 15px; }
.deflist__row:last-child { border-bottom: 1px solid #3E6350; }
.deflist__row dt { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); padding-top: 3px; }
.deflist__row dd { margin: 0; text-align: right; line-height: 1.5; }

.detailband { width: 100%; background: var(--green-deep); color: #F4EFE3; position: relative; overflow: hidden; }
.detailband .ridge-top { position: absolute; left: 0; top: 0; width: 100%; height: 200px; display: block; pointer-events: none; z-index: 1; }
.detailband__inner { position: relative; z-index: 2; padding-top: 172px; padding-bottom: 88px; }
.detailband__title { color: var(--green-text); margin-bottom: 36px; }
.detailband dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); margin-bottom: 12px; }
.detailband dd { margin: 0; font-size: 16px; line-height: 1.6; }

/* ---------------- Form ---------------- */

.form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule);
  padding: 13px 14px; border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: -2px; }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; font-size: 15px; line-height: 1.6; margin-bottom: 32px; max-width: 560px; }
.notice--ok { background: var(--green-soft); color: #22503A; border: 1px solid #CBDECB; }
.notice--err { background: #F7E9E2; color: #8A3A1A; border: 1px solid #E8CDBC; }

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

.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px;
  border-top: 1px solid var(--rule);
}
.footer__legal { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--body); }
.footer__links a:hover { color: var(--ink); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero h1 { font-size: 58px; }
  .pagehead h1 { font-size: 46px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }

  .nav { flex-wrap: wrap; min-height: 72px; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__toggle summary {
    list-style: none; cursor: pointer; font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink); padding: 8px 0;
  }
  .nav__toggle summary::-webkit-details-marker { display: none; }
  .nav__links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 0; padding-bottom: 16px;
  }
  .nav__toggle[open] ~ .nav__links { display: flex; }
  .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--rule-warm); }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--sun); }

  .hero { padding-top: 44px; padding-bottom: 200px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 17px; }
  .range { height: 300px; }

  .hero__grid, .split, .split--wide,
  .services, .points, .cards--2, .cards--3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .services { gap: 0; background: none; }
  .service, .services > .service:nth-child(even) { padding: 32px 0; border-top: 1px solid var(--rule); }
  .services > .service:first-child { border-top: none; padding-top: 0; }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .section h2 { font-size: 30px; }
  .pagehead { padding-top: 56px; padding-bottom: 56px; }
  .pagehead h1 { font-size: 38px; }

  .contact-band__inner { padding-top: 130px; padding-bottom: 72px; }
  .contact-band h2 { font-size: 32px; }
  .detailband__inner { padding-top: 130px; padding-bottom: 64px; }

  .deflist__row { flex-direction: column; gap: 6px; }
  .deflist__row dd { text-align: left; }

  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
}

/* ==================================================================
   Added 2026-09 — language picker, language bar, regulation grid,
   product figure, team links, prose headings, 404
================================================================== */

/* ---------------- Language picker (first visit) ---------------- */

.langpick {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 23, 26, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.langpick[hidden] { display: none !important; }
.langpick__box {
  background: var(--paper); border: 1px solid var(--rule);
  max-width: 480px; width: 100%; padding: 44px 40px 36px;
  box-shadow: 0 24px 60px rgba(20, 23, 26, 0.22);
}
.langpick__brand { color: var(--gold); margin-bottom: 22px; }
.langpick__box h2 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.langpick__sub { font-size: 15px; line-height: 1.6; color: var(--body); margin-bottom: 30px; }
.langpick__opts { display: flex; flex-direction: column; }
.langpick__opt {
  display: flex; align-items: center; gap: 18px;
  padding: 17px 4px; border-top: 1px solid var(--rule);
  color: var(--ink); font-size: 17px; font-weight: 500;
}
.langpick__opt:last-child { border-bottom: 1px solid var(--rule); }
.langpick__opt:hover { color: var(--green); background: var(--green-soft); padding-left: 14px; padding-right: 14px; margin: 0 -10px; }
.langpick__code {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--gold); min-width: 26px;
}

/* ---------------- Language bar in the nav ---------------- */

.langbar { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.langbar a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted-warm); padding: 5px 7px; border-bottom: 2px solid transparent;
}
.langbar a:hover { color: var(--ink); }
.langbar a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--sun); }

/* ---------------- Regulation grid ---------------- */

.regs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.reg { background: var(--sand); padding: 34px 40px 36px 0; }
.regs > .reg:nth-child(even) { padding: 34px 0 36px 40px; }
.regs > .reg:nth-child(n+3) { border-top: 1px solid var(--rule); }
.section:not(.section--band) .reg { background: var(--paper); }
.reg__tag { color: var(--gold); margin-bottom: 14px; }
.reg h3 { font-size: 20px; letter-spacing: -0.012em; margin-bottom: 13px; }
.reg p { font-size: 15.5px; line-height: 1.68; color: var(--body); max-width: 520px; }

/* ---------------- Product figure (picture + link) ---------------- */

.figure {
  display: block; border: 1px solid var(--rule); background: var(--card);
  color: var(--ink); overflow: hidden;
  width: 100%; max-width: 400px; justify-self: start;
}
.figure:hover { border-color: #C9BCA3; color: var(--ink); }
.figure__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; background: #FFFFFF; border-bottom: 1px solid var(--rule);
  padding: 34px;
}
.figure__cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding: 18px 22px;
}
.figure__cap .mono { color: var(--muted-warm); }
.figure__host { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.figure:hover .figure__host { color: var(--gold-dark); }

/* ---------------- Disclaimer ---------------- */

.disclaimer {
  font-size: 13.5px; line-height: 1.7; color: var(--muted-warm);
  border-top: 1px solid var(--rule); padding-top: 22px; max-width: 760px;
}

/* ---------------- Team additions ---------------- */

.person__photo { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; }
.person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person p + p { margin-top: 14px; }
.person__li {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.person__li:hover { color: var(--gold-dark); }

/* ---------------- Prose headings on legal pages ---------------- */

.prose-h { font-size: 22px; letter-spacing: -0.015em; margin: 42px 0 16px; max-width: 560px; }
.prose-h:first-child { margin-top: 0; }

/* ---------------- 404 ---------------- */

.nf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.nf__block { border-top: 2px solid var(--ink); padding-top: 24px; }
.nf__lang { color: var(--gold); margin-bottom: 14px; }
.nf__block h2 { font-size: 20px; margin-bottom: 10px; }
.nf__block p { font-size: 15.5px; line-height: 1.65; color: var(--body); }
.nf__links { margin-top: 16px; font-size: 14px; }

/* ---------------- Responsive additions ---------------- */

@media (max-width: 860px) {
  .langpick__box { padding: 32px 24px 26px; }
  .langpick__box h2 { font-size: 23px; }
  .langbar { margin-left: 0; padding: 10px 0 2px; }
  .nav__links .langbar a { width: auto; padding: 6px 8px 6px 0; border-bottom: none; }
  .nav__links .langbar a[aria-current="true"] { border-bottom: 2px solid var(--sun); }

  .figure { max-width: 340px; justify-self: center; margin: 0 auto; }

  .regs { gap: 0; background: none; }
  .reg, .regs > .reg:nth-child(even) { padding: 28px 0; border-top: 1px solid var(--rule); }
  .regs > .reg:first-child { border-top: none; padding-top: 0; }

  .nf { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prose-h { font-size: 20px; margin-top: 34px; }
}
