:root {
  --burgundy: #8f151f;
  --burgundy-dark: #5f0c14;
  --burgundy-soft: #fff4f5;
  --ink: #1f2328;
  --muted: #666f7a;
  --line: #e7e2df;
  --paper: #ffffff;
  --surface: #faf8f6;
  --green: #275a53;
  --green-dark: #173c37;
  --gold: #c79a42;
  --shadow: 0 20px 60px rgba(31, 35, 40, 0.14);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(143, 21, 31, 0.1);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(31, 35, 40, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 72px;
  height: 40px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0;
  line-height: 1.05;
  color: var(--burgundy);
}

.brand__text span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand__text strong {
  font-size: 1.18rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: #353a40;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--burgundy-soft);
  color: var(--burgundy);
  outline: none;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-action {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 12px 24px rgba(143, 21, 31, 0.18);
}

.header-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.header-action:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible,
.gallery-item:focus-visible,
.lightbox__close:focus-visible {
  outline: 3px solid rgba(199, 154, 66, 0.45);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--burgundy-soft);
  color: var(--burgundy);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 650px;
  height: calc(84svh - var(--header-height));
  max-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background: url("assets/hero-cm72.jpg") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(29, 12, 14, 0.86) 0%, rgba(29, 12, 14, 0.64) 42%, rgba(29, 12, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(22, 15, 17, 0.78) 0%, rgba(22, 15, 17, 0) 46%);
}

.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 74px;
  color: #fff;
}

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

.hero .eyebrow {
  color: #ffd7d9;
}

.hero h1,
.section h2,
.blood-section h2,
.access-section h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.85rem;
  font-weight: 850;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.24rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button--primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 16px 30px rgba(95, 12, 20, 0.24);
}

.button--primary:hover {
  background: var(--burgundy-dark);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button--secondary {
  background: #fff;
  color: var(--burgundy);
  border-color: rgba(143, 21, 31, 0.18);
}

.button--secondary:hover {
  border-color: rgba(143, 21, 31, 0.34);
  box-shadow: 0 14px 28px rgba(31, 35, 40, 0.08);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 48px));
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  background: #fff;
  border: 1px solid rgba(143, 21, 31, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quick-info article {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.quick-info article:last-child {
  border-right: 0;
}

.quick-info svg {
  flex: 0 0 auto;
  color: var(--burgundy);
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.quick-info strong,
.quick-info span {
  display: block;
}

.quick-info strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.quick-info span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

.section__heading,
.section__text {
  max-width: 760px;
}

.section__heading {
  margin-bottom: 34px;
}

.section h2,
.blood-section h2,
.access-section h2 {
  color: var(--ink);
  font-size: 2.8rem;
  font-weight: 820;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: #47505a;
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0;
}

.services-section {
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 240px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  background: #fff;
  color: var(--burgundy);
  border: 1px solid rgba(143, 21, 31, 0.16);
  border-radius: 8px;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

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

.service-card--accent {
  background: var(--green-dark);
  color: #fff;
  border-color: transparent;
}

.service-card--accent .service-card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.service-card--accent p {
  color: rgba(255, 255, 255, 0.78);
}

.practitioners-section {
  padding-top: 22px;
}

.practitioner-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.practitioner-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.group-title {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, var(--burgundy-soft), #fff);
  border-bottom: 1px solid var(--line);
}

.group-title span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--burgundy);
  border: 1px solid rgba(143, 21, 31, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.group-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list span {
  display: grid;
  min-width: 0;
  font-weight: 750;
}

.contact-list small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.contact-list a {
  flex: 0 0 auto;
  color: var(--burgundy);
  font-weight: 850;
  font-size: 0.94rem;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blood-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
  padding: 46px;
  background:
    linear-gradient(120deg, rgba(143, 21, 31, 0.98), rgba(95, 12, 20, 0.98)),
    url("assets/gallery-cabinet.jpg") center / cover no-repeat;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.blood-section .eyebrow,
.blood-section h2 {
  color: #fff;
}

.blood-section p {
  max-width: 720px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.blood-section p.blood-section__phone {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.blood-section__phone a {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blood-section__hours {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.blood-section__hours strong {
  color: #ffe5e7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.blood-section__hours span,
.blood-section__hours small {
  color: rgba(255, 255, 255, 0.82);
}

.blood-section__hours b {
  font-size: 2.35rem;
  line-height: 1;
}

.gallery-section {
  padding-top: 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 18px 16px;
  color: #fff;
  font-weight: 800;
  text-align: left;
  background: linear-gradient(0deg, rgba(31, 35, 40, 0.72), rgba(31, 35, 40, 0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.access-section {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 34px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.access-section__content {
  align-self: center;
}

.access-section address {
  margin: 18px 0 18px;
  color: var(--burgundy);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 850;
}

.access-section p {
  margin: 0;
  color: var(--muted);
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.map-panel {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(35deg, transparent 47%, rgba(199, 154, 66, 0.18) 48%, rgba(199, 154, 66, 0.18) 52%, transparent 53%),
    linear-gradient(115deg, transparent 42%, rgba(39, 90, 83, 0.14) 43%, rgba(39, 90, 83, 0.14) 48%, transparent 49%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.46)),
    #eef1ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(31, 35, 40, 0.1);
}

.map-panel iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.map-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px solid rgba(143, 21, 31, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(31, 35, 40, 0.16);
  pointer-events: none;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid rgba(143, 21, 31, 0.16);
  border-bottom: 1px solid rgba(143, 21, 31, 0.16);
  transform: translateX(-50%) rotate(45deg);
}

.map-pin span {
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.map-pin strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px 32px;
  background: #17191c;
  color: #fff;
}

.site-footer img {
  width: 150px;
  height: auto;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(15, 17, 20, 0.86);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure {
  width: min(1080px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-weight: 750;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 14px;
    padding: 0 22px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    justify-self: stretch;
    justify-items: stretch;
    gap: 0;
    width: 100%;
    padding: 10px 22px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(31, 35, 40, 0.12);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-16px);
    transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 50px;
    border-radius: 8px;
  }

  .header-action {
    display: none;
  }

  .quick-info,
  .services-grid,
  .practitioner-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-info article:nth-child(2) {
    border-right: 0;
  }

  .quick-info article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intro-section,
  .blood-section,
  .access-section {
    grid-template-columns: 1fr;
  }

  .blood-section {
    gap: 26px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 0 16px;
  }

  .brand__mark {
    width: 58px;
    height: 32px;
  }

  .brand__text span {
    font-size: 0.68rem;
  }

  .brand__text strong {
    font-size: 1rem;
  }

  .hero {
    min-height: 560px;
    height: calc(82svh - var(--header-height));
    max-height: none;
  }

  .hero__media {
    background-position: 54% center;
  }

  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(29, 12, 14, 0.88), rgba(29, 12, 14, 0.5)),
      linear-gradient(0deg, rgba(22, 15, 17, 0.78), rgba(22, 15, 17, 0.12));
  }

  .hero__content,
  .section,
  .quick-info,
  .blood-section,
  .access-section {
    width: min(100% - 32px, 1180px);
  }

  .hero__content {
    padding: 70px 0 56px;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__actions,
  .access-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-info {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .quick-info article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info article:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section h2,
  .blood-section h2,
  .access-section h2 {
    font-size: 2.15rem;
  }

  .services-grid,
  .practitioner-groups {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .blood-section {
    padding: 30px;
  }

  .blood-section__hours {
    padding: 22px;
  }

  .blood-section__hours b {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item--large {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 360px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.55rem;
  }

  .button,
  .header-action {
    padding: 0 14px;
  }

  .contact-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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