/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Shared easing token */
:root { --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.0625rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--color-primary); }

/* ── Layout ───────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section:nth-of-type(even), .section-alt { background: #fff; }

h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
  letter-spacing: 0;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark-blue);
  margin-bottom: .4rem;
}

.section-intro, .section-note {
  margin-bottom: 2rem;
  max-width: 650px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Header & Nav ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--color-dark-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo { display: flex; align-items: center; transition: opacity .3s var(--ease); }
.site-logo:hover { opacity: .8; }
.site-logo img { height: 38px; width: auto; display: block; }

header nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
}

header nav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
}
header nav a:hover {
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

/* Hamburger — CSS only */
.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-content {
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-intro {
  color: rgba(255,255,255,.9);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.klantenstop-banner {
  background: var(--color-bg);
  color: var(--color-text);
  padding: .75rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  /* max-width: 600px; */
  margin-left: auto;
  margin-right: auto;
  font-size: .95rem;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(178,155,92,.2);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
.btn-primary:hover {
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(118,96,35,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(118,96,35,.2); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-result {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .95rem;
}
.form-result--success { background: #e6f4ea; color: #2d6a4f; }
.form-result--error   { background: #fdecea; color: #b00020; }

/* ── Two-column layout ────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col-image img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.two-col-text p { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.8; }

/* ── Diploma list ─────────────────────────────────────── */
.diploma-list {
  list-style: none;
  margin-top: 1rem;
}
.diploma-list li {
  padding: .4rem 0 .4rem 1.25rem;
  position: relative;
  border-bottom: 1px solid #eee;
}
.diploma-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Treatment cards ──────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-top: 4px solid var(--color-primary);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.section-alt .card { background: var(--color-bg); }

.card h3 { color: var(--color-dark-blue); margin-bottom: .5rem; }
.card p   { font-size: 1rem; color: #555; flex-grow: 1; line-height: 1.7; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: .9rem;
}
.duration { color: #777; }
.price    { font-weight: 700; color: var(--color-dark); }

/* ── Clickable card hint ──────────────────────────────── */
.card-clickable { cursor: pointer; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.card-clickable:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(33,65,89,.13); }
.card-clickable:active { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(33,65,89,.1); }
.card-clickable:hover .card-image img { transform: scale(1.08); }

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
  pointer-events: none;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .04em;
  text-transform: uppercase;
  align-self: flex-end;
}
.card-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card-clickable:hover .card-plus {
  background: var(--color-primary);
  color: #fff;
}

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33,65,89,.55);
  backdrop-filter: blur(3px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-image-wrap {
  width: calc(100% + 5rem);
  margin: -2.5rem -2.5rem 1.5rem;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.modal-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
  pointer-events: none;
}
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: var(--color-dark-blue);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), transform .2s var(--ease);
}
.modal-close:hover { background: var(--color-dark); transform: rotate(90deg); }

.modal-title {
  font-size: 1.6rem;
  color: var(--color-dark-blue);
  margin-bottom: .75rem;
  padding-right: 2rem;
}

.modal-description {
  color: #555;
  font-size: .95rem;
  margin-bottom: 0;
}

.modal-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 1.25rem 0;
}

.modal-details {
  color: #444;
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
  font-size: .9rem;
}
.modal-meta .duration { color: #777; }
.modal-meta .modal-price { font-weight: 700; color: var(--color-dark); font-size: 1.1rem; }

/* ── Price table ──────────────────────────────────────── */
.price-group { margin-bottom: 2rem; }

.price-group-title {
  margin: 2.5rem 0 .25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  border-left: 4px solid var(--color-primary);
  padding-left: .75rem;
}

.price-combo {
  font-size: .85rem;
  color: var(--color-primary);
  font-style: italic;
  margin: 0 0 .75rem .75rem;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

thead th {
  text-align: left;
  padding: .6rem .75rem;
  background: var(--color-dark-blue);
  color: #fff;
  font-weight: 600;
}

tbody tr:nth-child(even) { background: rgba(0,0,0,.03); }

tbody tr { transition: background .2s var(--ease); }
tbody tr:hover { background: rgba(178,155,92,.07) !important; }

tbody td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #e8e8e8;
}

.price-col { text-align: right; font-weight: 600; color: var(--color-dark); }
thead th.price-col { font-weight: 600; color: rgba(255,255,255,.45); }

/* ── House rules accordion ────────────────────────────── */
#huisregels { background: var(--color-light-blue) !important; }
.rules-list { margin-top: 1.5rem; }

.rule {
  margin-bottom: .5rem;
  border-left: 4px solid var(--color-blue);
  background: #fff;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.section-alt .rule { background: var(--color-bg); }
#huisregels .rule  { background: #fff; }

.rule summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark-blue);
  user-select: none;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.rule summary:hover { background: rgba(66,158,191,.07); }
.rule summary::-webkit-details-marker { display: none; }
.rule summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-blue);
  transition: transform .35s var(--ease), color .3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.rule[open] summary::after { transform: rotate(45deg); }
.rule[open] summary { background: rgb(243, 243, 243); }

.rule p {
  padding: 1.25rem 1.25rem 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* ── Contact ──────────────────────────────────────────── */
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { margin-bottom: 1rem; }
.contact-info a  { color: var(--color-dark); text-decoration: none; transition: color .3s var(--ease); }
.contact-info a:hover { color: var(--color-primary); text-decoration: none; }

.contact-map {
  width: 100%;
  height: 320px;
  margin-top: -80px;
  margin-bottom: 40px;
}

.map-marker {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.contact-form-wrap { padding-top: .5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--color-dark-blue);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(66,158,191,.2);
}
.form-group textarea { resize: vertical; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--color-dark-blue);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

footer a { color: var(--color-primary); text-decoration: none; transition: opacity .3s var(--ease); }
footer a:hover { opacity: .75; }
footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.footer-logo { height: 36px; width: auto; margin-bottom: .75rem; }
footer p { font-size: .9rem; line-height: 1.7; }
.vat { font-size: .8rem; opacity: .6; margin-top: .5rem; }
.copyright { text-align: right; font-size: .85rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin-top: .5rem;
  justify-content: flex-end;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: #fff; }

/* ── Subpage content ──────────────────────────────────── */
.page-content { padding: 4rem 0; }
.page-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: .9rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.page-back:hover { color: var(--color-dark); }
.page-content h2 { margin-bottom: 1.5rem; }
.page-content h3 { margin-top: 2rem; margin-bottom: .5rem; }
.page-content p, .page-content ul { margin-bottom: 1rem; }
.page-content ul { padding-left: 1.5rem; }

/* ── Back to top ──────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: .85;
  transition: opacity .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.back-to-top:hover {
  background: var(--color-dark);
  opacity: 1;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(118,96,35,.35);
}
.back-to-top.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* ── Responsive: 768px ────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }

  header nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-dark-blue);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  header nav ul { flex-direction: column; gap: 0; }
  header nav a  { display: block; padding: .65rem .75rem; }

  .nav-toggle-input:checked ~ nav { display: block; }

  .header-inner { position: relative; }

  .two-col         { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner    { grid-template-columns: 1fr; gap: 1rem; }
  .footer-col:last-child { text-align: left; }
  .copyright       { text-align: left; }
  .footer-links    { justify-content: flex-start; }
  .footer-links a  {
    display: block;
    width: 100%;
  }

  .hero h1         { font-size: 1.8rem; }

  /* Price table → card layout on mobile */
  #prijslijst .table-wrap { overflow-x: visible; }
  #prijslijst thead { display: none; }
  #prijslijst tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: .1rem .5rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
  }
  #prijslijst tbody tr:hover { background: rgba(178,155,92,.06) !important; }
  #prijslijst tbody td {
    display: block;
    padding: 0;
    border: none;
    font-size: .9rem;
  }
  /* Treatment name — full width, bold */
  #prijslijst tbody td[data-label="Behandeling"] {
    grid-column: 1;
    grid-row: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-dark-blue);
  }
  /* Price — top right, prominent */
  #prijslijst tbody td[data-label="Prijs"] {
    grid-column: 2;
    grid-row: 1;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    text-align: right;
    white-space: nowrap;
  }
  /* Duration + extra time — separate rows, muted */
  #prijslijst tbody td[data-label="Duur"] {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #888;
    font-size: .82rem;
  }
  #prijslijst tbody td[data-label="Extra tijd"] {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #888;
    font-size: .82rem;
  }
  #prijslijst tbody td[data-label="Duur"]::before { content: attr(data-label) ': '; font-weight: 500; }
  #prijslijst tbody td[data-label="Extra tijd"]::before { content: attr(data-label) ': '; font-weight: 500; }
  /* Hide empty secondary fields */
  #prijslijst tbody td.td-empty { display: none; }
}

/* ── Responsive: 480px ────────────────────────────────── */
@media (max-width: 480px) {
  section { padding: 3rem 0; }
  h2      { font-size: 1.7rem; }
  .table-wrap { font-size: .85rem; }
}
