/* Header dan footer halaman publik P4M. Dimuat setelah main.css. */

/* ---------- Header ---------- */
/* Beranda: maroon solid + motif batik tipis di atas; begitu discroll, memudar
   jadi maroon tipis (kaca) yang lebih ringan. Dua-duanya tetap bernuansa maroon,
   tidak pernah putih, supaya identitas warna P4M konsisten sejak halaman dimuat. */
.index-page .header {
  --background-color: transparent;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 26px),
    radial-gradient(rgba(244, 187, 53, 0.22) 0 2px, transparent 3px),
    linear-gradient(120deg, var(--accent-dark) 0%, var(--accent-color) 55%, var(--accent-light) 100%);
  background-size: auto, auto, 26px 26px, auto;
  background-position: 0 0, 0 0, 13px 13px, 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.index-page.scrolled .header {
  background:
    linear-gradient(120deg, rgba(61, 0, 6, 0.82) 0%, rgba(99, 0, 3, 0.78) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 22px rgba(40, 0, 4, 0.25);
  padding: 9px 0;
}

.header .logo img {
  max-height: 44px;
  margin-right: 10px;
}

.header .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header .brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header .brand small {
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.index-page .header .brand strong { color: #fff; }
.index-page .header .brand small { color: rgba(255, 255, 255, 0.75); }

.index-page .navmenu a,
.index-page .navmenu a:focus {
  color: #fff;
}

.index-page .navmenu li:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.index-page .navmenu .active,
.index-page .navmenu .active:focus,
.index-page .navmenu li:hover > a.active {
  color: var(--accent-color);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.index-page .mobile-nav-toggle {
  color: #fff;
}

.header .hdr-search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 14px;
  color: var(--accent-color);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  transition: 0.25s;
}

.index-page .header .hdr-search {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.header .hdr-search:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.index-page .header .hdr-search:hover {
  background: #fff;
  color: var(--accent-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
  padding: 9px 22px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(99, 0, 3, 0.22);
}

.index-page .header .btn-getstarted,
.index-page .header .btn-getstarted:focus {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.index-page .header .btn-getstarted:hover {
  background: rgba(255, 255, 255, 0.88);
}

@media (min-width: 1200px) {
  .navmenu ul {
    gap: 2px;
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
  }

  .navmenu li:last-child a {
    padding-right: 15px;
  }

  .navmenu li:hover > a {
    color: var(--accent-color);
    background: var(--accent-soft);
  }

  .navmenu .active,
  .navmenu .active:focus,
  .navmenu li:hover > a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    box-shadow: 0 6px 14px rgba(99, 0, 3, 0.2);
  }
}

@media (max-width: 1199px) {
  .header .brand small {
    display: none;
  }

  .header .hdr-search {
    order: 2;
    margin: 0 8px 0 0;
    width: 36px;
    height: 36px;
  }

  .header .btn-getstarted {
    margin: 0 12px 0 0;
  }
}

@media (max-width: 480px) {
  .header .btn-getstarted span {
    display: none;
  }

  .header .btn-getstarted {
    padding: 8px 12px;
  }
}

/* ---------- Footer ---------- */
.p4m-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 55%, #45000a 100%);
}

.p4m-footer:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.p4m-footer .pf-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.p4m-footer .pf-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 44px;
  padding: 52px 0 40px;
}

.p4m-footer .pf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.p4m-footer .pf-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #fff;
  padding: 5px;
  object-fit: contain;
}

.p4m-footer .pf-brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p4m-footer .pf-brand span {
  font-size: 12px;
  opacity: 0.85;
}

.p4m-footer .pf-desc {
  margin: 16px 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 380px;
}

.p4m-footer .pf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 30px;
  background: #fff;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: 0.25s;
}

.p4m-footer .pf-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.p4m-footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: #fff;
  position: relative;
}

.p4m-footer h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: #f4bb35;
}

.p4m-footer .pf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
}

.p4m-footer .pf-links a,
.p4m-footer .pf-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.p4m-footer .pf-links a:hover,
.p4m-footer .pf-contact a:hover {
  color: #fff;
  padding-left: 3px;
}

.p4m-footer .pf-links i {
  font-size: 10px;
  margin-right: 6px;
  color: #f4bb35;
}

.p4m-footer .pf-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p4m-footer .pf-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.p4m-footer .pf-contact i {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #f4bb35;
}

.p4m-footer .pf-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.p4m-footer .pf-bottom .pf-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.p4m-footer .pf-bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.p4m-footer .pf-bottom a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  .p4m-footer .pf-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .p4m-footer .pf-main > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .p4m-footer .pf-main {
    grid-template-columns: 1fr;
    padding: 40px 0 28px;
  }
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--accent-color);
  border-color: var(--accent-border);
}

.pagination .page-link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pagination .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 0, 3, 0.15);
}
