/* ===========================================================
   Stichting Josildan — stylesheet
   Brand palette afgeleid van het logo
   =========================================================== */
:root {
  --navy: #1c3a5e;
  --navy-dark: #14304d;
  --navy-deep: #0f2238;
  --gold: #b08d4f;
  --gold-light: #c6a468;
  --gold-soft: #e8dcc4;
  --cream: #faf8f3;
  --cream-2: #f3eee4;
  --ink: #2b2b2b;
  --muted: #5d6470;
  --white: #ffffff;
  --line: #e7e1d4;
  --shadow: 0 14px 40px rgba(20, 48, 77, 0.10);
  --shadow-sm: 0 6px 18px rgba(20, 48, 77, 0.08);
  --radius: 14px;
  --maxw: 1160px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream2 { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #e9eef4; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .9em;
}
.section--navy .eyebrow { color: var(--gold-light); }

.lead { font-size: 1.18rem; color: var(--muted); }
.section--navy .lead { color: #c9d3df; }

.center { text-align: center; }
.measure { max-width: 760px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .01em;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-light); color: #fff; transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.section--navy .btn--outline { border-color: var(--gold-light); color: var(--gold-light); }
.section--navy .btn--outline:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 { font-family: var(--serif); font-size: .82rem; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.brand-text .b2 { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .08em; color: var(--navy); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: .96rem; font-weight: 500; color: var(--navy);
}
.nav-links a:hover { background: var(--cream-2); color: var(--navy); }
.nav-links a.active { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  padding: 5px 11px; border-radius: 999px; color: var(--muted);
}
.lang-switch button.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
  width: 42px; height: 42px; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 4px 0; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(15,34,56,.90) 0%, rgba(28,58,94,.78) 48%, rgba(28,58,94,.45) 100%),
    var(--navy);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url('../images/sfeer-boeken-globe.jpeg');
  background-size: cover; background-position: center; opacity: .28; z-index: 0;
}
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #d8e0ea; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero--page { text-align: center; }
.hero--page .container { padding-top: 78px; padding-bottom: 78px; }
.hero--page .lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--cream-2); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.split--reverse .split-media { order: 2; }

/* ---------- Book / magazine cards ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 44px; }
.cat-bar button {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--navy);
  padding: 9px 20px; border-radius: 999px; transition: .2s;
}
.cat-bar button:hover { border-color: var(--gold); }
.cat-bar button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.book {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover {
  background: var(--cream-2);
  padding: 26px; display: grid; place-items: center;
}
.book-cover img { max-height: 260px; width: auto; border-radius: 6px; box-shadow: 0 10px 26px rgba(20,48,77,.22); }
.book-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.book .tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); background: var(--cream-2);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.book h3 { font-size: 1.12rem; margin-bottom: .2em; }
.book .author { font-family: var(--sans); font-size: .86rem; color: var(--gold); font-weight: 600; margin-bottom: .8em; }
.book p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-light); line-height: 1; }
.stat .lbl { color: #c9d3df; font-size: .98rem; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .k { font-weight: 600; color: var(--navy); display: block; font-size: .92rem; }
.info-list .v { color: var(--muted); font-size: .96rem; }
.info-list a.v:hover { color: var(--gold); }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
form input, form textarea, form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,79,.15); }
form textarea { resize: vertical; min-height: 130px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d3df; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebccc; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand .b2 { font-family: var(--serif); color: #fff; font-size: 1.3rem; letter-spacing: .06em; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aebccc; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p { margin: 0 0 8px; }
.footer-contact a { color: #aebccc; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: #8595a8; }
.footer-bottom .reg { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- helpers ---------- */
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding-top: 0; padding-bottom: 0;
  }
  .nav-links.open { max-height: 420px; padding-top: 10px; padding-bottom: 18px; }
  .nav-links a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .split, .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .grid-4, .books { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-text .b2 { font-size: 1.1rem; }
  body { font-size: 16px; }
}
