/* Praktijk OOG — kleuren in lijn met logo (Hushed Apricot-palet: cream, apricot, cocoa) */
:root {
  --palette-cream: #fff7f1;
  --palette-apricot-soft: #fde1cf;
  --palette-apricot-deep: #f6c3a8;
  --palette-cocoa: #7b5d56;

  --color-primary: #8f6a5f;
  --color-secondary: #544239;
  --color-text: #6d5c54;
  --color-accent: #c98872;
  --color-warm: #f6c3a8;
  --color-white: var(--palette-cream);
  --color-bg: #faf3eb;
  --color-bg-card: #fffefb;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
  --header-h: 4.5rem;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(84, 66, 57, 0.1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Homepage: minstens viewport; onderaan extra ‘adem’ vóór footer */
body.homepage {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px));
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

strong,
b {
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}
h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-top: 2rem;
}
h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* ——— Site header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.pillar-strip {
  display: none;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  max-height: 56px;
  width: auto;
  max-width: min(420px, 86vw);
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  border: 2px dashed rgba(143, 106, 95, 0.45);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--color-primary);
  background: rgba(253, 225, 207, 0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  color: var(--color-secondary);
  font-weight: 400;
  text-decoration: none;
  padding: 0.35rem 0;
}

.main-nav > ul > li > a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.dropdown a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--color-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.dropdown a:hover {
  background: rgba(253, 225, 207, 0.85);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-social a {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.nav-social a:hover {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    display: none;
    padding-bottom: 0.75rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-left: 3px solid var(--color-primary);
    margin-left: 0.5rem;
    margin-top: 0.25rem;
  }
}

/* ——— Hero (foto + donkere overlay) ——— */
.hero {
  min-height: clamp(380px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 1.25rem 5.5rem;
  position: relative;
  background-color: #1a1d21;
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.54) 0%,
      rgba(0, 0, 0, 0.38) 45%,
      rgba(0, 0, 0, 0.62) 100%
    ),
    url("../assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding-left: clamp(2rem, 9vw, 6.5rem);
  box-sizing: border-box;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.15rem, 5.5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 4px 28px rgba(0, 0, 0, 0.45),
    0 0 1px rgba(0, 0, 0, 0.9);
  margin: 0 0 0.65rem;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.125rem, 2.4vw, 1.4rem);
  font-weight: 500;
  max-width: 38rem;
  line-height: 1.5;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 3px 22px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
  margin: 0 0 1.35rem;
}

.hero-overlay .hero-cta {
  margin-top: 0;
  background: var(--palette-apricot-deep);
  color: var(--palette-cocoa);
  border: 1px solid rgba(123, 93, 86, 0.35);
  font-weight: 500;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.hero-overlay .hero-cta:hover {
  filter: brightness(1.04);
  color: var(--palette-cocoa);
  text-decoration: none;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.35);
}

.pillars {
  max-width: 1140px;
  margin: -3rem auto 0;
  padding: 0 1.25rem 3rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Homepage hero: extra hoog onder de tekst → overgang naar pijlers echt verder naar beneden (geen vaste dvh-ceiling) */
.hero.hero-home {
  flex-shrink: 0;
  align-self: stretch;
  width: 100%;
  min-height: clamp(640px, 92vh, 1400px);
  min-height: clamp(640px, 92svh, 1400px);
  padding-bottom: clamp(19rem, 56vh, 52rem);
  background-color: var(--color-bg);
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.54) 0%,
      rgba(0, 0, 0, 0.37) 38%,
      rgba(0, 0, 0, 0.18) 64%,
      rgba(250, 243, 235, 0.35) 82%,
      rgba(250, 243, 235, 0.88) 100%
    ),
    url("../assets/hero.jpg");
  background-position: center 38%;
}

/* Extra zachte uitloop naar pagina-kleur; maskeert donkere naad tussen foto en crème */
.hero.hero-home::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(7rem, min(32vh, 34vw), 380px);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(250, 243, 235, 0.28) 32%,
    rgba(250, 243, 235, 0.78) 68%,
    var(--color-bg) 100%
  );
}

.pillars.pillars-home {
  margin-top: clamp(-2.25rem, -4vw, -1rem);
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }

  .pillars.pillars-home {
    margin-top: clamp(-1.75rem, -3vw, -0.75rem);
  }
}

.pillar-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card-link {
  display: block;
  padding: 1.75rem 1.5rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pillar-card-link:hover {
  text-decoration: none;
}

.pillar-card-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.pillar-card:nth-child(1) {
  border-top-color: var(--color-primary);
}
.pillar-card:nth-child(2) {
  border-top-color: var(--color-warm);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(84, 66, 57, 0.12);
  text-decoration: none;
}

.pillar-card-link h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.pillar-summary {
  margin: 0 0 0.85rem;
  font-size: 0.935rem;
  line-height: 1.56;
  color: var(--color-text);
}

.pillar-card-link .cta {
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}



.home-over-oog {
  background: var(--palette-apricot-soft);
  border-top: 1px solid rgba(143, 106, 95, 0.18);
  border-bottom: 1px solid rgba(143, 106, 95, 0.18);
  padding: 2.75rem 0 3.25rem;
}

/* Homepage: Over OOG-sectie hoger meer vulling vóór intro/footer */
body.homepage .home-over-oog {
  padding-top: clamp(3.5rem, 11vh, 7rem);
  padding-bottom: clamp(4.5rem, 16vh, 10rem);
  min-height: min(44vh, 30rem);
}
.home-over-oog-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-over-oog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

.home-over-oog-main {
  min-width: 0;
}

.home-over-oog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-over-oog-sidebar .home-over-oog-gallery {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-top: 0;
}

.home-over-oog-sidebar .home-over-oog-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}

@media (max-width: 840px) {
  .home-over-oog-layout {
    grid-template-columns: 1fr;
  }

  .home-over-oog-sidebar {
    position: static;
    order: 3;
  }

  .home-over-oog-main {
    order: 1;
  }
}

.home-over-oog h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--color-secondary);
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  min-width: min(100%, 12rem);
}

.home-over-oog-intro {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  max-width: 42rem;
  color: var(--color-secondary);
  line-height: 1.65;
}

.home-over-oog h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.home-over-oog h3:first-of-type {
  margin-top: 1.5rem;
}

.home-over-oog p {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  line-height: 1.65;
}

.home-over-oog p:last-of-type {
  margin-bottom: 0;
}

.home-over-oog-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  margin: 1.25rem 0 0.25rem;
}

.home-over-oog-figure {
  margin: 0;
}

.home-over-oog-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 300px;
  width: auto;
}

.home-over-oog-cta-wrap {
  margin-top: 1.75rem !important;
  max-width: none !important;
}

.home-over-oog-more {
  margin-top: 0;
}

/* Two-column inhoud: rechter kolom zoals klassieke sidebar */
main:has(> .page-sidebar) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 0;
  align-items: start;
}

main:has(> .page-sidebar) > .page-header {
  grid-column: 1 / -1;
}

main:has(> .page-sidebar) > .article-body {
  grid-column: 1;
  max-width: none;
  width: 100%;
  margin: 0;
}

main:has(> .page-sidebar) > .page-sidebar {
  grid-column: 2;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-panel {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
  border-left: 4px solid var(--color-primary);
}

.sidebar-panel-accent {
  border-left-color: var(--color-warm);
}

.sidebar-title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-text {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sidebar-actions {
  margin: 0.75rem 0 0;
}

.sidebar-actions .btn-primary {
  margin-top: 0;
}

.btn-sidebar {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
}

.sidebar-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sidebar-list li {
  margin-bottom: 0.35rem;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list a {
  font-weight: 500;
}

@media (max-width: 900px) {
  main:has(> .page-sidebar) {
    grid-template-columns: 1fr;
  }

  main:has(> .page-sidebar) > .page-sidebar {
    grid-column: 1;
    position: static;
  }

  main:has(> .page-sidebar) > .article-body {
    max-width: none;
  }
}

/* ——— Main content ——— */
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
}

.page-header small {
  display: block;
  color: var(--palette-cocoa);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--color-secondary);
}

/* Thema-pagina body (geïnjecteerde inhoud) */
.article-body {
  max-width: 42rem;
  margin: 0 auto;
}

.article-body .article-section {
  margin-bottom: 2rem;
}

.article-body h2.subheading {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.article-body .article-section > h2.subheading:first-child {
  margin-top: 0;
}

.page-quote {
  margin: 0 0 1.5rem;
}

.page-quote blockquote {
  margin: 0;
}

.inline-figure.figure-right {
  float: right;
  max-width: min(45%, 220px);
  margin: 0 0 1rem 1.25rem;
}

.inline-figure.figure-right img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body .article-section::after {
  content: "";
  display: table;
  clear: both;
}

table.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
}

table.rates-table td {
  border: 1px solid rgba(123, 93, 86, 0.22);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}

.book-catalog .gridContainer,
.book-catalog div[class*="gridContainer"] {
  max-width: 100%;
}

.book-catalog table {
  width: 100%;
  border-collapse: collapse;
}

.book-catalog td,
.book-catalog th {
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

@media (max-width: 560px) {
  .inline-figure.figure-right {
    float: none;
    max-width: 220px;
    margin: 0 auto 1.25rem;
  }
}

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--palette-apricot-deep);
  background: rgba(253, 225, 207, 0.55);
  font-style: italic;
  color: var(--color-secondary);
}

blockquote cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text);
}

.content-blocks figure {
  margin: 2rem 0;
}

.content-blocks img.rounded {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.two-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .two-images {
    grid-template-columns: 1fr;
  }
}

.btn-primary {
  display: inline-block;
  background: var(--palette-cocoa);
  color: var(--palette-cream);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary:hover {
  filter: brightness(1.09);
  text-decoration: none;
  color: var(--palette-cream);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(253, 225, 207, 0.65);
  text-decoration: none;
}

.intro-home {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.intro-home .lead {
  margin-top: 0;
}

/* Meer beige ruimte vóór de footer op brede schermen (anders staat bruine footer in één oogopslag onder de blokken) */
body.homepage > main {
  padding-bottom: clamp(3rem, 12vh, 8rem);
  min-block-size: clamp(18rem, 42vh, 36rem);
  box-sizing: border-box;
}

/* Tarieven */
table.rates {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}
table.rates th,
table.rates td {
  border: 1px solid rgba(123, 93, 86, 0.2);
  padding: 0.75rem 1rem;
  text-align: left;
}
table.rates th {
  background: rgba(253, 225, 207, 0.75);
  color: var(--color-secondary);
}

/* Contact */
.contact-card {
  background: var(--color-bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}

.contact-card dl {
  margin: 0;
}
.contact-card dt {
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 1rem;
}
.contact-card dt:first-child {
  margin-top: 0;
}
.contact-card dd {
  margin: 0.25rem 0 0;
}

.contact-card h2:first-of-type {
  margin-top: 0;
}

.contact-actions {
  margin-top: 1.5rem;
}

/* Boekenlijst */
.book-list > section:first-of-type h2 {
  margin-top: 0.75rem;
}

.book-list section h2 {
  margin-top: 2rem;
  color: var(--color-primary);
}
.book-list ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

/* Footer — cacao met zachte apricot-links */
.site-footer {
  background: #4e3d37;
  color: rgba(255, 247, 241, 0.92);
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.site-footer a {
  color: var(--palette-apricot-soft);
}

.site-footer a:hover {
  color: var(--palette-cream);
}

/* Homepage: geen cacao-balk meer onderaan; sluit aan op lichte achtergrond (overige pagina’s houden donkere footer) */
body.homepage .site-footer {
  margin-top: clamp(3.5rem, 12vh, 8rem);
  background: var(--palette-apricot-soft);
  color: var(--color-secondary);
  border-top: 1px solid rgba(143, 106, 95, 0.22);
}

body.homepage .site-footer a {
  color: var(--color-primary);
}

body.homepage .site-footer a:hover {
  color: var(--color-secondary);
}
