/* drdron.ro – colours from the practice's own banner; one family designed for easy reading (Lexend, OFL). */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b2a5c;
  --ink: #2b3762;
  --muted: #5a6488;
  --blue: #1867a8;
  --sky: #a9d4f0;
  --mist: #edf5fb;
  --rule: #d6e6f3;
  --paper: #ffffff;
  --whatsapp: #0f7a5a;
  --now: #c2410c;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68rem;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  -webkit-text-size-adjust: 100%;
}

h1, h2 { color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 0.25rem; }

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

.skip {
  position: absolute; left: -999px; top: 1rem; z-index: 10;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: var(--navy); color: #fff;
}
.skip:focus { left: 1rem; }

/* Shared column */
.masthead, .intro, .schedule-inner, .visit, .footer, .policy {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Masthead: the practice's own emblem, quietly */
.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem 0.25rem;
}
.emblem { flex: none; width: 3rem; height: 3rem; }
.practice { margin: 0; font-size: 0.9375rem; line-height: 1.35; color: var(--muted); }

/* Intro: name, role, availability, the two ways to reach her */
.intro {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 1.5rem 3rem;
}
.intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.role {
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
}
.status {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.status[hidden] { display: none; }
.status-dot {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #8a93ae;
  transform: translateY(0.05rem);
}
.status.is-open .status-dot { background: var(--whatsapp); box-shadow: 0 0 0 0.25rem rgb(15 122 90 / 0.18); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex;
  flex: 1 1 15rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.button .icon { flex: none; width: 1.4rem; height: 1.4rem; fill: currentColor; }
.button-call { background: var(--navy); }
.button-call:hover { background: #26387a; }
.button-whatsapp { background: var(--whatsapp); }
.button-whatsapp:hover { background: #0b6648; }

/* Portrait in the hexagon of the practice's banner, with a pale offset hexagon behind it */
.portrait {
  position: relative;
  justify-self: center;
  width: min(100% - 1.25rem, 24rem); /* room for the offset hexagon on narrow screens */
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 0.9rem 0.7rem;
  background: var(--mist);
  border: 0;
  clip-path: polygon(22.7% 0, 77.6% 0, 100% 50%, 77.6% 100%, 22.7% 100%, 0 50%);
}
.portrait picture { position: relative; display: block; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(22.7% 0, 77.6% 0, 100% 50%, 77.6% 100%, 22.7% 100%, 0 50%);
}

@media (min-width: 52rem) {
  .intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-block: 2.5rem 4rem; }
  .actions { max-width: 34rem; }
}

/* Schedule: the alternating hours drawn on one 8–19 axis */
.schedule { background: var(--mist); padding-block: 2.5rem 3rem; }
.schedule h2, .visit h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.hours thead th { padding: 0 0 0.4rem; text-align: left; font-weight: 400; }
.hours tbody th, .hours td { border-top: 1px solid var(--rule); padding-block: 0.85rem; text-align: left; }
/* Day and hours take only what they need; the bar column takes the rest of the row. */
.hours tbody th { width: 1%; padding-inline: 0.75rem 1.25rem; color: var(--navy); font-weight: 600; white-space: nowrap; }
.hours .time { width: 1%; padding-inline: 0 1.5rem; font-weight: 600; white-space: nowrap; }
.hours .bar-cell, .hours .axis-cell { width: 100%; padding-inline: 0.5rem 0.75rem; }
.hours tr.is-today th, .hours tr.is-today td { background: var(--paper); }
.today-tag { margin-left: 0.45rem; color: var(--blue); font-size: 0.875rem; font-weight: 600; }

.axis { position: relative; display: block; height: 1.3rem; }
.axis span {
  position: absolute;
  left: calc((var(--h) - 8) / 11 * 100%);
  translate: -50% 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3rem;
}
.axis span:first-child { translate: 0 0; }
/* Positions live in the stylesheet: the page's security policy forbids inline style attributes. */
.axis span:nth-child(1) { --h: 8; }
.axis span:nth-child(2) { --h: 10; }
.axis span:nth-child(3) { --h: 12; }
.axis span:nth-child(4) { --h: 14; }
.axis span:nth-child(5) { --h: 16; }
.axis span:nth-child(6) { --h: 18; }
.from-8 { --from: 8; }
.from-12 { --from: 12; }
.to-13 { --to: 13; }
.to-14 { --to: 14; }
.to-18 { --to: 18; }
.to-19 { --to: 19; }

.track {
  position: relative;
  display: block;
  height: 0.875rem;
  border-radius: 0.4375rem;
  background: var(--rule);
}
.bar {
  position: absolute;
  inset-block: 0;
  left: calc((var(--from) - 8) / 11 * 100%);
  width: calc((var(--to) - var(--from)) / 11 * 100%);
  border-radius: inherit;
  background: #7faad6;
}
.is-today .bar { background: var(--navy); }
.track.has-now::after {
  content: "";
  position: absolute;
  top: -0.35rem;
  bottom: -0.35rem;
  left: calc((var(--now-h) - 8) / 11 * 100%);
  width: 2px;
  translate: -1px 0;
  background: var(--now);
}

@media (max-width: 34rem) {
  .hours tbody th { padding-inline: 0.5rem 0.75rem; }
  .hours .time { padding-inline-end: 0.75rem; }
  .axis span:nth-child(2), .axis span:nth-child(4), .axis span:nth-child(6) { display: none; }
}

/* Where to find the practice; icons in navy circles as on the banner */
.visit { padding-block: 2.5rem 3rem; }
.contact { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.contact li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; line-height: 1.5; }
.contact .icon { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; background: var(--navy); fill: #fff; }
@media (min-width: 52rem) {
  .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

/* Footer: copyright and the privacy link, deliberately quiet */
.footer { padding-block: 0 2rem; color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* Masthead on inner pages links back home */
.home-link { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.home-link:hover .practice { text-decoration: underline; text-underline-offset: 0.18em; }
.practice strong { color: var(--navy); font-weight: 600; }

/* Privacy page: one readable column, aligned with the masthead */
.policy { padding-block: 1.5rem 3.5rem; }
.policy > * { max-width: 44rem; }
.policy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.policy-meta { margin: 0 0 2rem; color: var(--muted); }
.policy h2 { margin: 2.25rem 0 0.6rem; font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.policy p { margin: 0 0 1rem; line-height: 1.7; }
.policy blockquote { margin: 1rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); border-radius: 0 0.5rem 0.5rem 0; background: var(--mist); }
.policy blockquote p { margin: 0; }
.policy .button { flex: none; margin-top: 0.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 150ms ease; }
}
