/* Olive theme. Colors are tokens so the palette can be tuned in one place. */
:root {
  --olive-950: #1f2714;
  --olive-900: #2c371c;
  --olive-800: #3b4a25;
  --olive-700: #4b5d2e;
  --olive-600: #5d7139;
  --olive-500: #74874a;
  --olive-300: #b5c08f;
  --olive-100: #eef1e3;
  --olive-50: #f6f7f0;
  --sand-500: #c2a568;
  --sand-300: #e3d3a8;
  --cream: #fbfaf5;
  --ink: #2a2d22;
  --muted: #6b6f5f;
  --radius: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(44, 55, 28, .08);
  --shadow-lift: 0 18px 40px rgba(44, 55, 28, .16);

  --bs-body-font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--olive-700);
  --bs-link-color-rgb: 75, 93, 46;
  --bs-link-hover-color: var(--olive-900);
  --bs-link-hover-color-rgb: 44, 55, 28;
  --bs-success: var(--olive-700);
  --bs-success-rgb: 75, 93, 46;
  --bs-success-bg-subtle: var(--olive-100);
  --bs-success-text-emphasis: var(--olive-900);
  --bs-primary: var(--olive-600);
  --bs-primary-rgb: 93, 113, 57;
  --bs-border-radius: .75rem;
  --bs-focus-ring-color: rgba(116, 135, 74, .35);
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, .h1, .h2, .h3 {
  color: var(--olive-950);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Buttons: every success/primary button in the app follows the olive palette. */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.25rem;
}

.btn-success,
.btn-primary {
  --bs-btn-bg: var(--olive-700);
  --bs-btn-border-color: var(--olive-700);
  --bs-btn-hover-bg: var(--olive-800);
  --bs-btn-hover-border-color: var(--olive-800);
  --bs-btn-active-bg: var(--olive-900);
  --bs-btn-active-border-color: var(--olive-900);
  --bs-btn-disabled-bg: var(--olive-500);
  --bs-btn-disabled-border-color: var(--olive-500);
}

.btn-outline-success,
.btn-outline-primary {
  --bs-btn-color: var(--olive-700);
  --bs-btn-border-color: var(--olive-300);
  --bs-btn-hover-bg: var(--olive-700);
  --bs-btn-hover-border-color: var(--olive-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--olive-800);
  --bs-btn-active-border-color: var(--olive-800);
  --bs-btn-active-color: #fff;
}

.btn-sand {
  --bs-btn-bg: var(--sand-500);
  --bs-btn-border-color: var(--sand-500);
  --bs-btn-color: var(--olive-950);
  --bs-btn-hover-bg: var(--sand-300);
  --bs-btn-hover-border-color: var(--sand-300);
  --bs-btn-hover-color: var(--olive-950);
  --bs-btn-active-bg: var(--sand-300);
  --bs-btn-active-color: var(--olive-950);
}

.btn-glass {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .55);
  --bs-btn-hover-bg: rgba(255, 255, 255, .15);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
  backdrop-filter: blur(6px);
}

.form-control,
.form-select {
  border-color: #dfe2d3;
  background-color: #fff;
}

/* Hints inside empty fields: pale and small so they never look like an entered value. */
.form-control::placeholder {
  color: #b9bdb0;
  opacity: 1;
  font-size: .85em;
  font-weight: 300;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--olive-500);
  box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}

.card,
.card-soft,
.list-group,
.table-responsive {
  border: 1px solid #e7e9dc;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table > thead th {
  background: var(--olive-50);
  color: var(--olive-800);
  font-weight: 600;
}

.alert-success {
  background: var(--olive-100);
  border-color: var(--olive-300);
  color: var(--olive-900);
  border-radius: var(--radius);
}

/* Navigation */
.site-nav {
  background: rgba(251, 250, 245, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(75, 93, 46, .1);
}

.site-nav .navbar-brand {
  color: var(--olive-900);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--olive-600), var(--olive-900));
  color: var(--sand-300);
}

/* The clinic's logo: dark green on white, so on dark backgrounds it sits in a white disc. */
.brand-logo {
  width: 44px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  flex: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  font-size: .72rem;
  font-weight: 500;
  color: var(--olive-700);
}

.brand-logo-chip {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  border-radius: 50%;
  background: #fff;
}

.brand-logo-chip .brand-logo {
  width: 38px;
  max-height: 38px;
}

.site-nav .nav-link {
  color: var(--ink);
  font-weight: 500;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--olive-700);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(194, 165, 104, .35), transparent 45%),
    linear-gradient(135deg, var(--olive-800), var(--olive-950));
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 39, 20, .35) 0%, rgba(31, 39, 20, .72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  padding-block: 6rem 5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.9;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--sand-300);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

/* Sections */
.section {
  padding-block: 4.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .kicker {
  color: var(--sand-500);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title p {
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}

.stats {
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.stat-icon,
.service-icon,
.step-number {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--olive-100);
  color: var(--olive-700);
}

.stat strong {
  display: block;
  color: var(--olive-900);
  font-size: 1.15rem;
}

.stat span {
  color: var(--muted);
  font-size: .95rem;
}

.service-card {
  background: #fff;
  border: 1px solid #e7e9dc;
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-block: 1.25rem .5rem;
}

.service-card .duration {
  color: var(--muted);
}

.steps {
  background: var(--olive-50);
}

.step {
  text-align: center;
  padding: 1rem;
}

.step-number {
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--olive-700);
  color: #fff;
  font-weight: 700;
}

.cta-band {
  background: linear-gradient(135deg, var(--olive-700), var(--olive-900));
  color: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem;
}

.cta-band h2 {
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--olive-950);
  color: rgba(255, 255, 255, .75);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer a {
  color: var(--sand-300);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 1.1rem;
}

.social a:hover {
  background: var(--olive-600);
}

/* Booking */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: .5rem;
}

.day-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.day-strip .btn {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero video.hero-media {
    display: none;
  }

  .service-card {
    transition: none;
  }
}

.map-frame iframe {
  border: 0;
}

@media (max-width: 767.98px) {
  .map-frame.ratio-21x9 {
    --bs-aspect-ratio: 75%;
  }
}

/* Blog and articles */
.post-card {
  position: relative;
  background: #fff;
  border: 1px solid #e7e9dc;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--olive-100), var(--sand-300));
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-image span {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: var(--olive-600);
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post {
  max-width: 46rem;
}

.post-cover {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.seo-box {
  border: 1px dashed var(--olive-300);
  border-radius: .9rem;
  padding: .75rem 1rem;
}

.seo-box > summary {
  cursor: pointer;
  font-weight: 600;
}

.serp-preview {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: .6rem;
  padding: .75rem 1rem;
  font-family: Arial, Vazirmatn, sans-serif;
}

.serp-title {
  color: #1a0dab;
  font-size: 1.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serp-description {
  color: #4d5156;
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--olive-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.doctor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(44, 55, 28, .14);
}

.doctor-card-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4.2;
  background: var(--olive-50);
  color: var(--olive-300);
  font-size: 5rem;
  overflow: hidden;
}

.doctor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.doctor-card:hover .doctor-card-photo img {
  transform: scale(1.03);
}

.doctor-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.doctor-card-specialty {
  color: var(--olive-700);
  font-weight: 600;
}

.doctor-card-bio {
  color: var(--bs-secondary-color, #6c757d);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.doctor-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--olive-50);
  display: grid;
  place-items: center;
  color: var(--olive-500);
  font-size: 3rem;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.doctor-photo-lg {
  width: 150px;
  height: 150px;
  margin: 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--olive-100);
  border-radius: .9rem;
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
  line-height: 1.9;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--olive-800);
}

.faq-item[open] summary {
  margin-bottom: .5rem;
}

.post-body {
  font-size: 1.1rem;
  line-height: 2;
}

.post-body h2,
.post-body h3 {
  margin-top: 2rem;
}

.post-body img {
  max-width: 100%;
  border-radius: .75rem;
}

.post-body blockquote {
  border-inline-start: 4px solid var(--sand-500);
  padding-inline-start: 1rem;
  color: var(--muted);
}

.post-references {
  border-top: 1px solid #e7e9dc;
  padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
}

/* Patient files (shared by the patient page and the management panel) */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.file-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(40, 50, 20, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

a.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40, 50, 20, .1);
}

.file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--olive-50);
  color: var(--olive-600);
  font-size: 2.5rem;
  text-decoration: none;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-body {
  padding: .75rem .9rem;
  min-width: 0;
}

/* ------------------------------------------------------------------ forms */

/* Required fields: a red asterisk after the label. */
label.required::after {
  content: " *";
  color: #c62828;
  font-weight: 700;
}

/* Problems found when saving, listed at the bottom of the form next to the save button. */
.form-errors {
  flex-basis: 100%;
  background: #fff5f5;
  border: 1px solid #f1b5b5;
  border-radius: .6rem;
  padding: .6rem .9rem;
  color: #b71c1c;
  font-size: .92rem;
}

.form-errors[hidden],
.form-errors:empty {
  display: none;
}

.form-errors-title {
  font-weight: 700;
  margin-bottom: .25rem;
}

.form-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-errors li {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding: .1rem 0;
}

.form-errors li i {
  color: #d32f2f;
}

.form-errors li button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-align: start;
  text-decoration: underline dotted;
  cursor: pointer;
}

.sticky-actions {
  flex-wrap: wrap;
}

/* Date fields with a calendar. */
.date-field {
  position: relative;
  flex-wrap: nowrap;
}

.date-picker {
  position: fixed;
  z-index: 1060;
  width: 18rem;
  padding: .6rem;
  background: #fff;
  border: 1px solid #dfe2d3;
  border-radius: .7rem;
}

.dp-head {
  display: flex;
  gap: .3rem;
  align-items: center;
  margin-bottom: .5rem;
}

.dp-head select:first-of-type {
  flex: 1.4;
}

.dp-head select {
  flex: 1;
  min-width: 0;
}

.dp-nav {
  font-size: 1.1rem;
  line-height: 1;
  padding: .25rem .55rem;
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.dp-weekday {
  font-size: .75rem;
  color: var(--bs-secondary-color);
  padding: .2rem 0;
}

.dp-day {
  border: 0;
  background: none;
  border-radius: .4rem;
  padding: .3rem 0;
  font-size: .9rem;
}

.dp-day:hover {
  background: var(--olive-50, #f3f5ec);
}

.dp-day.today {
  outline: 1px solid var(--olive-500, #6b7f3a);
}

.dp-day.picked {
  background: var(--olive-600, #55692b);
  color: #fff;
}

.dp-foot {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
}

/* Message conversations (admin inbox and the patient's messages page) */
.message-thread {
  display: grid;
  gap: .5rem;
}

.message-reply {
  border-radius: .75rem;
  padding: .6rem .8rem;
  border: 1px solid rgba(0, 0, 0, .06);
}

.message-reply.from-clinic {
  background: #f1f4e8;
  margin-inline-start: 1.5rem;
}

.message-reply.from-patient {
  background: #fff;
  margin-inline-end: 1.5rem;
}

.reply-box > summary {
  list-style: none;
}

.reply-box > summary::-webkit-details-marker {
  display: none;
}

/* Treatment results on the home page */
.result-tile {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(40, 52, 20, .06);
}

.result-icon {
  font-size: 1.6rem;
  color: var(--olive-600, #5b6b2f);
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--olive-700, #4a5726);
  line-height: 1.2;
  margin: .25rem 0;
}

.result-label {
  font-size: .9rem;
  color: #6c757d;
}

.result-chart {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(93, 113, 57, .12);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

/* A thin olive-to-sand accent along the top edge */
.result-chart::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olive-700), var(--olive-300), var(--sand-500));
}

.result-chart:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.result-chart-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.result-chart-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .8rem;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--olive-500), var(--olive-800));
  box-shadow: 0 6px 14px rgba(59, 74, 37, .25);
}

.result-chart-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--olive-900);
}

/* Horizontal bars */
.result-bars {
  display: grid;
  gap: 1rem;
}

.result-bar-row {
  display: grid;
  grid-template-columns: minmax(6rem, 28%) 1fr auto;
  gap: .75rem;
  align-items: center;
}

.result-bar-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.result-bar-tracks {
  display: grid;
  gap: .35rem;
}

.result-track {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  gap: .6rem;
  align-items: center;
}

.result-rail {
  display: block;
  height: 1rem;
  border-radius: 999px;
  background: var(--olive-50);
  box-shadow: inset 0 1px 2px rgba(44, 55, 28, .08);
}

.result-track b {
  font-size: .8rem;
  font-weight: 700;
  color: var(--olive-900);
  white-space: nowrap;
}

.result-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--olive-800), var(--olive-500));
  box-shadow: 0 3px 8px rgba(59, 74, 37, .25);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}

[dir="rtl"] .result-fill {
  background: linear-gradient(270deg, var(--olive-800), var(--olive-500));
}

.result-fill.is-top {
  background: linear-gradient(90deg, var(--olive-900), var(--olive-600) 60%, var(--sand-500));
}

[dir="rtl"] .result-fill.is-top {
  background: linear-gradient(270deg, var(--olive-900), var(--olive-600) 60%, var(--sand-500));
}

.result-fill.before {
  background: linear-gradient(90deg, #b9a56f, var(--sand-300));
  box-shadow: none;
}

[dir="rtl"] .result-fill.before {
  background: linear-gradient(270deg, #b9a56f, var(--sand-300));
}

.result-change {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.result-change.down {
  color: var(--olive-800);
  background: var(--olive-100);
}

.result-change.up {
  color: #8a5a12;
  background: #fbf0d9;
}

/* Columns */
.result-columns {
  display: grid;
  grid-template-columns: repeat(var(--count), 1fr);
  gap: clamp(.5rem, 3vw, 1.5rem);
  align-items: end;
  flex: 1;
  min-height: 15rem;
  padding-top: 1.75rem;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), rgba(93, 113, 57, .12) calc(25% - 1px), rgba(93, 113, 57, .12) 25%);
  background-size: 100% calc(100% - 2.25rem);
  background-repeat: no-repeat;
}

.result-column {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.result-column-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.result-column-fill {
  position: relative;
  display: block;
  width: min(100%, 3.75rem);
  height: var(--h, 0%);
  min-height: 4px;
  border-radius: .8rem .8rem .3rem .3rem;
  background: linear-gradient(to top, var(--olive-800), var(--olive-500));
  box-shadow: 0 8px 18px rgba(59, 74, 37, .22);
  transition: height 1.1s cubic-bezier(.2, .8, .2, 1);
}

.result-column.is-top .result-column-fill {
  background: linear-gradient(to top, var(--olive-900), var(--olive-600) 55%, var(--sand-500));
}

.result-column-fill b {
  position: absolute;
  bottom: calc(100% + .35rem);
  left: 50%;
  transform: translateX(-50%);
  padding: .15rem .5rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 800;
  color: var(--olive-900);
  background: var(--olive-100);
  white-space: nowrap;
}

.result-column.is-top .result-column-fill b {
  color: #fff;
  background: var(--olive-700);
}

.result-column-fill b small {
  font-size: .7em;
  font-weight: 600;
  margin-inline-start: .15rem;
}

.result-column-label {
  margin-top: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

/* Before the chart scrolls into view the bars wait at zero, then grow. */
.result-chart.is-waiting .result-fill {
  width: 0;
}

.result-chart.is-waiting .result-column-fill {
  height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .result-fill,
  .result-column-fill,
  .result-chart {
    transition: none;
  }
}

.result-legend {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.result-legend .swatch {
  display: inline-block;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  margin-inline-end: .35rem;
  vertical-align: -1px;
  background: var(--olive-600);
}

.result-legend .swatch.before {
  background: var(--sand-500);
}

.result-table th,
.result-table td {
  font-size: .85rem;
}

/* Results band: the headline figures on a deep olive panel */
.results-band {
  background: linear-gradient(135deg, var(--olive-900), var(--olive-600));
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-inline: 0;
  box-shadow: var(--shadow-lift);
}

.results-band .result-tile {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
}

.results-band .result-icon,
.results-band .result-value {
  color: var(--sand-300);
}

.results-band .result-label {
  color: rgba(255, 255, 255, .82);
}

/* "Why our clinic" */
.highlights {
  background: var(--cream);
}

.highlight-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.highlight-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.highlight-art {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3rem;
  background-size: cover;
}

.highlight-art.art-0 { background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25) 0 18%, transparent 19%), linear-gradient(135deg, var(--olive-700), var(--olive-500)); }
.highlight-art.art-1 { background-image: radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .22) 0 22%, transparent 23%), linear-gradient(135deg, #8a6d3b, var(--sand-500)); }
.highlight-art.art-2 { background-image: radial-gradient(circle at 30% 80%, rgba(255, 255, 255, .2) 0 20%, transparent 21%), linear-gradient(135deg, #3f6b6b, #6f9a8a); }
.highlight-art.art-3 { background-image: radial-gradient(circle at 70% 75%, rgba(255, 255, 255, .22) 0 16%, transparent 17%), linear-gradient(135deg, var(--olive-900), #7a8a4a); }

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--olive-50), var(--cream));
}

.testimonial-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  position: absolute;
  inset-inline-end: 1.25rem;
  top: .5rem;
  font-size: 3.5rem;
  color: var(--olive-100);
  line-height: 1;
}

.testimonial-stars {
  color: var(--sand-500);
  margin-bottom: .75rem;
}

.testimonial-card blockquote {
  font-size: .98rem;
  line-height: 1.9;
  color: var(--ink);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.testimonial-avatar.initial {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--olive-600), var(--sand-500));
}

.results {
  background: #fff;
}

/* Two-step login setup: the QR code on a white card so phones scan it in any theme. */
.qr-code { display: inline-block; padding: .5rem; background: #fff; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
.qr-code svg { display: block; width: 200px; height: 200px; }

/* Page not found and other error pages (Pages/Status.cshtml) */
.status-page { max-width: 40rem; }
.status-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; color: var(--olive-600); opacity: .8; margin-bottom: .5rem; }

/* "The treatment in this article" box under a post (Pages/Shared/_PostView.cshtml) */
.related-service { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--olive-200, #dfe5cf); border-radius: 1rem; background: var(--olive-50, #f6f8f0); }
.related-service-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--olive-600); color: #fff; font-size: 1.3rem; flex: none; }
.related-service h2 a { color: inherit; text-decoration: none; }
.related-service h2 a:hover { text-decoration: underline; }

/* Admin > Site visits */
.visits-daily { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--bs-border-color); }
.visits-daily-bar { flex: 1 1 0; min-width: 1px; background: var(--bs-success); opacity: .75; border-radius: 2px 2px 0 0; }
.visits-daily-bar:hover { opacity: 1; }
.visits-bar { height: 4px; margin-top: 4px; background: var(--bs-success); opacity: .5; border-radius: 2px; }

/* Keyboard users can jump past the menu straight to the page content. */
.skip-link { position: absolute; inset-inline-start: 1rem; top: .5rem; z-index: 2000; padding: .5rem 1rem; border-radius: .5rem; background: #fff; color: #1f2a1c; box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .15); }
main:focus { outline: none; }
/* Bootstrap's red outline buttons are just under 4.5:1 on white. */
.btn-outline-danger { --bs-btn-color: #b02a37; --bs-btn-border-color: #b02a37; }

/* Demo:Enabled */
.demo-banner {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  font-size: .875rem;
  padding: .4rem 1rem;
  border-bottom: 1px solid #ffe69c;
}
