* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  background: #ffffff;
}

/* ================= NAVBAR ================= */

.navbar {
  position: absolute;
  width: 100%;
  top: 0;
  height: 90px; /* kunci tinggi */
  display: flex;
  align-items: center; /* vertical center */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  max-height: 70px;
  object-fit: contain;
}

/* MENU */

.menu {
  display: flex;
  gap: 60px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  color: #000000;
  letter-spacing: 1px;
}

/* DROPDOWN */
/* ================= DROPDOWN STYLE FINAL ================= */

.dropdown-content {
  position: absolute;
  top: calc(100% + 45px);
  /* 100% = tinggi link LAYANAN
     +20px supaya tepat di bawah garis navbar */

  left: 50%;
  transform: translateX(-50%);

  width: 320px;
  background: #0f2a44;
  display: none;
  flex-direction: column;
  padding: 0;
  z-index: 999;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* ACTIVE CLASS (dipanggil JS) */
.dropdown.active .dropdown-content {
  display: flex;
}

/* Item dropdown */
.dropdown-content a {
  color: #ffffff;
  padding: 18px 0;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

/* Hapus garis terakhir */
.dropdown-content a:last-child {
  border-bottom: none;
}

/* Hover effect */
.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}
.dropdown {
  position: relative;
}

/* BUTTON NAV */

.btn-nav {
  background: #0e2a47;
  color: white;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 140vh; /* lebih panjang dari layar */
  width: 100%;
  background: url("../images/bg.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

/* Overlay kiri saja */

.overlay-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
}

/* HERO CONTENT */

.hero-content {
  position: relative;
  width: 92%;
  max-width: 1400px;
  margin: auto;
  color: white;
  z-index: 2;
}

.small {
  margin-bottom: 20px;
  font-size: 18px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 50px;
  line-height: 1.5;
  max-width: 800px;
  font-weight: 600;
  margin-bottom: 25px;
}

.sub {
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
}

.btn-hero {
  background: #0e2a47;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.pt-name {
  white-space: nowrap;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #111;
  transition: 0.3s ease;
}

/* Animasi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.contact-info {
  background: #f3f3f3;
  padding: 120px 0;
}

.contact-container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* MAP IMAGE */
.contact-map {
  position: relative;
  width: 490px; /* sebelumnya 804px */
  height: 320px; /* lebih proporsional */
  margin-bottom: 90px;
  border-radius: 16px;
  overflow: hidden;
}
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
}
.map-overlay h2 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 10px;
}
.map-overlay p {
  font-size: 10px;
  max-width: 420px;
  line-height: 1.6;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.info-card {
  background: white;
  padding: 40px 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-card:hover {
  background: #0d6efd; /* biru modern */
  color: white;
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(13, 110, 253, 0.35);
}
.info-card:hover .info-icon {
  color: white;
}

.info-card:hover .info-text {
  color: white;
}
.info-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.wa-card {
  text-decoration: none;
  color: inherit;
  align-items: center;
  gap: 12px;
}

.wa-card:hover {
  opacity: 0.85;
  transition: 0.3s;
}

/* ===== LOADING BUTTON ===== */
#submitBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/* ================= CONTACT FULL SECTION ================= */

.contact-section {
  background: #e9e9e9;
  padding: 120px 0;
}

.contact-wrapper {
  width: 92%;
  max-width: 1400px;
  margin: auto;
}

.contact-heading {
  text-align: center;
  margin-bottom: 80px;
}

.contact-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 500;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;

  align-items: start;
}

/* MAP */
.contact-section .contact-map {
  min-height: 500px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* =============================
   FIX CONTACT FORM STYLE FINAL
============================= */
.contact-form-box form {
  width: 100%;
}
/* Container form */
.contact-form-box {
  background: #f5f5f5;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Styling input & textarea */
.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 14px 16px;
  margin-bottom: 25px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  transition: 0.3s ease;
}

/* Focus effect */
.contact-form-box input:focus,
.contact-form-box textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Textarea height */
.contact-form-box textarea {
  min-height: 180px;
}

/* Button styling (karena HTML tidak pakai .btn-send) */
.contact-form-box button {
  width: 200px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  padding: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover */
.contact-form-box button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* ================= FADE UP ANIMATION ================= */

.fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay supaya muncul bertahap */
.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.cta {
  position: relative;
  width: 92%;
  max-width: 1400px;
  margin: 0 auto 30px auto;
  background: url("../images/ChatGPT.webp") center/cover no-repeat;
  padding: 140px 60px;
  text-align: center;
  color: white;
  border-radius: 12px;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.cta h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 25px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.cta p {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
/* ================= FOOTER ================= */

.footer {
  background: #0e2a47;
  color: #ffffff;
  padding: 100px 0 0;
}

.footer-container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 80px;
}

.footer-col h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 25px;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 30px;
  color: #cfd8e3;
}

/* QR */
.qr-code {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 25px;
  object-fit: contain;
}

/* Wrapper contact button */
.contact-img {
  display: block;
  margin-top: 10px;
}

/* Image contact */
.contact-img img {
  width: 220px;
  display: block;
}
.footer-col:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* List */
.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

/* LINK PUTIH FIX */
.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-col ul li a:visited {
  color: #ffffff;
}

.footer-col ul li a:hover {
  color: #cfd8e3;
}

/* BOTTOM */
.footer-bottom {
  margin-top: 80px;
  text-align: center;
  padding: 25px 0;
  background: #0b223a;
  font-size: 14px;
  color: #cfd8e3;
}

/* ================= MOBILE DRAWER ================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(180deg, #0c1b2f, #0a1424);
  padding: 40px 30px;
  transition: 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HEADER */
.mobile-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 50px;
}

.mobile-close {
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
}

/* NAV */
.mobile-nav {
  list-style: none;
  margin-bottom: 40px;
}

.mobile-nav li {
  margin-bottom: 28px;
}

.mobile-nav a,
.mobile-toggle {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-nav a.active {
  color: #3c7dff;
}

/* SUBMENU */
.mobile-submenu {
  list-style: none;
  margin-top: 15px;
  padding-left: 10px;
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.mobile-submenu li {
  margin-bottom: 14px;
}

.mobile-submenu a {
  font-size: 16px;
  font-weight: 400;
  color: #cfd8ff;
}

.mobile-dropdown.active .mobile-submenu {
  max-height: 300px;
}

.mobile-arrow {
  transition: 0.3s;
}

.mobile-dropdown.active .mobile-arrow {
  transform: rotate(180deg);
}

/* BUTTON */
.mobile-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #3c63a8;
  padding: 14px 0;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  color: #ffffff !important;
  transition: 0.3s ease;
}

.mobile-btn:hover {
  background: #0e2a47;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .qr-code {
    margin: 0 auto 25px;
  }

  .contact-img img {
    margin: auto;
  }
  .footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

/* ===============================
   TABLET (max 1024px)
================================= */
@media (max-width: 1024px) {
  .nav-container {
    width: 95%;
  }

  .menu {
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fire-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .fire-content h2 {
    font-size: 32px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}
/* ================= MOBILE FIX FINAL ================= */
@media (max-width: 768px) {
  /* ===== NAVBAR ===== */

  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .logo {
    height: 50px;
  }

  .logo img {
    max-height: 50px;
  }
  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    padding: 120px 0 60px;
  }

  .overlay-left {
    width: 100%;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 26px;
    max-width: 100%;
  }

  .sub {
    max-width: 100%;
  }

  /* ===== CONTACT INFO ===== */
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-map {
    width: 100%;
    height: 250px;
    margin-bottom: 40px;
  }

  .map-overlay {
    left: 20px;
    bottom: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .info-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  .info-icon {
    font-size: 22px;
    margin-bottom: 0;
  }

  /* ===== CONTACT FORM ===== */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-map iframe {
    min-height: 300px;
  }

  .contact-heading h2 {
    font-size: 18px;
  }

  .contact-form-box label {
    font-size: 16px;
  }

  .contact-form-box input,
  .contact-form-box textarea {
    font-size: 14px;
  }

  .btn-send {
    padding: 14px;
    font-size: 16px;
  }

  /* ===== CTA ===== */
  .cta {
    padding: 80px 20px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .cta p {
    font-size: 16px;
    text-align: justify;
  }

  /* ===== FOOTER MOBILE FIX ===== */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left; /* ubah dari center ke left */
  }

  .footer-col {
    text-align: left;
  }

  .footer-col:first-child {
    align-items: flex-start; /* supaya QR dan button tidak center */
  }

  .qr-code {
    margin: 0 0 25px 0; /* hilangkan auto center */
  }

  .contact-img img {
    margin: 0; /* jangan center */
  }
}

/* FLOATING ICON */
.floating-lang {
  position: fixed;
  left: 20px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  background: #0e2a47;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.floating-lang:hover {
  transform: scale(1.1);
}

/* POPUP */
.lang-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lang-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 280px;
}

.lang-box button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: none;
  background: #0e2a47;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
