/* =========================================================
   Piano Studio door Benjamin Bertels — stylesheet
   Plain CSS, no build step required.
   ========================================================= */

:root {
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", serif;

  --color-bg: #f7f5f0;
  --color-bg-alt: #ece8dd;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #58554d;
  --color-border: #d6d1c2;
  --color-accent: #1a1a1a;
  --color-accent-dark: #000000;

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.25);
  --max-width: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
ul[class] { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.15rem; }
.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}
.muted { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-text);
}

/* Vertical rhythm for long-form text blocks */
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.4rem; list-style: disc; }

/* Small layout utilities */
.stack-lg { margin-top: 2.5rem; }
.mx-auto { margin-inline: auto; }
.justify-center { justify-content: center; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 65ch; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.75rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--color-text);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon { width: 34px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-heading); }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--color-text); }
.brand-sub { font-size: 0.72rem; color: var(--color-text-muted); font-family: var(--font-body); font-weight: 500; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--color-text); border-radius: 2px; }

.main-nav .nav-list {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 1.25rem 1rem;
}
.main-nav.is-open .nav-list { display: flex; }

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--color-accent); }
.nav-list a[aria-current="page"] { color: var(--color-accent); border-color: var(--color-accent); }
.nav-cta {
  background: var(--color-accent);
  color: var(--color-bg) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  border-bottom: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--color-accent-dark); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .main-nav .nav-list {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: none;
    border: 0;
    padding: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-secondary { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--color-accent); color: var(--color-bg); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-photo { display: block; }
}
.hero h1 { margin-top: 0.5rem; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-photo { display: none; margin: 0; width: 100%; max-width: 320px; justify-self: center; }
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.hero-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-icon { width: 30px; height: 30px; color: var(--color-accent); margin-bottom: 0.85rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Facts ---------- */
.fact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}
.fact {
  padding: 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.fact dt { font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.25rem; }
.fact dd { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-bg); margin-bottom: 0.5rem; }
.cta-band p { margin-bottom: 1.5rem; color: var(--color-bg-alt); }
.cta-band .btn-primary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-bg); }
.cta-band .btn-primary:hover, .cta-band .btn-primary:focus-visible { background: var(--color-bg-alt); border-color: var(--color-bg-alt); }

/* ---------- Pricing table ---------- */
.table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
table.pricing { width: 100%; border-collapse: collapse; min-width: 620px; }
table.pricing th, table.pricing td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
table.pricing thead th {
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 600;
}
table.pricing tbody tr:last-child td { border-bottom: 0; }
table.pricing tbody tr:nth-child(even) { background: var(--color-bg-alt); }

/* ---------- Forms ---------- */
.form { max-width: 640px; margin-top: 2rem; display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.75rem; }
.form-status { font-size: 0.9rem; margin-top: 0.5rem; color: var(--color-accent-dark); font-weight: 600; }

/* ---------- Contact info & map ---------- */
.contact-info { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-info a { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-caption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Summary list (over-mij) ---------- */
.summary-list { margin-top: 1rem; display: grid; gap: 0.6rem; }
.summary-list li { padding-left: 1.4rem; position: relative; }
.summary-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ---------- Error page ---------- */
.error-page { padding-block: 6rem; text-align: center; }
.error-page .error-code { font-size: 4.5rem; color: var(--color-accent); margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: var(--color-bg-alt); margin-top: 4rem; }
.footer-inner {
  padding-block: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-inner a { color: var(--color-bg-alt); text-decoration: none; }
.footer-inner a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-inner p + p { margin-top: 0.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: #c9c2b6;
  text-align: center;
}
