/* =========================================================
   rsuiharapananda.com — landing page statis
   Warna diambil dari logo (hijau) dan fasad gedung (kuning).
   Tanpa JavaScript, tanpa font/CDN eksternal (CSP ketat).
   ========================================================= */

:root {
  --green-900: #00391f;
  --green-800: #004d2a;
  --green-700: #006b3b;
  --green-600: #008f4e;
  --green-50:  #eaf6ef;
  --yellow:    #f5b800;
  --red:       #c8102e;
  --red-dark:  #a00d25;
  --ink:       #1d2a24;
  --ink-soft:  #4b5a53;
  --line:      #dbe5df;
  --bg:        #ffffff;
  --bg-tint:   #f4f8f5;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0, 57, 31, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); color: var(--green-900); }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green-800); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-emergency { background: var(--red); color: #fff; }
.btn-emergency:hover { background: var(--red-dark); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-800); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-light:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); margin-right: auto; }
.brand img { width: 33px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: .8rem; color: var(--ink-soft); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--green-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 30% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 45, 24, .88) 0%, rgba(0, 57, 31, .62) 45%, rgba(0, 57, 31, .05) 85%),
    linear-gradient(0deg, rgba(0, 30, 16, .55) 0%, rgba(0, 30, 16, 0) 45%);
}
.hero-content { padding-block: 96px 72px; max-width: 1140px; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 36ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-900); background: var(--yellow);
  padding: .3em .8em; border-radius: 6px;
}
.eyebrow--green { color: var(--green-700); background: var(--green-50); }

/* ---------- Info cepat ---------- */
.quick { position: relative; z-index: 2; margin-top: -40px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--green-600); }
.quick-card strong { display: block; font-size: 1.05rem; color: var(--green-900); }
.quick-meta { display: block; color: var(--ink-soft); font-size: .95rem; }
.quick-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-50); color: var(--green-700); flex-shrink: 0;
}
.quick-icon svg { width: 24px; height: 24px; }
.quick-card--alert .quick-icon { background: var(--red); color: #fff; }
.quick-card--alert .quick-icon svg { stroke-width: 3.2; }
.quick-card--alert strong { color: var(--red); }

/* ---------- Section ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--ink-soft); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.badges li {
  display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.badges img { max-height: 52px; width: auto; justify-self: center; }
.badges span { font-weight: 600; color: var(--green-900); font-size: .95rem; }

.career { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.career > div { max-width: 640px; }
.career .btn { flex-shrink: 0; }
.career p { color: var(--ink-soft); }
.notice {
  border-left: 4px solid var(--yellow); background: #fff8e1;
  padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--ink) !important; font-size: .95rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { margin: 8px 0 0; display: grid; gap: 18px; }
.contact-list div { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .85); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 36px; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand img { background: #fff; padding: 8px 12px; border-radius: 10px; width: 240px; }
.footer-brand p { margin: 0; font-size: .9rem; max-width: 40ch; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); color: #fff; transition: background-color .2s, color .2s;
}
.footer-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--green-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 14px; font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* ---------- Halaman 404 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; background: var(--bg-tint); }
.error-page img { margin: 0 auto 20px; width: 66px; }
.error-page h1 { color: var(--green-900); font-size: 1.8rem; }
.error-page p { color: var(--ink-soft); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .career { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; gap: 14px; }
  .footer-brand p { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand-text strong { font-size: .95rem; }
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 40, 22, .92) 0%, rgba(0, 45, 24, .7) 55%, rgba(0, 45, 24, .25) 100%); }
  .hero-content { padding-block: 72px 64px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .section { padding-block: 64px; }
  .badges li { grid-template-columns: 110px 1fr; padding: 14px 16px; }
  .btn-lg { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
