/* Shared header and footer */
.site-header,
.site-footer {
  --gold: #c7a35a;
  --white: #ffffff;
  --transition: all 0.35s ease;

  font-family: "Inter", sans-serif;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.site-header *,
.site-header *::before,
.site-header *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-header a,
.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-header img,
.site-footer img {
  display: block;
  max-width: 100%;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid #c7a35a;
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 84px;
  transition: var(--transition);
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(7, 7, 7, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.site-header .nav-wrap {
  width: min(1280px, calc(100% - 36px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  min-width: 120px;
}

.site-header .brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
}

.site-header .nav-links a {
  position: relative;
  padding: 10px 0;
  transition: var(--transition);
}

.site-header .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #c7a35a;
  transition: var(--transition);
}

.site-header .nav-links a:hover,
.site-header .nav-links a.is-active {
  color: #ffffff;
}

.site-header .nav-links a:hover::after,
.site-header .nav-links a.is-active::after {
  width: 100%;
}

.site-header .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.site-header .nav-cta .btn {
  padding: 12px 18px;
  font-size: 13px;
}

.site-header .btn-nav-white {
  background: #ffffff;
  color: #050505;
  border-color: #ffffff;
}

.site-header .btn-nav-white:hover {
  background: #050505;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.site-header .mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 24px;
  flex-shrink: 0;
}

.site-header .mobile-menu {
  display: none;
}

/* Footer */
.site-footer {
  background: #050505;
  color: #ffffff;
  padding: 86px 0 28px;
}

.site-footer .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer .footer-layout {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1.1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 58px;
}

.site-footer .footer-layout > * {
  min-width: 0;
}

.site-footer .footer-brand img {
  width: 92px;
  height: auto;
  margin-bottom: 18px;
}

.site-footer .footer-brand h3 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.site-footer .footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.site-footer .footer-col h4 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-footer .footer-links {
  display: grid;
  gap: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.site-footer .footer-links a {
  transition: var(--transition);
}

.site-footer .footer-links a:hover {
  color: rgba(255, 255, 255, 0.76);
  transform: translateX(4px);
}

.site-footer .footer-contact {
  display: grid;
  gap: 15px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  line-height: 1.5;
}

.site-footer .footer-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.site-footer .footer-contact-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer .footer-contact-row img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.site-footer .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer .socials a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.site-footer .socials a:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.site-footer .socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.site-footer .footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Tablet and mobile */
@media (max-width: 1100px) {
  .site-header .nav-links,
  .site-header .nav-cta {
    display: none;
  }

  .site-header .mobile-toggle {
    display: inline-flex;
  }

  .site-header .mobile-menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 6px);
    z-index: 999;
    display: none;
    padding: 18px;
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

  .site-header .mobile-menu.is-open {
    display: grid;
  }

  .site-header .mobile-menu a {
    color: #ffffff;
    padding: 14px 10px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header .mobile-menu a.is-active {
    color: #c7a35a;
  }

  .site-header .mobile-menu .btn {
    margin-top: 14px;
    width: 100%;
  }

  .site-header .mobile-menu a.btn-nav-white {
    color: #050505;
    background: #ffffff;
    border-color: #ffffff;
  }

  .site-header .mobile-menu a.btn-nav-white:hover {
    color: #ffffff;
    background: #050505;
    border-color: rgba(255, 255, 255, 0.28);
  }

  .site-footer .footer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-footer .container {
    width: min(1180px, calc(100% - 28px));
  }

  .site-footer .footer-bottom {
    display: grid;
  }
}

@media (min-width: 1101px) {
  .site-header .mobile-menu,
  .site-header .mobile-menu.is-open {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header *,
  .site-header *::after,
  .site-footer * {
    transition: none !important;
  }
}

/* METANEXT branding preview */
.site-header,
.site-header.is-scrolled {
  background: #031347;
}

.site-header .mobile-menu {
  background: #031347;
}

.site-footer {
  background: #031347;
}

/* Logo baharu berbentuk horizontal */
.site-header .brand img {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.site-footer .footer-brand img {
  width: 128px;
  height: auto;
}

.site-footer .footer-brand h3 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* Butang putih, hover navy */
.site-header .btn-nav-white,
.site-header .mobile-menu a.btn-nav-white {
  background: #ffffff;
  color: #031347;
  border-color: #ffffff;
}

.site-header .btn-nav-white:hover,
.site-header .mobile-menu a.btn-nav-white:hover {
  background: #031347;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
  .site-header .brand img {
    width: 64px;
  }

  .site-footer .footer-brand img {
    width: 112px;
  }
}