/* Karin Rossen - praktijk voor innerlijke Kracht & Rust
   One stylesheet for the whole site. No external fonts, no frameworks. */

:root {
  --sky-50: #f4f7fc;
  --sky-100: #e6edf8;
  --sky-300: #a9bfe2;
  --sky-500: #6b8fc7;
  --sky-800: #2d4672;
  --sun-200: #fbe6b0;
  --sun-400: #f2bf5a;
  --core-500: #d07a3f;
  --core-600: #b25a22;   /* buttons: white text on this colour passes WCAG AA */
  --core-700: #8f4519;
  --ink: #2a2f3a;
  --ink-soft: #545c6b;
  --line: #dde3ee;
  --white: #ffffff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(45, 70, 114, .10);
  --wrap: 1120px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--core-600); text-underline-offset: .2em; }
a:hover { color: var(--core-700); }

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sky-800);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow { margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--white); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* -- Header ------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(45, 70, 114, .08); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--sky-800);
}
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.brand-tag { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav a:hover { background: var(--sky-50); color: var(--sky-800); }
.nav a[aria-current="page"] { background: var(--sky-100); color: var(--sky-800); }
.nav .nav-cta a { background: var(--core-600); color: var(--white); }
.nav .nav-cta a:hover { background: var(--core-700); color: var(--white); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--sky-800);
  position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand-tag { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(45, 70, 114, .10);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a { padding: 12px 16px; }
}

/* -- Hero --------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #f1f4fa 0%, #a8bde0 70%, #7194cb 100%);
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px);
}
.hero::before {
  /* The sunflower from the original header, kept in the top-left corner */
  content: ""; position: absolute; inset: 0;
  background: url("../img/header.jpg") left top / cover no-repeat;
  opacity: .95;
}
.hero .wrap { position: relative; }
.hero-text { margin-left: auto; max-width: 640px; }
.hero h1 { color: var(--sky-800); }
.hero .lead { font-size: 1.25rem; color: var(--sky-800); }

.hero-small { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-small .hero-text { max-width: 560px; }

@media (max-width: 700px) {
  .hero::before { background-size: auto 100%; opacity: .45; }
  .hero-text { margin-left: 0; }
}

/* -- Sections ----------------------------------------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--sky-50); }
.section-warm { background: linear-gradient(135deg, var(--sun-200), #fdf3dc); }

.eyebrow {
  display: inline-block; margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--core-600);
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.poem { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.8; color: var(--sky-800); }

.quote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4;
  color: var(--sky-800); max-width: 820px; margin: 0 auto; text-align: center;
}

/* -- Buttons ------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--core-600); color: var(--white);
  font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--core-700); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sky-800); box-shadow: inset 0 0 0 2px var(--sky-800); }
.btn-ghost:hover { background: var(--sky-800); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.center .btn-row { justify-content: center; }

/* -- Cards -------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--sun-200); color: var(--core-600);
}
.card-icon svg { width: 26px; height: 26px; }

/* Prices */
.price-card { display: flex; flex-direction: column; }
.price { font-family: var(--font-head); font-size: 2rem; color: var(--core-600); margin-bottom: .4em; }
.price small { font-size: 1rem; color: var(--ink-soft); }
.price-card ul { margin: 0; padding-left: 1.2em; }
.price-card li { margin-bottom: .4em; }
.price-card .featured-note { font-size: .9rem; color: var(--ink-soft); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  margin: 0; background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.testimonial blockquote { margin: 0; font-size: 1rem; }
.testimonial blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-head);
  font-size: 3.5rem; line-height: .6; color: var(--sun-400); margin-bottom: 8px;
}
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--sky-800); margin-top: auto; }
.testimonial figcaption img { width: 40px; height: 40px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--sky-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--core-600); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 12px; color: var(--ink-soft); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.contact-list svg { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--core-600); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--ink-soft); }

/* Legal / long text */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* -- Footer ------------------------------------------- */

.site-footer { background: var(--sky-800); color: #dbe4f3; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.15rem; margin-bottom: .8em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4em; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 1em; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* -- Reveal on scroll ----------------------------------
   Content is always visible. The script only adds an entry animation
   when a block scrolls into view, so nothing stays hidden if it fails. */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal.is-visible { animation: rise .6s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-visible { animation: none; }
  .btn { transition: none; }
}
