/* ===================================================================
   public.css — Portal Layanan Ramah Disabilitas RSUD Ploso
   Token warna & tipografi mengikuti spesifikasi resmi.
   =================================================================== */

:root{
  --teal:#006064;
  --teal-dark:#00363a;
  --gold:#F9A825;
  --ink:#121212;
  --bg:#FFFFFF;
  --widget-grey:#F5F5F5;
  --focus:#F9A825;
  --radius:14px;
  --font-display:'Atkinson Hyperlegible Next','Atkinson Hyperlegible',-apple-system,'Segoe UI',sans-serif;
  --font-body:'Atkinson Hyperlegible',-apple-system,'Segoe UI',sans-serif;
  --scale:1;
}

html{ font-size:calc(16px * var(--scale)); scroll-behavior:smooth; }
*{ box-sizing:border-box; }

html.hc{
  --bg:#000000; --ink:#FFFFFF; --widget-grey:#0d0d0d; --teal:#00e5ea; --gold:#FFD54A;
}
html.mono{ filter:grayscale(1); }
html.invert{ filter:invert(1) hue-rotate(180deg); }
html.dyslexia body{
  font-family:'Comic Sans MS','Atkinson Hyperlegible',sans-serif;
  letter-spacing:.02em; word-spacing:.12em; line-height:1.9;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  transition:background .25s ease,color .25s ease;
}

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

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--gold); color:var(--ink);
  padding:14px 20px; font-weight:800; z-index:999; border-radius:0 0 10px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:6px;
  animation:pulse-focus 1.6s ease-in-out infinite;
}
@keyframes pulse-focus{
  0%,100%{ box-shadow:0 0 0 0 rgba(249,168,37,.55); }
  50%{ box-shadow:0 0 0 7px rgba(249,168,37,0); }
}
html.highlight :is(a,button,h1,h2,h3){
  text-decoration-thickness:2px; text-underline-offset:4px;
}
html.highlight h1,html.highlight h2,html.highlight h3{
  background:linear-gradient(transparent 60%, rgba(249,168,37,.35) 60%);
  display:inline;
}

/* ===== Landing modal ===== */
.landing{
  position:fixed; inset:0;
  background:radial-gradient(1100px 700px at 15% -10%, #00838a 0%, var(--teal) 45%, var(--teal-dark) 100%);
  display:flex; align-items:center; justify-content:center;
  padding:24px; z-index:50;
}
.landing-inner{ max-width:920px; width:100%; text-align:center; color:#fff; }
.brandmark{ display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:10px; }
.brandmark img{ height:52px; width:auto; margin:0 auto; filter:brightness(0) invert(1); opacity:.95; }
.landing-eyebrow{ font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; color:#B2EBF2; font-weight:700; margin:0 0 6px; }
.landing h1{ font-family:var(--font-display); font-size:clamp(1.5rem,3.4vw,2.5rem); margin:0 0 10px; font-weight:800; }
.landing p.lede{ color:#E0F7FA; max-width:56ch; margin:0 auto 34px; font-size:1.02rem; }

.choice-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; text-align:left; }
@media (max-width:680px){ .choice-grid{ grid-template-columns:1fr; } }

.choice-card{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.28);
  border-radius:var(--radius); padding:26px 24px 24px; cursor:pointer;
  color:#fff; font:inherit; text-align:left; display:flex; flex-direction:column; gap:10px;
  text-decoration:none; min-height:48px;
  transition:transform .18s ease, background .18s ease;
}
.choice-card:hover{ background:rgba(255,255,255,.16); transform:translateY(-3px); }
.choice-top{ display:flex; align-items:center; justify-content:space-between; }
.key-badge{
  width:34px; height:34px; border-radius:50%; background:var(--gold); color:#3a2600;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem; flex:none;
}
.choice-icon{ font-size:1.9rem; line-height:1; }
.choice-card h2{ font-family:var(--font-display); font-size:1.2rem; margin:2px 0 0; }
.choice-card p{ margin:0; color:#DFF6F7; font-size:.94rem; }
.choice-hint{ margin-top:auto; font-size:.8rem; color:#B2EBF2; font-weight:700; }

/* ===== Toolbar ===== */
.a11y-toolbar{
  position:sticky; top:0; z-index:40;
  background:var(--widget-grey); border-bottom:1px solid rgba(0,0,0,.08);
  display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; padding:10px 16px;
}
.a11y-toolbar .group{ display:flex; gap:4px; align-items:center; padding-right:10px; border-right:1px solid rgba(0,0,0,.12); flex-wrap:wrap; }
.a11y-toolbar .group:last-child{ border-right:none; }
.a11y-toolbar button{
  font-family:var(--font-body); background:#fff; border:1px solid rgba(0,0,0,.15); color:var(--ink);
  border-radius:8px; padding:8px 11px; font-size:.8rem; font-weight:700; cursor:pointer; min-height:36px;
}
.a11y-toolbar button[aria-pressed="true"]{ background:var(--teal); color:#fff; border-color:var(--teal); }
.a11y-toolbar .label{ font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#546; opacity:.65; margin-right:2px; }

/* ===== Portal content ===== */
header.hero{ padding:48px 20px 36px; background:linear-gradient(180deg, var(--widget-grey), var(--bg)); text-align:center; }
header.hero .brandmark img{ height:44px; filter:none; }
header.hero h1{ font-family:var(--font-display); color:var(--teal); font-size:clamp(1.4rem,3vw,2.1rem); margin:14px 0 8px; }
header.hero p{ max-width:60ch; margin:0 auto; color:#3a3a3a; }

main{ max-width:1100px; margin:0 auto; padding:10px 20px 80px; }
.section-label{ font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--teal); margin:36px 0 4px; }
main h2{ font-family:var(--font-display); font-size:1.4rem; margin:0 0 20px; }

.catalog{ display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:18px; }
.service-card{ border:1px solid rgba(0,0,0,.1); border-radius:var(--radius); overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.service-banner{ height:110px; background:linear-gradient(135deg,var(--teal),#00acc1); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.service-banner img{ width:100%; height:100%; object-fit:cover; }
.service-banner .placeholder{ font-size:2rem; }
.service-card .body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.service-card h3{ margin:0; font-size:1.02rem; font-family:var(--font-display); }
.service-card p{ margin:0; font-size:.9rem; color:#333; flex:1; }
.service-card .cta{ align-self:flex-start; background:var(--gold); color:#3a2600; font-weight:800; border:none; border-radius:8px; padding:9px 14px; font-size:.85rem; cursor:pointer; min-height:44px; text-decoration:none; }

.reading-guide{
  position:fixed; left:0; right:0; height:34px;
  background:rgba(249,168,37,.22); border-top:1px solid rgba(249,168,37,.6); border-bottom:1px solid rgba(249,168,37,.6);
  pointer-events:none; z-index:30; display:none;
}
html.reading-guide-on .reading-guide{ display:block; }

.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

footer.site{ background:var(--teal-dark); color:#e0f7fa; text-align:center; padding:24px 20px; font-size:.83rem; }

@media (prefers-reduced-motion: reduce){
  :focus-visible{ animation:none; }
  .choice-card{ transition:none; }
}
