:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --soft: #eaf6f4;
  --deep: #073b4c;
  --primary: #0b8f8a;
  --primary-dark: #05736f;
  --accent: #f4b942;
  --text: #10212b;
  --muted: #5b6b74;
  --border: #dfeaf0;
  --shadow: 0 18px 45px rgba(7, 59, 76, 0.12);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Cegah gambar tampil melebihi kolomnya di browser manapun (termasuk Chrome) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--deep);
  color: #dff8f5;
  font-size: 0.88rem;
}
.topbar__inner {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  padding: 9px 0;
  flex-wrap: wrap;
}

.site-header {
  background:
    radial-gradient(circle at 78% 24%, rgba(244, 185, 66, .2), transparent 28%),
    linear-gradient(135deg, #e9fbf8 0%, #f9fdff 48%, #dceff6 100%);
  overflow: hidden;
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__mark img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.brand__mark {
  width: 46px; height: 46px; min-width: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 14px; background: var(--primary); color: white; box-shadow: var(--shadow); overflow: hidden;
}
.brand small { display: block; color: var(--muted); font-weight: 600; margin-top: -4px; }
.nav__links { display: flex; align-items: center; gap: 24px; color: #29434e; font-weight: 600; }
.nav__links a:hover { color: var(--primary); }
.nav__toggle { display: none; border: 0; background: var(--surface); border-radius: 10px; padding: 9px 12px; font-size: 1.3rem; }

.hero { padding: 70px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow, .section__label {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -.03em; max-width: 780px; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 670px; margin: 22px 0 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(11,143,138,.23); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: rgba(255,255,255,.72); border-color: var(--border); color: var(--deep); }

.search-card {
  margin-top: 30px;
  max-width: 690px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.search-card label { display: block; font-weight: 800; margin-bottom: 10px; }
.search-card div { display: flex; gap: 10px; }
.search-card input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 16px; min-height: 46px; font: inherit;
}
.search-card button {
  border: 0; border-radius: 999px; background: var(--accent); color: #332400;
  font-weight: 900; padding: 0 18px; cursor: pointer;
}

.hero__visual {
  min-height: 520px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 38%, rgba(255,255,255,.85) 0 5%, transparent 6%),
    linear-gradient(135deg, rgba(7,59,76,.95), rgba(11,143,138,.86)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.13) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.11) 0 1px, transparent 1px 58px);
  position: relative;
  box-shadow: var(--shadow);
}
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; filter: saturate(.9); }
.hero__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.38)); z-index: 1; border-radius: 28px; }
.hero__visual::after {
  content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 30px;
}
.hero-card {
  z-index: 2;
  position: absolute; z-index: 2; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.7);
  border-radius: 26px; box-shadow: var(--shadow); padding: 22px;
}
.hero-card--main { left: -28px; bottom: 34px; width: 280px; }
.hero-card--main p { margin: 0 0 4px; color: var(--muted); font-weight: 700; }
.hero-card--main small { color: var(--muted); }
.hero-card--floating { right: -22px; top: 46px; width: 165px; }
.hero-card--beds { right: 34px; bottom: -24px; width: 170px; }
.hero-card strong { display: block; font-size: 2.1rem; line-height: 1; color: var(--primary); }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #19c37d; display: inline-block; box-shadow: 0 0 0 8px rgba(25,195,125,.16); margin-bottom: 12px; }

.quick-actions { transform: translateY(-36px); }
.quick-actions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 20px; padding: 22px; font-weight: 800; }
.quick-card:hover { transform: translateY(-3px); color: var(--primary); }

.section { padding: 82px 0; }
.section--soft { background: var(--soft); }
.section--deep { background: var(--deep); color: white; }
.section--deep .section__label, .section--deep p { color: #cbe9e5; }
.split, .contact-grid, .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading p, .split p { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stats-grid article, .service-card, .timeline article, .schedule-grid article, .notice-list article, .contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: 0 10px 25px rgba(7,59,76,.06);
}
.stats-grid strong { display:block; color: var(--primary); font-size: 1.55rem; }
.stats-grid span, .notice-list span { color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card div { font-size: 2rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); margin-bottom: 0; }
.service-card.is-hidden { display: none; }
.search-result { font-weight: 800; color: var(--deep); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 900; margin-bottom: 16px;
}
.timeline p { color: var(--muted); }

.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.schedule-grid strong { display: block; color: var(--deep); font-size: 1.08rem; margin-bottom: 8px; }
.schedule-grid span, .schedule-grid small { display: block; color: var(--muted); }
.note { color: var(--muted); font-weight: 700; margin-top: 18px; }

.notice-list { display: grid; gap: 14px; }
.notice-list article { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.notice-list strong { display: block; color: white; margin-bottom: 4px; }
.notice-list span { color: #d7efec; }

.contact-list { padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 800; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; font: inherit;
}
.footer { background: #061f29; color: #d7efec; padding: 34px 0; }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer p { max-width: 560px; color: #9fc5c0; }
.footer a { margin-left: 18px; color: #eafffc; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; z-index: 5;
    background: white; border: 1px solid var(--border); border-radius: 18px; padding: 16px; flex-direction: column; align-items: stretch;
  }
  .nav__links.is-open { display: flex; }
  .hero__grid, .split, .contact-grid, .info-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
  .quick-actions__grid, .service-grid, .timeline, .schedule-grid, .poli-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card--main { left: 16px; }
  .hero-card--floating { right: 16px; }
}

@media (max-width: 560px) {
  .topbar__inner { justify-content: flex-start; gap: 8px 14px; }
  .hero { padding-top: 44px; }
  .search-card div { flex-direction: column; }
  .quick-actions__grid, .service-grid, .timeline, .schedule-grid, .poli-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 360px; border-radius: 28px; }
  .hero-card--floating, .hero-card--beds { display: none; }
  .footer__grid { display: block; }
  .footer a { display: inline-block; margin: 10px 12px 0 0; }
}

.director-note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  background: var(--soft);
  border-radius: 0 16px 16px 0;
}
.director-note strong { color: var(--deep); }
.director-note p { margin: 8px 0 0; color: var(--muted); }
.motto { color: var(--deep); }
.poli-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.poli-grid article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font-weight: 800;
  color: var(--deep);
  box-shadow: 0 8px 24px rgba(6,31,41,.05);
}
.schedule-empty {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: white;
  text-align: center;
}
.schedule-empty strong, .schedule-empty span { display: block; }
.schedule-empty strong { color: var(--deep); font-size: 1.1rem; margin-bottom: 7px; }
.schedule-empty span { color: var(--muted); }
.contact-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--border);
}
.contact-card h3 { margin: 0; color: var(--deep); }
.contact-card p { color: var(--muted); margin: 0; }
.contact-list a { color: var(--deep); font-weight: 800; }
.inline-link { display: inline-block; margin-top: 10px; color: #eafffc; font-weight: 800; }

.nav__dropdown { position: relative; }
.nav__dropdown summary { list-style: none; cursor: pointer; padding: .5rem .7rem; color: inherit; }
.nav__dropdown summary::-webkit-details-marker { display: none; }
.nav__dropdown-menu { position: absolute; top: calc(100% + .5rem); right: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .45rem; box-shadow: 0 14px 35px rgba(0,0,0,.12); z-index: 20; }
.nav__dropdown-menu a { display: block; padding: .65rem .75rem; border-radius: 10px; }
.nav__dropdown-menu a:hover { background: var(--soft); }
.schedule-empty img { max-width: 100%; max-height: 420px; width: auto; border-radius: 16px; margin: 0 auto 1rem; object-fit: contain; }
@media (max-width: 900px) { .nav__dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; background: transparent; } }

/* Galeri Informasi */
.info-gallery-wrap { margin-top: 56px; }
.section-heading--light h2 { color: white; }
.section-heading--light p { color: #cbe9e5; }
.info-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
}
.info-gallery::-webkit-scrollbar { height: 8px; }
.info-gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
.info-gallery::-webkit-scrollbar-track { background: transparent; }
.info-gallery__item {
  appearance: none;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 10px 10px 14px;
  cursor: pointer;
  text-align: left;
  color: #eafffc;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, background .15s ease;
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
}
.info-gallery__item:hover,
.info-gallery__item:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.12); }
.info-gallery__item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  display: block;
}
.info-gallery__item span { font-size: .92rem; font-weight: 700; padding: 0 2px; }
.info-gallery-hint { margin: -6px 0 16px; color: #9fc5c0; font-size: .85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(4, 20, 26, .82); }
.lightbox__body {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 88vh;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: -14px; right: -14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .info-gallery__item { width: 220px; }
}
@media (max-width: 560px) {
  .info-gallery__item { width: 200px; }
  .info-gallery__item img { height: 150px; }
}
