:root {
  color-scheme: light;
  --ink: #112f33;
  --muted: #476166;
  --teal: #00675c;
  --line: #d5e3e0;
  --pale: #edf6f4;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; }
[hidden] { display: none !important; }
a { color: var(--teal); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #ad6021; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.header-inner, .footer-inner, nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.header-inner, .footer-inner { justify-content: space-between; padding-block: 1rem; }
.site-header a, .button { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.15rem; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 2.2rem; aspect-ratio: 1; border-radius: .65rem; background: var(--teal); color: white; font-size: 1.65rem; }
.site-header nav a { font-weight: 650; }
.hero { background: #12393a url("clinic-hero.jpg") center 45% / cover; color: #fff; }
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-copy { max-width: 39rem; background: #103739; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 1rem; }
.eyebrow { color: var(--teal); font-size: .875rem; font-weight: 760; letter-spacing: .09em; margin: 0 0 .55rem; }
.hero .eyebrow { color: #a3e5d9; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.04em; }
h3 { font-size: 1.35rem; }
h4 { margin-top: 1.6rem; }
p { margin: 0 0 1rem; }
.demo-note { color: #d2ece8; margin: 1rem 0 0; font-size: .875rem; }
.button, .module-nav button, .table-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--teal); border-radius: .55rem; background: var(--teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: #004f47; text-decoration: none; }
.hero .button { background: #a9eee0; color: #12393a; border-color: #a9eee0; }
.hero .button:hover { background: #cdf6ee; }
.hero .secondary { background: transparent; color: #fff; }
.hero .secondary:hover { background: #275453; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.booking { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 1.25rem; }
form, .booking-aside, .panel, .metric { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.65rem); }
.booking-aside { background: var(--pale); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.movement-fields { grid-template-columns: 2fr 1fr 1fr; }
label { display: grid; gap: .3rem; font-weight: 650; }
select, input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #809895; border-radius: .45rem; background: #fff; color: var(--ink); padding: .45rem .65rem; font: inherit; }
select { appearance: none; padding-right: 2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23112f33' stroke-width='2'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") right .65rem center / .9rem no-repeat; }
.feedback { margin: .65rem 0 0; font-weight: 650; }
.feedback:empty { display: none; }
.management { background: var(--pale); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.25rem 0; }
.metric strong { display: block; font-size: 2rem; color: var(--teal); }
.module-nav { gap: .45rem; margin-bottom: .8rem; }
.module-nav button, .table-action { background: #fff; color: var(--teal); }
.module-nav button:hover, .table-action:hover { background: var(--pale); }
.module-nav button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); }
th { background: var(--pale); white-space: nowrap; }
td .table-action { margin: .2rem .3rem .2rem 0; }
.status { display: inline-block; border-radius: .4rem; padding: .15rem .45rem; background: var(--pale); font-size: .875rem; font-weight: 680; }
.alert { color: #742c10; background: #fbe9d9; }
.local-note { margin: 1rem 0 0; color: var(--muted); }
@media (max-width: 700px) {
  .booking, .movement-fields { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
}
@media (max-width: 400px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
