/* Couvains Tijdelijk — hoofdstijlen */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'),
       url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
}

:root {
  --rood: #EB1D2F;              /* overschreven door de Customizer-kleur */
  --wit: #FFFFFF;
  --hover: #1A0505;
  --marge: clamp(16px, 4vmin, 64px);
  --adminbar: 0px;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--rood);
  overflow: hidden;             /* nooit scrollen: alles past in één venster */
}

body {
  color: var(--wit);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Ingelogd: ruimte maken voor de WordPress-adminbalk */
body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) {
  body.admin-bar { --adminbar: 46px; }
}
html[lang] { margin-top: 0 !important; }   /* WP zet anders margin op <html> */
body.admin-bar .pagina { margin-top: var(--adminbar); }

.pagina {
  height: calc(100vh - var(--adminbar));
  height: calc(100dvh - var(--adminbar));  /* houdt rekening met adresbalk op mobiel */
  padding: var(--marge);
  padding-left: max(var(--marge), env(safe-area-inset-left));
  padding-right: max(var(--marge), env(safe-area-inset-right));
  padding-bottom: max(var(--marge), env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--marge);
}

/* Bovenbalk: mail links, adres rechts */
.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 32px;
  border-top: 2px solid var(--wit);
  padding-top: clamp(12px, 2vmin, 22px);
}

.mail {
  color: var(--wit);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  font-size: clamp(20px, min(3vw, 5.5vh), 44px);
  line-height: 1.1;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: color .2s ease;
}
.mail:hover { color: var(--hover); }
.mail:focus-visible { outline: 2px solid var(--wit); outline-offset: 6px; }

.adres {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(19px, min(1.4vw, 3vh), 22px);
  line-height: 1.4;
  text-align: right;
}

/* Logo: altijd de volle breedte, onderaan */
.merk { margin: 0; line-height: 0; }
.logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50vh;
  max-height: 50dvh;            /* lage, brede schermen (telefoon liggend) */
}

/* Alleen voor schermlezers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smal scherm: adres onder de mail, links uitgelijnd */
@media (max-width: 640px) {
  .info { flex-direction: column; }
  .adres { text-align: left; }
}

/* Heel laag scherm: compacter */
@media (max-height: 420px) {
  .info { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mail { transition: none; }
}
