/* =========================================================
   MNA - PT Mitra Niaga Abadi
   Light mode only
   Custom styles outside Tailwind
   ========================================================= */

:root {
  --brand-50: #eff7ff;
  --brand-100: #dcecff;
  --brand-500: #2d82f4;
  --brand-600: #0d67dc;
  --brand-700: #0754b7;
  --brand-800: #0a478f;
  --brand-900: #0c3c73;
  --brand-950: #082447;
  --brand-navy: #071f53;
  --brand-gold: #ffd78a;
  --brand-ink: #10204d;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Fixed navbar */
.nav-shell {
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 12px 34px rgba(8, 36, 71, 0.11);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--brand-600);
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 999px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--brand-600);
}

/* HD MNA mark + responsive text lockup */
.mna-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-950);
  text-decoration: none;
}

.mna-lockup__mark {
  display: block;
  width: auto;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.mna-lockup__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1;
}

.mna-lockup__name {
  color: var(--brand-950);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.mna-lockup__company {
  margin-top: 3px;
  color: var(--brand-950);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.mna-lockup__parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: #7d8798;
  font-size: 7px;
  font-weight: 500;
  white-space: nowrap;
}

.mna-lockup__parent-logo {
  display: block;
  position: relative;
  width: 52px;
  height: 15px;
  flex: 0 0 auto;
  overflow: hidden;
}

.mna-lockup__parent-logo img {
  position: absolute;
  top: -5px;
  left: 0;
  display: block;
  width: 52px;
  max-width: none;
  height: auto;
}

.mna-lockup--footer .mna-lockup__mark {
  height: 62px;
}

/* Background assets supplied by user */
.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(5, 56, 127, 0.08), rgba(5, 56, 127, 0) 52%),
    url("../images/background-website-1.png");
  background-size: cover;
  background-position: center;
}

.about-bg {
  background-image: url("../images/background-website-2.png");
  background-size: cover;
  background-position: center;
}

.cta-bg {
  background-image: url("../images/background-website-3.png");
  background-size: cover;
  background-position: center;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  margin-right: 12px;
  vertical-align: middle;
}

.service-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card p {
  line-height: 1.7;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 215, 138, 0.95);
  outline-offset: 4px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(12, 60, 115, 0.08);
  border-color: rgba(13, 103, 220, 0.15);
}

.service-icon {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  background: var(--brand-100);
}

.step-line::after {
  content: "";
  position: absolute;
  left: calc(100% + 8px);
  top: 26px;
  width: 22px;
  height: 1px;
  background: #8fa6c5;
}

.step-line::before {
  content: "";
  position: absolute;
  left: calc(100% + 24px);
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #47698f;
  border-top: 1.5px solid #47698f;
  transform: rotate(45deg);
}

@media (max-width: 1023px) {
  .hero-bg {
    background-position: 66% center;
  }

  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(5, 53, 123, 0.98) 0%,
      rgba(5, 53, 123, 0.88) 52%,
      rgba(5, 53, 123, 0.18) 100%
    );
  }

  .about-bg {
    background-position: 58% center;
  }
}

@media (max-width: 767px) {
  .mna-lockup__mark {
    height: 46px;
  }

  .mna-lockup__name {
    font-size: 18px;
  }

  .mna-lockup__company {
    font-size: 6.5px;
  }

  .mna-lockup__parent {
    margin-top: 4px;
    font-size: 6px;
  }

  .mna-lockup__parent-logo {
    width: 42px;
    height: 12px;
  }

  .mna-lockup__parent-logo img {
    top: -4px;
    width: 42px;
  }

  .service-card {
    min-height: 0;
  }

  .hero-bg {
    background-position: 72% center;
  }

  .hero-bg::before {
    background: linear-gradient(
      180deg,
      rgba(4, 47, 109, 0.25) 0%,
      rgba(4, 47, 109, 0.7) 38%,
      rgba(4, 47, 109, 0.98) 74%,
      rgba(4, 47, 109, 1) 100%
    );
  }

  .about-bg {
    background-position: 53% center;
  }

  .about-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 57, 130, 0.4),
      rgba(0, 57, 130, 0.96) 62%
    );
  }

  .cta-bg {
    background-position: 66% center;
  }

  .step-line::after,
  .step-line::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
