/* ========================================
   MULIA TRANSPORT MANDIRI
   CSS WEBSITE - VERSI DIRAPIKAN
======================================== */

/* ========================================
   1. RESET DAN TAMPILAN UMUM
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fc;
    color: #263445;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ========================================
   2. HEADER DAN NAVIGASI
   Digunakan di semua halaman
======================================== */

header,
.site-header {
    min-height: 0;
    height: auto;
    padding: 20px 7%;
    box-sizing: border-box;
    background: #063d73;
    color: #ffffff;
    padding: 20px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

header h2,
.site-header h2,
.site-header .brand h2 {
    margin: 0;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: bold;
    font-style: normal;
    line-height: 1.4;
}

header p,
.site-header p,
.site-header .brand p {
    margin-top: 7px;
    color: #d6eaff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
}

header nav,
.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

header nav a,
.site-header nav a {
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
}

header nav a:hover,
.site-header nav a:hover,
.site-header nav a.active {
    color: #75d6ff;
}

/* ========================================
   3. HERO BERANDA
======================================== */

.hero {
    padding: 70px 6%;
    background: linear-gradient(120deg, #0756a3, #168bd2);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero p {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.hero .tagline {
    color: #9be6ff;
    font-weight: bold;
    margin-bottom: 12px;
}

/* ========================================
   4. HERO KHUSUS INDEX.HTML
======================================== */

.hero-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 35px;

    padding: 55px 6% 60px;
    background: linear-gradient(120deg, #0756a3, #168bd2);
    color: white;
}

.hero-content {
    flex: 1 1 400px;
    min-width: 0;
}

.hero-label {
    color: #9be6ff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    margin: 14px 0 18px;
}

.hero-content p {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.hero-photo {
    flex: 1 1 350px;
    max-width: 500px;
    min-width: 0;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Tombol pesan di beranda */

.btn-booking {
    display: inline-block;
    width: auto;
    margin-top: 20px;
    padding: 13px 24px;

    background: white;
    color: #0d416f;
    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;
    text-decoration: none;

    transition: 0.2s;
}

.btn-booking:hover {
    background: #dceeff;
    color: #0d416f;
    transform: translateY(-2px);
}

/* ========================================
   5. TENTANG KAMI DAN GALERI BERANDA
======================================== */

.home-section,
.gallery-section {
    padding: 55px 6%;
}

.home-section {
    background: #f2f7fc;
}

.gallery-section {
    background: white;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading > span {
    color: #536579;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 1px;
}

.section-heading h2 {
    color: #0d416f;
    font-size: 28px;
    margin: 10px 0 14px;
}

.section-heading p {
    color: #536579;
    font-size: 15px;
    line-height: 1.8;
}

/* Tetap mendukung bagian konten dengan heading biasa */

.home-section h2,
.gallery-section h2 {
    color: #0d416f;
}

.home-section > p,
.gallery-section > p {
    color: #536579;
}

/* ========================================
   6. GALERI KENDARAAN / CAROUSEL
======================================== */

.home-carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 30px;
    overflow: hidden;
    border-radius: 16px;
}

.home-carousel .carousel-item img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
}

.home-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    padding: 12px;
    bottom: 25px;
}

.home-carousel .carousel-caption h5,
.home-carousel .carousel-caption p {
    color: white;
    margin-bottom: 5px;
}

.home-carousel .carousel-indicators {
    bottom: 0;
}

/* ========================================
   7. KARTU LAYANAN BERANDA
======================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 25px;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(13, 65, 111, 0.07);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: #0d416f;
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #536579;
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   8. BANNER PEMESANAN BERANDA
======================================== */

.booking-banner {
    background: #dceeff;
    padding: 45px 20px;
    text-align: center;
}

.booking-banner h2 {
    color: #0d416f;
    margin-bottom: 12px;
}

.booking-banner p {
    color: #536579;
    line-height: 1.8;
}

.booking-banner .btn-booking {
    background: #0878d1;
    color: white;
}

.booking-banner .btn-booking:hover {
    background: #075da3;
    color: white;
}

/* ========================================
   9. KONTEN DAN FORMULIR PEMESANAN
======================================== */

main {
    width: 100%;
    padding: 35px 6%;
}

.booking {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(23, 54, 83, 0.07);
}

.booking h2 {
    color: #0d416f;
    margin-bottom: 8px;
}

.booking > p {
    color: #64748b;
    margin-bottom: 25px;
}

.booking-intro {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Susunan formulir dua kolom */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid > div {
    min-width: 0;
}

.form-grid label,
.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #263445;
    font-size: 14px;
    font-weight: 600;
}

/* Kolom input */

.form-grid input,
.form-grid select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: white;
    color: #263445;

    font-family: inherit;
    font-size: 15px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0876d1;
    box-shadow: 0 0 0 3px rgba(8, 118, 209, 0.12);
}

.form-group {
    margin-top: 28px;
}

.form-group h3 {
    color: #0d416f;
    margin-bottom: 10px;
}

/* ========================================
   10. HARGA DAN TOTAL PEMBAYARAN
======================================== */

.harga-tiket {
    grid-column: 1 / -1;
    padding: 18px;
    background: #eaf4ff;
    border: 1px solid #c9e1fa;
    border-radius: 10px;
}

.harga-tiket p {
    margin-bottom: 8px;
}

.harga-tiket h3 {
    color: #0876d1;
    font-size: 24px;
    margin-top: 8px;
}

/* ========================================
   11. DENAH KURSI PENUMPANG
======================================== */

.denah-mobil {
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
    padding: 20px;

    border: 2px solid #0d416f;
    border-radius: 16px;
    background: #f8fafc;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.baris-depan,
.baris-kursi,
.baris-belakang {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
}

.denah-mobil .kursi {
    width: 72px;
    min-height: 65px;
    margin: 0;
    padding: 8px;

    border: 2px solid #0d416f;
    border-radius: 10px;

    background: white;
    color: #0d416f;

    font-size: 15px;
    font-weight: bold;
    cursor: pointer;

    transition: 0.2s;
}

.denah-mobil .kursi:hover {
    background: #dceeff;
    transform: translateY(-2px);
}

.denah-mobil .kursi.dipilih {
    background: #198754;
    border-color: #198754;
    color: white;
}

/* Kursi sopir tidak bisa dipilih */

.denah-mobil .kursi.sopir {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #dbe3ec;
    border-color: #9aa9b8;
    color: #333;

    font-size: 12px;
    cursor: default;
}

.info-kursi {
    margin: 10px 0;
    color: #536579;
    font-size: 14px;
    line-height: 1.7;
}

#infoPilihanKursi {
    margin: 15px 0;
    color: #0d416f;
    text-align: center;
    font-weight: bold;
}

/* ========================================
   12. TOMBOL FORMULIR
======================================== */

/* Tombol umum tidak mengubah ukuran kursi */

button {
    font-family: inherit;
}

form button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 14px 20px;

    border: none;
    border-radius: 8px;

    background: #0876d1;
    color: white;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    transition: background 0.2s;
}

form button[type="submit"]:hover {
    background: #0d416f;
}

/* ========================================
   13. FOOTER HALAMAN PEMESANAN/KONTAK
======================================== */

footer {
    margin-top: 30px;
    padding: 30px 6%;
    background: #092f50;
    color: white;
    text-align: center;
    line-height: 2;
}

footer h3 {
    margin-bottom: 8px;
}

footer p {
    color: #dcecff;
    font-size: 14px;
    margin: 4px 0;
}

/* ========================================
   14. FOOTER KHUSUS BERANDA
======================================== */

.site-footer {
    background: #06345f;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.site-footer h3 {
    color: white;
    font-size: 21px;
    margin-bottom: 10px;
}

.site-footer p {
    color: #d5e6f5;
    font-size: 14px;
    margin: 5px 0;
}

.site-footer .copyright {
    margin-top: 15px;
    font-size: 13px;
}

/* ========================================
   15. RESPONSIVE - TABLET DAN HP
======================================== */

@media (max-width: 768px) {

    /* Header seluruh halaman */

    header,
    .site-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    header h2,
    .site-header .brand h2 {
        font-size: 20px;
    }

    header nav,
    .site-header nav {
        gap: 16px;
    }

    /* Konten utama */

    main {
        padding: 25px 16px;
    }

    .booking {
        padding: 22px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .harga-tiket {
        grid-column: auto;
    }

    /* Hero umum */

    .hero {
        padding: 45px 22px;
    }

    /* Hero beranda */

    .hero-home {
        padding: 40px 22px;
        gap: 25px;
    }

    .hero-content {
        flex-basis: 100%;
    }

    .hero-photo {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-photo img {
        height: 250px;
    }

    /* Bagian beranda */

    .home-section,
    .gallery-section {
        padding: 40px 22px;
    }

    .home-carousel .carousel-item img {
        height: 280px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   16. RESPONSIVE - HP KECIL
======================================== */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .home-carousel .carousel-item img {
        height: 220px;
    }

    .denah-mobil {
        padding: 12px;
        gap: 14px;
    }

    .denah-mobil .kursi {
        width: 65px;
        min-height: 58px;
        font-size: 14px;
    }
}

.site-header nav a,
header nav a {
    text-decoration: none !important;
}

/* LOKASI KANTOR */
.lokasi-section {
    padding: 55px 6%;
    background: #f2f7fc;
}

.lokasi-heading {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.lokasi-heading > span {
    color: #64748b;
    font-size: 13px;
    letter-spacing: 1px;
}

.lokasi-heading h2 {
    margin: 10px 0 14px;
    color: #063d73;
    font-size: 28px;
}

.lokasi-heading p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

.lokasi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.lokasi-card {
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.lokasi-card h3 {
    margin-bottom: 15px;
    color: #063d73;
    font-size: 20px;
}

.lokasi-card iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

.lokasi-card a {
    display: inline-block;
    margin-top: 15px;
    color: #0757a6;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.lokasi-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .lokasi-section {
        padding: 40px 22px;
    }

    .lokasi-grid {
        grid-template-columns: 1fr;
    }
}



/* LOGO MULIA TRANSPORT MANDIRI */
.site-header .brand {
    display: grid;
    grid-template-columns: 70px auto;
    grid-template-rows: auto auto;
    column-gap: 15px;
    align-items: center;
    min-width: 0;
}

.site-header .brand .brand-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-header .brand h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.site-header .brand p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 7px;
}

@media (max-width: 768px) {
    .site-header .brand {
        grid-template-columns: 55px auto;
        column-gap: 10px;
    }

    .site-header .brand .brand-logo {
        width: 55px;
        height: 55px;
    }
}
