:root {
  color-scheme: light;
  --bg: #f7f1e7;
  --paper: #ffffff;
  --ink: #672a0f;
  --muted: #6c594e;
  --line: #f0d9bd;
  --brand: #e4701e;
  --brand-dark: #672a0f;
  --blue: #27abd8;
  --accent: #e70074;
  --gold: #f7b221;
  --mist: #bbd7de;
  --soft: #f7ecdb;
  --urgent: #c1580e;
  --shadow: 0 24px 70px rgba(103, 42, 15, 0.12);
  --deep-shadow: 0 34px 90px rgba(103, 42, 15, 0.18);
  --radius: 22px;
  --container: min(1120px, calc(100vw - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(247, 178, 33, 0.22), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(39, 171, 216, 0.14), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.large-text {
  font-size: 20px;
}

body.large-text .lead,
body.large-text p,
body.large-text .button,
body.large-text .patient-actions a,
body.large-text .patient-actions button,
body.large-text .nav-links a,
body.large-text .utility-inner a {
  font-size: 1.12em;
}

body.large-text h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

body.large-text h2 {
  font-size: clamp(2.25rem, 3.4vw, 3.7rem);
}

body.high-contrast {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #111111;
  --line: #000000;
  --brand: #005a46;
  --brand-dark: #000000;
  --accent: #b00020;
  --soft: #ffffff;
  --urgent: #b00020;
  --shadow: none;
  --deep-shadow: none;
  background: #ffffff;
}

body.high-contrast .hero,
body.high-contrast .muted,
body.high-contrast .info-search,
body.high-contrast .urgent,
body.high-contrast .contact-section {
  background: #ffffff !important;
  color: #000000 !important;
}

body.high-contrast .hero::before,
body.high-contrast .hero::after,
body.high-contrast .ambient-shape,
body.high-contrast .urgent-pattern {
  display: none;
}

body.high-contrast .site-header,
body.high-contrast .utility-bar {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

body.high-contrast .site-header a,
body.high-contrast .utility-bar a,
body.high-contrast .access-toggle {
  color: #ffffff;
}

body.high-contrast .brand small {
  color: #ffffff;
}

body.high-contrast .nav-links a {
  color: #000000;
  background: #ffffff;
  border: 2px solid #000000;
}

body.high-contrast .button,
body.high-contrast .patient-actions a,
body.high-contrast .patient-actions button,
body.high-contrast .action-card,
body.high-contrast .glass-card,
body.high-contrast .info-search-inner,
body.high-contrast .urgent-call,
body.high-contrast .dates,
body.high-contrast .map-panel,
body.high-contrast .access-panel,
body.high-contrast .mindd-card,
body.high-contrast .thuisarts-form input {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.high-contrast .button.primary,
body.high-contrast .thuisarts-form button,
body.high-contrast .urgent-call.emergency {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

body.high-contrast .action-symbol,
body.high-contrast .icon,
body.high-contrast .info-modal {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

body.high-contrast a {
  text-decoration-thickness: 2px;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button,
a.button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 38px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 33, 29, 0.08);
}

.utility-bar {
  position: sticky;
  top: 0;
  z-index: 21;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.utility-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.utility-inner a:first-child {
  background: rgba(255, 255, 255, 0.18);
}

.utility-inner a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.access-menu {
  position: relative;
}

.access-toggle {
  min-width: 38px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 86px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.access-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.access-panel.is-open {
  display: grid;
  gap: 8px;
}

.access-panel button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.access-panel button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: 88px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 54px 0 54px;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 42%, rgba(247, 178, 33, 0.24), transparent 18%),
    radial-gradient(circle at 70% 18%, rgba(39, 171, 216, 0.16), transparent 30%),
    linear-gradient(118deg, #fffdf8 0%, #f7f1e7 43%, #f7ecdb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 84% 62%, rgba(79, 187, 216, 0.2), transparent 28%);
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  z-index: -1;
  background: linear-gradient(0deg, rgba(247, 248, 245, 1), rgba(247, 248, 245, 0));
}

.ambient-shape {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

.shape-one {
  width: 250px;
  height: 250px;
  left: -72px;
  top: 110px;
  background: radial-gradient(circle, rgba(244, 179, 55, 0.32), rgba(244, 179, 55, 0));
  animation: drift 10s ease-in-out infinite;
}

.shape-two {
  width: 320px;
  height: 320px;
  right: 18vw;
  bottom: 34px;
  background: radial-gradient(circle, rgba(199, 216, 230, 0.42), rgba(199, 216, 230, 0));
  animation: drift 12s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.9fr);
  column-gap: 68px;
  row-gap: 30px;
  align-items: center;
}

.zoed-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(228, 112, 30, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(15, 107, 95, 0.1);
  color: var(--brand-dark);
  font-weight: 800;
}

.zoed-pill img {
  width: 72px;
  height: auto;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  perspective: 1100px;
  transform:
    translate3d(var(--move-x, 0), var(--move-y, 0), 0)
    rotateX(var(--tilt-x, 0))
    rotateY(var(--tilt-y, 0));
  transition: transform 260ms ease-out;
}

.care-grove,
.photo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.care-grove {
  object-fit: contain;
  border-radius: 40px;
  opacity: 0.9;
  filter: drop-shadow(0 24px 48px rgba(15, 73, 63, 0.13));
}

.photo-hero {
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(103, 42, 15, 0.18);
  background: #dceee9;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%),
    linear-gradient(0deg, rgba(7, 89, 76, 0.18), rgba(7, 89, 76, 0) 44%);
  pointer-events: none;
}

.photo-hero::after {
  content: "Het team van K.M. de Wit";
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 14px 38px rgba(103, 42, 15, 0.12);
  backdrop-filter: blur(14px);
}

.photo-hero img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(18px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: var(--muted);
}

.status-float {
  top: 50px;
  left: 10px;
  animation: floatUp 6s ease-in-out infinite;
}

.address-float {
  right: 12px;
  bottom: 110px;
  display: block;
  animation: floatUp 6.8s ease-in-out infinite 500ms;
}

.urgent-float {
  left: 60px;
  bottom: 138px;
  min-width: 132px;
  background: rgba(228, 112, 30, 0.92);
  color: #fff;
  animation: pulseCard 4.4s ease-in-out infinite;
}

.urgent-float span {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  hyphens: none;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 24px 0 0;
}

.hero-actions,
.urgent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  box-shadow: 0 18px 42px rgba(228, 112, 30, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border: 1px solid var(--line);
}

.patient-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.patient-actions a,
.patient-actions button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(228, 112, 30, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 40px rgba(103, 42, 15, 0.08);
  text-decoration: none;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.18;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.patient-actions a > span:last-child,
.patient-actions button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.patient-actions a:hover,
.patient-actions button:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 58px rgba(103, 42, 15, 0.13);
}

.text-link {
  display: inline;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.action-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(228, 112, 30, 0.14), rgba(247, 178, 33, 0.22));
  color: var(--brand);
}

.action-symbol svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-panel,
.action-card,
.dates,
.map-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.status-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span {
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25a66a;
  box-shadow: 0 0 0 6px rgba(37, 166, 106, 0.16);
}

.quick-facts {
  margin: 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.quick-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  margin: 0;
}

.muted {
  background:
    radial-gradient(circle at 12% 16%, rgba(247, 178, 33, 0.16), transparent 26%),
    linear-gradient(135deg, var(--soft), #f5f2e7);
}

.info-search {
  padding: 36px 0;
  background: linear-gradient(90deg, #f7ecdb, #fff8ec);
}

.info-search-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(228, 112, 30, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(247, 178, 33, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.info-search h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.12;
}

.mindd-section {
  padding-top: 0;
}

.mindd-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(228, 112, 30, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 236, 219, 0.78)),
    radial-gradient(circle at 92% 12%, rgba(39, 171, 216, 0.18), transparent 34%);
  box-shadow: 0 18px 48px rgba(103, 42, 15, 0.08);
}

.mindd-card h2 {
  font-size: clamp(1.5rem, 2vw, 2.15rem);
}

.mindd-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.notice-list,
.staff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.notice-card,
.staff-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(103, 42, 15, 0.08);
  padding: 20px;
}

.notice-card h3,
.staff-card h3 {
  margin: 0 0 8px;
}

.notice-card p,
.staff-card p {
  margin: 0;
  color: var(--muted);
}

.staff-copy p + p {
  margin-top: 10px;
}

.staff-section {
  background: linear-gradient(135deg, #f7f1e7, #f7ecdb);
}

.staff-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-media {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(228, 112, 30, 0.14), rgba(247, 178, 33, 0.22));
}

.staff-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.staff-media > span {
  flex: 0 0 auto;
  width: 100%;
  height: 132px;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 950;
}

.staff-copy {
  min-width: 0;
}

.staff-role {
  margin-bottom: 10px !important;
  color: var(--brand) !important;
  font-weight: 850;
}

.staff-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.staff-card li {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(247, 178, 33, 0.16);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.staff-more {
  margin-top: 10px;
}

.staff-more summary {
  width: fit-content;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
}

.staff-more p {
  margin-top: 10px;
}

.thuisarts-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 850;
  font-size: 0.98rem;
}

.thuisarts-form div {
  display: flex;
  gap: 10px;
}

.thuisarts-form input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: var(--ink);
  font: inherit;
}

.thuisarts-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  padding: 0 20px;
  font-weight: 850;
  cursor: pointer;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #f7ecdb);
  color: var(--brand);
  font-weight: 900;
}

.two-column,
.urgent-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.content-block p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.glass-card {
  padding: 28px;
  border: 1px solid rgba(15, 107, 95, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at top right, rgba(244, 179, 55, 0.15), transparent 38%);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.action-card {
  min-height: 250px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(17, 31, 27, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--brand), var(--gold));
  opacity: 0.88;
}

.action-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 107, 95, 0.28);
  box-shadow: 0 28px 70px rgba(17, 31, 27, 0.14);
}

.action-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.action-card a {
  font-weight: 800;
}

.urgent {
  background: var(--brand-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.urgent-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    radial-gradient(circle at 20% 40%, rgba(244, 179, 55, 0.6), transparent 16%),
    radial-gradient(circle at 76% 20%, rgba(199, 216, 230, 0.45), transparent 22%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='180' viewBox='0 0 240 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.34' stroke-width='2'%3E%3Cpath d='M0 122 C55 82 94 148 148 104 S205 50 240 82'/%3E%3Cpath d='M25 28 L25 180 M95 0 L95 180 M165 18 L165 180'/%3E%3C/g%3E%3C/svg%3E");
}

.urgent .eyebrow,
.urgent h2 {
  color: #fff;
}

.urgent-actions {
  margin-top: 0;
}

.urgent-call {
  display: block;
  flex: 1 1 220px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.urgent-call:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.22);
}

.urgent-call span,
.urgent-call strong {
  display: block;
}

.urgent-call span {
  color: #4d615b;
  font-size: 0.92rem;
}

.urgent-call strong {
  margin-top: 6px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.urgent-call.dark {
  background: #dce8e4;
}

.urgent-call.emergency {
  background: var(--accent);
  color: #fff;
}

.urgent-call.emergency span {
  color: #fff;
}

.practical-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.practical-list {
  display: grid;
  gap: 22px;
}

.practical-list article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.practical-list article:last-child {
  border-bottom: 0;
}

.practical-list p {
  margin: 0;
  color: var(--muted);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr;
  gap: 22px;
}

.closing-grid > div:first-child p:last-child {
  color: var(--muted);
}

.dates {
  padding: 22px;
  box-shadow: 0 16px 42px rgba(103, 42, 15, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
}

.dates ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.dates li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.coverage-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.coverage-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(228, 112, 30, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.contact-section {
  background: var(--paper);
}

address {
  margin-top: 24px;
  font-style: normal;
  font-size: 1.1rem;
}

.small-print {
  color: var(--muted);
}

.map-panel {
  overflow: hidden;
  min-height: 360px;
  border-radius: 30px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: saturate(0.78) contrast(1.05);
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(103, 42, 15, 0.32);
  backdrop-filter: blur(10px);
}

.info-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(228, 112, 30, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(247, 178, 33, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.94));
  box-shadow: 0 34px 100px rgba(103, 42, 15, 0.28);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.modal-shell.is-open .info-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(103, 42, 15, 0.08);
  color: var(--brand-dark);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-content {
  margin-top: 18px;
  color: var(--muted);
}

.modal-content p {
  margin: 0 0 14px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--brand-dark);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 650ms ease var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -16px, 0) scale(1.04);
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseCard {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 26px 70px rgba(213, 99, 58, 0.22);
  }
  50% {
    transform: translateY(-9px) scale(1.02);
    box-shadow: 0 34px 80px rgba(213, 99, 58, 0.3);
  }
}

.footer-inner {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    top: 38px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero-grid,
  .two-column,
  .urgent-grid,
  .practical-grid,
  .contact-grid,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    min-height: 360px;
    max-width: 560px;
    margin: 0 auto;
  }

  .action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notice-list,
  .staff-list {
    grid-template-columns: 1fr 1fr;
  }

  .patient-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-search-inner {
    grid-template-columns: 1fr;
  }

  .mindd-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  .site-header {
    top: 36px;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand strong {
    font-size: 1rem;
    white-space: normal;
  }

  .nav-toggle {
    flex: 0 0 auto;
  }

  .section {
    padding: 54px 0;
  }

  .utility-inner {
    min-height: 36px;
    justify-content: flex-start;
    gap: 4px;
    overflow: visible;
    padding: 4px 0;
  }

  .utility-inner a {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .utility-inner a:nth-child(2) {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .access-menu {
    margin-left: auto;
  }

  .access-toggle {
    min-width: 34px;
    min-height: 26px;
    font-size: 0.78rem;
  }

  .access-panel {
    right: 0;
    min-width: min(220px, calc(100vw - 28px));
  }

  .hero {
    padding: 30px 0 46px;
    min-height: 0;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-copy {
    order: 1;
  }

  .photo-hero {
    display: none;
  }

  .patient-actions {
    order: 2;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .lead {
    font-size: 1rem;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  h2 {
    font-size: 2.1rem;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 44px;
  }

  .hero::before {
    background-size: 780px auto;
    background-position: center bottom -190px;
  }

  .hero-visual {
    min-height: 0;
  }

  .photo-hero {
    border-radius: 26px;
  }

  .photo-hero::after {
    left: 14px;
    bottom: 14px;
    font-size: 0.82rem;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .notice-list,
  .staff-list {
    grid-template-columns: 1fr;
  }

  .staff-card {
    grid-template-columns: 1fr;
  }

  .staff-media,
  .staff-media img,
  .staff-media > span {
    min-height: 220px;
  }

  .patient-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .patient-actions a,
  .patient-actions button {
    min-height: 54px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .hero .reveal {
    opacity: 1;
    transform: none;
  }

  .action-symbol {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .action-symbol svg {
    width: 18px;
    height: 18px;
  }

  .info-search {
    padding: 26px 0;
  }

  .info-search-inner {
    padding: 16px;
    border-radius: 20px;
  }

  .info-search h2 {
    font-size: 1.45rem;
  }

  .info-modal {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .thuisarts-form div {
    flex-direction: column;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
