/* The Tooth Fairy Workshop — Nurhan San Martin, tandarts
   Layout: one calm scrolling page; asymmetric hero (text + arched portrait),
   with the weekly schedule strip as the site's signature element. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 300 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour — cool mint paper, pine ink, sage action, lilac "fairy dust" */
  --bg: #f3f7f4;
  --surface: #ffffff;
  --mint: #e1efe6;
  --mint-strong: #cfe5d8;
  --ink: #17322c;
  --ink-soft: #4b6660;
  --sage: #3e7a66;
  --sage-deep: #2d6151;
  --on-sage: #ffffff;
  --lilac: #8c7bc4;
  --lilac-soft: #eeeaf8;
  --line: #d4e3db;
  --focus: #6c5bb0;
  --danger: #b3364a;
  --cookie: #d6a467;
  --chip: #5b3d28;
  --select: #bfe5d1;
  --band: #17322c;
  --band-ink: #f1f6f3;
  --band-soft: #b9cec6;
  --band-card: #1f3d36;
  --band-line: #2c4b43;
  --shadow: 0 1px 2px rgb(23 50 44 / 0.06), 0 12px 32px -12px rgb(23 50 44 / 0.18);

  /* type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  /* space & shape */
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1917;
    --surface: #16231f;
    --mint: #18292a;
    --mint-strong: #1f3633;
    --ink: #e2ede8;
    --ink-soft: #a5bcb4;
    --sage: #86c7ae;
    --sage-deep: #a2d8c3;
    --on-sage: #0d1916;
    --lilac: #b8a9ee;
    --lilac-soft: #26213a;
    --line: #293c37;
    --focus: #c4b8f2;
    --danger: #ff9aa9;
    --cookie: #c8955a;
    --chip: #3f2a1c;
  --select: #2d574b;
    --band: #1a2e2a;
    --band-ink: #e2ede8;
    --band-soft: #a5bcb4;
    --band-card: #213833;
    --band-line: #2f4a44;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -14px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1917;
  --surface: #16231f;
  --mint: #18292a;
  --mint-strong: #1f3633;
  --ink: #e2ede8;
  --ink-soft: #a5bcb4;
  --sage: #86c7ae;
  --sage-deep: #a2d8c3;
  --on-sage: #0d1916;
  --lilac: #b8a9ee;
  --lilac-soft: #26213a;
  --line: #293c37;
  --focus: #c4b8f2;
  --danger: #ff9aa9;
  --cookie: #c8955a;
  --chip: #3f2a1c;
  --select: #2d574b;
  --band: #1a2e2a;
  --band-ink: #e2ede8;
  --band-soft: #a5bcb4;
  --band-card: #213833;
  --band-line: #2f4a44;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -14px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@view-transition { navigation: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { /* paints the phone status-bar band under the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 480; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
h1 { font-size: var(--step-4); font-weight: 440; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 560; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(1140px + var(--gutter-l) + var(--gutter-r)); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: var(--section); }
.section--mint { background: var(--mint); }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .5em;
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--sage);
}
.eyebrow svg { width: 12px; height: 12px; fill: var(--lilac); flex: none; margin-top: .22em; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.section-head { display: grid; gap: .9rem; max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--ink-soft); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder text that still needs confirming — remove class when filled in */
.todo { background: var(--lilac-soft); color: var(--ink); border-bottom: 1.5px dashed var(--lilac); padding: 0 .25em; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--sage); --_fg: var(--on-sage);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--_bg);
  background: var(--_bg); color: var(--_fg); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { --_bg: var(--sage-deep); color: var(--_fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --_bg: var(--surface); --_fg: var(--ink); border-color: var(--sage); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(23 50 44 / .5); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.brand-name { font-family: var(--display); font-size: 1.12rem; font-weight: 520; line-height: 1.05; letter-spacing: -0.005em; }
.brand-name small { display: block; font-family: var(--body); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  position: relative; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; border-radius: 8px;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--lilac); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: .5rem; }
.lang a, .lang span { font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .6rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); line-height: 1; }
.lang [aria-current="true"] { background: var(--ink); color: var(--bg); }
.lang a:hover { color: var(--ink); background: var(--mint); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .35s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .75rem var(--gutter-r) 1.25rem var(--gutter-l);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgb(23 50 44 / .45);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav a:not(.btn) { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: .75rem; }
  .lang { align-self: flex-start; margin: .9rem 0 0; }
}
@media (max-width: 420px) { .brand-name small { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

.portrait { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; }
.portrait::before { /* offset arch echoing the frame */
  content: ""; position: absolute; inset: 0; border-radius: 999px 999px 26px 26px; background: var(--mint-strong); z-index: 0;
  transform: translate(14px, 14px);
}
.portrait picture { position: relative; z-index: 1; display: block; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 100%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .sparkle { position: absolute; z-index: 2; fill: var(--lilac); }
.portrait .sparkle--a { width: 34px; top: 3%; right: 4%; }
.portrait .sparkle--b { width: 18px; top: 16%; right: -3%; opacity: .7; }
.big-badge {
  position: absolute; z-index: 3; left: -6%; bottom: 7%;
  display: grid; gap: .1rem; padding: .7rem .95rem; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: .8rem; line-height: 1.3; color: var(--ink-soft); max-width: 15rem;
}
.big-badge strong { color: var(--ink); font-size: .9rem; font-weight: 650; display: flex; align-items: center; gap: .4rem; }
.big-badge strong svg { width: 16px; height: 16px; fill: var(--sage); flex: none; }
.big-badge .num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { width: min(78%, 340px); order: -1; margin-bottom: .5rem; }
  .big-badge { left: auto; right: -14%; bottom: 6%; }
}

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .portrait picture { animation: unveil 1s var(--ease) .1s both; }
  .portrait::before { animation: rise 1.1s var(--ease) both; }
  .portrait .sparkle--a { animation: twinkle 1.6s var(--ease) .7s both; }
  .portrait .sparkle--b { animation: twinkle 1.6s var(--ease) 1s both; }
  .big-badge { animation: rise .8s var(--ease) .55s both; }
}
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(18% 0 0 0 round 999px 999px 26px 26px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); } }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 60% { opacity: 1; transform: scale(1.15) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- week strip (signature) ---------- */
.week { margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, .8rem + 1vw, 1.6rem); box-shadow: var(--shadow); }
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.week-head h2 { font-size: var(--step-2); }
.week-head p { color: var(--ink-soft); font-size: var(--step--1); }
.week ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.day {
  position: relative; display: grid; align-content: start; gap: .2rem; padding: .95rem 1rem 1rem; border-radius: var(--radius-sm);
  background: var(--mint); min-width: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.day:hover { transform: translateY(-2px); }
.day--b { background: var(--lilac-soft); }
.day--open { background: transparent; border: 1.5px dashed var(--line); }
.day-name abbr { text-decoration: none; cursor: default; }
.day-name { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.day-place { font-family: var(--display); font-size: 1.12rem; font-weight: 540; line-height: 1.2; }
.day-town { font-size: .875rem; color: var(--ink-soft); }
.day-hours { margin-top: .35rem; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.day--open .day-place { color: var(--sage); }
.day--open .day-hours a { font-weight: 600; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--sage); }
.today-tag { position: absolute; top: .8rem; right: .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-sage); background: var(--sage); padding: .2rem .5rem; border-radius: 999px; }
@media (max-width: 760px) {
  .week ol { grid-template-columns: 1fr; gap: .45rem; }
  .day { grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: baseline; column-gap: .75rem; padding: .8rem .9rem; }
  .day-name { grid-row: 1 / span 2; }
  .day-town { grid-column: 2; }
  .day-hours { grid-column: 3; grid-row: 1; margin: 0; text-align: right; }
  .today-tag { position: static; grid-column: 3; grid-row: 2; justify-self: end; }
  .day--open .day-hours { grid-column: 2; grid-row: 3; text-align: left; margin-top: .2rem; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.prose { display: grid; gap: 1.1rem; max-width: 36rem; }
.prose p:first-child { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.facts { margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.4rem; }
.facts > div { display: grid; gap: .15rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.facts dd .num { font-variant-numeric: tabular-nums; }

.values { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.values h3.values-title { font-size: var(--step-2); font-weight: 480; margin-bottom: 1.5rem; }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.values li { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 2px solid var(--mint-strong); }
.values li h4 { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 540; display: flex; align-items: center; gap: .5rem; }
.values li h4 svg { width: 14px; height: 14px; fill: var(--lilac); flex: none; }
.values li p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .values ul { grid-template-columns: 1fr; }
}

/* ---------- care ---------- */
.care-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.care-list li { display: grid; gap: .25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--mint-strong); }
.care-list h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 650; }
.care-list p { color: var(--ink-soft); font-size: .975rem; }
.fees { background: var(--surface); border-radius: var(--radius); padding: clamp(1.3rem, 1rem + 1vw, 1.9rem); display: grid; gap: .9rem; box-shadow: var(--shadow); }
.fees h3 { font-size: var(--step-1); }
.fees p { color: var(--ink-soft); font-size: .975rem; }
.fees small { color: var(--ink-soft); font-size: .875rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translate(2px, -2px); }
@media (max-width: 860px) { .care-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .care-list { grid-template-columns: 1fr; } }

/* ---------- locations ---------- */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 2vw, 1.75rem); }
.place {
  display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.place:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-strong); }
.place-head { display: grid; gap: .3rem; }
.place-town { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.place h3 { font-size: var(--step-2); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .875rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--mint); color: var(--ink); font-variant-numeric: tabular-nums; }
.place--b .chips li { background: var(--lilac-soft); }
.place address { font-style: normal; color: var(--ink-soft); line-height: 1.55; }
.place .phone { font-weight: 650; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.place .phone:hover { color: var(--sage); }
.place-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.note { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--mint); color: var(--ink-soft); font-size: .95rem; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; stroke: var(--sage); fill: none; stroke-width: 2; stroke-linecap: round; }
.note strong { color: var(--ink); }
@media (max-width: 760px) { .places { grid-template-columns: 1fr; } }

/* ---------- locum ---------- */
.locum { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); }
.locum .eyebrow { color: var(--band-soft); }
.locum h2 { color: var(--band-ink); }
.locum-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.locum-intro { display: grid; gap: 1.2rem; }
.locum-intro > p { color: var(--band-soft); font-size: var(--step-1); line-height: 1.55; }
.locum-facts { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.locum-facts li { display: flex; gap: .7rem; align-items: baseline; color: var(--band-ink); }
.locum-facts svg { width: 12px; height: 12px; fill: var(--lilac); flex: none; transform: translateY(1px); }
.locum .todo { color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--band-card); border: 1px solid var(--band-line); }
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  font-family: var(--display); font-size: 1.25rem; font-weight: 560; background: var(--lilac); color: #191530;
}
.steps h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 650; color: var(--band-ink); }
.steps p { color: var(--band-soft); font-size: .975rem; }
.locum .btn { --_bg: #b8a9ee; --_fg: #191530; border-color: #b8a9ee; margin-top: .6rem; justify-self: start; }
.locum .btn:hover { --_bg: #cdc2f4; border-color: #cdc2f4; }
.locum-dust { position: absolute; right: -50px; top: -40px; width: 280px; opacity: .09; fill: #b8a9ee; pointer-events: none; }
@media (max-width: 860px) { .locum-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.contact-aside { display: grid; gap: 1.2rem; }
.contact-aside p { color: var(--ink-soft); }
.patient-note { display: grid; gap: .3rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--lilac-soft); font-size: .95rem; color: var(--ink-soft); }
.patient-note strong { color: var(--ink); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 650; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mint-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background-color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 18%, transparent); }
.field .error { font-size: .85rem; color: var(--danger); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.form-foot small { color: var(--ink-soft); font-size: .85rem; max-width: 26rem; }
.form-status { grid-column: 1 / -1; display: none; gap: .3rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.is-visible { display: grid; animation: rise .45s var(--ease) both; }
.form-status[data-kind="ok"] { background: var(--mint); color: var(--ink); }
.form-status[data-kind="info"] { background: var(--lilac-soft); color: var(--ink); }
.form-status[data-kind="error"] { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--ink); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- privacy statement (privacy/ and en/privacy/) ---------- */
.legal-body { display: grid; gap: 1rem; max-width: 44rem; }
.legal-body h1 { font-size: var(--step-3); }
.legal-body h2 { font-size: var(--step-1); font-weight: 560; letter-spacing: 0; margin-top: 1.25rem; }
.legal-body p { color: var(--ink-soft); }
.legal-body .lead { color: var(--ink); }
.legal-date { font-size: .875rem; }
.legal-back { margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 3rem 2.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-brand { display: grid; gap: .8rem; align-content: start; }
.footer-brand .brand { margin: 0; }
.site-footer h2 { font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--sage); }
.site-footer .num { font-variant-numeric: tabular-nums; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- footer cookie easter egg: three bites and it's gone ---------- */
.snack-note { display: inline-flex; align-items: center; gap: .55rem; margin: 0; }
.snack {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -4px 0;
  padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.snack svg { width: 24px; height: 24px; overflow: visible; transition: transform .2s var(--ease); }
.snack-dough { fill: var(--cookie); }
.snack-chip { fill: var(--chip); }
.snack .bite { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
.snack .bite.is-bitten { transform: scale(1); }
.snack:hover svg { animation: wiggle .5s var(--ease); }
.snack:active svg { transform: scale(.86); }
.snack.is-gone { transform: scale(0) rotate(-40deg); opacity: 0; pointer-events: none; }
.crumb { position: absolute; left: 50%; top: 55%; width: 4px; height: 4px; border-radius: 1px; background: var(--cookie); pointer-events: none; animation: crumb .7s var(--ease) forwards; }
.puff { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; fill: var(--lilac); pointer-events: none; animation: puff .8s var(--ease) forwards; }
.snack-text { transition: opacity .3s var(--ease); }
.snack-text.is-swapping { opacity: 0; }
.snack-text:focus { outline: none; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -14deg; } 65% { rotate: 9deg; } }
@keyframes crumb { from { opacity: 1; transform: translate(0, 0) rotate(0); } to { opacity: 0; transform: translate(var(--dx), 26px) rotate(var(--rot)); } }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); } }

/* ---------- more easter eggs (behaviour in assets/js/eggs.js) ---------- */
/* minty-fresh text selection */
::selection { background: var(--select); color: var(--ink); }

/* speech bubble */
.egg-bubble {
  position: absolute; z-index: 2; width: max-content; max-width: 16rem; padding: .5rem .8rem; border-radius: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 600 .875rem/1.35 var(--body); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; pointer-events: none;
  animation: bubble-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes bubble-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

/* 1 · polish the logo: three taps and it twirls */
.logo-wrap { position: relative; display: inline-grid; flex: none; }
.logo-wrap img { filter: drop-shadow(0 0 calc(var(--shine, 0) * 1.8px) rgb(184 169 238 / calc(var(--shine, 0) * .19))); transition: filter .3s var(--ease), transform .5s var(--ease); }
.logo-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / .95) 50%, transparent 62%) no-repeat 140% 0 / 260% 100%;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat; mask: url("../img/logo.svg") center / contain no-repeat;
}
.logo-wrap.is-gleaming::after { animation: gleam .65s var(--ease); }
.logo-wrap.is-joy img { animation: logo-joy 1s var(--ease); }
.logo-wrap .egg-bubble { top: calc(100% + 10px); left: -4px; transform-origin: 20px 0; }
.logo-wrap .egg-bubble::before { content: ""; position: absolute; left: 18px; top: -6px; width: 10px; height: 10px; background: inherit; border: inherit; border-width: 1px 0 0 1px; rotate: 45deg; }
@keyframes gleam { from { opacity: 1; background-position: 140% 0; } to { opacity: 1; background-position: -40% 0; } }
@keyframes logo-joy {
  0% { transform: none; }
  35% { transform: translateY(-9px) rotate(-200deg) scale(1.18); }
  70% { transform: translateY(-2px) rotate(-360deg) scale(1.06); }
  100% { transform: rotate(-360deg); }
}

/* 2 · the "Afspraak maken" button gets a nervous little visitor (fixed colours, like the logo) */
.tooth-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tooth-svg .t-body { fill: #fff; stroke: #3e7a66; stroke-width: 2.8; stroke-linejoin: round; }
.tooth-svg .t-eye { fill: #17322c; }
.tooth-svg .t-glint { fill: #fff; }
.tooth-svg .t-line { fill: none; stroke: #17322c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tooth-svg .t-cheek { fill: #f2b3c4; opacity: .75; }
.tooth-svg .t-sweat { fill: #8fd0f2; }
.tooth-svg .t-happy, .tooth-svg .t-brows, .tooth-svg .t-wobble, .tooth-svg .t-sweat { display: none; }
[data-mood="nervous"] .t-brows, [data-mood="nervous"] .t-wobble, [data-mood="nervous"] .t-sweat { display: inline; }
[data-mood="nervous"] .t-smile, [data-mood="nervous"] .t-cheek { display: none; }
[data-mood="happy"] .t-open { display: none; }
[data-mood="happy"] .t-happy { display: inline; }
.has-peek { position: relative; }
.peek { position: absolute; right: 18px; bottom: calc(100% - 1px); width: 50px; height: 42px; pointer-events: none; }
.peek-hole { position: absolute; inset: -20px -10px 0; overflow: hidden; }
.peek-tooth { position: absolute; left: 10px; top: 20px; width: 50px; height: 50px; transform: translateY(100%); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.btn .peek .peek-tooth svg, .btn:hover .peek .peek-tooth svg { width: 100%; height: 100%; transform: none; }
.peek.is-up .peek-tooth { transform: translateY(14%); }
.peek.is-up [data-mood="nervous"] { animation: shiver .12s linear infinite alternate; }
.peek .egg-bubble { left: calc(100% - 2px); bottom: 26px; max-width: 14.5rem; transform-origin: 0 100%; border-bottom-left-radius: 4px; }
@keyframes shiver { from { translate: -.6px 0; } to { translate: .6px 0; } }

/* 3 · Sinterklaas season: the cookie becomes a pepernoot */
.snack-note.is-sint .snack svg { width: 21px; height: 21px; }
.snack-note.is-sint .snack-dough { fill: #a7622c; }
.snack-note.is-sint .snack-chip { fill: #d9a46a; transform: scale(.42); transform-box: fill-box; transform-origin: center; }
.snack-note.is-sint .crumb { background: #a7622c; }

/* ---------- scroll reveal (progressive enhancement, CSS only) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
@keyframes reveal { from { opacity: .3; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
