/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f3f5;
  color: #222;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
.top-header {
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.header-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.header-text {
  line-height: 1.2;
}

.header-title {
  font-size: 17px;
  font-weight: 800;
  color: #1c3d6e;
  transition: all 0.3s ease;
}

.header-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #1c3d6e;
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Saat collapse */
.top-header.collapse {
  padding: 10px 16px;
}

.top-header.collapse .header-logo {
  width: 42px;
  height: 42px;
}

.top-header.collapse .header-title {
  font-size: 15px;
}

.top-header.collapse .header-subtitle {
  font-size: 11px;
}

/* =========================
   BANNER
========================= */
.banner {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  transition: all 0.35s ease;
  z-index: 1;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.35s ease;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Saat scroll */
.banner.collapse {
  height: 90px;
}

.banner.collapse .banner-overlay {
  opacity: 0.55;
}

.banner.collapse img {
  filter: blur(2px);
  transform: scale(1.03);
}

/* =========================
   MAIN CONTENT
========================= */
.main-content {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding: 0 10px 28px;
}

/* =========================
   SECTION CARD
========================= */
.section-card {
  background: #f8f8f8;
  border-radius: 24px;
  padding: 18px 14px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Card pertama naik nutup banner */
.section-card:first-child {
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
  padding-left: 2px;
}

/* =========================
   GRID MENU
========================= */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 12px;
  justify-items: center;
  align-items: start;
}

/* =========================
   MENU BOX
========================= */
.menu-box {
  width: 100%;
  max-width: 78px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.menu-box:active {
  transform: scale(0.96);
}

/* =========================
   ICON BOX
========================= */
.icon-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #eaf1fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

/* =========================
   ICON
========================= */
.menu-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Khusus icon yang suka miring posisi visualnya */
.icon-megaphone {
  transform: translateY(1px);
}

.icon-form {
  transform: translateY(1px);
}

.icon-monitor {
  transform: translateY(1px);
}

.icon-invoice {
  transform: translateY(1px);
}

/* =========================
   TEXT
========================= */
.menu-text {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  line-height: 1.3;
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  word-break: break-word;
}

/* =========================
   INVOICE CARD
========================= */
.invoice-card {
  background: #f8fbff;
  border: 1px solid #dce9f9;
  padding: 18px;
  border-radius: 16px;
  margin-top: 20px;
}

/* =========================
   MOBILE SMALL
========================= */
@media (max-width: 480px) {
  .top-header {
    padding: 12px 14px;
  }

  .header-logo {
    width: 48px;
    height: 48px;
  }

  .header-title {
    font-size: 16px;
  }

  .header-subtitle {
    font-size: 12px;
  }

  .banner {
    height: 175px;
  }

  .main-content {
    margin-top: -28px;
    padding: 0 8px 24px;
  }

  .section-card {
    padding: 16px 12px 20px;
    border-radius: 22px;
  }

  .grid-menu {
    gap: 20px 10px;
  }

  .menu-box {
    max-width: 76px;
    min-height: 122px;
  }

  .icon-box {
    width: 68px;
    height: 68px;
  }

  .menu-icon {
    width: 38px;
    height: 38px;
  }

  .menu-text {
    font-size: 13px;
    min-height: 36px;
  }
}