/* Stoof — shared styles — getstoof.eu */

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

:root {
  --bg: #F8F2E6;
  --surface: #FCFAF4;
  --ink900: #1A1410;
  --ink700: #3F3026;
  --ink500: #7A6A5C;
  --ink400: #A89888;
  --ink300: #C7BAA8;
  --line: #E5D8C0;
  --accent: #B83A1A;
  --accentDeep: #7A2410;
  --accentSoft: #FBEEE4;
  --accentTint: #F4DCCB;
  --sage: #5E6E3F;
  --sageTint: #DDE4CD;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink900);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
img { display: block; }
main { flex: 1; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 57px; /* reserve space while components.js loads */
}
.header-inner { display: flex; align-items: center; gap: 16px; }
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink900);
  text-decoration: none;
  flex: 1;
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 13px;
  color: var(--ink500);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.lang-switch a.active,
.lang-switch a:hover { background: var(--accentSoft); color: var(--accent); }
.nav-link {
  font-size: 13px;
  color: var(--ink500);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.btn-app {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.btn-app:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accentDeep); color: #fff; }

/* ── Badge row ───────────────────────────────────────────── */
.badge-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}
.badge-row .btn-primary {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink700);
  display: inline-flex;
  align-items: center;
}
.badge-row .btn-primary:hover {
  background: var(--accentSoft);
  border-color: var(--accentTint);
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 13px;
  color: var(--ink400);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink500); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
}
