/* Reset dasar */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; } 

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff; /* putih */
  color: #c8102e;
  padding: 10px 0;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .logo {
  height: 50px;
}

.site-header nav a {
  color: #c8102e; /* teks merah */
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.site-header nav a:hover {
  color: #555; /* hover abu-abu */
  text-decoration: underline;
}

/* Slider dengan fade effect */
.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Pastikan slide pertama langsung tampil */
.slider:not(.js-ready) .slide:first-child { opacity: 1; }

/* Caption */
.caption {
  position: absolute;
  bottom: 30px;
  left: 40px;
  background: rgba(200, 16, 46, 0.85); /* merah transparan */
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1.2rem;
}

/* Section */
section {
  padding: 50px 0;
}

section h2 {
  margin-bottom: 20px;
  color: #c8102e;
}

.services ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ← tepat 3 card per baris */
  gap: 20px;
}

/* Tablet: 2 kolom */
@media (max-width: 900px) {
  .services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: 1 kolom */
@media (max-width: 600px) {
  .services ul { grid-template-columns: 1fr; }
}

.services li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.services li:hover {
  transform: translateY(-5px);
  border-color: #c8102e;
}

.services h3 {
  margin-top: 0;
  color: #c8102e;
}

/* Footer */
.site-footer {
  background: #c8102e;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

/* ==== Header: dukung hamburger ==== */

/* container butuh position:relative supaya nav mobile bisa absolute di bawahnya */
.site-header .container { position: relative; }

.menu-toggle{
  --bar-h: 2px;
  --bar-gap: 12px;      /* kamu set gap di sini */
  display: none; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bar-gap);
}
.menu-toggle .bar{ width:23px; height:var(--bar-h); background:#c8102e; }


/* Mobile layout */
@media (max-width: 900px) {
  /* Tampilkan tombol, sembunyikan nav default */
  .menu-toggle { display: inline-flex; }
  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
  }
  .site-header nav a {
    display: block;
    padding: 12px 16px;
    margin: 0;                 
    border-top: 1px solid #f5f5f5;
    color: #c8102e;
  }
  .site-header.open nav { display: flex; }
  .site-header.open .menu-toggle .bar:nth-child(1){
  transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg);
  }
  .site-header.open .menu-toggle .bar:nth-child(2){ opacity:0; }
  .site-header.open .menu-toggle .bar:nth-child(3){
  transform: translateY(calc(-1 * (var(--bar-h) + var(--bar-gap)))) rotate(-45deg);
}
}

.site-header .logo{
  display: block;
  height: 50px;        /* sudah ada, tak masalah */
  width: auto;
  transform: translateZ(0);       /* paksa layer baru */
  -webkit-transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast; /* webkit: tajamkan */
  backface-visibility: hidden;
}

.partner-logo{
  display:block;
  max-width:100%;   /* atur di sini */
  width:100%;
  height:auto;
  margin:8px auto;   /* center */
}

