

/* =====================
   RESET & GLOBAL
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  padding-top: 70px; /* tinggi header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
}


/* =====================
   HEADER & NAV (STABIL)
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* LOGO */
header h1 {
  font-size: 40px;
  margin: 0;
  white-space: nowrap;
  color: #0f2a44;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header nav a,
header .dropdown-toggle {
  color: #0f2a44; /* biru dongker */
  font-weight: 600;
}

header nav a:hover {
  color: #c62828;
}


/* =====================
   DROPDOWN MENU
===================== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 99;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
}

.dropdown-menu a:hover {
  background: #f4f6f8;
  color: #c62828;
}

/* Desktop hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile klik */
@media (max-width: 768px) {
  .dropdown.open .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border-radius: 0;
    margin-top: 5px;
  }
}


/* =====================
   Layanan galery
===================== */
.layanan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0 40px;
  margin-bottom: 50px;

}

.layanan-gallery img {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* ========== GALERI DETAIL LAYANAN (ANTI KEPOTONG) ========== */
.layanan-detail .layanan-gallery img {
  height: auto;           /* 🔑 MATIKAN height paksa */
  aspect-ratio: auto;     /* jangan dipaksa */
  object-fit: contain;    /* 🔑 FOTO UTUH */
  background: #f2f2f2;
}



/* ===============================
   GALERI LAYANAN (DETAIL PAGE)
   =============================== */
.layanan-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.layanan-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;   /* kunci proporsi */
  object-fit: cover;     /* anti gepeng */
  border-radius: 8px;
  background: #f2f2f2;
}


/* ===============================
   GALERI LAYANAN (DETAIL PAGE) for HP
   =============================== */
@media (max-width: 768px) {
  .layanan-gallery {
    grid-template-columns: 1fr;
  }
}



/* =====================
   HERO SLIDER
===================== */
.hero-slider {
  position: relative;
  height: 55vh;
  overflow: hidden;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
  margin-left: 10%;
  color: #fff;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
}


/* ===============================
   ME - HERO SLIDER
   =============================== */

.me-hero-slider {
  position: relative;
}

.me-hero-slide {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
}

/* overlay supaya teks kebaca */
.me-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.me-hero-slide .container {
  position: relative;
  z-index: 2;
}

.me-hero-slide h1 {
  font-size: 40px;
  color: #fff;
  max-width: 600px;
}

.me-hero-slide p {
  color: #eee;
  max-width: 520px;
}

/* ===============================
   ME - HERO SLIDER for HP
   =============================== */


@media (max-width: 768px) {

  .me-hero-slide {
    min-height: 55vh;
    background-position: center;
  }

  .me-hero-slide h1 {
    font-size: 26px;
  }

  .me-hero-slide p {
    font-size: 14px;
  }

}



/* =====================
   BUTTON
===================== */
.btn,
.btn-primary {
  display: inline-block;
  padding: 12px 26px;
  background: #c62828;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

.btn:hover,
.btn-primary:hover {
  opacity: 0.9;
}


/* =====================
   SECTION
===================== */
.section {
  padding: 70px 0;
}

.section h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.gray {
  background: #f4f6f8;
}


/* =====================
   GRID & CARD
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card h4 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 15px;
}

.card a {
  color: #c62828;
  font-weight: bold;
}


/* =====================
   CTA & FOOTER
===================== */
.cta {
  background: #0f2a44;
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.cta .btn {
  background: #fff;
  color: #0f2a44;
}

footer {
  background: #111;
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ===============================
   HALAMAN KONTAK
================================ */

.kontak-page {
  padding: 60px 20px;
  background: #f6f8fb;
}

.kontak-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* INFO KONTAK */
.kontak-info {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
}

.kontak-info h2 {
  margin-bottom: 10px;
}

.kontak-info p {
  margin-bottom: 20px;
  color: #555;
}

.kontak-info ul {
  list-style: none;
  padding: 0;
}

.kontak-info li {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* FORM KONTAK */
.kontak-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
}

.kontak-form h2 {
  margin-bottom: 20px;
}

.kontak-form input,
.kontak-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.kontak-form textarea {
  min-height: 120px;
  resize: vertical;
}

.kontak-form button {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

.kontak-form button:hover {
  background: #a91f1f;
}

/* ALERT SUCCESS */
.success {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .kontak-container {
    grid-template-columns: 1fr;
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {

  header .container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0 10px;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }
}


.kontak-form input,
.kontak-form textarea,
.kontak-form button {
  display: block;
}


/* ===============================
   ME - Bidang Layanan
   =============================== */

.me-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.me-service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: .3s ease;
}

.me-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.me-service-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.me-service-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.me-service-card h4 {
  font-size: 15px;
  text-align: center;
  margin: 0;
}


/* ===============================
   ME - Bidang Layanan for HP
   =============================== */
   
@media (max-width: 480px) {

  .me-service-grid {
    grid-template-columns: 1fr;
  }

  .me-service-img {
    aspect-ratio: 16 / 9;
  }

  .me-service-card h4 {
    font-size: 15px;
  }

}


/* ===============================
   portofolio
   =============================== */

.me-portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 12px;
}

.me-portfolio-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8f9fa;
  border-radius: 70px;
  object-fit: cover;
  max-height: 420px;
}

/* HP */
@media (max-width: 480px) {
  .me-portfolio-gallery {
    grid-template-columns: 1fr;
  }

  .me-portfolio-gallery img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}


/* ===============================
   WA - icon WA dibawah
   =============================== */

.wa-bekasi {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 10px 14px 10px 16px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.wa-bekasi img {
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}

.wa-bekasi:hover {
  transform: scale(1.05);
}

.wa-hide {
  transform: translateY(120px);
  opacity: 0;
}


/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
  .wa-bekasi {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px 8px 10px;
    border-radius: 30px;
    font-size: 12px;
    gap: 8px;
  }

  .wa-bekasi img {
    width: 28px;
    height: 28px;
    padding: 5px;
  }

  .wa-text {
    display: none; /* sembunyikan teks di HP */
  }

  .wa-hide {
    transform: translateY(90px);
  }
}


