@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-v1.woff2") format("woff2");
}

/* Shera's Voetzorg: colours from the business card (cream, sage leaves, gold rule, dark green type).
   Type rules and hierarchy: DESIGN.md. Use these tokens; do not add new sizes, weights or fonts. */
:root {
  --creme: #fbf8f1;
  --papier: #ffffff;
  --inkt: #2f4a3a;
  --inkt-zacht: #566b5d;
  --salie: #8fae7e;
  --salie-licht: #e8efe2;
  --goud: #c4a35a;
  --rand: #e4ddcc;

  --kop: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --tekst: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-naam: clamp(36px, 10vw, 54px);   /* the practice name in the header, once per page */
  --fs-titel: 34px;                      /* page title (terms, 404) */
  --fs-kop: 28px;                        /* section heading (h2) */
  --fs-subkop: 21px;                     /* sub heading (h3), prices */
  --fs-groot: 20px;                      /* intro line, address */
  --fs-basis: 18px;                      /* body text */
  --fs-klein: 16px;                      /* notes, descriptions */
  --fs-mini: 14px;                       /* labels and header pills only */

  --goot: 20px;                          /* side gutter */
  --tak: clamp(48px, 10vw, 105px);       /* width of the leaf branches */
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--inkt);
  font: 400 var(--fs-basis)/1.55 var(--tekst);
}

img { max-width: 100%; }

a { color: var(--inkt); font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Every Fraunces element shares one weight and one variation setting. */
h1, h2, h3, .ondertitel, .terug, .prijslijst dd {
  font-family: var(--kop); font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 0; line-height: 1.15; margin: 0;
}

.klein { font-size: var(--fs-klein); color: var(--inkt-zacht); }

/* Fixed background: soft blue washes and the leaf branches stay put while the page scrolls. */
.achtergrond {
  /* Sized to the large viewport (browser bars hidden), so nothing moves when Safari's bars slide in or out. */
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 30% at 18% 14%, rgba(196, 210, 238, 0.85), transparent 72%),
    radial-gradient(ellipse 85% 50% at 0% 0%, rgba(212, 222, 244, 0.9), transparent 70%),
    radial-gradient(ellipse 55% 30% at 82% 86%, rgba(196, 210, 238, 0.85), transparent 72%),
    radial-gradient(ellipse 85% 50% at 100% 100%, rgba(212, 222, 244, 0.9), transparent 70%);
}
/* The two watercolour branches cut from the digital business card, placed as on the card:
   one hanging from the top edge on the right, one rising from the bottom edge on the left. */
.tak { position: absolute; height: auto; width: var(--tak); opacity: 0.55; }
.tak-boven { top: 0; left: 0; transform: scaleX(-1); }
.tak-onder { right: 0; bottom: 0; transform: scaleX(-1); }

/* Header: name, subtitle and a gold line exactly as wide as the name. */
.kop { text-align: center; padding: 44px var(--goot) 12px; }
.kop-blok { display: inline-block; }
.kop h1 { font-size: var(--fs-naam); letter-spacing: 0.02em; }
.ondertitel { font-size: clamp(var(--fs-subkop), 6vw, var(--fs-kop)); margin: 4px 0 0; letter-spacing: 0.01em; }
.goudlijn { width: 100%; border: 0; border-top: 3px solid var(--goud); margin: 14px 0 0; }
.kop-knoppen { display: none; }

/* Sticky header that shrinks while scrolling: CSS only (the site runs no scripts).
   The name slides to the left and Bellen / WhatsApp appear on the right once the big buttons have scrolled away.
   Browsers without scroll-driven animations keep a normal header without the pills. */
@supports (animation-timeline: scroll()) {
  .kop {
    position: sticky; top: 0; z-index: 10;
    animation: kop-krimp linear both; animation-timeline: scroll(root); animation-range: 0 140px;
  }
  .kop-blok { animation: kop-links linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  .kop h1 { animation: kop-naam linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  .ondertitel { animation: kop-onder linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  .goudlijn { animation: kop-lijn linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  .kop-knoppen {
    display: flex; gap: 6px; position: absolute; bottom: 12px; right: max(var(--goot), 50vw - 300px);
    animation: kop-knoppen-in linear both; animation-timeline: scroll(root); animation-range: 170px 240px;
  }
  section { scroll-margin-top: 80px; }
}
@keyframes kop-krimp {
  from { background-color: rgba(251, 248, 241, 0); }
  to { padding-top: 10px; padding-bottom: 8px; background-color: rgba(251, 248, 241, 0.94); box-shadow: 0 1px 0 var(--rand); }
}
/* Left edge of the name ends on the text column's left edge. */
@keyframes kop-links { to { translate: calc(max(var(--goot), 50vw - 300px) - 50vw + 50%) 0; } }
@keyframes kop-naam { to { font-size: clamp(19px, 5vw, 26px); letter-spacing: 0.01em; } }
@keyframes kop-onder { to { font-size: var(--fs-mini); margin-top: 0; } }
@keyframes kop-lijn { to { margin-top: 6px; border-top-width: 2px; } }
@keyframes kop-knoppen-in {
  from { opacity: 0; visibility: hidden; translate: 0 6px; }
  to { opacity: 1; visibility: visible; translate: 0 0; }
}

/* Buttons */
.knoppen { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.knoppen-contact { margin: 18px 0 24px; }
.knop, .pil {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.5px solid var(--inkt);
  background: var(--papier); color: var(--inkt);
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.knop { min-height: 48px; padding: 0 20px; }
.pil { min-height: 40px; padding: 0 11px; font-size: var(--fs-mini); }
.knop-primair, .pil-primair { background: var(--inkt); color: var(--papier); }
.knop:focus-visible, .pil:focus-visible { outline: 3px solid var(--goud); outline-offset: 2px; }

/* Text column. */
main, footer, .kop-klein { max-width: 640px; margin: 0 auto; padding: 0 var(--goot); }

/* Welcome: intro, buttons and a photo of the practice (side by side from 700 px). */
.welkom { text-align: center; padding-top: 24px; }
.intro { max-width: 30ch; margin: 0 auto 22px; font-size: var(--fs-groot); }
.welkom .knop { flex: 1 1 auto; }
.welkom-foto { display: block; width: 100%; height: auto; margin-top: 24px; border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 700px) {
  .welkom { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; text-align: left; }
  .intro { margin-left: 0; }
  .welkom .knoppen { justify-content: flex-start; }
  .welkom-foto { margin-top: 0; }
}

/* Sections */
section { padding: 40px 0 8px; }
section + section { border-top: 1px solid var(--rand); margin-top: 32px; }
section h2 { font-size: var(--fs-kop); margin-bottom: 12px; }
section h2::after { content: ""; display: block; width: 64px; border-top: 2px solid var(--goud); margin-top: 10px; }
section h3 { font-size: var(--fs-subkop); margin: 24px 0 8px; }

/* About: portrait next to the introduction, diplomas as cards. */
.over-mij { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.portret { flex: none; width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--salie); object-fit: cover; }
.over-mij p { margin: 0; }

.vinkjes { list-style: none; padding: 0; margin: 12px 0 16px; }
.vinkjes li { padding: 6px 0 6px 30px; position: relative; }
.vinkjes li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 12px; height: 7px; border-radius: 50% 0;
  background: var(--salie); transform: rotate(-30deg);
}

/* Price list */
.prijslijst { margin: 8px 0 0; }
.prijslijst div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--rand);
}
.prijslijst dt { font-weight: 600; }
.prijslijst dt span { display: block; font-weight: 400; font-size: var(--fs-klein); color: var(--inkt-zacht); }
.prijslijst dt .label {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--salie-licht); color: var(--inkt); font-size: var(--fs-mini); font-weight: 600;
}
.prijslijst dd { margin: 0; font-size: var(--fs-subkop); white-space: nowrap; }

.punten { list-style: none; padding: 0; margin: 8px 0 16px; }
.punten li { background: var(--papier); border: 1px solid var(--rand); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.punten strong { display: block; }

address { font-style: normal; font-size: var(--fs-groot); text-align: center; line-height: 1.6; }
address .klein { display: block; margin-top: 6px; line-height: 1.4; }

/* Contact as on the business card: the address between the nail clipper and the nail file. */
.adreskaart { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 6vw, 40px); margin-top: 8px; }
.gereedschap { height: auto; width: 54px; flex: none; }
.gereedschap-vijl { width: 44px; }
@media (max-width: 699px) {
  .adreskaart { gap: 12px; }
  address { font-size: var(--fs-basis); white-space: nowrap; }
}

footer { text-align: center; padding-top: 40px; padding-bottom: 48px; margin-top: 40px; border-top: 1px solid var(--rand); }
footer p { margin: 4px 0; }

/* Small header on the terms and 404 pages */
.kop-klein { padding-top: 20px; }
.terug { font-size: var(--fs-subkop); text-decoration: none; }
.terug::before { content: "\2039\00a0"; color: var(--goud); }
.tekst { padding-top: 24px; }
.tekst h1 { font-size: var(--fs-titel); margin: 8px 0 4px; }
.tekst h2 { font-size: var(--fs-subkop); margin: 28px 0 6px; }
.tekst h2::after { content: none; }
.tekst p, .tekst li { margin: 6px 0; }

@media (prefers-reduced-motion: no-preference) {
  .knop, .pil { transition: background-color 0.15s, color 0.15s; }
}
