/* ========================================
   style.css - KWT Harapan Jaya
   10 Halaman | Mobile-First | PHP Ready
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  background: #1b5e20;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a5d6a7;
}

.logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: white;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #a5d6a7;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* ========================================
   HERO SECTION (BERANDA)
   ======================================== */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://i.ibb.co.com/fYnfsPgZ/bannrt-KWTHarapan-Jaya.jpg') center/cover no-repeat;
  color: white;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.35rem;
  margin: 1rem 0;
  font-weight: 600;
  opacity: 0.95;
}

.location {
  font-size: 1.15rem;
  margin: 1rem 0;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  display: inline-block;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn-primary,
.btn-wa {
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-width: 180px;
}

.btn-primary {
  background: #2e7d32;
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

.btn-wa {
  background: #25D366;
  color: white;
}

.btn-wa img {
  filter: brightness(0) invert(1);
  width: 20px;
}

.btn-wa:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

/* ========================================
   STATS
   ======================================== */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1rem;
  background: white;
  flex-wrap: wrap;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item {
  min-width: 100px;
}

.stat-item h3 {
  font-size: 2.6rem;
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 1rem;
  color: #555;
}

/* ========================================
   CONTENT & PAGE HEADER
   ======================================== */
.content {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2.3rem;
  color: #1b5e20;
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: #a5d6a7;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ========================================
   GRID & CARDS
   ======================================== */
.grid-3 {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.product-card,
.donate-card {
  background: white;
  padding: 1.6rem;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover,
.product-card:hover,
.donate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card img,
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3,
.product-card h3 {
  font-size: 1.3rem;
  margin: 0.8rem 0 0.5rem;
  color: #1b5e20;
}

.card p,
.product-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ========================================
   FORM & INPUT
   ======================================== */
form {
  display: grid;
  gap: 1.2rem;
  max-width: 520px;
  margin: 2rem auto;
}

input,
textarea,
button {
  padding: 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2e7d32;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: #2e7d32;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

button:hover {
  background: #1b5e20;
}

/* ========================================
   GALLERY & CONTACT
   ======================================== */
.gallery {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 2rem 0;
}

.contact-grid,
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-grid p,
.about-grid p {
  margin-bottom: 0.8rem;
  font-size: 1.02rem;
}

.contact-grid a {
  color: #2e7d32;
  font-weight: 600;
}

.contact-grid iframe {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   JOIN FORM & CALENDAR
   ======================================== */
.join-form,
.calendar {
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.join-form h2,
.calendar h2 {
  margin-bottom: 1.2rem;
  color: #1b5e20;
  font-family: 'Playfair Display', serif;
}

/* ========================================
   MOBILE RESPONSIVE (≤768px)
   ======================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1b5e20;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1.5rem;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
    padding: 2rem 1rem;
  }

  .brand-title {
    font-size: 2.3rem;
  }

  .tagline {
    font-size: 1.15rem;
  }

  .location {
    font-size: 1rem;
    padding: 0.4rem 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.9rem;
  }

  .btn-primary,
  .btn-wa {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  .stats {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .stat-item h3 {
    font-size: 2.2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Layar sangat kecil (≤480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .location {
    font-size: 0.95rem;
  }

  .logo span {
    font-size: 1.1rem;
  }
}