/* =========================
   HALAMAN KONTAK & LOKASI
========================= */

/* BANNER KONTAK */
.kontak-hero {
  background:
    linear-gradient(rgba(20, 55, 35, 0.75), rgba(20, 55, 35, 0.75)),
    url("/images/background-kontak.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 400px;
  padding: 100px 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #ffffff;
}

.kontak-hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.kontak-hero-label {
  display: inline-block;
  color: #e5c783;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.kontak-hero h1 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 20px;
}

.kontak-hero h1::after {
  content: "";
  display: block;

  width: 75px;
  height: 3px;

  background-color: #c9a45c;
  border-radius: 10px;

  margin: 20px auto 0;
}

.kontak-hero p {
  color: #f5f5f5;
  font-size: 17px;
  line-height: 1.8;
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .kontak-hero {
    min-height: 320px;
    padding: 70px 20px;
  }

  .kontak-hero h1 {
    font-size: 32px;
  }

  .kontak-hero p {
    font-size: 15px;
  }
}

/* =========================
   INFORMASI KONTAK SEKOLAH
========================= */

.kontak-info {
  padding: 90px 30px;
  background-color: #ffffff;
}

.kontak-info-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* JUDUL */
.kontak-info-header {
  text-align: center;
  margin-bottom: 50px;
}

.kontak-info-label {
  display: inline-block;
  color: #a7833e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.kontak-info-header h2 {
  color: #2f6545;
  font-size: 36px;
  margin-bottom: 15px;
}

.kontak-info-header p {
  color: #666666;
  font-size: 16px;
  line-height: 1.8;
}

/* GRID KARTU */
.kontak-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

/* KARTU */
.kontak-info-card {
  background-color: #f0f5ef;
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;

  border-bottom: 3px solid #c9a45c;

  box-shadow: 0 5px 20px rgba(47, 101, 69, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.kontak-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(47, 101, 69, 0.12);
}

/* IKON */
.kontak-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  margin: 0 auto 25px;

  background-color: #244d35;
  color: #e5c783;

  border-radius: 20px;
  font-size: 30px;
}

/* TEKS */
.kontak-info-card h3 {
  color: #2f6545;
  font-size: 21px;
  margin-bottom: 15px;
}

.kontak-info-card p {
  color: #666666;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .kontak-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .kontak-info {
    padding: 60px 20px;
  }

  .kontak-info-header h2 {
    font-size: 28px;
  }

  .kontak-info-grid {
    grid-template-columns: 1fr;
  }

  .kontak-info-card {
    padding: 35px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kontak-info-card {
    transition: none;
  }
}

/* =========================
   LOKASI SEKOLAH
========================= */

.kontak-lokasi {
  padding: 90px 30px;
  background-color: #faf9f6;
}

.kontak-lokasi-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* JUDUL */
.kontak-lokasi-header {
  text-align: center;
  margin-bottom: 45px;
}

.kontak-lokasi-label {
  display: inline-block;
  color: #a7833e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.kontak-lokasi-header h2 {
  color: #2f6545;
  font-size: 36px;
  margin-bottom: 15px;
}

.kontak-lokasi-header p {
  color: #666666;
  font-size: 16px;
  line-height: 1.8;
}

/* PETA */
.kontak-maps {
  overflow: hidden;
  border-radius: 22px;
  border: 2px solid #e8e4d8;
  box-shadow: 0 10px 30px rgba(47, 101, 69, 0.1);
}

.kontak-maps iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* TOMBOL */
.kontak-lokasi-action {
  text-align: center;
  margin-top: 30px;
}

.kontak-maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 15px 28px;
  border-radius: 50px;

  background-color: #244d35;
  color: #ffffff;
  border: 2px solid #c9a45c;

  font-size: 16px;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.kontak-maps-btn:hover {
  background-color: #2f6545;
  transform: translateY(-4px);
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  .kontak-lokasi {
    padding: 60px 20px;
  }

  .kontak-lokasi-header h2 {
    font-size: 28px;
  }

  .kontak-maps iframe {
    height: 320px;
  }

  .kontak-maps-btn {
    font-size: 14px;
    padding: 14px 22px;
  }
}

/* TOMBOL KONTAK WHATSAPP & EMAIL */

.kontak-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 22px;
  padding: 12px 22px;

  background-color: #244d35;
  color: #ffffff;

  border-radius: 30px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.kontak-info-link:hover {
  background-color: #c9a45c;
  color: #244d35;
  transform: translateY(-3px);
}

.kontak-info-link i {
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .kontak-info-link {
    transition: none;
  }
}
/* =====================================
   BANNER KONTAK DENGAN FOTO
===================================== */

.kontak-hero {
  position: relative;

  background:
    linear-gradient(rgba(36, 77, 53, 0.75), rgba(36, 77, 53, 0.75)),
    url("../images/banner-kontak.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 110px 20px;
  text-align: center;
}

.kontak-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.kontak-hero h1 {
  color: #ffffff;
}

.kontak-hero p {
  color: #ffffff;
}

.kontak-hero-label {
  color: #e5c783;
}

/* =====================================
   ANIMASI SCROLL HALAMAN KONTAK
===================================== */

/* Kondisi awal sebelum muncul */
.kontak-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Saat elemen masuk layar */
.kontak-reveal.kontak-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   HOVER CARD INFORMASI KONTAK
===================================== */

.kontak-info-card {
  transition:
    opacity 0.8s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Card sedikit membesar dan timbul */
@media (hover: hover) and (pointer: fine) {
  .kontak-info-card.kontak-visible:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
  }
}

/* =====================================
   HOVER GOOGLE MAPS
===================================== */

.kontak-maps {
  transition:
    opacity 0.8s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .kontak-maps.kontak-visible:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }
}

/* =====================================
   AKSESIBILITAS
===================================== */

@media (prefers-reduced-motion: reduce) {
  .kontak-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .kontak-info-card,
  .kontak-maps {
    transition: none;
  }
}
