/*
  Ambulan Den Gemoy
  Warna diambil dari logo dan stiker mobil: merah sirene, hitam, kuning ADG.
  Tema terang dipakai tetap: pengunjung sering membuka di HP saat di jalan atau di rumah sakit,
  dan latar terang lebih mudah dibaca di bawah matahari. Hero dan pita jangkauan sengaja gelap
  karena foto armada diambil malam hari.
*/
:root {
  --ink: #16171b;
  --ink-2: #24262c;
  --paper: #f6f3ee;
  --white: #ffffff;
  --red: #c4161c;
  --red-dark: #9a1014;
  --amber: #f2a900;
  --text: #1d1e22;
  --muted: #55585f;
  --line: #ddd6cb;
  --on-ink: #f3f1ec;
  --on-ink-muted: #c9c6bf;

  --f-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-head); font-stretch: 112%; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }

a, button, summary, select, label[for], [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .section--ink :focus-visible, .cargo :focus-visible, .foot :focus-visible, .top :focus-visible { outline-color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 700; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 18px;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-sm);
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(243, 241, 236, .55); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, .08); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link:hover { color: var(--red-dark); text-decoration-thickness: 3px; }
.link--inline { display: inline; min-height: 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__name { font: 800 .95rem/1.05 var(--f-head); font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--on-ink);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-sm);
  font: 700 .95rem var(--f-body);
}
.menu-btn:hover { border-color: var(--on-ink); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
.top__wa { display: none; }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav a:hover { color: var(--amber); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav, .nav.is-open { display: block; position: static; background: none; border: 0; }
  .nav ul { display: flex; gap: 4px; padding: 0; }
  .nav a { border: 0; padding: 0 10px; min-height: 44px; }
  .top__wa { display: inline-flex; margin-left: 8px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); position: relative; padding: 36px 0 0; }
.hero__in { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.3rem, 8.5vw, 4.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .35em; }
.hero__jam { display: block; color: var(--amber); }
.hero__lead { font-size: 1.15rem; color: var(--on-ink); max-width: 34em; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 18px; }
.hero__note { display: flex; align-items: center; gap: 10px; color: var(--on-ink-muted); font-size: .98rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3ccf6e; flex: none; box-shadow: 0 0 0 4px rgba(60, 207, 110, .18); }
.hero__photo { margin: 0 -16px; }
.hero__photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 45%; }
.ekg { display: block; width: 100%; height: 40px; color: var(--red); margin-top: -1px; background: var(--ink); }

@media (min-width: 560px) {
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 860px) {
  .hero { padding-top: 56px; }
  .hero__in { grid-template-columns: 1fr 420px; align-items: center; gap: 48px; }
  .hero__photo { margin: 0; }
  .hero__photo img { height: 560px; border-radius: var(--r-md) var(--r-md) 0 0; }
  .hero__text { padding-bottom: 40px; }
}

/* Section umum */
.section { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; margin-bottom: .6em; }
.h2::before {
  content: ""; display: block; width: 56px; height: 14px; margin-bottom: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 14'%3E%3Cpolyline points='0,8 18,8 23,1 29,13 34,4 38,8 56,8' fill='none' stroke='%23c4161c' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section--ink .h2::before { filter: brightness(1.25); }
@media (min-width: 860px) { .section { padding: 96px 0; } }

/* Layanan */
.group-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red);
  margin: 40px 0 20px;
}
.group-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.section .group-title:first-of-type { margin-top: 8px; }
.duo { display: grid; gap: 48px; margin-top: 8px; }
.duo + .group-title { margin-top: 72px; }
.svc h4 { font-size: 1.6rem; margin-top: 20px; }
.care { display: flex; flex-direction: column; }
.care__lead { font-size: 1.15rem; color: var(--text); max-width: 30em; }
.care__item { padding: 20px 0; border-top: 1px solid var(--line); }
.care__item:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.care__item h4 { font-size: 1.3rem; margin-bottom: .35em; }
.care__item p { margin: 0; color: var(--muted); max-width: 34em; }
@media (min-width: 860px) {
  .care { padding-top: 8px; }
}
.svc p { color: var(--muted); max-width: 36em; }
.svc__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 860px) {
  .duo { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

.cargo {
  margin-top: 64px; padding: 28px 20px;
  background: var(--ink-2); color: var(--on-ink); border-radius: var(--r-md);
  border-top: 6px solid var(--red);
}
.cargo__title { font-size: clamp(1.5rem, 4vw, 2rem); }
.cargo__head p { color: var(--on-ink-muted); max-width: 44em; }
.cargo__cols { display: grid; gap: 20px; margin: 24px 0; }
.cargo__cols > div { padding: 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); }
.cargo h5 { font-family: var(--f-head); font-stretch: 112%; font-size: 1.15rem; line-height: 1.2; margin: 0 0 .5em; color: var(--amber); }
.cargo__cols p { margin: 0; color: var(--on-ink); }
.cargo__note { color: var(--on-ink-muted); font-size: .98rem; }
@media (min-width: 720px) {
  .cargo { padding: 44px; }
  .cargo__cols { grid-template-columns: 1fr 1fr; }
}

/* Form pesan */
.order { display: grid; gap: 32px; }
.order__intro p { color: var(--muted); max-width: 30em; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--white); padding: 22px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.field--half { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--f-body); color: var(--text);
  background: var(--white); border: 1.5px solid #8e8a83; border-radius: var(--r-sm);
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6e6b66; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff6f6; }
.field__err { margin: 0; color: var(--red-dark); font-weight: 700; font-size: .95rem; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #eef7f0; color: #1d5b31; font-weight: 700; }
.form__status.is-error { background: #fff1f1; color: var(--red-dark); }
@media (min-width: 560px) { .field--half { grid-column: span 1; } }
@media (min-width: 860px) {
  .order { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .order__intro { position: sticky; top: 100px; }
  .form { padding: 32px; }
}

/* Armada */
.fleet__head { max-width: 40em; }
.fleet__head p { color: var(--muted); }
.fleet__main { margin-top: 16px; }
.fleet__main img { width: 100%; aspect-ratio: 1200 / 403; object-fit: cover; border-radius: var(--r-md); }
.fleet__main figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.fleet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fleet__row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.fleet__logo {
  grid-column: 1 / -1; display: grid; place-items: center;
  background: var(--ink); border-radius: var(--r-md); padding: 28px;
}
.fleet__logo img { width: min(220px, 60%); aspect-ratio: 1; object-fit: contain; border-radius: 0; }
@media (min-width: 860px) {
  .fleet__row { grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
  .fleet__logo { grid-column: auto; }
}

.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.inside__text { grid-column: 1 / -1; margin-bottom: 8px; }
.inside__text h3 { font-size: 1.5rem; }
.inside__text p { color: var(--muted); max-width: 36em; }
.inside img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.inside figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }
@media (min-width: 860px) {
  .inside { grid-template-columns: 5fr 3fr 3fr; gap: 24px; align-items: start; }
  .inside__text { grid-column: auto; padding-top: 8px; }
}

/* Jangkauan */
.reach { display: grid; gap: 8px; }
.reach__body p { color: var(--on-ink); max-width: 38em; font-size: 1.1rem; }
@media (min-width: 860px) {
  .reach { grid-template-columns: 5fr 7fr; gap: 56px; }
}

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 0;
  font: 700 1.1rem/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--red); }
.faq details p { color: var(--muted); padding: 0 0 18px; margin: 0; max-width: 42em; }
@media (min-width: 860px) {
  .faq { grid-template-columns: 4fr 8fr; gap: 56px; }
}

/* Kontak */
.contact__numbers { display: grid; gap: 16px; margin: 24px 0; }
.contact__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 18px; }
.contact__label { margin: 0 0 4px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.contact__card .contact__actions { margin: 16px 0 0; }
@media (min-width: 860px) {
  .contact__numbers { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact__card { padding: 28px; }
}
.foot__brand a { color: var(--on-ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot__brand a:hover { color: var(--amber); text-decoration: underline; }
.contact__big { margin: 0; }
.contact__big a {
  font: 800 clamp(2rem, 8vw, 3.2rem)/1.1 var(--f-head); font-stretch: 112%;
  color: var(--red); text-decoration: none; letter-spacing: -.01em;
}
.contact__big a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 6px; }
.contact__sub { color: var(--muted); margin-top: 8px; }
.contact__actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.contact__mail { color: var(--muted); }
@media (min-width: 560px) { .contact__actions { flex-direction: row; } }

.posko { display: grid; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.posko h3 { font-size: 1.3rem; }
.posko p { color: var(--muted); }
.posko__map { width: 100%; height: 300px; border: 0; border-radius: var(--r-md); background: var(--line); }
@media (min-width: 860px) {
  .posko { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
  .posko__map { height: 360px; }
}

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 40px 0 32px; }
.foot__in { display: grid; gap: 24px; }
.foot__brand { display: flex; gap: 14px; align-items: center; }
.foot__brand p { margin: 0; }
.foot__brand strong { color: var(--on-ink); }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-ink); }
.foot__links a:hover { color: var(--amber); text-decoration: underline; }
.foot__copy { margin: 0; font-size: .9rem; }
@media (min-width: 860px) {
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .foot__links { justify-content: center; }
}

/* Bilah kontak cepat di HP */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-weight: 700; text-decoration: none; color: var(--white);
}
.quickbar__tel { background: var(--ink-2); }
.quickbar__tel:hover { background: #33363d; }
.quickbar__wa { background: var(--red); }
.quickbar__wa:hover { background: var(--red-dark); }
.quickbar a:focus-visible { outline: 3px solid var(--amber); outline-offset: -5px; }
body { padding-bottom: 56px; }
@media (min-width: 900px) {
  .quickbar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
