:root {
  --navy: #071b2d;
  --navy2: #0c2942;
  --gold: #d6a84b;
  --cream: #f2eee5;
  --paper: #fbfaf6;
  --ink: #132633;
  --muted: #61717c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1rem/1.7 "DM Sans",
    sans-serif;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  background: #fff;
  color: var(--navy);
  padding: 0.8rem 1rem;
}
.skip:focus {
  top: 1rem;
}
.hospital-nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 5rem);
  background: #fff;
  border-bottom: 1px solid rgba(7, 27, 45, 0.1);
}
.hospital-brand img {
  width: clamp(165px, 18vw, 235px);
  height: 68px;
  object-fit: contain;
}
.hospital-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hospital-nav-actions > a {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.hospital-language {
  display: flex;
  border: 1px solid rgba(7, 27, 45, 0.15);
  border-radius: 99px;
  padding: 0.2rem;
}
.hospital-language button {
  border: 0;
  background: transparent;
  color: #61717c;
  padding: 0.45rem 0.55rem;
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}
.hospital-language button.active {
  background: var(--navy);
  color: #fff;
}
.hospital-hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hospital-hero > img,
.hospital-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hospital-hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(3, 19, 33, 0.9),
      rgba(3, 19, 33, 0.45) 55%,
      rgba(3, 19, 33, 0.08)
    ),
    linear-gradient(0deg, rgba(3, 19, 33, 0.78), transparent 55%);
}
.hospital-hero-copy {
  position: relative;
  z-index: 1;
  width: min(900px, 88%);
  margin: 0 0 clamp(4rem, 10vh, 8rem) clamp(1.5rem, 8vw, 8rem);
}
.hospital-hero-copy > p:first-child,
.chapter {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hospital-hero h1 {
  margin: 1rem 0;
  font:
    600 clamp(3.7rem, 7vw, 8rem) / 0.92 "Playfair Display",
    serif;
  letter-spacing: -0.045em;
}
.hospital-hero h1 em {
  color: #edc778;
}
.hospital-hero-copy > p:last-child {
  max-width: 680px;
  font:
    italic 600 clamp(1.15rem, 2vw, 1.6rem) "Playfair Display",
    serif;
}
.hospital-date {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hospital-date strong {
  color: #edc778;
  font-size: 0.9rem;
}
.hospital-origin {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(6rem, 10vw, 10rem) max(1.5rem, calc((100% - 1200px) / 2));
  background: #fff;
}
.hospital-origin h2,
.gallery-heading h2,
.hospital-services h2,
.hospital-closing h2,
.timeline-heading h2 {
  margin: 0;
  font:
    600 clamp(2.9rem, 5vw, 5.6rem) / 1.04 "Playfair Display",
    serif;
  letter-spacing: -0.035em;
}
.hospital-origin h2 em,
.gallery-heading h2 em,
.hospital-closing h2 em {
  color: #a47523;
}
.origin-copy {
  max-width: 620px;
}
.origin-copy .lead {
  color: var(--navy);
  font:
    600 clamp(1.35rem, 2vw, 1.75rem) / 1.45 "Playfair Display",
    serif;
}
.hospital-quote {
  padding: clamp(5rem, 9vw, 9rem) 1.5rem;
  background: var(--gold);
  text-align: center;
}
.hospital-quote blockquote {
  max-width: 1000px;
  margin: auto;
  color: var(--navy);
  font:
    italic 600 clamp(2.2rem, 4.5vw, 5rem) / 1.12 "Playfair Display",
    serif;
}
.hospital-quote p {
  margin: 2rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hospital-timeline {
  padding: clamp(6rem, 10vw, 10rem) max(1.5rem, calc((100% - 1200px) / 2));
  background: var(--navy);
  color: #fff;
}
.light {
  color: #edc778;
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}
.timeline-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.timeline-items article {
  padding: 2rem 2rem 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.timeline-items article + article {
  padding-left: 2rem;
}
.timeline-items article:last-child {
  border: 0;
}
.timeline-items span {
  color: #edc778;
  font-weight: 700;
}
.timeline-items h3 {
  font:
    600 1.55rem "Playfair Display",
    serif;
}
.timeline-items p {
  color: #b5c3cc;
}
.hospital-gallery {
  padding: clamp(6rem, 10vw, 10rem) max(1.5rem, calc((100% - 1300px) / 2));
  background: var(--cream);
}
.hospital-history-gallery {
  padding: clamp(6rem, 10vw, 10rem) max(1.5rem, calc((100% - 1300px) / 2));
  background: #fff;
}
.history-gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 4rem;
}
.history-gallery-heading .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.history-gallery-heading h2 {
  margin: 0;
  color: var(--navy);
  font: 600 clamp(2.7rem, 5vw, 5.6rem) / 1.03 "Playfair Display", serif;
  letter-spacing: -0.035em;
}
.history-gallery-heading h2 em { color: var(--gold); font-weight: 500; }
.history-gallery-heading > p:last-child { margin: 0; color: var(--muted); max-width: 560px; }
.history-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(260px, 34vw) minmax(260px, 34vw);
  gap: 1rem;
}
.history-gallery-grid figure { position: relative; margin: 0; overflow: hidden; background: var(--navy); }
.history-gallery-grid .history-gallery-main { grid-row: 1 / 3; }
.history-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.history-gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 1.25rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 21, 34, 0.88));
}
.history-gallery-grid figcaption span { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.history-gallery-grid figcaption strong { margin-top: .35rem; font: 600 1.4rem "Playfair Display", serif; }
.history-gallery-note { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }
.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}
.gallery-heading > p:last-child {
  color: var(--muted);
  max-width: 560px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: min(70vw, 760px);
}
.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}
.gallery-grid .gallery-main {
  grid-row: 1/3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img {
  transform: scale(1.025);
}
.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem 1rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 21, 34, 0.82));
  font-size: 0.78rem;
}
.hospital-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(6rem, 10vw, 10rem) max(1.5rem, calc((100% - 1200px) / 2));
  background: var(--navy2);
  color: #fff;
}
.hospital-services p:not(.chapter) {
  color: #c1ced6;
  font-size: 1.08rem;
}
.hospital-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 1.3rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.hospital-services small {
  display: block;
  margin-top: 1rem;
  color: #91a5b2;
}
.hospital-closing {
  padding: clamp(6rem, 11vw, 11rem) 1.5rem;
  text-align: center;
  background: #fff;
}
.hospital-closing h2 {
  max-width: 1050px;
  margin: 0 auto 2rem;
}
.hospital-closing > a {
  color: #8a6120;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #b98d3e;
  padding-bottom: 0.25rem;
}
footer {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  background: #041522;
  color: #fff;
}
footer img {
  width: 165px;
  height: 58px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
footer p {
  margin-right: auto;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer a {
  color: #edc778;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 850px) {
  .hospital-nav {
    height: auto;
    min-height: 82px;
    gap: 1rem;
  }
  .hospital-brand img {
    width: 130px;
  }
  .hospital-nav-actions {
    gap: 0.7rem;
  }
  .hospital-nav-actions > a {
    display: none;
  }
  .hospital-hero {
    min-height: 80vh;
  }
  .hospital-hero-copy {
    margin: 0 1.25rem 6rem;
  }
  .hospital-date {
    left: 1.25rem;
    right: auto;
    bottom: 1.5rem;
    text-align: left;
  }
  .hospital-origin,
  .hospital-services,
  .gallery-heading,
  .history-gallery-heading {
    grid-template-columns: 1fr;
  }
  .timeline-heading {
    align-items: start;
    flex-direction: column;
  }
  .timeline-items {
    grid-template-columns: 1fr;
  }
  .timeline-items article,
  .timeline-items article + article {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 36vh 36vh;
    height: auto;
  }
  .gallery-grid .gallery-main {
    grid-row: auto;
  }
  .history-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh 46vh 40vh;
  }
  .history-gallery-grid .history-gallery-main { grid-row: auto; }
  footer {
    flex-wrap: wrap;
  }
  footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
}
