/* Biofresh Belgium – site styles
   Fonts: Amatic SC (headings) and Enriqueta (text), self-hosted. */

@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/amaticsc-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Amatic SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/amaticsc-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Enriqueta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/enriqueta-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Enriqueta";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/enriqueta-700-latin.woff2") format("woff2");
}

:root {
  /* Accent: PLACEHOLDER green taken from the e-commerce shop image (#679435),
     until marketing delivers the new brand assets. Change only these lines. */
  --accent: #679435;          /* surfaces, borders, bullets */
  --accent-strong: #557a2b;   /* buttons / active states with white text (WCAG AA) */
  --accent-hover: #476824;
  --accent-soft: #e8f0dd;     /* light tints */
  --accent-light: #b5d48a;    /* accent text on dark brown */
  --on-accent: #ffffff;

  --brown: #350e00;
  --brown-soft: #5a2a14;
  --burgundy: #75303a;
  --cream: #faf6ec;
  --white: #ffffff;
  --text: #2b170d;
  --muted: #6e5a4f;
  --line: #e8dfcd;
  --error: #b3261e;
  --success: #1d5c12;

  --font-display: "Amatic SC", "Arial Narrow", sans-serif;
  --font-body: "Enriqueta", Georgia, serif;

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 16px;
  --shadow: 0 14px 34px -18px rgba(53, 14, 0, 0.35);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brown); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--brown);
  margin: 0 0 0.35em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.4rem); }
h3 { font-size: 2.1rem; }

p { margin: 0 0 1em; }

address { font-style: normal; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 0.6em 1em;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.lead { font-size: 1.2rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--lg { padding: 0.85em 1.6em; font-size: 1.05rem; }

.btn--primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 8px 18px -10px rgba(53, 14, 0, 0.6); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn--dark { background: var(--brown); color: var(--white); }
.btn--dark:hover { background: var(--burgundy); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.85); background: transparent; color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow--back .icon { transform: rotate(180deg); }

/* ---------- Top bar ---------- */

.topbar { background: var(--brown); color: #f1e6d8; font-size: 0.85rem; }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__note { display: none; margin: 0; opacity: 0.85; }
.topbar__right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.topbar a { color: #f1e6d8; text-decoration: none; }
.topbar__social { display: inline-flex; padding: 4px; }
.topbar__social .icon { width: 18px; height: 18px; }
.topbar__social:hover { color: var(--accent-light); }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a { padding: 0.15em 0.65em; border-radius: 999px; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch a:hover { background: rgba(255, 255, 255, 0.12); }
.lang-switch a[aria-current="true"] { background: var(--accent-strong); color: var(--on-accent); }

@media (min-width: 768px) {
  .topbar__note { display: block; }
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px -18px rgba(53, 14, 0, 0.6);
}
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.5rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--brown); text-decoration: none; }
.brand:hover { color: var(--brown); text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.brand small { font-size: 1em; color: var(--burgundy); }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: transparent;
  color: var(--brown);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
}

.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav a:not(.btn) {
  display: block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  color: var(--brown);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { background: var(--accent-strong); color: var(--on-accent); }
.nav__shop { margin-left: 0.5rem; }

/* Mobile menu: collapsible only when JavaScript runs, otherwise always visible */
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .nav.is-open { display: block; }
  .nav { width: 100%; margin-left: 0; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a:not(.btn) { padding: 0.4rem 0.9rem; }
  .nav__shop { margin: 0.5rem 0 0; }
  .nav__shop .btn { width: 100%; justify-content: center; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--brown) url("../img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(53, 14, 0, 0.9) 0%, rgba(53, 14, 0, 0.7) 50%, rgba(53, 14, 0, 0.25) 100%);
}
.hero .wrap { padding: clamp(4rem, 11vw, 8rem) 0; }
.hero__kicker {
  margin: 0;
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero h1 { margin-bottom: 0.15em; color: var(--white); }
.hero__lead { max-width: 30ch; margin-bottom: 2rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
  color: var(--white);
  background: var(--brown) url("../img/wood.jpg") center / cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(53, 14, 0, 0.92), rgba(53, 14, 0, 0.72));
}
.page-hero h1 { margin: 0; color: var(--white); }
.page-hero p { max-width: 62ch; margin: 0.5rem 0 0; opacity: 0.92; }
.page-hero .page-hero__meta { margin: 0 0 0.25rem; color: var(--accent-light); font-weight: 700; }

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

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--white { background: var(--white); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.section__head h2 { margin: 0; }

.intro { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.signature { margin-top: 1.5rem; color: var(--burgundy); font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }

.range {
  padding: 2rem;
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.range ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.range li { display: flex; align-items: baseline; gap: 0.65rem; }
.range li::before {
  content: "";
  flex: none;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.1em);
}

/* ---------- Tiles ---------- */

.tiles { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
}
.tile p { flex: 1; max-width: 46ch; }
.tile__icon {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
}
.tile__icon .icon { width: 1.6rem; height: 1.6rem; }
.tile--shop { background: var(--accent-strong); color: var(--on-accent); }
.tile--shop h2 { color: var(--on-accent); }
.tile--shop .tile__icon { background: var(--white); color: var(--accent-strong); }
.tile--access { background: var(--burgundy); color: var(--white); }
.tile--access h2 { color: var(--white); }
.tile--access .tile__icon { background: var(--accent-light); color: var(--brown); }

/* ---------- News cards ---------- */

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(53, 14, 0, 0.45); }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__img--placeholder { display: grid; place-items: center; background: var(--accent-soft); }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.card time { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin: 0.25em 0 0.3em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--burgundy); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card__more { display: inline-flex; align-items: center; gap: 0.4em; margin-top: auto; color: var(--burgundy); font-weight: 700; }

.empty {
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

/* ---------- Locations & contact ---------- */

.locations { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 1rem; }
.location {
  padding: 1.75rem;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--cream);
}
.section:not(.section--white) .location { background: var(--white); box-shadow: var(--shadow); }
.location h2, .location h3 { font-size: 2.2rem; }
.location p { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; }
.location .icon { margin-top: 0.3em; color: var(--burgundy); }

.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}
.locations--stacked { grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 640px) and (max-width: 999px) {
  .locations--stacked { grid-template-columns: 1fr 1fr; }
}

.info-card { margin-top: 1.5rem; padding: 1.75rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: 0.15em; font-size: 1.8rem; }
.dept-grid { display: grid; gap: 0.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.dept-grid a { overflow-wrap: anywhere; }

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

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}
.form-grid { display: grid; gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; font-weight: 700; }
.req { color: var(--burgundy); }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px rgba(103, 148, 53, 0.35); }
.field--error input, .field--error textarea { border-color: var(--error); }
.field__hint { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.875rem; }
.field__error { margin: 0.3rem 0 0; color: var(--error); font-size: 0.9rem; font-weight: 700; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { color: var(--muted); font-size: 0.9rem; }

.alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: 10px; font-weight: 700; }
.alert--success { border: 1px solid #b8e2ac; background: #e8f6e3; color: var(--success); }
.alert--error { border: 1px solid #f3c2bd; background: #fdecea; color: #8a1c14; }

/* ---------- Certificates ---------- */

.cert-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.cert {
  display: grid;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .cert { grid-template-columns: 1fr auto; align-items: center; }
}
.cert h2 { font-size: 2.2rem; }
.cert__main p { margin-bottom: 0.75rem; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; margin: 0; font-size: 0.9rem; }
.cert__meta div { display: flex; gap: 0.4rem; }
.cert__meta dt { color: var(--muted); }
.cert__meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cert__side { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
@media (min-width: 860px) {
  .cert__side { align-items: flex-end; text-align: right; }
}
.cert__verify { font-size: 0.875rem; }
.cert--expired { border-left-color: var(--muted); }
.cert--expired h2, .cert--expired .cert__main p { color: var(--muted); }

.badge { display: inline-block; margin: 0; padding: 0.3em 0.85em; border-radius: 999px; font-size: 0.875rem; font-weight: 700; }
.badge--valid { background: var(--accent-soft); color: var(--accent-hover); }
.badge--expired { background: #fdecea; color: #8a1c14; }

.btn__tag { padding: 0.1em 0.5em; border-radius: 6px; background: rgba(255, 255, 255, 0.16); font-size: 0.75rem; letter-spacing: 0.04em; }

/* ---------- Text pages ---------- */

.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; font-size: 2.4rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--burgundy); }
.article__img { width: 100%; max-height: 480px; margin-bottom: 2rem; border-radius: var(--radius); object-fit: cover; }
.notice { padding: 0.75rem 1rem; border-radius: 10px; background: var(--accent-soft); }

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

.site-footer { padding-top: 4rem; background: var(--brown); color: #eadccd; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent-light); }
.site-footer h2 { color: var(--accent-light); font-size: 2.1rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  opacity: 0.85;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
