/* ==========================================================
   CV.AL-Baghdadi - Kursus Stir Mobil & Biro Jasa BSD Serpong
   Stylesheet website publik. Tanpa framework.
   Warna & proporsi mengikuti tampilan situs WordPress (Travelify)
   sebelumnya: bar biru #1e73be, latar wrapper #f8f8f8, kolom
   konten 65.64% + sidebar 31.28%, banner foto di atas menu.
   ========================================================== */

:root {
    --blue: #1e73be;
    --blue-dark: #145a96;
    --active: #000;
    --amber: #f5a623;
    --amber-dark: #e0910f;
    --ink: #1b1e1f;
    --text: #1d1d1d;
    --line: #e4e8f0;
    --bg: #fff;
    --wrapper-bg: #f8f8f8;
    --bg-soft: #f5f8fd;
    --ok: #157347;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2);
    --font-head: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font: 'Open Sans', 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: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--wrapper-bg) url('../images/bg-pattern.png') left top repeat;
    border-top: 6px solid var(--blue);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--active); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Wrapper & container (proporsi situs lama) ---------- */
.wrapper { max-width: 1018px; margin: 0 auto; background: var(--wrapper-bg); box-shadow: var(--shadow); }
.container { width: 100%; max-width: 978px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #1a1a1a; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: 4px; border: 2px solid transparent;
    font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--active); color: #fff; }
.btn-amber { background: var(--amber); color: #1a1a1a; }
.btn-amber:hover { background: var(--amber-dark); color: #1a1a1a; }
.btn-white { background: #fff; color: var(--ink); text-transform: uppercase; padding: 1rem 2.4rem; font-size: 1.02rem; }
.btn-white:hover { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- Header: banner foto + menu ---------- */
.site-header { background: var(--wrapper-bg); }
.header-banner { width: 100%; height: auto; display: block; }
.brand-fallback { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }

#main-nav { background: var(--blue); border: 1px solid var(--blue-dark); }
.nav-inner { position: relative; }
.nav ul { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; }
.nav ul a { display: block; padding: .8rem 1rem; color: #fff; font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav ul a:hover, .nav ul a.active { background: var(--active); color: #fff; }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 10px 16px; }

@media (max-width: 780px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .nav-inner { display: flex; }
    .nav { display: none; width: 100%; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; }
    .nav ul a { border-top: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- Layout 2 kolom: konten + sidebar ---------- */
#main { padding: 24px 2.5% 40px; }
#container { display: flex; flex-wrap: wrap; gap: 0 3.06%; }
#primary { flex: 1 1 65.64%; max-width: 65.64%; min-width: 0; }
#secondary { flex: 1 1 31.28%; max-width: 31.28%; min-width: 0; }
@media (max-width: 860px) {
    #primary, #secondary { flex-basis: 100%; max-width: 100%; }
}

article, .widget { background: #fff; box-shadow: var(--shadow); border-radius: 3px; }
article { margin-bottom: 30px; }
.entry-header { padding: 20px 2.5% 0; }
.entry-title { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.4; margin: 0; color: var(--ink); }
.entry-content { padding: 1.5% 2.5% 2.2%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }

.widget { padding: 15px; margin-bottom: 24px; }
.widget-title { font-size: 1.05rem; margin: 0 0 12px; }

/* ---------- Slider (beranda, di dalam kolom konten) ---------- */
.content-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #ddd; margin-bottom: 20px; }
.content-slider .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.content-slider .hero-slide.active { opacity: 1; }
.content-slider .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.content-slider .hero-slider-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; z-index: 2; pointer-events: none; }
.content-slider .hero-slider-nav button { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center; }
.content-slider .hero-slider-nav button:hover { background: rgba(0, 0, 0, .55); }
.content-slider .hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.content-slider .hero-slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .55); }
.content-slider .hero-slider-dots button.active { background: #fff; }

/* Slider kecil di sidebar */
.sidebar-slider { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; }
.sidebar-slider .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.sidebar-slider .hero-slide.active { opacity: 1; }
.sidebar-slider .hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Kartu Facebook di sidebar */
.fb-card { text-align: center; }
.fb-card .fb-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fb-card .fb-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; flex: none; }
.fb-card strong { display: block; font-size: .95rem; }
.fb-card .btn { width: 100%; background: #1877f2; color: #fff; }
.fb-card .btn:hover { background: #145dbf; color: #fff; }

/* Widget "Our Visitor" di sidebar (gimmick tampilan, data asli) */
.visitor-widget .widget-title { text-align: center; }
.visitor-total { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.visitor-total span { display: inline-grid; place-items: center; width: 26px; height: 32px; background: var(--ink); border-radius: 3px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--amber); text-shadow: 0 0 8px rgba(245, 166, 35, .6); }
.visitor-rows { display: grid; gap: 3px; font-size: .82rem; margin-bottom: 10px; }
.visitor-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.visitor-rows dt, .visitor-rows span:first-child { color: #666; }
.visitor-rows dd, .visitor-rows span:last-child { margin: 0; font-weight: 600; color: var(--ink); }
.visitor-meta { font-size: .78rem; color: #777; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; display: grid; gap: 2px; }

/* ---------- Section (dipakai di dalam entry-content) ---------- */
.section-block { padding: 28px 0; border-top: 1px dashed var(--line); }
.section-block:first-child { padding-top: 0; border-top: 0; }
.section-head { margin: 0 0 24px; }
.section-head h2 { margin: 0; }
.empty { text-align: center; padding: 30px 0; }

/* ---------- Catatan area layanan ---------- */
.note-box { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 6px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.note-box .icon { color: var(--blue); flex: none; margin-top: 2px; }

/* ---------- Prose (konten editor CMS) ---------- */
.prose { font-size: 1rem; line-height: 1.8; }
.prose h2 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.1rem; margin: 1.3em 0 .5em; }
.prose h4 { margin: 1.2em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose ul ul, .prose ol ul, .prose ul ol, .prose ol ol { margin-top: .4em; }
.prose li { margin-bottom: .3em; }
.prose img { margin: 1em 0; border-radius: 4px; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--blue); background: var(--bg-soft); }
.prose strong { color: var(--ink); }

/* ---------- CTA (di dalam kolom konten) ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 34px 24px; text-align: center; border-radius: 6px; }
.cta-band h2 { color: #fff; margin: 0 0 20px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.45; }

/* ---------- Galeri foto ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-grid a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-grid a:hover img { transform: scale(1.07); }
@media (max-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox sederhana (tanpa JS library) */
.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 24, .92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* ---------- Galeri video ---------- */
.video-group { margin-bottom: 30px; }
.video-group:last-child { margin-bottom: 0; }
.video-group h3 { text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; color: var(--blue); margin-bottom: 14px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; }

/* ---------- Kontak ---------- */
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .icon-badge { flex: none; width: 38px; height: 38px; border-radius: 8px; background: #e8f0ff; color: var(--blue); display: grid; place-items: center; }
.contact-row h4 { margin: 0 0 2px; font-size: .95rem; }
.contact-row p { margin: 0; }
.map-frame { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; margin-top: 20px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Harga ---------- */
.harga-wrap { text-align: center; }
.harga-wrap img { border-radius: 4px; margin: 0 auto; }
.harga-wrap .prose { text-align: left; margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 24px 0; font-size: .9rem; color: #666; border-top: 1px solid var(--line); }
.site-footer a { color: #666; }
.site-footer a:hover { color: var(--blue); }

/* Tombol melayang kanan bawah */
.fab { position: fixed; right: 19px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; }
.wa-float {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .45); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.to-top {
    width: 44px; height: 0; margin-top: 0; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
    display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transition: height .2s ease, margin-top .2s ease, opacity .2s ease, visibility .2s;
}
.to-top.is-visible { height: 44px; margin-top: 12px; opacity: 1; visibility: visible; }
.to-top:hover { background: var(--active); }

.not-found { text-align: center; padding: 40px 0; }
.nf-code { font-family: var(--font-head); font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 700; line-height: 1; color: var(--blue); margin: 0; }
