:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5b6673;
  --line: #d9e0e7;
  --surface: #f6f8fa;
  --brand: #b51f2b;
  --brand-dark: #7e1420;
  --navy: #1c3144;
  --green: #2f6f4e;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(23, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--brand-dark);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
}

.topbar .wrap,
.header .wrap,
.section,
.footer .wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 164px;
  height: auto;
  display: block;
}

.brand::after {
  content: "Core Medical Center";
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 7px 9px;
}

.nav a:hover {
  color: var(--brand);
}

.hero {
  background:
    linear-gradient(90deg, rgba(28, 49, 68, 0.94), rgba(28, 49, 68, 0.74)),
    url("assets/core-medical-center.jpg") center right / min(520px, 55vw) auto no-repeat,
    var(--navy);
  color: var(--white);
}

.hero .section {
  padding: 76px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #dfe7ef;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.hero p {
  max-width: 720px;
  font-size: 19px;
  margin: 18px 0 0;
  color: #f0f4f7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 54px 0;
}

.section.tight {
  padding-top: 32px;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card p,
.content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.list {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

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

.location {
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  background: var(--white);
}

.status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.content {
  max-width: 900px;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.footer a,
.footer p {
  color: #e8eef4;
}

.footer p {
  margin: 8px 0;
}

.godmode {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 21px;
  cursor: pointer;
}

body.godmode-enabled .godmode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .topbar .wrap,
  .header .wrap,
  .footer .wrap {
    display: block;
  }

  .topbar span {
    display: block;
    overflow-wrap: anywhere;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .hero {
    background: linear-gradient(90deg, rgba(28, 49, 68, 0.95), rgba(28, 49, 68, 0.9)), var(--navy);
  }

  .hero .section {
    padding: 56px 0 62px;
  }

  h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 17px;
  }

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

  .button {
    width: 100%;
    white-space: normal;
  }

  .grid,
  .grid.two,
  .locations {
    grid-template-columns: 1fr;
  }
}
