:root {
  --ink: #14313b;
  --muted: #5e737a;
  --line: #dce8ea;
  --brand: #0f8a8d;
  --brand-dark: #0b6469;
  --accent: #d64f3f;
  --soft: #eef7f5;
  --surface: #ffffff;
  --warm: #f8f3ec;
  --blue: #1f5f9d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #fff;
}

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
}

.topbar .wrap,
.nav .wrap,
.footer-grid,
.hero-grid,
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .wrap {
  min-height: 42px;
  flex-wrap: wrap;
  padding: 8px 0;
}

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

.nav .wrap {
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 260px;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-dark);
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #31535a;
  font-size: 14px;
  font-weight: 700;
}

.menu a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 138, 141, .18);
}

.btn.secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #b9d9d8;
  box-shadow: none;
}

.btn.emergency {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(214, 79, 63, .18);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .88) 43%, rgba(255, 255, 255, .16) 78%),
    url("../Rumah Sakit Siti Miriam - Lawang/PUBLISHED/home/54a654575c1d59993c1e96fcd6e7907a.jpg") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 620px;
}

.hero-copy {
  width: min(660px, 100%);
  padding: 74px 0 118px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #b9d9d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
.hero-title {
  margin: 20px 0 18px;
  color: #102f38;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: #102f38;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: #173943;
  font-size: 21px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: #416169;
  font-size: 19px;
}

.hero-actions,
.quick-actions,
.service-grid,
.doctor-grid,
.news-grid,
.feature-grid,
.schedule-grid,
.article-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(3, max-content);
}

.quick-actions {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: -72px auto 0;
  grid-template-columns: repeat(4, 1fr);
}

.quick-card,
.service-card,
.doctor-card,
.news-card,
.feature-card,
.schedule-card,
.article-card,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quick-card {
  min-height: 148px;
  padding: 22px;
  box-shadow: 0 20px 44px rgba(21, 57, 66, .12);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.muted,
.quick-card span,
.service-card p,
.doctor-card p,
.news-card p,
.feature-card p,
.schedule-card p,
.article-card p,
.metric-card p {
  color: var(--muted);
}

section,
.page-section {
  padding: 86px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 500px;
  color: var(--muted);
}

.services {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.service-grid,
.doctor-grid,
.news-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.feature-card,
.schedule-card,
.metric-card {
  min-height: 230px;
  padding: 28px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #36565e;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.warm {
  background: var(--warm);
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img,
.article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--soft);
}

.doctor-card div,
.article-card div,
.news-card {
  padding: 22px;
}

.cta {
  padding: 70px 0;
  background: var(--brand-dark);
  color: #fff;
}

.cta h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
}

.page-hero {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(11, 100, 105, .92), rgba(15, 138, 141, .76)),
    url("../Rumah Sakit Siti Miriam - Lawang/PUBLISHED/home/54a654575c1d59993c1e96fcd6e7907a.jpg") center / cover no-repeat;
  color: #fff;
}

.page-hero h1,
.page-hero .lead {
  color: #fff;
}

.page-hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
}

.panel {
  padding: 28px;
}

.schedule-grid {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}

.schedule-card img {
  width: 100%;
  border-radius: 8px;
}

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

.article-card {
  overflow: hidden;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #244951;
  font-weight: 700;
}

footer {
  padding: 52px 0;
  background: #102f38;
  color: #d7e8ea;
}

.footer-grid {
  align-items: flex-start;
}

footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

footer p {
  color: #bdd0d3;
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 48%, rgba(255, 255, 255, .42) 100%),
      url("../Rumah Sakit Siti Miriam - Lawang/PUBLISHED/home/54a654575c1d59993c1e96fcd6e7907a.jpg") center bottom / cover no-repeat;
  }

  .hero-actions,
  .quick-actions,
  .service-grid,
  .doctor-grid,
  .news-grid,
  .feature-grid,
  .split,
  .schedule-grid,
  .article-grid,
  .metric-grid,
  .cta .wrap {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    margin-top: -46px;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav .wrap {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero,
  .hero-grid {
    min-height: 590px;
  }

  .hero-copy {
    padding: 42px 0 94px;
  }

  .btn {
    width: 100%;
  }

  section,
  .page-section {
    padding: 64px 0;
  }
}
