/* GetaTable Info - design-systeem. Mobile-first, geen build-stap, vanilla CSS. */

/* == @font-face (self-hosted, latin-subset, font-display: swap) == */

/* Inter (body/UI): variabel font, hele gewichtsas in een bestand, latin + latin-ext. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  ascent-override: 90%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  ascent-override: 90%;
  size-adjust: 100%;
}
/* Varela Round (display/koppen): enkel gewicht 400. font-synthesis: none op body
   voorkomt dat font-weight:700-koppen synthetisch vet (blobby) worden. latin + latin-ext. */
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/varela-round-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/varela-round-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* == Design tokens == */

:root {
  /* Kleur */
  --color-brand:       #1b5b2d;
  --color-brand-dark:  #134420;
  --color-brand-soft:  #eef5f0;
  --color-brand-line:  #c6dece;
  --color-ink:         #1c2421;
  --color-ink-soft:    #374840;
  --color-muted:       #5b6b62;
  --color-bg:          #ffffff;
  --color-bg-soft:     #f3f7f4;
  --color-line:        #e2e8e4;
  --color-white:       #ffffff;
  --color-surface:     #ffffff;
  --color-overlay:     rgba(28, 36, 33, 0.48);

  /* Typografie */
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Varela Round', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --text-xs:   0.75rem;     /* 12px - secundaire labels */
  --text-sm:   0.875rem;    /* 14px - bodytekst min */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  1.875rem;    /* 30px */
  --text-4xl:  2.25rem;     /* 36px */

  /* Spacing */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */

  /* Radius */
  --radius-sm:   6px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-full: 999px;

  /* Schaduw */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.06);
  --shadow-brand: 0 6px 18px rgba(27, 91, 45, .25);

  /* Layout */
  --maxw: min(1080px, 92vw);
  --maxw-text: min(680px, 92vw);

  /* Sticky CTA hoogte (footer-padding) */
  --sticky-cta-h: 72px;
}

/* == Base reset == */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  /* Varela Round (koppen) heeft 1 gewicht; geen synthetische bold/italic. */
  font-synthesis: none;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-brand); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { margin: 0; }

/* == Typografie-componenten == */

.display-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-muted { color: var(--color-muted); }
.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }

/* == Layout: maxw-wrapper == */

.wrapper {
  width: var(--maxw);
  margin-inline: auto;
}

.wrapper--text {
  width: var(--maxw-text);
  margin-inline: auto;
}

/* == Gedeeld component: section-wrapper == */

.section {
  width: var(--maxw);
  margin-inline: auto;
  padding-block: var(--space-10);
}

.section--narrow {
  width: var(--maxw-text);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section__heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-3);
}

.section__subheading {
  font-size: var(--text-base);
  color: var(--color-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* == Gedeeld component: pill-CTA (btn) == */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease,
    color .15s ease, border-color .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-line);
}
.btn-ghost:hover {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-line);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: 8px 16px;
  min-height: 44px;
}

/* == Gedeeld component: icoonkaart == */

.icon-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.icon-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-brand-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.icon-card__icon svg {
  width: 20px;
  height: 20px;
}

.icon-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}

.icon-card__body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.55;
}

/* == Gedeeld component: device-frame == */

.device-frame {
  max-width: min(320px, 92vw);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-bg);
}

/* == Gedeeld component: FAQ-accordion-omhulsel == */

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  line-height: 1.4;
}

.faq-item__trigger:hover {
  background: var(--color-bg-soft);
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-muted);
  transition: transform .2s ease;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__region {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

.faq-item__trigger[aria-expanded="true"] + .faq-item__region {
  display: block;
}

/* == Topbar / header == */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: var(--maxw);
  margin-inline: auto;
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-svg {
  height: 28px;
  width: auto;
}

/* == Doelgroep-toggle == */

.audience-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: var(--space-6) var(--space-4) 0;
}

.audience-toggle {
  display: inline-flex;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  gap: var(--space-1);
}

.audience-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.audience-btn[aria-selected="true"] {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.audience-btn:not([aria-selected="true"]):hover {
  background: var(--color-brand-soft);
  color: var(--color-ink-soft);
}

/* == data-audience contract: track-selectie via CSS == */

[data-audience-show] { display: none; }

body[data-audience="gast"] [data-audience-show="gast"],
body[data-audience="restaurant"] [data-audience-show="restaurant"] {
  display: revert;
}

/* Sections als block tonen (anders dan inline default van revert) */
section[data-audience-show] { display: none; }
body[data-audience="gast"] section[data-audience-show="gast"],
body[data-audience="restaurant"] section[data-audience-show="restaurant"] {
  display: block;
}

/* == Sticky mobile bottom CTA == */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .25s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta-btn {
  flex: 1;
  max-width: 400px;
  margin-inline: auto;
}

/* Audience-filtering voor de sticky CTA-knoppen */
.sticky-cta [data-audience-show] { display: none; }

body[data-audience="gast"] .sticky-cta [data-audience-show="gast"] {
  display: flex;
}
body[data-audience="restaurant"] .sticky-cta [data-audience-show="restaurant"] {
  display: flex;
}

/* Verborgen vanaf 700px */
@media (min-width: 700px) {
  .sticky-cta { display: none !important; }
}

/* == Footer == */

.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: var(--space-12);
  padding: var(--space-8) 0 var(--space-10);
  padding-bottom: calc(var(--space-10) + var(--sticky-cta-h));
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (min-width: 700px) {
  .site-footer { padding-bottom: var(--space-10); }
}

.footer-links {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  margin-top: var(--space-2);
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--color-brand); }

/* == Scroll-animatie utility == */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* == Lazy-load placeholder == */

img[data-src] {
  background: var(--color-bg-soft);
  min-height: 100px;
}

/* == Tablet en breder == */

@media (min-width: 700px) {
  .topbar__inner { padding-block: var(--space-4); }

  .audience-toggle-wrap { padding-top: var(--space-10); }
}
