/* ============================================
   ATableBooked — Design System
   Versie: 1.0
   Kleuren: Gold #C9A96E · Ink #1A1816 · Beige #EEE9E2
   Typografie: Playfair Display + Inter
   Grid: 8px spacing systeem
   ============================================ */

/* ── CSS Custom Properties (Design Tokens) ── */

:root {

  /* Kleurenpalet ATB */
  --color-gold:          #C9A96E;
  --color-gold-dark:     #B8924A;
  --color-gold-light:    #E8D5B0;
  --color-gold-subtle:   rgba(201, 169, 110, 0.10);
  --color-gold-glow:     rgba(201, 169, 110, 0.25);

  --color-ink:           #1A1816;
  --color-ink-80:        rgba(26, 24, 22, 0.80);
  --color-ink-60:        rgba(26, 24, 22, 0.60);
  --color-ink-40:        rgba(26, 24, 22, 0.40);
  --color-ink-20:        rgba(26, 24, 22, 0.20);
  --color-ink-10:        rgba(26, 24, 22, 0.06);

  --color-beige:         #EEE9E2;
  --color-beige-dark:    #E0D9CE;
  --color-beige-darker:  #D4CBC0;

  --color-white:         #FFFFFF;
  --color-white-80:      rgba(255, 255, 255, 0.80);
  --color-white-60:      rgba(255, 255, 255, 0.60);

  --color-success:       #2D6A4F;
  --color-success-bg:    rgba(45, 106, 79, 0.08);
  --color-error:         #C1121F;
  --color-error-bg:      rgba(193, 18, 31, 0.08);

  /* Typografie */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont,
                  'Segoe UI', Helvetica, Arial, sans-serif;

  /* Font groottes — vaste schaal */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --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 */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Regelafstand */
  --leading-none:    1.0;
  --leading-tight:   1.15;
  --leading-snug:    1.35;
  --leading-normal:  1.60;
  --leading-relaxed: 1.75;

  /* Letterafstand */
  --tracking-tight:  -0.03em;
  --tracking-normal:  0em;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.12em;
  --tracking-widest:  0.18em;

  /* Spacing — 8px grid */
  --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 */
  --space-20:  5rem;       /* 80px */
  --space-24:  6rem;       /* 96px */
  --space-32:  8rem;       /* 128px */
  --space-40:  10rem;      /* 160px */
  --space-48:  12rem;      /* 192px */

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;

  /* Schaduwen */
  --shadow-xs:
    0 1px 2px rgba(26, 24, 22, 0.06);
  --shadow-sm:
    0 1px 3px rgba(26, 24, 22, 0.08),
    0 1px 2px rgba(26, 24, 22, 0.06);
  --shadow-md:
    0 4px 16px rgba(26, 24, 22, 0.08),
    0 2px 6px rgba(26, 24, 22, 0.05);
  --shadow-lg:
    0 16px 48px rgba(26, 24, 22, 0.10),
    0 4px 16px rgba(26, 24, 22, 0.06);
  --shadow-xl:
    0 32px 80px rgba(26, 24, 22, 0.12),
    0 8px 24px rgba(26, 24, 22, 0.08);
  --shadow-gold:
    0 8px 32px rgba(201, 169, 110, 0.25),
    0 2px 8px rgba(201, 169, 110, 0.15);
  --shadow-gold-lg:
    0 16px 48px rgba(201, 169, 110, 0.30),
    0 4px 16px rgba(201, 169, 110, 0.20);

  /* Animaties */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --ease-in:     cubic-bezier(0.4, 0.0, 1.0, 1.0);
  --ease-inout:  cubic-bezier(0.4, 0.0, 0.2, 1.0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1.0);

  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  --transition-fast:   150ms cubic-bezier(0.4, 0.0, 0.2, 1.0);
  --transition-base:   250ms cubic-bezier(0.4, 0.0, 0.2, 1.0);
  --transition-slow:   400ms cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1.0);

  /* Layout */
  --max-width:       1200px;
  --max-width-prose: 680px;
  --max-width-tight: 520px;
  --nav-height:      72px;
}


/* ════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}


/* ════════════════════════════════════
   TYPOGRAFIE KLASSEN
   ════════════════════════════════════ */

/* Display — voor grote hero headlines */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

/* Display varianten op donkere achtergrond */
.display-1.on-dark,
.display-2.on-dark,
.display-3.on-dark {
  color: var(--color-white);
}

.display-1.gold,
.display-2.gold,
.display-3.gold {
  color: var(--color-gold);
}

/* Heading */
.heading-1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}

.heading-2 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

.heading-3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

/* Lead — grote intro tekst */
.lead {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--color-ink-60);
  max-width: var(--max-width-prose);
}

.lead.on-dark {
  color: var(--color-white-60);
}

/* Body tekst */
.body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-80);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink-60);
}

/* Label — kleine gecapitaliseerde labels */
.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

.label.on-dark {
  color: var(--color-gold-light);
}

/* Quote */
.quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-gold);
}


/* ════════════════════════════════════
   LAYOUT HULPKLASSEN
   ════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-prose {
  width: 100%;
  max-width: var(--max-width-prose);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-tight {
  width: 100%;
  max-width: var(--max-width-tight);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 768px) {
  .container,
  .container-prose,
  .container-tight {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container,
  .container-prose,
  .container-tight {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }
}

/* Sectie padding */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section-sm {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

/* Achtergrond varianten */
.bg-white  { background-color: var(--color-white); }
.bg-beige  { background-color: var(--color-beige); }
.bg-ink    { background-color: var(--color-ink); }

/* Tekst uitlijning */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Flex hulpklassen */
.flex         { display: -webkit-box; display: -ms-flexbox; display: flex; }
.flex-col     { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.flex-center  { -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
.items-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.justify-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Visuele scheiding */
.divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  border: none;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.divider.centered {
  margin-left: auto;
  margin-right: auto;
}

/* Section header blok — label + titel + subtitel */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header.centered {
  text-align: center;
}

.section-header .lead {
  margin-top: var(--space-5);
}

.section-header.centered .lead {
  margin-left: auto;
  margin-right: auto;
}


/* ════════════════════════════════════
   SCROLL ANIMATIES
   ════════════════════════════════════ */

.fade-up {
  opacity: 0;
  -webkit-transform: translateY(28px);
  transform: translateY(28px);
  -webkit-transition:
    opacity var(--duration-slow) var(--ease-out),
    -webkit-transform var(--duration-slow) var(--ease-out);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  -webkit-transition: opacity var(--duration-slow) var(--ease-out);
  transition: opacity var(--duration-slow) var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

.fade-left {
  opacity: 0;
  -webkit-transform: translateX(-28px);
  transform: translateX(-28px);
  -webkit-transition:
    opacity var(--duration-slow) var(--ease-out),
    -webkit-transform var(--duration-slow) var(--ease-out);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.fade-left.visible {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  -webkit-transform: translateX(28px);
  transform: translateX(28px);
  -webkit-transition:
    opacity var(--duration-slow) var(--ease-out),
    -webkit-transform var(--duration-slow) var(--ease-out);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.fade-right.visible {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

/* Staggered vertraging voor grid items */
.stagger-1 { -webkit-transition-delay: 0.05s; transition-delay: 0.05s; }
.stagger-2 { -webkit-transition-delay: 0.10s; transition-delay: 0.10s; }
.stagger-3 { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; }
.stagger-4 { -webkit-transition-delay: 0.20s; transition-delay: 0.20s; }
.stagger-5 { -webkit-transition-delay: 0.25s; transition-delay: 0.25s; }
.stagger-6 { -webkit-transition-delay: 0.30s; transition-delay: 0.30s; }

/* Scherm-lezer only tekst */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
