:root {
    --green: #2f9e49;
    --green-dark: #1f7a35;
    --green-soft: #e8f6eb;
    --navy: #16305c;
    --navy-dark: #0d1d3a;
    --ink: #1a2433;
    --muted: #5b6778;
    --line: #e4e8ee;
    --bg: #ffffff;
    --soft: #f6f8fb;
    --font: "Plus Jakarta Sans", Arial, sans-serif;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(13, 29, 58, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--navy-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; color: var(--muted); }

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.narrow { width: min(640px, 100%); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--navy);
    color: #fff;
    padding: 8px 12px;
    z-index: 40;
}

.skip-link:focus { top: 12px; }

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

.header-bar,
.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.header-bar {
    position: relative;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
}

.brand img {
    height: 44px;
    width: auto;
    max-width: min(230px, 58vw);
    object-fit: contain;
}

.site-nav { gap: 22px; }
.site-nav .header-cta { margin-left: 6px; }

.site-nav a {
    text-decoration: none;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--green-dark); }

.header-actions { display: none; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.header-cta-mobile {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    margin: 6px 0;
    background: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: 600 0.92rem/1 var(--font);
    cursor: pointer;
    background: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 158, 73, 0.25);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    border-color: var(--line);
    color: var(--navy);
    background: #fff;
}

.btn:hover { transform: translateY(-1px); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead { font-size: 1.05rem; max-width: 50ch; }
.meta { font-size: 0.85rem; color: var(--muted); }

.text-link {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.hero {
    position: relative;
    min-height: min(78vh, 680px);
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 29, 58, 0.15) 0%, rgba(13, 29, 58, 0.72) 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 72px 0 110px;
    color: #fff;
}

.hero-copy h1,
.hero-copy p,
.hero-copy .eyebrow { color: #fff; }

.hero-copy .lead { color: rgba(255, 255, 255, 0.88); max-width: 42ch; }
.hero-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.8); }
.hero-note a { color: #fff; font-weight: 600; }

.shortcut-wrap {
    position: relative;
    z-index: 2;
    margin-top: -70px;
    padding-bottom: 20px;
}

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

.shortcut-card {
    display: block;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    min-height: 170px;
}

.shortcut-card:hover { border-color: #c7ecd0; }

.shortcut-card .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green-dark);
    margin-bottom: 14px;
}

.shortcut-card h2 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    text-transform: none;
    border: 0;
    padding: 0;
    color: var(--navy-dark);
}

.shortcut-card p { margin: 0; }

.section { padding: 80px 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 560px; margin-bottom: 36px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-foot { margin-top: 32px; }

.icon-wrap {
    width: 40px;
    height: 40px;
    color: var(--green);
    display: grid;
    place-items: center;
}

.icon-wrap svg { width: 22px; height: 22px; }

.vision-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vision-card,
.service-card,
.doctor-card,
.room-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.vision-card { border-top: 4px solid var(--green); }
.motto { font-size: 1.4rem; color: var(--navy-dark); font-weight: 700; }

.gallery-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid figure img {
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.gallery-grid figcaption {
    padding: 14px 4px 0;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 600;
}

.partners h2 { text-align: center; margin-bottom: 28px; }
.partners-img {
    width: min(920px, 100%);
    margin: 0 auto;
    height: auto;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.about-visual {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    min-height: 280px;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

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

.service-card,
.doctor-card { display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.service-card p,
.doctor-card p { margin: 0; }
.service-card .text-link,
.doctor-card .text-link { margin-top: auto; }

.doctor-card { min-height: 210px; }

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.people-heading { margin-top: 48px; }

.person-card,
.doctor-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px 24px;
}

.person-card {
    text-align: center;
}

.person-card--wide {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    text-align: left;
    align-items: center;
    max-width: 820px;
}

.person-photo,
.doctor-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto 14px;
    background: var(--green-soft);
    box-shadow: var(--shadow);
}

.doctor-photo {
    width: 88px;
    height: 88px;
    margin: 0 0 8px;
}

.doctor-photo--lg {
    width: 160px;
    height: 160px;
    margin: 0 0 20px;
}

.person-photo--placeholder,
.doctor-photo--placeholder {
    display: grid;
    place-items: center;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.6rem;
}

.doctor-profile { margin-bottom: 8px; }

.week-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.week-day {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.week-day h2 { font-size: 1.1rem; }
.week-day .plain-list li { display: grid; gap: 2px; }

.search-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr auto;
    gap: 12px;
    margin-bottom: 28px;
    align-items: end;
}

.search-form label,
.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(47, 158, 73, 0.2);
    border-color: var(--green);
}

.info-row,
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item,
.news-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    color: inherit;
}

.news-item a { text-decoration: none; color: var(--navy-dark); }
.contact-name { color: var(--navy-dark); font-weight: 700; margin-bottom: 8px; }

.map {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    min-height: 280px;
    box-shadow: var(--shadow);
}

.map iframe { width: 100%; height: 320px; border: 0; }

.page-intro {
    padding: 56px 0 28px;
    background:
        linear-gradient(180deg, rgba(13, 29, 58, 0.55), rgba(13, 29, 58, 0.7)),
        url("../img/gedung-rs.jpg") center / cover;
    color: #fff;
}

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

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6rem; }

.plain-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.plain-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.contact-form { display: grid; gap: 14px; margin-top: 28px; }
.alert { color: var(--green-dark); font-weight: 600; }
label small { color: #b42318; }

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.room-card .plain-list li { border-bottom: 0; padding: 2px 0; }

.jadwal-figure {
    margin: 0 0 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.jadwal-figure img { width: 100%; height: auto; }

.site-footer {
    background: var(--navy-dark);
    color: #d7deea;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.1fr 0.8fr;
    gap: 32px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
}

.footer-name,
.footer-label { color: #fff; }
.footer-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.site-footer p { color: #c5cedd; }
.site-footer a {
    display: block;
    text-decoration: none;
    color: #c5cedd;
    margin: 6px 0;
}

.site-footer a:hover { color: #fff; }
.footer-copy {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

@media (max-width: 980px) {
    .shortcut-grid,
    .vision-grid,
    .card-grid,
    .service-list,
    .doctor-list,
    .info-row,
    .news-list,
    .gallery-grid,
    .about-grid,
    .contact-grid,
    .people-grid,
    .week-grid,
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .person-card--wide { grid-template-columns: 1fr; text-align: center; }

    .search-form { grid-template-columns: 1fr 1fr; }
    .nav-toggle,
    .header-actions { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        inset: 76px 0 auto;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        gap: 14px;
    }

    .site-nav.is-open { display: flex; }
    .header-cta { width: fit-content; }
}

@media (max-width: 720px) {
    .shortcut-grid,
    .vision-grid,
    .card-grid,
    .service-list,
    .doctor-list,
    .info-row,
    .news-list,
    .gallery-grid,
    .about-grid,
    .contact-grid,
    .people-grid,
    .week-grid,
    .footer-grid,
    .search-form { grid-template-columns: 1fr; }

    .hero { min-height: 520px; }
    .hero-copy { padding: 48px 0 96px; }
    .shortcut-wrap { margin-top: -48px; }
    .section { padding: 56px 0; }
    .header-bar { min-height: 64px; }
}
