/*
Theme Name: PMK Theme v5
Author: Gary
Description: Custom WordPress theme with responsive menu (fixed width & clean alignment)
Version: 5.1
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    padding-top: 60px; /* supaya konten tidak ketutup header */
}

/* ===== HEADER ===== */
header {
    background: #f44336;
    color: white;
    padding: 10px 20px; /* padding normal supaya tidak melebihi lebar layar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%; /* cegah melebar lebih dari layar */
    box-sizing: border-box; /* padding ikut lebar */
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 20px;
    flex-shrink: 0; /* cegah judul ketimpa menu */
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
    background: none;
    border: none;
    color: white;
    margin-left: auto;    /* dorong ke kanan */
    margin-right: 10px;   /* beri jarak kecil dari tepi kanan */
}

/* ===== MENU DESKTOP ===== */
nav {
    margin-left: auto; /* dorong nav ke kanan */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap; /* cegah pecah baris */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd700;
}

/* ===== RESPONSIVE MENU (MOBILE) ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;  /* lepas dari flex header */
        right: 20px;         /* selalu 20px dari tepi kanan */
        top: 50%;            /* sejajar vertikal */
        transform: translateY(-50%); /* benar-benar center secara vertikal */
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #f44336;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }
}


/* ===== SECTION ===== */
section {
    padding: 40px 20px;
    /*min-height: 100vh;*/
}

/* ===== FOOTER ===== */
footer {
    background: #eee;
    text-align: center;
    padding: 20px;
}

.wa-container {
  max-width: 500px;
  margin: 0px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.wa-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #075E54; /* warna khas WhatsApp */
}

.wa-form .form-group {
  margin-bottom: 15px;
}

.wa-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.wa-form input,
.wa-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.wa-form input:focus,
.wa-form textarea:focus {
  border-color: #25D366;
  box-shadow: 0 0 6px rgba(37,211,102,0.4);
  outline: none;
}

.wa-form textarea {
  resize: vertical;
  min-height: 100px;
}

.wa-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.wa-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #20bd5a, #0d6d5a);
}

