:root {
  --gold: #cba85c;
  --blue: #032550;
  --charcoal: #2c2d30;
  --ink: #2b3340;
  --muted: #5a6472;
  --bg: #fdfcf9;
  --bg-warm: #f6f2ea;
  --max: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout shell ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.5rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--bg);
}

/* Faded clinicians photo — anchored right, dissolving into white on the left
   so the headline stays fully legible. Lives on its own layer behind content. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(95deg, var(--bg) 30%, rgba(253, 252, 249, 0.65) 50%, rgba(253, 252, 249, 0) 80%),
    url("assets/srh-blue-doctors-background.png") no-repeat;
  background-size: auto, cover;
  background-position: center, center right;
  pointer-events: none;
}

/* Subtle warm/blue corner washes layered above the photo for depth */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 88% 10%, rgba(203, 168, 92, 0.06), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(3, 37, 80, 0.05), transparent 55%);
  pointer-events: none;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: block;
  line-height: 0;
}

.logo {
  height: clamp(72px, 8vw, 104px);
  width: auto;
  display: block;
}

/* ---------- Primary nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.site-nav__link {
  position: relative;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--blue);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after {
  right: 0;
}

.site-nav__link.is-active {
  color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 780px;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}

.title {
  color: var(--charcoal);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.title__dash {
  white-space: nowrap;
}

.lede {
  margin-top: clamp(1.25rem, 3vh, 1.9rem);
  max-width: 34ch;
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

/* ---------- Contact / footer ---------- */
.contact {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.5rem;
  color: var(--muted);
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  line-height: 1.55;
}

.contact__reach {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(1.6rem, 4vh, 2.5rem);
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact__link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--gold);
}

.contact__where {
  text-align: right;
}

.contact__address {
  font-style: normal;
}

.contact__address strong {
  color: var(--blue);
  font-weight: 600;
}

.contact__emergency {
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 0.85em;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .page {
    padding: 1.75rem 1.4rem 2rem;
  }

  .hero {
    align-self: center;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .contact__where {
    text-align: left;
  }

  .contact__reach {
    flex-direction: column;
    gap: 1.1rem;
  }

  /* Calmer, more legible veil over the photo on narrow screens */
  .page::before {
    background:
      linear-gradient(180deg, rgba(253, 252, 249, 0.92) 0%, rgba(253, 252, 249, 0.55) 45%, rgba(253, 252, 249, 0.78) 100%),
      url("assets/srh-blue-doctors-background.png") no-repeat;
    background-size: auto, cover;
    background-position: center, center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .eyebrow { animation-delay: 0.05s; }
  .title { animation-delay: 0.15s; }
  .lede { animation-delay: 0.28s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================================
   Reading pages (News, Press Release)
   ===================================================================== */
.page--reading {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: visible;
  background: var(--bg);
}

.page--reading::before,
.page--reading::after {
  content: none;
  display: none;
}

/* Sticky slim header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 252, 249, 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(3, 37, 80, 0.08);
}

.site-header .masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1.5rem, 7vw, 7rem);
}

.site-header .logo {
  height: clamp(48px, 5.5vw, 64px);
}

/* Main reading column */
.reading {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 7vw, 7rem) clamp(3.5rem, 8vw, 6rem);
}

/* ---------- Page hero (News index) ---------- */
.page-hero {
  max-width: 40rem;
  padding-bottom: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(3, 37, 80, 0.1);
}

.page-hero__title {
  color: var(--charcoal);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: clamp(0.75rem, 2vh, 1rem);
}

.page-hero__lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

/* ---------- News list ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border: 1px solid rgba(3, 37, 80, 0.08);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 1px 2px rgba(3, 37, 80, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  box-shadow: 0 14px 40px rgba(3, 37, 80, 0.1);
  transform: translateY(-2px);
  border-color: rgba(203, 168, 92, 0.4);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.tag--gold {
  color: #8a6d2b;
  background: rgba(203, 168, 92, 0.16);
}

.news-card__title {
  margin-top: 0.9rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.news-card__title a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
  color: var(--blue);
}

.news-card__excerpt {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.news-card__cta:hover,
.news-card__cta:focus-visible {
  color: var(--gold);
  gap: 0.7rem;
}

/* ---------- Article (press release) ---------- */
.article {
  max-width: 46rem;
  margin: 0 auto;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article__back:hover,
.article__back:focus-visible {
  color: var(--blue);
}

.article__header {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(3, 37, 80, 0.1);
}

.article__title {
  color: var(--charcoal);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-top: clamp(0.75rem, 2vh, 1rem);
}

.article__subhead {
  margin-top: 1.1rem;
  color: var(--blue);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

.article__dateline {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.article__body {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

.article__body p {
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.72;
  margin-bottom: 1.35rem;
}

.article__body strong {
  color: var(--blue);
  font-weight: 600;
}

/* Pull quotes */
.pull-quote {
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-left: 3px solid var(--gold);
}

.pull-quote p {
  color: var(--charcoal);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.pull-quote p::before {
  content: "\201C";
}

.pull-quote p::after {
  content: "\201D";
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Facility stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  background: rgba(3, 37, 80, 0.1);
  border: 1px solid rgba(3, 37, 80, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.stat {
  background: var(--bg-warm);
  padding: clamp(1.25rem, 3vw, 1.75rem) 1rem;
  text-align: center;
}

.stat__num {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* About cards */
.article__about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: clamp(2.25rem, 5vw, 3.25rem) 0;
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(3, 37, 80, 0.1);
}

.about-card {
  background: var(--bg-warm);
  border-radius: 14px;
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.about-card h2 {
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Media contact */
.media-contact {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(3, 37, 80, 0.1);
}

.media-contact__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: 1.25rem;
}

.media-contact__name {
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.15rem;
}

.media-contact__role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.media-contact__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.media-contact__links li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.media-contact__end {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3em;
}

/* ---------- Site footer (reading pages) ---------- */
.site-footer {
  border-top: 1px solid rgba(3, 37, 80, 0.1);
  background: var(--bg-warm);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 7vw, 7rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
}

.site-footer__name {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.site-footer__address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.site-footer__emergency {
  margin-top: 0.5rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ---------- Reading-page responsive ---------- */
@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .article__about {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 1.4rem;
  }
}
