/* ==========================================================
   PO PT. Mutiara Qonita Wisata - Stylesheet website publik
   Tanpa framework. Ringan & responsif.
   Palet mengikuti desain referensi: gradasi merah -> krem,
   merah marun untuk banner ajakan, biru-slate untuk teks.
   ========================================================== */

:root {
    --maroon: #8b0000;
    --maroon-dark: #6b0000;
    --red: #ff2f2f;
    --peach: #ffcba4;
    --hero-gradient: linear-gradient(135deg, #8b0000 0%, #ff2f2f 46%, #ffcba4 100%);
    --gold: #ffcd57;
    --gold-dark: #f5b93a;
    --crimson: #d0265f;
    --blob: #f7d375;
    --heading: #1e293b;
    --text: #67768e;
    --line: #e6e9ee;
    --bg: #fff;
    --ok: #157347;
    --shadow: 0 1px 2px rgba(30, 41, 59, .05), 0 8px 24px rgba(30, 41, 59, .08);
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 20px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--heading); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible { outline-color: #fff; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--heading); 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: .8rem 1.6rem; border-radius: 999px; 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: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--heading); }
.btn-gold:hover { background: var(--gold-dark); color: var(--heading); }
.btn-white { background: #fff; color: var(--heading); text-transform: uppercase; padding: 1.2rem 3.2rem; font-size: 1.15rem; }
.btn-white:hover { background: #fff; color: var(--maroon); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- Header (transparan di atas hero) ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
    background: transparent; transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: var(--maroon); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-text { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.nav ul { display: flex; align-items: center; list-style: none; gap: 30px; }
.nav ul a { display: block; padding: .35rem .2rem; color: #fff; font-weight: 500; font-size: 1rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a.active { color: #fff; border-bottom-color: rgba(255, 255, 255, .85); }
.nav ul a.nav-contact { padding: .4rem 1rem; border: 2px solid #fff; border-radius: 6px; }
.nav ul a.nav-contact:hover { background: #fff; color: var(--maroon); }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 8px; border-radius: 10px; }

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; top: calc(100% + 1px); left: -24px; right: -24px;
        background: var(--maroon); padding: 12px 24px 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav ul a { padding: .8rem .2rem; border-bottom-color: rgba(255, 255, 255, .15); }
    .nav ul a.nav-contact { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; background: var(--hero-gradient);
    display: flex; align-items: center;
    min-height: min(52vw, 780px);
    padding: calc(var(--header-h) + 32px) 0 64px;
}
.hero-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 56px; align-items: center; }
.hero-visual img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; object-position: 50% 45%; filter: drop-shadow(0 24px 30px rgba(60, 0, 0, .35)); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero-company { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
.hero-address { font-size: 1rem; color: rgba(255, 255, 255, .92); max-width: 30em; margin-bottom: 1.6rem; }
@media (max-width: 900px) {
    .hero { min-height: 0; padding-bottom: 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { max-width: 520px; margin: 0 auto; }
    .hero-copy { text-align: center; }
    .hero-address { margin-left: auto; margin-right: auto; }
}

/* ---------- Section ---------- */
.section { padding: 120px 0; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin: 0; }
.section-head.has-line::after { content: ''; display: block; width: 100px; height: 2px; background: var(--maroon); margin: 22px auto 0; }
.empty { text-align: center; padding: 40px 0; }
@media (max-width: 700px) {
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
}

.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Keunggulan ---------- */
.features { gap: 56px; }
.icon-badge { position: relative; width: 58px; height: 58px; margin-bottom: 20px; }
.icon-badge::before { content: ''; position: absolute; left: 0; top: -2px; width: 46px; height: 46px; border-radius: 50%; background: var(--blob); }
.icon-badge .icon { position: relative; width: 58px; height: 58px; color: var(--crimson); stroke-width: 1.3; }
.feature h3 { font-size: 1.4rem; margin-bottom: .35em; }
.feature p { margin: 0; text-align: justify; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy p { text-align: justify; }
.about-copy strong { font-weight: 600; }
.about-media img { width: 100%; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Armada ---------- */
.fleets { gap: 48px 40px; }
.fleet-card h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 500; line-height: 1.7; margin: 18px 0 8px; }
.fleet-card h3 a { color: var(--maroon); text-decoration: none; }
.fleet-card h3 a:hover { text-decoration: underline; }
.fleet-card p { margin: 0; }
.read-more { color: var(--maroon); text-decoration: underline; }
.fleet-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hero-gradient); }
.fleet-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fleet-card:hover .fleet-media img { transform: scale(1.04); }
.ph-media { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .55); }

/* ---------- Sosial media ---------- */
.socials-band { padding: 0 0 96px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; list-style: none; }
.socials a { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .15s ease; }
.socials a:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.social-instagram { background: #f00075; }
.social-tiktok { background: #000; }
.social-youtube { background: #f00; }
.social-facebook { background: #1877f2; }

/* ---------- CTA ---------- */
.cta-band { background: var(--maroon); color: #fff; padding: 110px 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 1180px; margin: 0 auto 48px; font-size: clamp(1.6rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.4; }
@media (max-width: 700px) { .cta-band { padding: 72px 0; } .btn-white { padding: 1rem 2rem; font-size: 1rem; } }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 32px; text-align: center; font-size: 1rem; }
.heart { display: inline-block; color: #dd2e44; vertical-align: -2px; }
.heart .icon { fill: currentColor; }

/* Tombol melayang kanan bawah: WhatsApp di atas, panah scroll-up di bawahnya */
.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(--maroon); 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(--maroon-dark); }

/* ---------- Halaman dalam: hero ---------- */
.page-hero { background: var(--hero-gradient); color: #fff; padding: calc(var(--header-h) + 40px) 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 8px 0 0; }
.page-hero-sub { color: rgba(255, 255, 255, .92); margin: 10px 0 0; max-width: 40em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

.page-hero + .section { padding-top: 80px; }

/* ---------- Kartu (detail armada, halaman) ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }

/* ---------- Detail armada ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-side { position: static; } }
.gallery-main { overflow: hidden; background: var(--line); aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin: 12px 0 28px; flex-wrap: wrap; }
.gallery-thumbs button { width: 92px; height: 64px; padding: 0; border: 3px solid transparent; overflow: hidden; background: var(--line); opacity: .7; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--maroon); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-detail + .prose { margin-top: 8px; }
.spec-card { padding: 28px; }
.spec-card h3 { margin-bottom: 14px; }
.spec-card h4 { margin: 20px 0 10px; font-size: 1.05rem; }
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs dt { font-weight: 500; }
.specs dd { margin: 0; font-weight: 600; text-align: right; color: var(--heading); }
.check-list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.check-list .icon { color: var(--ok); margin-top: 4px; }

/* ---------- Konten (hasil editor CMS) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.85; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose img { margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--maroon); background: #fbf3f3; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #f4f6f9; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.not-found { padding: 160px 0 110px; }
.nf-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--maroon); margin: 0; }

@media (max-width: 640px) {
    .feature p, .about-copy p { text-align: left; }
}
