/* ===== kliniknet.my.id — satu stylesheet bersama ===== */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f2f2f2;
  --ink: #111111;
  --muted: #b6b5b5;
  --muted2: #6b6a6a;
  --dark: #1e1e1e;
  --line: rgba(30, 30, 30, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-bg: rgba(242, 242, 242, 0.9);
  --nav-solid: rgba(242, 242, 242, 0.97);
  --hover: #ffffff;
  --body: #333333;
  --th: rgba(30, 30, 30, 0.04);
  --e1: #bfbfbf;
  --e2: #c9c9c9;
  --e3: #d2d2d2;
  --e4: #d9d9d9;
  --panel: #1e1e1e;
  --panel-ink: #f6f6f6;
  --panel-muted: rgba(246, 246, 246, 0.6);
  --panel-dim: rgba(246, 246, 246, 0.4);
  --panel-line: rgba(255, 255, 255, 0.08);
  color-scheme: light;
}
/* ponytail: tema gelap = token ditimpa satu blok; dipilih JS dari jam lokal
   (18.00-06.00) atau toggle manual yang tersimpan di localStorage. */
html[data-theme="dark"] {
  --bg: #141414;
  --ink: #f2f2f2;
  --muted: #4a4a4a;
  --muted2: #a6a5a5;
  --line: rgba(246, 246, 246, 0.12);
  --nav-bg: rgba(20, 20, 20, 0.9);
  --nav-solid: rgba(20, 20, 20, 0.97);
  --hover: #242424;
  --body: #c9c8c8;
  --th: rgba(246, 246, 246, 0.06);
  --e1: #3d3d3d;
  --e2: #363636;
  --e3: #2f2f2f;
  --e4: #282828;
  --panel: #242424;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

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

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  order: 2;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted2);
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-tools { order: 3; margin-left: 12px; display: flex; align-items: center; gap: 4px; }
.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--muted2);
  display: grid;
  place-items: center;
  transition: color 0.25s;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { display: none; }
html[data-theme-mode="light"] .ic-sun,
html[data-theme-mode="dark"] .ic-moon,
html[data-theme-mode="auto"] .ic-auto { display: block; }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-burger svg { stroke: var(--ink); }

/* ===== Hero + Echo Stack ===== */
.hero {
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-echo {
  position: relative;
  display: inline-block;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.hero-echo span {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
}
.hero-echo .e1 { transform: translate(-0.04em, -0.04em); color: var(--e1); }
.hero-echo .e2 { transform: translate(-0.08em, -0.08em); color: var(--e2); }
.hero-echo .e3 { transform: translate(-0.12em, -0.12em); color: var(--e3); }
.hero-echo .e4 { transform: translate(-0.16em, -0.16em); color: var(--e4); }
.hero-echo .front { position: relative; color: var(--ink); }
.hero-sub {
  margin-top: 48px;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted2);
}
/* ===== Polish: aksen kecil yang bikin halaman terasa dikerjakan ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted2);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-solid, .btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { opacity: 0.85; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--hover); }

/* ===== Narasi ===== */
.narrative {
  padding: 96px 0;
  border-top: 1px solid var(--bg);
  position: relative;
}
.narrative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 96px;
  background: var(--line);
}
.quote {
  max-width: 980px;
  margin: 0 auto;
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(28px, 4.2vw, 60px);
  text-align: center;
}
.quote em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 96px;
}
.pillar { border-top: 1px solid var(--line); padding-top: 28px; }
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar p { color: var(--muted2); font-size: 15px; }
.pillar .num {
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 24px;
}

/* ===== Showcase: carousel ===== */
.showcase { padding: 96px 0; }
.carousel { position: relative; }
.car-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide {
  flex: 0 0 min(720px, 86%);
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--hover);
}
.car-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.7s var(--ease);
}
.car-slide:hover img { filter: grayscale(0%); }
.car-ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.car-btns { display: flex; gap: 8px; }
.car-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}
.car-btn:hover { background: var(--ink); color: var(--bg); }
.car-dots { display: flex; gap: 8px; }
.car-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.car-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.4); }
.sh-caption {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted2);
  background: var(--hover);
}
.sh-caption strong {
  display: block;
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
/* ponytail: tracking display (-0.05em) hanya terbaca di huruf besar; heading
   kecil (pilar, kartu layanan, judul legal, caption) dilonggarkan + line-height
   dinaikkan supaya tidak bertabrakan saat wrapping. */
h3, .article h2, .sh-caption strong { letter-spacing: -0.01em; line-height: 1.2; }

/* ===== Layanan ===== */
.services { padding: 96px 0; }
.section-head {
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: 64px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 32px;
  background: transparent;
  transition: background 0.35s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.svc:hover { background: var(--hover); }
.svc-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease);
}
.svc:hover .svc-icon { transform: rotate(12deg); }
.svc-icon svg { stroke: var(--ink); }
.svc h3 { font-size: 24px; }
.svc p { color: var(--muted2); font-size: 15px; flex: 1; }
.svc-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.svc-link svg { transition: transform 0.3s var(--ease); }
.svc-link:hover svg { transform: translate(4px, -4px); }

/* ===== Rent Car ===== */
.rentcar {
  margin: 0 0 96px;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 8px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.rentcar h2 { font-size: clamp(32px, 4vw, 56px); color: var(--panel-ink); }
.rentcar-stat { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.rentcar-stat strong {
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--panel-ink);
}
.rentcar-stat span {
  font-size: 18px;
  font-weight: 600;
  color: var(--panel-ink);
  line-height: 1.35;
  border-left: 1px solid var(--panel-line);
  padding-left: 20px;
}
.rentcar-stat span small { display: block; font-size: 14px; font-weight: 400; color: var(--panel-muted); }
.rentcar .eyebrow { color: var(--panel-dim); }
.rentcar p { color: var(--panel-muted); margin-top: 20px; font-size: 16px; }
.rentcar .btn-solid { background: var(--panel-ink); color: var(--panel); margin-top: 28px; }
.rentcar-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.rentcar-list li {
  border-top: 1px solid var(--panel-line);
  padding-top: 12px;
  font-size: 15px;
  color: var(--panel-ink);
}
.rentcar-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rentcar-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(20%);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease);
}
.rentcar-photos img:hover { filter: grayscale(0%); transform: scale(1.05); }

/* ===== Footer ===== */
.footer {
  background: var(--panel);
  color: var(--panel-muted);
  border-top: 1px solid var(--panel-line);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer h4 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-dim);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--panel-muted); text-decoration: none; transition: color 0.25s; }
.footer a:hover { color: var(--panel-ink); }
.footer-logo {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--panel-ink);
  margin-bottom: 16px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact svg { flex: none; margin-top: 3px; stroke: var(--panel-muted); }
/* ponytail: nomor telepon jangan patah di tengah angka saat kolom sempit. */
.footer-contact a { white-space: nowrap; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ===== Artikel legal ===== */
.article { padding: 80px 0 120px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 12px; }
.article .effective { color: var(--muted2); font-size: 14px; margin-bottom: 64px; }
.article h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
}
.article p, .article li { font-size: 16px; color: var(--body); }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.article th, .article td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.article th { font-weight: 500; background: var(--th); }
.article .note {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 16px;
  color: var(--muted2);
  font-size: 15px;
  margin-bottom: 16px;
}

/* ===== Reveal ===== */
.reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease);
}
.reveal.in { clip-path: inset(0 0 0 0); }

/* ===== Tombol WhatsApp melayang ===== */
.fab-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-burger { display: block; order: 3; }
  .nav-tools { order: 2; margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--nav-solid);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .hero { padding: 48px 0 64px; }
  .hero-echo { white-space: normal; }
  .hero-echo .e3, .hero-echo .e4 { display: none; }
  .pillars, .svc-grid { grid-template-columns: 1fr; }
  .car-slide { flex-basis: 100%; }
  .rentcar { grid-template-columns: 1fr; padding: 48px 28px; }
  .rentcar-photos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ponytail: di layar sangat sempit dua kolom footer kalah oleh baris telepon
   nowrap (min-content ~259px); satu kolom saja. Naikkan breakpoint bila
   kontak footer bertambah panjang. */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { clip-path: none; transition: none; }
  .car-track { scroll-behavior: auto; }
  .svc:hover .svc-icon { transform: none; }
}
