/* ==========================================================================
   WhiteFish - Shared Stylesheet
   Consolidated from:
   - index.html (home)  + components (buttons/cards/grid/lang switcher)
   - kmo.html + particulieren.html (content pages with header/nav)
   - algemene-voorwaarden.html (terms page style)
   --------------------------------------------------------------------------
   Tip:
   - Add a class to <body> per page:
       index.html                -> <body class="page page-home">
       kmo.html/particulieren    -> <body class="page page-content">
       algemene-voorwaarden.html -> <body class="page page-terms">
   ========================================================================== */


/* ==========================================================================
   1) Design tokens (all pages)
   Used on: ALL pages (colors, radius, shadow).
   (Merged superset of variables from all files.)
   ========================================================================== */
:root {
  --bg: #0b1220;
  --fg: #e7eefc;
  --muted: rgba(231, 238, 252, 0.85);

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);

  /* Accents (mainly used on index/kmo/particulieren buttons) */
  --accent: #5a8cff;
  --accent-2: #6ad3ff;

  /* Geometry */
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}


/* ==========================================================================
   2) Base reset + typography (all pages)
   Used on: ALL pages
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  background:
    radial-gradient(1200px 800px at 50% 30%, rgba(90, 140, 255, 0.18), rgba(90, 140, 255, 0.08) 45%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;

  /* Index page had extra smoothing; harmless for all pages */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #9bbcff; }


/* ==========================================================================
   3) Page-level layouts
   Why body classes? Because algemene-voorwaarden had a different body layout
   than the other pages. This keeps it pixel-identical.
   ========================================================================== */

/* HOME (index.html)
   Used on: index.html */
body.page-home {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
}

/* CONTENT pages (kmo.html, particulieren.html)
   Used on: kmo.html, particulieren.html */
body.page-content {
  margin: 0;
  padding: 2rem;
  display: grid;
  place-items: center;
}

/* TERMS page (algemene-voorwaarden.html)
   Used on: algemene-voorwaarden.html */
body.page-terms {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  background:
    radial-gradient(1200px 800px at 50% 30%, rgba(90, 140, 255, 0.18), transparent 55%),
    var(--bg);
  color: var(--fg);
  padding: 2rem 1rem;
}


/* ==========================================================================
   4) Core container(s)
   .box exists on ALL pages but used slightly differently.
   ========================================================================== */
.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* HOME (index.html) version of .box */

body.page-home .box {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  width: min(100%, 1000px);
  max-width: 1000px;
  backdrop-filter: blur(5px);
}


/* CONTENT pages (kmo/particulieren) .box */
body.page-content .box {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

/* TERMS page (algemene-voorwaarden) .box */
body.page-terms .box {
  width: 100%;
  max-width: 1000px;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  backdrop-filter: blur(6px);
}


/* ==========================================================================
   5) Home page components (index.html)
   ========================================================================== */

/* Logo on home */
.logo {
  display: block;
  margin: 0 auto 1.25rem;
  width: min(360px, 70vw);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Headings */
h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.2px;
}

/* Lead paragraph
   Used on: index.html + also used on kmo/particulieren */
p.lead {
  margin: 0 auto 1.5rem;
  opacity: 0.92;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  max-width: 65ch;
}

/* Home CTA row (two-column on desktop) */
.cta-row.cta-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 360px;
  margin-inline: auto;
}

.cta-row.cta-two .btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* Mobile stacking for home CTA */
@media (max-width: 520px) {
  .cta-row.cta-two {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

/* Specialisaties heading on index.html (replaces inline style) */
.section-title {
  margin: .5rem 0 0;
  font-size: 1.5rem;
  opacity: .85;
}

/* Small hint line */
.hint {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Footer general */
footer {
  margin-top: 1rem;
  font-size: .9rem;
  opacity: .75;
}


/* ==========================================================================
   6) Shared components: buttons, grids, cards
   Used on: index.html, kmo.html, particulieren.html
   ========================================================================== */

/* Buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #0a0f1a;

  appearance: none;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);

  padding: .85rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;

  box-shadow: 0 6px 18px rgba(90,140,255,0.35);
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-2);
}

.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.btn.secondary {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  /* Index used color-mix; keep it */
  border-color: color-mix(in srgb, var(--border) 30%, white);
}

/* Content-page CTA row (kmo/particulieren) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .9rem 0 1.2rem;
}

/* Grid + cards (index + kmo + particulieren) */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 1.25rem;
  text-align: left;
}

/* Content pages used slightly wider minimum; keep it only there */
body.page-content .grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0; /* they didn’t use the same margins as index */
}

.card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.card h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem; /* index used slightly smaller */
}


/* ==========================================================================
   7) Content page chrome: wrap + header + nav + contactbar
   Used on: kmo.html, particulieren.html
   ========================================================================== */
.wrap { width: min(100%, 1000px); }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--fg);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-weight: 700;
  letter-spacing: .2px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--fg);
  border-color: var(--border);
  background: rgba(255,255,255,.05);
}

/* Sections on content pages */
.section { margin-top: 1rem; }
.section h2 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  opacity: .9;
}

ul { margin: .2rem 0 .6rem 1.2rem; padding: 0; }
li { margin: .2rem 0; }

.note {
  color: var(--muted);
  font-size: .98rem;
  margin-top: .25rem;
}

body.page-content footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  opacity: 1; /* content pages used color, not opacity */
}

/* Contact bar on content pages */
.contactbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;

  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7rem .8rem;
  margin-top: .8rem;
}

.contactbar a {
  color: var(--fg);
  text-decoration: none;
}
.contactbar a:hover { text-decoration: underline; }


/* ==========================================================================
   8) Terms page typography (algemene-voorwaarden.html)
   ========================================================================== */
body.page-terms h1 {
  margin-top: 0;
  font-size: 2.2rem;
}

body.page-terms h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--muted);
}

body.page-terms p,
body.page-terms li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}


/* ==========================================================================
   9) Optional language switcher (index.html)
   (Safe to keep globally; only used if .lang exists)
   ========================================================================== */
.lang {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: flex;
  gap: .5rem;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: .2rem .4rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.lang a.active,
.lang a:hover {
  border-color: var(--border);
  color: var(--fg);
  background: rgba(255,255,255,.05);
}


/* ==========================================================================
   10) Utilities (replacing inline styles)
   Used on:
   - index.html (cta spacing; footer link inherit)
   - particulieren.html (smaller lead line)
   - algemene-voorwaarden.html (top margin on back-link)
   ========================================================================== */
.cta-spaced {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.lead-small {
  font-size: 1rem;
  opacity: .85;
}

.mt-2 {
  margin-top: 2rem;
}

.link-inherit {
  color: inherit;
}
