/*
Theme Name:   PanduMobil
Theme URI:    https://pandumobil.com
Description:  Child theme GeneratePress untuk PanduMobil, panduan independen mobil bekas di Medan.
Author:       PanduMobil
Template:     generatepress
Version:      1.1.0
Text Domain:  pandumobil
*/

:root {
  --pm-navy: #0F1E2E;
  --pm-navy-2: #22344A;
  --pm-accent: #C2410C;
  --pm-accent-soft: #F7A26B;
  --pm-ground: #F3F5F7;
  --pm-surface: #FFFFFF;
  --pm-line: #DCE3EA;
  --pm-line-strong: #B8C2CC;
  --pm-chip: #EEF2F5;
  --pm-ink: #0F1E2E;
  --pm-ink-2: #4A5562;
  --pm-on-navy: #C5D0DB;
  --pm-display: 'Archivo', system-ui, sans-serif;
  --pm-body: 'Source Sans 3', system-ui, sans-serif;
  --pm-radius: 12px;
  --pm-wrap: 1160px;
}

/* ---------- Dasar ---------- */
body {
  background: var(--pm-ground);
  color: var(--pm-ink);
  font-family: var(--pm-body);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6,
.main-title, .entry-title {
  font-family: var(--pm-display);
  color: var(--pm-ink);
  letter-spacing: -0.015em;
}
h1, .entry-title { font-weight: 800; line-height: 1.12; }
h2 { font-weight: 800; font-size: 30px; line-height: 1.2; }
h3 { font-weight: 700; font-size: 22px; }
a { color: var(--pm-accent); }
a:hover, a:focus { color: var(--pm-navy); }
::selection { background: var(--pm-accent-soft); color: var(--pm-navy); }

/* ---------- Header ---------- */
.site-header, .main-navigation, .main-navigation ul ul {
  background: var(--pm-navy);
}
.site-header .inside-header { padding-top: 16px; padding-bottom: 16px; }
.main-title a, .main-title a:hover {
  color: #FFFFFF;
  font-family: var(--pm-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.site-description { color: var(--pm-on-navy); }
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  color: #DCE3EA;
  font-weight: 600;
  font-size: 16px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #FFFFFF;
  background: transparent;
}
.main-navigation .main-nav ul li.pm-nav-cta > a {
  background: var(--pm-accent);
  color: #FFFFFF;
  border-radius: 6px;
  line-height: 44px;
  padding: 0 18px;
  margin-left: 8px;
}
.main-navigation .main-nav ul li.pm-nav-cta > a:hover { background: #A2370A; }

/* ---------- Konten umum ---------- */
.separate-containers .inside-article,
.one-container .site-content,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.inside-page-header {
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
}
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  overflow: hidden;
  font-size: 16px;
}
.entry-content th { background: var(--pm-chip); text-align: left; font-weight: 700; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 0; border-top: 1px solid var(--pm-line); }
.entry-content blockquote {
  border-left: 0;
  background: var(--pm-chip);
  border-radius: var(--pm-radius);
  padding: 18px 22px;
  font-style: normal;
}
button, .button, input[type="submit"], .wp-block-button__link, .wp-element-button {
  background: var(--pm-accent);
  color: #FFFFFF;
  border-radius: 6px;
  font-weight: 700;
  min-height: 44px;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: #A2370A;
  color: #FFFFFF;
}
input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
  border: 1px solid var(--pm-line-strong);
  border-radius: 6px;
  min-height: 44px;
  color: var(--pm-ink);
  background: #FFFFFF;
}
.pm-note {
  background: var(--pm-chip);
  border-radius: var(--pm-radius);
  padding: 16px 20px;
  color: var(--pm-ink-2);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-info { background: var(--pm-navy); color: var(--pm-on-navy); }
.site-info a { color: #FFFFFF; }
.pm-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 8px; }
.pm-footer-links a { color: #DCE3EA; text-decoration: none; }
.pm-footer-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* ---------- Footer selalu di bawah ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .site, body > #page { flex: 1 0 auto; width: 100%; }
body > .site-footer { flex-shrink: 0; }

/* ---------- Logo monogram di header ---------- */
.main-title a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.main-title a::before {
  content: "P";
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--pm-accent); color: #FFFFFF;
  font-family: var(--pm-display); font-weight: 800; font-size: 21px; line-height: 1;
}

/* ---------- Halaman kosong & 404 ---------- */
.pm-helpful { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.pm-helpful a { display: block; padding: 14px 18px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); text-decoration: none; font-weight: 600; color: var(--pm-ink); }
.pm-helpful a:hover { border-color: var(--pm-navy); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }

/* ---------- Artikel ---------- */
.rank-math-breadcrumb { font-size: 14px; color: var(--pm-ink-2); margin-bottom: 10px; }
.rank-math-breadcrumb a { color: var(--pm-ink-2); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--pm-accent); }
.entry-meta { color: var(--pm-ink-2); font-size: 14px; }
.pm-article-note { margin-top: 32px; }
.pm-related { margin-top: 32px; }
.pm-related h2 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Lebar baca halaman & artikel ---------- */
body:not(.home) .site-content { justify-content: center; }
body:not(.home) .site-content .content-area { max-width: 820px; margin-left: auto; margin-right: auto; float: none; width: 100%; }

/* ---------- Beranda ---------- */
body.home { overflow-x: clip; }
.home .site-content { display: block; padding: 0; }
.pm-home { width: 100%; }
.pm-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.pm-wrap { max-width: var(--pm-wrap); margin: 0 auto; padding: 0 24px; }
.pm-section { padding: 64px 0 0; }
.pm-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.pm-section-head h2 { margin: 0; }
.pm-section-head p { margin: 6px 0 0; color: var(--pm-ink-2); }
.pm-more { font-weight: 700; text-decoration: none; }

.pm-hero { background: var(--pm-navy); color: #FFFFFF; padding: 56px 0 80px; }
.pm-hero .pm-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.pm-hero-copy { flex: 999 1 520px; min-width: 0; }
.pm-kicker { margin: 0 0 14px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pm-accent-soft); }
.pm-hero h1 { color: #FFFFFF; margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
.pm-hero-lead { margin: 20px 0 0; font-size: 19px; color: var(--pm-on-navy); max-width: 620px; }
.pm-search { flex: 1 1 340px; background: #FFFFFF; color: var(--pm-ink); border-radius: var(--pm-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.pm-search-title { margin: 0; font-family: var(--pm-display); font-weight: 700; font-size: 20px; }
.pm-search label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.pm-search input, .pm-search select { width: 100%; font-size: 16px; padding: 10px 12px; }
.pm-search button { width: 100%; font-size: 16px; }

.pm-chips-wrap { margin-top: -28px; position: relative; z-index: 2; }
.pm-chips { background: #FFFFFF; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.pm-chip { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; background: var(--pm-chip); color: var(--pm-ink); min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.pm-chip:hover { background: var(--pm-navy); color: #FFFFFF; }

.pm-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pm-card { background: #FFFFFF; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pm-card h3 { margin: 0; font-size: 20px; }
.pm-card p { margin: 0; color: var(--pm-ink-2); }
.pm-card-slot { border: 2px dashed var(--pm-line-strong); min-height: 200px; justify-content: center; }
.pm-models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pm-models span { background: var(--pm-chip); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }

.pm-post-card { text-decoration: none; color: var(--pm-ink); }
.pm-post-card .pm-cat { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pm-accent); }
.pm-post-card .pm-post-title { font-family: var(--pm-display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.pm-post-card:hover { border-color: var(--pm-navy); color: var(--pm-ink); }

.pm-band { background: var(--pm-accent); color: #FFFFFF; border-radius: 16px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.pm-band h2 { color: #FFFFFF; margin: 0; font-size: 30px; }
.pm-band p { margin: 8px 0 0; font-size: 18px; color: #FFF1E8; }
.pm-band a { background: #FFFFFF; color: var(--pm-navy); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 6px; }

.pm-faq details { background: #FFFFFF; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 18px 22px; margin-bottom: 12px; }
.pm-faq summary { font-weight: 700; font-size: 18px; cursor: pointer; }
.pm-faq details p { margin: 10px 0 0; color: var(--pm-ink-2); }
.pm-home-end { height: 80px; }

/* ---------- Kalkulator kredit ---------- */
.pm-calc { background: #FFFFFF; border: 1px solid var(--pm-line); border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.pm-calc-form { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pm-calc-form h2 { margin: 0; }
.pm-calc-form p { margin: 0; color: var(--pm-ink-2); }
.pm-calc-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.pm-calc-form input, .pm-calc-form select { width: 100%; font-size: 16px; padding: 10px 12px; }
.pm-calc-form input[type="range"] { accent-color: var(--pm-accent); min-height: 32px; padding: 0; border: 0; }
.pm-calc-row { display: flex; gap: 16px; flex-wrap: wrap; }
.pm-calc-row label { flex: 1 1 140px; }
.pm-calc-out { flex: 1 1 280px; background: var(--pm-navy); color: #FFFFFF; border-radius: var(--pm-radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.pm-calc-out .pm-label { margin: 0; color: var(--pm-on-navy); font-size: 15px; }
.pm-calc-big { margin: 4px 0 0; font-family: var(--pm-display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; color: #FFFFFF; }
.pm-calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: 15px; }
.pm-calc-grid p { margin: 0; }
.pm-calc-grid strong { display: block; color: #FFFFFF; }

@media (max-width: 768px) {
  .pm-section { padding-top: 48px; }
  .pm-hero { padding: 40px 0 72px; }
  .pm-band { padding: 28px; }
  .pm-calc { padding: 22px; }
  .pm-wrap { padding: 0 16px; }
}
