/* ================================================
   style.css — Garuda Indonesia (Versi Simpel)
   Dibuat untuk pemula, komentar lengkap
================================================ */

/* ------------------------------------------------
   1. RESET DASAR
   Menghapus margin & padding bawaan browser
------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* padding tidak menambah lebar elemen */
}

/* ------------------------------------------------
   2. VARIABEL WARNA
   Simpan warna di satu tempat, mudah diubah
------------------------------------------------ */
:root {
  --navy: #0a1e3d; /* biru tua navbar */
  --biru: #1e88e5; /* biru utama */
  --putih: #ffffff;
  --abu: #f5f7fa; /* latar belakang terang */
  --teks: #1a1a2e; /* warna teks utama */
  --samar: #6b7280; /* teks abu-abu */
  --border: #e2e8f0; /* warna garis border */
}

/* ------------------------------------------------
   3. BODY & FONT DASAR
------------------------------------------------ */
body {
  font-family: Arial, sans-serif;
  color: var(--teks);
  background-color: var(--putih);
  font-size: 16px;
  line-height: 1.6;
}

/* Semua link tidak bergaris bawah */
a {
  text-decoration: none;
  color: inherit;
}

/* Semua gambar responsif */
img {
  max-width: 100%;
  display: block;
}

/* ================================================
   NAVBAR
================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  background: rgba(72, 99, 140, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon img {
  font-size: 1.5rem;
  background-color: transparent;
  padding: 6px 10px;
  border-radius: 6px;
}

.logo-nama {
  color: var(--putih);
  font-size: 0.9rem;
  font-weight: bold;
}

.logo-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
}

/* Menu desktop */
.menu-desktop {
  display: flex;
  gap: 1.5rem;
}

.menu-desktop a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.menu-desktop a:hover {
  color: var(--putih);
}

/* Tombol hamburger (hanya tampil di mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--putih);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--navy);
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-mobile.aktif {
  display: flex;
}

.menu-mobile a {
  color: var(--putih);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* MAIN — beri jarak dari navbar yang fixed */
main {
  margin-top: 60px;
}

/* Utama */
.hero {
  background: linear-gradient(180deg, #0a1e3d, #1a3a6e);
  color: var(--putih);
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* FORM BOOKING */
.booking {
  background-color: #0d2548;
  padding: 1.5rem;
}

.booking-judul {
  color: var(--putih);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.trip-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.aktif {
  background-color: var(--biru);
  border-color: var(--biru);
  color: var(--putih);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.field {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.field:hover {
  background: rgba(255, 255, 255, 0.14);
}

.field label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.field p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.btn-cari {
  width: 100%;
  background-color: var(--biru);
  color: var(--putih);
  border: none;
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cari:hover {
  background-color: #1565c0;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.section-header a {
  color: var(--biru);
  font-size: 0.85rem;
  font-weight: 600;
}

/* PROMO */
.promo {
  padding: 2rem 1.5rem;
  background-color: var(--abu);
}

.promo-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.promo-list::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex: 0 0 280px;
  border-radius: 14px;
  padding: 1.5rem;
  color: var(--putih);
}

.promo-card.biru {
  background: linear-gradient(135deg, #1565c0, #0288d1);
}
.promo-card.hijau {
  background: linear-gradient(135deg, #00838f, #00acc1);
}
.promo-card.ungu {
  background: linear-gradient(135deg, #4527a0, #7e57c2);
}

.label-promo {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.promo-card h3 {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.harga {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.2rem 0;
}

.keterangan {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

/* DESTINASI */
.destinasi {
  padding: 2rem 1.5rem;
}

.dest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dest-card {
  border-radius: 14px;
  padding: 1.2rem;
  color: var(--putih);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.dest-card:hover {
  transform: translateY(-4px);
}

.dest-badge {
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  display: inline-block;
  align-self: flex-start;
}

.dest-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.dest-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-pesan {
  background: rgba(255, 255, 255, 0.2);
  color: var(--putih);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-pesan:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* LAYANAN TAMBAHAN (pakai tab JS) */
.layanan {
  padding: 2rem 1.5rem;
  background-color: var(--abu);
}

.layanan h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tab-layanan {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.layanan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kartu-layanan {
  background: var(--putih);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.kartu-layanan:hover {
  transform: translateY(-3px);
}

.kartu-ikon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.kartu-nama {
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teks);
}

/* BERITA */
.berita {
  padding: 2rem 1.5rem;
}

.berita-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.berita-list::-webkit-scrollbar {
  display: none;
}

.berita-card {
  flex: 0 0 240px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.berita-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.berita-gambar {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.berita-gambar.biru-tua {
  background: linear-gradient(135deg, #0a1e3d, #1565c0);
}
.berita-gambar.biru {
  background: linear-gradient(135deg, #1565c0, #1e88e5);
}
.berita-gambar.biru-muda {
  background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.berita-isi {
  padding: 0.8rem;
}

.berita-isi time {
  font-size: 0.72rem;
  color: var(--samar);
  display: block;
  margin-bottom: 0.3rem;
}

.berita-isi h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

/* FOOTER */
.footer {
  background-color: #f0f4f8;
  padding: 2rem 1.5rem;
}

.footer-atas {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-nama {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.footer-sub {
  font-size: 0.7rem;
  color: var(--samar);
}

.footer-judul {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.sosmed {
  display: flex;
  gap: 0.6rem;
}

.sosmed a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.sosmed a:hover {
  border-color: var(--biru);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-kolom h3 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--teks);
}

.footer-kolom a {
  display: block;
  font-size: 0.78rem;
  color: var(--samar);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer-kolom a:hover {
  color: var(--biru);
}

.footer-bawah {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}

.footer-bawah small {
  font-size: 0.75rem;
  color: var(--samar);
}

/* TOMBOL KEMBALI KE ATAS */
#btnAtas {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background-color: var(--navy);
  color: var(--putih);
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 90;
}

#btnAtas.tampil {
  opacity: 1;
}

#btnAtas:hover {
  background-color: var(--biru);
}

/* RESPONSIVE — MOBILE */
@media (max-width: 600px) {
  .menu-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE — TABLET */
@media (min-width: 600px) and (max-width: 900px) {
  .menu-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .dest-grid {
    grid-template-columns: 1fr 1fr;
  }
  .layanan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* RESPONSIVE — DESKTOP */
@media (min-width: 900px) {
  .menu-desktop {
    display: flex;
  }
  .hamburger {
    display: none;
  }

  .hero {
    padding: 6rem 4rem;
  }
  .booking {
    padding: 2rem 4rem;
  }
  .promo {
    padding: 3rem 4rem;
  }
  .destinasi {
    padding: 3rem 4rem;
  }
  .layanan {
    padding: 3rem 4rem;
  }
  .berita {
    padding: 3rem 4rem;
  }
  .footer {
    padding: 3rem 4rem;
  }

  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dest-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .layanan-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }
}
