/*
Theme Name: Ster in Leren
Theme URI: https://sterinleren.nl
Author: Ster in Leren
Description: Custom thema voor Ster in Leren, praktijk voor remedial teaching en begeleiding in Ermelo.
Version: 1.0
Requires PHP: 7.4
Text Domain: sterinleren
*/

/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --cream: #f4fafc;
  --cream-deep: #e8f5fe;
  --paper: #ffffff;
  --ink: #232a33;
  --ink-soft: #566270;
  --rust: #0186ba;
  --rust-deep: #046690;
  --forest: #2e3192;
  --forest-deep: #21245e;
  --gold: #ec008c;
  --line: #d7e7ee;
  /* --rust = brand blue, --forest = deep indigo, --gold = magenta pop — names kept, values swapped to the original site's palette */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Karla", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 68ch;
  --radius: 4px;
}

/* ---------------------------------------------------------
   Reset-ish basics
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
body { overflow-x: hidden; }
a { color: var(--rust-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 0.9em;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--rust-deep);
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--rust-deep);
}
.button:hover { background: var(--rust); color: var(--paper); }
.button.ghost {
  background: transparent;
  color: var(--rust-deep);
  border: 1px solid var(--rust-deep);
}
.button.ghost:hover { background: var(--rust-deep); color: var(--paper); }
.link-arrow {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--rust); border-color: var(--rust); }

/* ---------------------------------------------------------
   Site header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand svg { flex: none; }
.brand__logo { height: 52px; width: auto; }

/* Primary nav */
.primary-nav { display: flex; }
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.primary-nav > ul > li { position: relative; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.primary-nav > ul > li > a { position: relative; }
.primary-nav a:hover { color: var(--rust-deep); background: var(--cream-deep); }
.primary-nav li.current-menu-item > a,
.primary-nav li.current-page-ancestor > a,
.primary-nav li.current-menu-parent > a { color: var(--rust-deep); }

.primary-nav li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: solid var(--ink-soft);
  border-width: 0 1.5px 1.5px 0;
  padding: 3px;
  transform: rotate(45deg);
  position: relative;
  top: -2px;
}
.primary-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(44, 38, 32, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu a { font-size: 0.9rem; white-space: nowrap; }

.nav-toggle { display: none; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero__copy p.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero__art { position: relative; }
.hero__photo-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.643;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(33, 36, 94, 0.14);
}
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  max-width: none;
  height: auto;
}
.hero__photo--left { left: 0; }
.hero__photo--mid { left: -100%; }
.hero__photo--right { left: -200%; }
.hero__art svg {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 56px;
  height: 56px;
  background: var(--paper);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(33, 36, 94, 0.18);
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */
section.block { padding: 76px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block--tint { background: var(--cream-deep); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pull-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--forest-deep);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Pull-quote column: quote plus a short fact list beneath it, so the
   column reads as a considered sidebar rather than trailing off into
   whitespace next to the longer welcome paragraphs. */
.pull-quote-col { display: flex; flex-direction: column; }
.fact-list {
  list-style: none;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fact-list li { display: flex; align-items: baseline; gap: 14px; }
.fact-list strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--rust);
  line-height: 1;
  min-width: 3ch;
}
.fact-list span { font-size: 0.9rem; color: var(--ink-soft); }

/* Portrait feature (homepage) */
.two-col--reverse { align-items: center; }
.portrait-photo { margin: 0; }
.portrait-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(33, 36, 94, 0.14);
}
.portrait-photo figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Decorative dot texture for otherwise flat tinted sections */
.has-dots { position: relative; }
.has-dots .container { position: relative; z-index: 1; }
.has-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

/* Services grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--rust));
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { border-color: var(--ink-soft); }
.card h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.card .card-icon { color: var(--accent, var(--rust)); }
.card .link-arrow { align-self: flex-start; font-size: 0.85rem; }

/* CTA band */
.cta-band {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 64px 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #d3d6ee; }
.cta-band .button { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.cta-band .button:hover { background: #ff3ea0; }
.cta-band__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Page content (single page template)
--------------------------------------------------------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lede { color: var(--ink-soft); max-width: var(--measure); font-size: 1.1rem; }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: start;
}
.page-hero__intro { padding-top: 6px; }
.page-hero__art {
  margin: 0;
  padding-top: 6px;
}
.page-hero__art img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(33, 36, 94, 0.12);
}
.page-hero__art--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.page-hero__art--landscape img { aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero__art figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
}
.page-hero__art--logo {
  width: 150px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 16px 32px rgba(33, 36, 94, 0.08);
}
.page-hero__art--logo img { box-shadow: none; border-radius: 0; }
.page-hero__banner {
  margin: 40px 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(33, 36, 94, 0.12);
}
.page-hero__banner img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 6;
  object-fit: cover;
  object-position: center 35%;
}
@media (max-width: 720px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero__art { max-width: 240px; }
  .page-hero__banner img { aspect-ratio: 4 / 3; }
}

.page-body { padding: 56px 0 88px; }
.page-body__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}
.entry-content { max-width: var(--measure); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { color: var(--ink-soft); }
.entry-content li { margin-bottom: 0.4em; }
.entry-content p:has(> strong:only-child) {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--forest-deep);
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin: 1.8em 0;
}
.entry-content p:has(> strong:only-child) strong { font-weight: 600; }

.siblings-nav {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 96px;
}
.siblings-nav .eyebrow { margin-bottom: 0.6em; }
.siblings-nav ul { list-style: none; margin: 0; padding: 0; }
.siblings-nav li + li { margin-top: 4px; }
.siblings-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.siblings-nav a:hover { background: var(--cream-deep); color: var(--rust-deep); }
.siblings-nav a.is-current { background: var(--cream-deep); color: var(--rust-deep); }

/* ---------------------------------------------------------
   Contact page
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card dt {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-top: 18px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; color: var(--ink); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rust-deep);
}
.hp-field { position: absolute; left: -9999px; }
.form-notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-weight: 600;
}
.form-notice--ok { background: #eaf0e2; color: var(--forest-deep); border: 1px solid #c8d6b8; }
.form-notice--err { background: #fbe7ee; color: #b3005c; border: 1px solid #f2b8d4; }

/* ---------------------------------------------------------
   Blog / posts
--------------------------------------------------------- */
.post-list { display: grid; gap: 28px; max-width: var(--measure); }
.post-list article {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.post-list h2 { margin-bottom: 0.25em; font-size: 1.3rem; }
.post-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6em; }
.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #c6ccd6;
  padding: 52px 0 28px;
}
.site-footer a { color: #eef2f7; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #38414f;
}
.footer-grid h4 {
  color: #eef2f7;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: #eef2f7; margin-bottom: 10px; }
.footer-credential { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.footer-lbrt { height: 32px; width: auto; border-radius: 4px; background: #fff; padding: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .fact-row { grid-template-columns: 1fr; gap: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .page-body__grid { grid-template-columns: 1fr; }
  .siblings-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .primary-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 20px 28px; display: none; overflow-y: auto; border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: none; padding-left: 12px; transform: none; display: none; }
  .primary-nav li.is-expanded > .sub-menu { display: block; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band__row { flex-direction: column; align-items: flex-start; }
}
