/*
Theme Name: Buitenbedje
Theme URI: https://www.buitenbedje.nl
Author: Pieter Oskam
Description: Eenpaginathema voor Buitenbedje.nl — buiten slapen, natuurlijk gezond.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: buitenbedje
*/

:root {
  --teal: #67a99f;
  --teal-dark: #3f8f86;
  --teal-deep: #2f6f68;
  --cream: #fdf1d8;
  --cream-dark: #f7e2b8;
  --white: #ffffff;
  --ink: #2c3b39;
  --ink-soft: #556764;
  --red: #d0323c;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(63, 143, 134, 0.14);
  --font: "Nunito", "Segoe UI", Verdana, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal-dark); }
a:hover, a:focus { color: var(--teal-deep); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto;
  padding: 0.6rem 1rem; background: var(--white); color: var(--teal-deep);
  border-radius: 8px; box-shadow: var(--shadow);
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--cream-dark);
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.7;
}
.site-header::before { width: 320px; height: 240px; left: -120px; top: -60px; }
.site-header::after { width: 260px; height: 200px; right: -100px; top: 40px; }

.site-logo {
  display: inline-block;
  width: min(420px, 78vw);
  margin: 0 auto;
}
.site-logo img { width: 100%; }

.site-tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
}

.site-nav {
  margin-top: 1.5rem;
  font-weight: 700;
}
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-nav a { text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus { border-bottom-color: var(--teal); }

/* ---------- Blokken ---------- */
.block { padding: 1.5rem 0; }
.block + .block { padding-top: 0.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.block-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.2;
}

/* Foto boven de tekst */
.hero { padding-top: 0.5rem; }
.hero-photo {
  margin: 0 auto;
  max-width: 860px; /* even breed als de witte kaart met de welkomsttekst */
  /* Organische vorm; hoek rechtsboven minder rond zodat het dak zichtbaar blijft. */
  border-radius: 62% 38% 55% 45% / 48% 26% 48% 52%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--teal);
}
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; }

/* Intro / over ons */
.intro .card { max-width: 860px; margin-inline: auto; }
.intro .entry-content > h2:first-child { margin-top: 0; }
.entry-content h2 { color: var(--teal-dark); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.entry-content p { margin: 0 0 1rem; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content p:first-of-type { font-size: 1.15em; font-weight: 600; color: var(--teal-deep); }
.entry-content img { border-radius: 18px; }

/* Voordelen */
.showcase-row {
  max-width: 860px; /* zelfde breedte en zijmarge als de tekst in de witte kaart */
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}
.showcase-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.usp-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
}
.usp-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-dark);
  line-height: 1.3;
}
.usp-list li small {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.usp-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(63,143,134,0.25);
}
.usp-icon svg { width: 36px; height: 36px; fill: var(--white); }

.shr-badge {
  margin-top: 0;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 330px;
}
.shr-badge img { width: 120px; flex-shrink: 0; }

/* Contact */
.contact .card {
  text-align: center;
  background: var(--teal);
  color: var(--white);
  max-width: 760px;
  margin-inline: auto;
}
.contact .block-title { color: var(--white); }
.contact p { margin: 0.35rem 0; font-size: 1.1rem; }
.contact .contact-name { font-weight: 800; font-size: 1.25rem; }
.contact a { color: var(--white); font-weight: 700; word-break: break-all; }
.contact .button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.85rem 1.75rem;
  background: var(--white);
  color: var(--teal-deep);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  word-break: normal;
}
.contact .button:hover, .contact .button:focus { background: var(--cream); }

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer a { color: inherit; }

/* Generieke pagina's */
.page-single { padding: 1rem 0 3rem; }
.page-single .card { max-width: 860px; margin-inline: auto; }
.page-single .entry-title { margin: 0 0 1rem; color: var(--teal-dark); font-weight: 800; }
.alignwide, .alignfull { max-width: 100%; }

/* Responsief */
@media (max-width: 820px) {
  .showcase-text { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 3 / 2; }
  .usp-list li { grid-template-columns: 56px 1fr; font-size: 1.05rem; }
  .usp-icon { width: 56px; height: 56px; }
  .usp-icon svg { width: 30px; height: 30px; }
  .shr-badge { margin-inline: auto; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .card { border-radius: 20px; }
  .site-header { padding-top: 1.75rem; }
}
