/* Hallmark · shape: Bento Grid · genre: modern-minimal · theme: Dose (deal 1/3, seed prince-william-medical-clinic-07e2·53b27e29·2026-12-04·r0) · job: book · draw: 1933c5
 * hero: Stage · nav: floating pill · footer: letter close · imagery: clinic physician headshot (user) and three Higgsfield architectural clinic stills · signature: moulded clinic visit register beside sunlit physician desk · dose: white
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: S, generic medical services risk; anchored every section on Dr. Abucar A. Abdulle MD FACP, USCIS Form I-693, and Woodbridge Monday to Thursday hours */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --dose-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  --dose-tray-shadow: inset 0 1.5px 0 var(--glint), inset 0 -20px 32px -24px color-mix(in oklab, var(--tray-tint, var(--p-thu)) 48%, var(--color-ink));
  --dose-frame-ring: color-mix(in oklab, var(--color-ink) 8%, transparent);
  --dose-pill-bg: color-mix(in oklab, var(--light) 92%, var(--color-paper));
  --dose-window-pane: color-mix(in oklab, var(--light) 82%, transparent);
  --dose-label-bg: color-mix(in oklab, var(--light) 95%, var(--color-paper));
  --nav-h: 76px;
}

body {
  background-color: var(--color-paper);
  background-image: var(--dose-grain);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
}

.mono {
  font-family: var(--font-outlier);
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-input);
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
}
.skip:focus-visible { top: var(--space-md); }

/* Floating pill nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  padding-top: var(--space-md);
  padding-bottom: var(--space-xs);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 60px;
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--dose-pill-bg);
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 var(--rule-hair) var(--color-rule), var(--shadow-card);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
  color: var(--color-ink);
}

.brand__mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  white-space: nowrap;
  padding: var(--space-xs) var(--space-2xs);
  transition: color var(--dur-short) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.nav-call:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

/* Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 var(--rule-hair) var(--color-rule), 0 3px 0 var(--color-rule);
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(3px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(var(--color-accent), var(--color-accent-deep));
  color: var(--color-accent-ink);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--glint) 28%, transparent), 0 0 0 var(--rule-hair) var(--color-accent-deep), 0 3px 0 var(--color-accent-deep);
}

.btn--primary:hover {
  background: var(--color-accent-deep);
}

/* Hero (Stage posture filling first screen cleanly at 1280x800 and 1440x900) */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  overflow: clip;
}

.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(112deg, transparent 22%, var(--dose-window-pane) 23%, var(--dose-window-pane) 36%, transparent 37%),
    linear-gradient(112deg, transparent 41%, var(--dose-window-pane) 42%, var(--dose-window-pane) 55%, transparent 56%);
  opacity: 0.45;
  filter: blur(28px);
}

.hero__grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

.hero__title {
  font-size: var(--text-display-s);
  max-width: 15ch;
}

.hero__lead {
  color: var(--color-ink-2);
  max-width: 40ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__frame {
  aspect-ratio: 4 / 3;
  min-height: 460px;
  max-height: 580px;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.hero__frame > img {
  outline: var(--rule-hair) solid var(--dose-frame-ring);
  outline-offset: -1px;
}

.hero__label {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-lg);
  z-index: var(--z-raised);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-input);
  background: var(--dose-label-bg);
  background-image: var(--dose-grain);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.hero__label-top {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.hero__label-sub {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Section scaffolding */
.section {
  padding-top: var(--section-gap);
}

.section--tight {
  padding-top: var(--section-gap-s);
}

.section--wide {
  padding-top: var(--section-gap-l);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.section-head__lead {
  color: var(--color-ink-2);
  max-width: 48ch;
}

/* Bento Care Register (Dose moulded plastic trays) */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.tray {
  --tray-tint: var(--p-thu);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-md);
  min-height: 240px;
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  background:
    linear-gradient(color-mix(in oklab, var(--glint) 34%, transparent), transparent 20%),
    color-mix(in oklab, var(--tray-tint) 58%, var(--color-paper));
  box-shadow: var(--dose-tray-shadow);
}

.tray--lead {
  grid-column: span 7;
  --tray-tint: var(--p-thu);
}

.tray--primary {
  grid-column: span 5;
  --tray-tint: var(--p-wed);
}

.tray--chronic {
  grid-column: span 5;
  --tray-tint: var(--p-tue);
}

.tray--preventive {
  grid-column: span 7;
  --tray-tint: var(--p-fri);
}

.tray__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.tray__code {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-deep);
  white-space: nowrap;
}

.tray__body {
  color: var(--color-ink-2);
  max-width: 48ch;
}

.rx-stamp {
  align-self: flex-start;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-input);
  background: var(--dose-label-bg);
  border: var(--rule-hair) dashed var(--color-accent);
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-accent-deep);
}

.tray__list {
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0 0;
  border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 12%, transparent);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

/* Full-bleed clinic room showcase (no head, per draw) */
.room-figure {
  margin: 0;
}

.room-slot {
  aspect-ratio: 16 / 9;
  min-height: 460px;
  max-height: 680px;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.room-slot > img {
  outline: var(--rule-hair) solid var(--dose-frame-ring);
  outline-offset: -1px;
}

.room-caption {
  margin-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Physician split */
.doctor-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: center;
}

.doctor-portrait {
  aspect-ratio: 4 / 5;
  min-height: 440px;
  max-height: 540px;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.doctor-portrait > img {
  object-position: 50% 18%;
  outline: var(--rule-hair) solid var(--dose-frame-ring);
  outline-offset: -1px;
}

.doctor-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.credentials {
  margin: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.credentials__row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.credentials dt {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
}

.credentials dd {
  margin: 0;
  font-size: var(--text-md);
  color: var(--color-ink);
}

/* Hours, address, and interactive appointment planner */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--rule-hair) solid var(--color-ink);
}

.hours-table th,
.hours-table td {
  padding: var(--space-md) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: left;
  font-size: var(--text-md);
}

.hours-table th {
  font-weight: 500;
  color: var(--color-ink);
}

.hours-table td {
  font-family: var(--font-outlier);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--color-ink-2);
}

.hours-table tr.is-closed th,
.hours-table tr.is-closed td {
  color: var(--color-muted);
}

.address-block {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-ink-2);
}

.address-block strong {
  color: var(--color-ink);
  font-weight: 500;
}

.planner {
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 var(--rule-hair) var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.planner fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.planner legend {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  margin-bottom: var(--space-sm);
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.key-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.key-row label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-input);
  background: var(--dose-label-bg);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 var(--rule-hair) var(--color-rule), 0 2px 0 var(--color-rule);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.key-row label:hover { background: var(--color-paper-3); }
.key-row input:checked + label {
  background: var(--color-accent-soft);
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 var(--rule-hair) var(--color-accent), 0 2px 0 var(--color-accent);
}
.key-row input:focus-visible + label {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.planner__ticket {
  padding: var(--space-md);
  border-radius: var(--radius-input);
  background: var(--dose-label-bg);
  border: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.planner__ticket-code {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-accent-deep);
}

.planner__ticket-note {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.planner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Letter close footer */
.site-footer {
  margin-top: var(--section-gap);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.footer-letter {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: end;
}

.footer-letter__sign {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}

.footer-letter__meta {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: 52ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-md) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}

.footer-links a {
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

@media (max-width: 60rem) {
  .hero { min-height: auto; padding-top: var(--space-xl); }
  .hero__grid,
  .section-head,
  .doctor-grid,
  .visit-grid,
  .footer-letter {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .tray--lead,
  .tray--primary,
  .tray--chronic,
  .tray--preventive {
    grid-column: span 12;
  }
  .hero__frame,
  .room-slot,
  .doctor-portrait { min-height: 0; max-height: none; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 40rem) {
  .nav-links { display: none; }
  .nav-pill { padding-left: var(--space-md); }
  .tray { padding: var(--space-lg); }
  .tray__list { grid-template-columns: minmax(0, 1fr); }
  .credentials__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .room-caption { flex-direction: column; gap: var(--space-2xs); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-links a, .nav-call, .key-row label { transition: none; }
}
