:root {
  --navy: #17365d;
  --blue: #2878c8;
  --blue-dark: #1f5fa8;
  --pale: #f3f7fc;
  --ink: #172b45;
  --muted: #64748b;
}
body {
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.brand {
  color: var(--navy);
  letter-spacing: 0.04em;
  font-size: 1rem;
}
.brand-dot {
  color: var(--blue);
}
.nav-link {
  color: #34465d;
  font-weight: 500;
}
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline-primary {
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.hero {
  background: linear-gradient(135deg, #f3f7fc 0%, #ffffff 65%);
  overflow: hidden;
}
.py-lg-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}
.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero h1 {
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero-visual {
  min-height: 360px;
  border-radius: 28px;
  background: linear-gradient(145deg, #dcebfa, #f7fafe 55%, #c8ddf4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}
.visual-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(23, 54, 93, 0.13);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 310px;
  text-align: center;
}
.visual-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--navy);
  color: white;
  font-size: 2.5rem;
}
.visual-caption {
  position: absolute;
  bottom: 18px;
  left: 24px;
  font-size: 0.8rem;
  color: var(--navy);
}
.section-space {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.section-heading {
  max-width: 680px;
}
.section-heading h2,
.page-banner h1 {
  color: var(--navy);
}
.service-card,
.info-panel {
  border: 1px solid #e1eaf4;
  background: #fff;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 8px 28px rgba(23, 54, 93, 0.04);
}
.service-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 54, 93, 0.09);
}
.service-number {
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.text-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
.text-link:hover {
  color: var(--blue-dark);
}
.section-tint,
.page-banner {
  background: var(--pale);
}
.page-banner {
  border-bottom: 1px solid #e3ecf6;
}
.footer {
  background: var(--navy);
}
.footer a {
  color: #dcebfa;
  text-decoration: none;
  line-height: 2;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-muted {
  color: #c4d3e5;
}
.empty-state {
  border: 1px dashed #c7d8ea;
  background: #f8fbff;
  border-radius: 20px;
  padding: 3rem 1.5rem;
}
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ddf5e7;
  color: #187746;
  font-size: 2rem;
  font-weight: 800;
}
.reference-code {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background: #eaf2fb;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.form-control:focus,
.form-select:focus {
  border-color: #8ab8e8;
  box-shadow: 0 0 0 0.2rem rgba(40, 120, 200, 0.13);
}
@media (max-width: 767.98px) {
  .section-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-visual {
    min-height: 280px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Frame gambar pada kartu layanan */
.service-card img,
.service-image {
  display: block;
  width: 100%;
  height: 220px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background-color: #f8fafc;
  border-radius: 12px;
}

/* Frame gambar layanan dan proyek: proporsional, tidak terpotong */
.service-card img,
.service-image,
.project-card img,
.project-image,
.service-card > img[alt*="Gambar proyek"] {
  display: block;
  width: 100%;
  height: 220px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background-color: #f8fafc;
  border-radius: 12px;
}

/* Kartu proyek menggunakan frame gambar seperti kartu layanan */
.service-card:has(> img[alt*="Gambar proyek"]) {
  padding: 1.6rem;
}

.service-card:has(> img[alt*="Gambar proyek"]) > img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  background-color: #f8fafc;
  border-radius: 12px;
}

/* Responsif untuk layar kecil */
@media (max-width: 767.98px) {
  .section-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .service-card img,
  .service-image,
  .project-card img,
  .project-image,
  .service-card > img[alt*="Gambar proyek"] {
    height: 190px !important;
  }
}

/* =========================================================
   BTS HOME UX REFRESH — hero elevator & auto gallery
   Scoped to homepage classes so other pages remain unchanged.
   ========================================================= */
:root {
  --bts-gold: #d9ad55;
  --bts-gold-light: #f4d895;
  --bts-hero-navy: #071a31;
}
.btn-gold {
  color: #101f32;
  background: linear-gradient(135deg, var(--bts-gold-light), var(--bts-gold));
  border: 1px solid var(--bts-gold);
  font-weight: 750;
  box-shadow: 0 10px 28px rgba(217, 173, 85, 0.2);
}
.btn-gold:hover,
.btn-gold:focus {
  color: #101f32;
  background: #edc875;
  border-color: #edc875;
  transform: translateY(-1px);
}
.btn-hero-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.btn-hero-outline:hover,
.btn-hero-outline:focus {
  color: var(--bts-hero-navy);
  background: #fff;
  border-color: #fff;
}
.hero-elevator {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #071a31;
  min-height: 680px;
}
.hero-elevator .hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 19, 38, 0.97) 0%,
      rgba(7, 26, 49, 0.91) 42%,
      rgba(7, 26, 49, 0.65) 100%
    ),
    var(
        --home-hero-background,
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85")
      )
      center 48% / cover no-repeat;
  transform: scale(1.025);
}
.hero-elevator::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(217, 173, 85, 0.2),
      transparent 27%
    ),
    linear-gradient(135deg, transparent 50%, rgba(23, 54, 93, 0.25));
}
.hero-elevator .hero-content {
  position: relative;
  z-index: 1;
}
.hero-elevator .eyebrow {
  color: var(--bts-gold-light);
}
.hero-elevator h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.5rem, 4.3vw, 4.45rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-elevator h1 span {
  color: var(--bts-gold-light);
}
.hero-description {
  max-width: 620px;
  color: rgba(241, 246, 252, 0.78) !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.75;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  color: rgba(241, 246, 252, 0.78);
  font-size: 0.87rem;
}
.hero-trust-row span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.hero-trust-row i {
  color: var(--bts-gold-light);
  font-style: normal;
  font-weight: 800;
}
.elevator-showcase {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}
.showcase-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.showcase-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bts-gold-light);
  box-shadow: 0 0 0 4px rgba(217, 173, 85, 0.15);
}
.showcase-count {
  margin-left: auto;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.showcase-count-divider {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.15rem;
}
.showcase-image-wrap {
  min-height: 390px;
  height: clamp(350px, 36vw, 475px);
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #142b43;
}
.showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.01);
  transition:
    opacity 0.35s ease,
    transform 5.8s linear;
}
.showcase-image.is-changing {
  opacity: 0.25;
  transform: scale(1.045);
}
.showcase-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 13, 25, 0.04) 18%,
    rgba(3, 13, 25, 0.25) 45%,
    rgba(3, 13, 25, 0.88) 100%
  );
  pointer-events: none;
}
.showcase-overlay-copy {
  position: absolute;
  left: clamp(1rem, 3vw, 1.65rem);
  right: 4.5rem;
  bottom: 1.45rem;
  color: #fff;
}
.showcase-kicker {
  color: var(--bts-gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.showcase-overlay-copy h2 {
  max-width: 460px;
  margin: 0.55rem 0 0.45rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 750;
  line-height: 1.12;
}
.showcase-overlay-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}
.showcase-controls {
  position: absolute;
  right: 1rem;
  bottom: 1.1rem;
  display: flex;
  gap: 0.45rem;
}
.showcase-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 19, 38, 0.48);
  font-size: 1.15rem;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.showcase-arrow:hover,
.showcase-arrow:focus-visible {
  color: #10233a;
  background: var(--bts-gold-light);
  border-color: var(--bts-gold-light);
}
.showcase-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.7rem 0.1rem 0.2rem;
}
.showcase-thumb {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.showcase-thumb img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 0;
}
.showcase-thumb span {
  display: block;
  overflow: hidden;
  padding: 0.42rem 0.45rem 0.48rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.showcase-thumb.is-active {
  border-color: var(--bts-gold-light);
  background: rgba(217, 173, 85, 0.12);
  box-shadow: 0 0 0 1px rgba(217, 173, 85, 0.25);
}
.showcase-thumb.is-active span {
  color: var(--bts-gold-light);
}
.showcase-progress {
  height: 3px;
  margin: 0.55rem 0.1rem 0.1rem;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}
.showcase-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--bts-gold-light);
}
.hero-bottom-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -130px;
  height: 180px;
  background: radial-gradient(
    ellipse,
    rgba(217, 173, 85, 0.15),
    transparent 68%
  );
  pointer-events: none;
}
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 112px;
}
.trust-strip-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.trust-strip-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--bts-gold-light);
  background: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.4;
}
.trust-strip-icon {
  color: #b88a32;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.hero-elevator + .trust-strip + .section-space {
  padding-top: 5rem;
}
.hero-elevator ~ .section-tint {
  border-top: 1px solid #e6edf5;
}
@media (max-width: 991.98px) {
  .hero-elevator {
    min-height: auto;
  }
  .hero-elevator .container {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  .hero-elevator h1 {
    max-width: 780px;
  }
  .elevator-showcase {
    margin-top: 0.5rem;
  }
  .showcase-image-wrap {
    height: 430px;
  }
  .trust-strip-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }
  .trust-strip-label {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .hero-elevator .container {
    padding-top: 3.2rem !important;
    padding-bottom: 3rem !important;
  }
  .hero-elevator h1 {
    font-size: clamp(2.25rem, 10vw, 3.1rem);
  }
  .hero-trust-row {
    display: grid;
    gap: 0.6rem;
  }
  .showcase-image-wrap {
    min-height: 340px;
    height: 390px;
  }
  .showcase-overlay-copy {
    right: 1rem;
    bottom: 4.5rem;
  }
  .showcase-controls {
    right: 0.85rem;
    bottom: 0.75rem;
  }
  .showcase-arrow {
    width: 38px;
    height: 38px;
  }
  .showcase-thumbnails {
    gap: 0.35rem;
  }
  .showcase-thumb img {
    height: 48px;
  }
  .showcase-thumb span {
    font-size: 0.57rem;
    padding: 0.35rem 0.3rem;
  }
  .trust-strip-inner {
    align-items: flex-start;
    gap: 1rem;
  }
  .trust-strip-item {
    flex: 1 1 42%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-image,
  .showcase-arrow,
  .showcase-thumb,
  .btn-gold {
    transition: none !important;
  }
}

/* =========================================================
   FIX FOTO KARTU LAYANAN
   Foto layanan memenuhi frame tanpa ruang kosong.
   Selector proyek tetap dikecualikan agar tampilan proyek
   yang sudah disetujui tidak ikut berubah.
   ========================================================= */
.service-card img:not([alt*="Gambar proyek"]) {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover !important;
  object-position: center;
  background-color: #f3f7fc;
  border-radius: 12px;
}

@media (max-width: 767.98px) {
  .service-card img:not([alt*="Gambar proyek"]) {
    height: 190px !important;
  }
}

/* =========================================================
   BTS NAVBAR ACTIVE STATE — Navy & Gold
   Active state follows the current route and supports detail pages.
   ========================================================= */
.navbar .navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.9rem !important;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #34465d;
  font-weight: 600;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus-visible {
  color: #17365d;
  background: #f3f7fc;
  border-color: #dce7f4;
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active:hover,
.navbar .navbar-nav .nav-link.active:focus-visible {
  color: #17365d;
  background: #f4d895;
  border-color: #d9ad55;
  box-shadow: 0 4px 12px rgba(23, 54, 93, 0.08);
  font-weight: 800;
}

.navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: #17365d;
  opacity: 0.8;
}

.navbar .navbar-nav .btn.nav-cta-active {
  color: #17365d;
  background: #f4d895;
  border-color: #d9ad55;
  box-shadow: 0 0 0 3px rgba(217, 173, 85, 0.18);
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.2rem;
    padding: 0.7rem 0.9rem !important;
  }

  .navbar .navbar-nav .nav-link.active::after {
    left: auto;
    right: 0.85rem;
    bottom: 50%;
    width: 5px;
    height: 5px;
    transform: translateY(50%);
    border-radius: 50%;
  }

  .navbar .navbar-nav .btn {
    margin-top: 0.4rem;
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar .navbar-nav .nav-link {
    transition: none;
  }
}
