:root {
  --ink: #1f2a25;
  --muted: #67726c;
  --green: #214a3a;
  --green-2: #2f614c;
  --cream: #f5f1e8;
  --paper: #fbfaf6;
  --line: #ddd8ce;
  --gold: #b68a3d;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(25, 42, 34, .10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; background: #fff; padding: 10px 14px; z-index: 1000; border: 1px solid var(--line); }
.skip-link:focus { top: 16px; }

.topbar { background: #17392c; color: #dde9e2; font-size: 12px; letter-spacing: .04em; }
.topbar-inner { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.navbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-header { background: rgba(251,250,246,.98); border-bottom: 1px solid rgba(221,216,206,.8); position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.15; font-weight: 700; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.nav-menu { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
.nav-menu a { position: relative; padding-block: 10px; }
.nav-menu a::after { content: ""; position: absolute; height: 2px; left: 0; bottom: 4px; width: 0; background: var(--green); transition: width .2s ease; }
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; margin: 5px 0; }

.hero { min-height: 690px; position: relative; display: grid; align-items: stretch; background: #183b2e; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(17,43,33,.93) 0%, rgba(17,43,33,.72) 48%, rgba(17,43,33,.18) 82%), url("img/gerbang.jpg"); background-position: center; background-size: cover; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr); gap: 70px; align-items: center; padding-block: 90px; }
.hero-copy { max-width: 720px; color: #fff; }
.eyebrow { margin: 0 0 16px; color: #d8c290; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: #7a6538; }
.hero h1, .section-heading h2, .principal-copy h2, .contact-section h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(48px, 6.2vw, 82px); line-height: .99; font-weight: 600; margin: 0; max-width: 850px; }
.hero-lead { font-size: 18px; line-height: 1.7; max-width: 680px; color: #e6ede9; margin: 26px 0 32px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.hero .btn-primary { background: #f1e5c8; color: #19392d; border-color: #f1e5c8; }
.btn-light { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.hero-card { background: rgba(250,248,241,.95); padding: 28px; border-radius: 14px; box-shadow: var(--shadow); align-self: end; margin-bottom: 8px; }
.card-kicker { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7a6538; font-weight: 800; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-card dl { margin: 0; }
.hero-card dl div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.hero-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card dt { color: var(--muted); font-size: 13px; }
.hero-card dd { margin: 0; text-align: right; font-weight: 800; font-size: 13px; }

.quick-links { background: #fff; border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick-grid a { padding: 24px 24px 25px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.quick-grid a:last-child { border-right: 0; margin-right: 0; }
.quick-grid strong { display: block; font-size: 14px; color: var(--green); }
.quick-grid span { font-size: 12px; color: var(--muted); }

.section { padding: 100px 0; }
.soft-section { background: var(--cream); }
.deep-section { background: #17392c; color: #eef2ef; }
.section-heading { margin-bottom: 48px; }
.section-heading.narrow { max-width: 650px; margin-bottom: 0; }
.section-heading.centered { max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2, .principal-copy h2, .contact-section h2 { font-size: clamp(34px, 4.1vw, 54px); line-height: 1.1; font-weight: 600; margin: 0; }
.section-heading p:not(.eyebrow), .principal-copy > p, .contact-intro { color: var(--muted); max-width: 690px; margin-top: 18px; }
.light-heading p:not(.eyebrow) { color: #b9c8c0; }

.profile-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; }
.profile-panel { border-top: 2px solid var(--green); }
.profile-item { display: grid; grid-template-columns: 155px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-item span { color: var(--muted); font-size: 13px; }
.profile-item strong { font-size: 14px; }

.vision-card { background: var(--green); color: #fff; border-radius: var(--radius); padding: 52px; display: grid; grid-template-columns: 140px 1fr; gap: 30px; align-items: start; }
.vision-card > span { color: #d4c294; text-transform: uppercase; font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.vision-card blockquote { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 0; }
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.mission-grid article { background: var(--paper); padding: 34px; min-height: 180px; }
.mission-grid b { color: var(--gold); font-size: 13px; letter-spacing: .1em; }
.mission-grid p { margin: 15px 0 0; }

.principal-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.principal-photo { border-radius: 18px; overflow: hidden; background: var(--cream); aspect-ratio: 4/3; }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-copy > p { font-size: 16px; }
.principal-name { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.principal-name strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.principal-name span { color: var(--muted); font-size: 13px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.program-card { min-height: 260px; padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.025); }
.program-card > span { color: #d4c294; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.program-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; margin: 32px 0 10px; }
.program-card p { color: #bcc9c2; margin: 0; font-size: 14px; }

.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facility-grid article { padding: 30px; min-height: 210px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.facility-number { color: var(--gold); font-size: 12px; font-weight: 800; }
.facility-grid h3 { font-family: Georgia, "Times New Roman", serif; font-size: 23px; margin: 38px 0 8px; }
.facility-grid p { color: var(--muted); font-size: 13px; margin: 0; }

.news-section { background: #f3f0e8; }
.text-link { color: var(--green); font-weight: 800; font-size: 13px; border-bottom: 1px solid rgba(33,74,58,.35); padding-bottom: 3px; }
.news-grid { display: grid; grid-template-columns: 1.15fr .925fr .925fr; gap: 22px; }
.news-card { background: #fff; border-radius: 13px; overflow: hidden; border: 1px solid #e3ded4; }
.news-card img { width: 100%; height: 245px; object-fit: cover; }
.featured-news img { height: 320px; }
.news-body { padding: 24px; }
.news-body span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #806b41; }
.news-body h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.2; margin: 12px 0 10px; font-weight: 600; }
.news-body p { margin: 0; color: var(--muted); font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-item { padding: 0; border: 0; background: #ddd; overflow: hidden; cursor: zoom-in; border-radius: 10px; grid-column: span 4; }
.gallery-item.tall { grid-column: span 4; grid-row: span 2; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.image-modal { border: 0; padding: 0; background: transparent; width: min(1000px, calc(100% - 32px)); overflow: visible; }
.image-modal::backdrop { background: rgba(14,20,17,.86); }
.image-modal img { width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.modal-close { position: absolute; right: 0; top: -48px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); color: #fff; background: rgba(0,0,0,.2); font-size: 25px; cursor: pointer; }

.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 76px; align-items: center; }
.contact-list { border-top: 1px solid var(--line); margin: 32px 0; }
.contact-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: 12px; }
.contact-list strong { font-size: 13px; }
.location-card { background: #fff; padding: 16px; border-radius: 14px; box-shadow: var(--shadow); }
.location-card img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: 9px; }
.location-card div { padding: 20px 8px 10px; }
.location-card span, .location-card small { display: block; color: var(--muted); font-size: 12px; }
.location-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 23px; margin: 3px 0; }

.site-footer { background: #102d22; color: #dce6e1; padding: 54px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.footer-brand span { display: block; font-size: 12px; color: #9eb1a8; }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; color: #91a49b; font-size: 11px; padding-top: 22px; }

@media (max-width: 980px) {
  .topbar-right { display: none; }
  .menu-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 120px; left: 20px; right: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 72px; }
  .hero-card { max-width: 520px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid a:nth-child(2) { border-right: 0; }
  .profile-grid, .principal-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .section-heading.narrow { max-width: none; }
  .program-grid, .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .featured-news { grid-column: span 2; }
  .gallery-item, .gallery-item.tall, .gallery-item.wide { grid-column: span 6; grid-row: span 1; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, var(--container)); }
  .navbar { height: 76px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 10px; }
  .nav-menu { top: 110px; left: 14px; right: 14px; }
  .hero-media { background-image: linear-gradient(180deg, rgba(17,43,33,.62), rgba(17,43,33,.93) 58%), url("img/gerbang.jpg"); background-position: center; }
  .hero-grid { padding-block: 58px; }
  .hero h1 { font-size: 47px; }
  .hero-lead { font-size: 16px; }
  .hero-card { width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid a { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding-right: 0; }
  .quick-grid a:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .section-heading.split-heading { display: block; }
  .section-heading.split-heading .text-link { display: inline-block; margin-top: 20px; }
  .profile-item { grid-template-columns: 105px 1fr; }
  .vision-card { grid-template-columns: 1fr; padding: 32px; }
  .mission-grid { grid-template-columns: 1fr; }
  .program-grid, .facility-grid, .news-grid { grid-template-columns: 1fr; }
  .featured-news { grid-column: auto; }
  .featured-news img, .news-card img { height: 220px; }
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-item, .gallery-item.tall, .gallery-item.wide { grid-column: span 12; }
  .contact-list > div { grid-template-columns: 80px 1fr; }
  .footer-grid, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}
