/* ===== Tai Ji Rijmenam – stijl ===== */

/* Montserrat is self-hosted (no requests to Google = no visitor data sent to Google) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --dark: #3c3c3c;
  --sage: #c5d5cb;
  --sage-light: #eef3ef;
  --text: #333;
  --muted: #4a4a4a; /* ≥ 4.5:1 contrast on the sage banner */
  --white: #fff;
  --max: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keep anchor targets clear of the sticky header */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a { color: #4f7a62; }

h1, h2, h3 { font-weight: 500; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .4rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
.site-header {
  background: var(--dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: .05em;
}
.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.2;
  padding: 10px 0;
}
.brand-name { font-size: 1.6rem; font-weight: 400; letter-spacing: .08em; }
.brand-tag { font-size: .85rem; font-weight: 300; color: var(--sage); letter-spacing: .1em; }

/* Visually hidden but still focusable, so the menu works with keyboard and screen readers */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  min-width: 48px;
  min-height: 48px;
  margin-right: -10px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--sage); outline-offset: 2px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--white);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--sage); }
.main-nav a.active { border-bottom-color: var(--sage); color: var(--sage); }

/* ----- Hero / page banner ----- */
.hero {
  position: relative;
  min-height: 82vh;
  background: url("images/hero.jpg") center / cover no-repeat;
  background-image: image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 65%);
}
.hero .container { position: relative; width: 100%; }
.hero h1 { color: var(--white); font-size: 3rem; font-weight: 300; margin: 0 0 .6rem; }
.hero .tagline { font-size: 1.4rem; font-weight: 300; margin: 0 0 2rem; letter-spacing: .05em; line-height: 1.6; }

.hero-sub { margin: 2.2rem 0 0; font-size: .95rem; font-weight: 300; opacity: .9; }

.banner {
  background: var(--sage);
  padding: 50px 0 40px;
}
.banner h1 { margin: 0; font-weight: 400; }
.banner .tagline { margin: 0; color: var(--muted); letter-spacing: .05em; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background .2s;
}
.btn:hover { background: var(--sage); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #555; }

/* ----- Sections ----- */
section { padding: 60px 0; }
section.alt { background: var(--sage-light); }

.intro { text-align: center; }
.intro p { font-size: 1.15rem; margin: .2rem 0; }

.subnav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 1.2rem;
}
.subnav a {
  padding: 6px 16px;
  border: 1px solid var(--dark);
  border-radius: 20px;
  text-decoration: none;
  color: var(--dark);
  font-size: .9rem;
}
.subnav a:hover { background: var(--dark); color: var(--white); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-top: 4px solid var(--sage);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
}
.card h2 { font-size: 1.4rem; }
.card p { flex: 1; }
.card .btn { align-self: flex-start; }

/* Two columns: text + image */
.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
.split img { border-radius: 4px; }

.note {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  padding: 14px 18px;
  margin: 1.2rem 0;
}
/* Extra backgrounds that can be chosen per paragraph in the admin */
.note.note-warm { background: #f7f1e6; border-left-color: #e2d1b0; }
.note.note-grijs { background: #f1f1f1; border-left-color: #d2d2d2; }

.price-list { list-style: none; padding: 0; }
.price-list li { padding: 8px 0; border-bottom: 1px solid #e3e3e3; }

.map {
  width: 100%;
  height: 340px;
  border: 0;
  margin-top: 1rem;
}
/* Clickable map picture: the pin is in the middle of the image, so crop around the centre */
.map-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.map-link picture, .map-link img { width: 100%; height: 100%; }
.map-link img { object-fit: cover; object-position: center; transition: transform .4s ease; }
.map-link:hover img { transform: scale(1.03); }
.map-cta {
  position: absolute;
  right: 14px; bottom: 14px;
  padding: 10px 18px;
  background: var(--dark);
  color: var(--white);
  border-radius: 3px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.map-link:hover .map-cta { background: #555; }
.map-link:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.map-credit { margin: .4rem 0 0; font-size: .75rem; color: var(--muted); text-align: right; }
.map-credit a { color: inherit; }
/* ----- Footer ----- */
.site-footer {
  background: var(--dark);
  color: #ddd;
  padding: 36px 0;
  font-size: .95rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  justify-content: space-between;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { width: 100%; color: #bbb; font-size: .85rem; }
.site-footer .copy a { color: #bbb; text-decoration: underline; }

/* ----- Mobile ----- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.3rem; }
  .split { grid-template-columns: 1fr; }

  section { padding: 40px 0; }
  .banner { padding: 36px 0 30px; }
  .subnav a { padding: 10px 16px; }

  /* Smaller hero image for phones; full-width shading because text spans the whole screen */
  .hero {
    background-image: url("images/hero-mobile.jpg");
    background-image: image-set(url("images/hero-mobile.webp") type("image/webp"), url("images/hero-mobile.jpg") type("image/jpeg"));
  }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45) 45%, rgba(0,0,0,.2)); }

  .main-nav a { padding: 12px 14px; }

  .nav-toggle-label { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark);
    padding: 10px 20px 20px;
  }
  .main-nav ul { flex-direction: column; }
  .nav-toggle:checked ~ .main-nav { display: block; }
}
