/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
  position: relative;
  overflow-x: hidden;
}

/* ===== Background ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background-image: url("bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
}

/* ===== Banner / Header ===== */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.banner-left,
.banner-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-center {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-katedral {
  max-height: 90px;
}

.logo-theresia {
  max-height: 85px;
}

.title-main {
  font-size: clamp(1.1rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: #1a365d;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.title-sub {
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 500;
  color: #2c5282;
  letter-spacing: 0.02em;
}

/* ===== Main Content ===== */
.content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.invitation {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.65;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  color: #1a1a1a;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  line-height: 1.35;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Pastel Merah */
.btn-merah {
  background-color: #f8b4b4; /* pastel red */
}

.btn-merah:hover {
  background-color: #e88a8a; /* darker */
}

/* Pastel Kuning */
.btn-kuning {
  background-color: #fcd34d; /* pastel yellow */
}

.btn-kuning:hover {
  background-color: #f6c23e; /* darker */
}

/* Pastel Hijau */
.btn-hijau {
  background-color: #a7f3d0; /* pastel green */
}

.btn-hijau:hover {
  background-color: #6ee7b7; /* darker */
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  color: #4a5568;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
  margin: 0.2rem 0;
}

.footer a {
  color: #2b6cb0;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive: Tablet & Mobile ===== */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .banner-left,
  .banner-right {
    order: 0;
  }

  .banner-center {
    order: 1;
    width: 100%;
  }

  /* Keep logos side by side on very small screens if desired */
  .banner {
    flex-wrap: wrap;
  }

  .logo {
    max-height: 64px;
  }

  .logo-katedral {
    max-height: 70px;
  }

  .logo-theresia {
    max-height: 66px;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .invitation {
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
  }

  .buttons {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 0.85rem 0.75rem;
  }

  .logo {
    max-height: 52px;
  }

  .logo-katedral {
    max-height: 58px;
  }

  .logo-theresia {
    max-height: 54px;
  }

  .title-main {
    font-size: 1.05rem;
  }

  .title-sub {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.85rem 1rem;
  }
}

/* Landscape phone / small tablet */
@media (min-width: 481px) and (max-width: 900px) and (orientation: landscape) {
  .banner {
    flex-wrap: nowrap;
    padding: 0.6rem 1rem;
  }

  .logo {
    max-height: 55px;
  }

  .content {
    padding: 1rem;
  }
}
