/* Legacy page — scoped with lgx- prefix; responsive rules at bottom */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

#lgx-legacy-main {
  font-family: "Montserrat", sans-serif;
  color: #334155;
  background: #f8fafc;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  #lgx-legacy-main .navbar-collapse .nav-link,
  #lgx-legacy-main .navbar-collapse .mega-menu > li > a,
  #lgx-legacy-main .navbar-collapse .mega-menu li a,
  #lgx-legacy-main .navbar-collapse .sub-menu li a {
    color: #0f2744 !important;
  }
}

/* ——— Top bar ——— */
#lgx-top-contact-bar {
  background: linear-gradient(180deg, #F2993A 0%, #EE8C74 50%, #E57AA6 100%) !important;
  padding: 14px 16px;
  text-align: center;
  margin-top: 100px;
}

.lgx-btn-contact-primary {
  display: inline-block;
  background: #ff8a3d;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.lgx-btn-contact-primary:hover {
  background: #ff8a3d;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ——— Section title with lines ——— */
.lgx-section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.lgx-section-heading__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lgx-section-heading__line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.lgx-section-heading__title {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  color: #0f2744;
  margin: 0;
  white-space: nowrap;
}

.lgx-section-heading__text {
  font-size: 15px;
  line-height: 1.75;
  color: #64748b;
  margin: 0;
}

/* ——— Story ——— */
#lgx-legacy-story {
  padding: 56px 0 48px;
  background: #fff;
}

/* ——— Timeline ——— */
#lgx-legacy-timeline {
  padding: 48px 0 56px;
  background: #f1f5f9;
}

.lgx-timeline-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.lgx-timeline-wrap::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #0f2744;
  border-radius: 2px;
  z-index: 0;
}

.lgx-timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.lgx-timeline-item:last-child {
  margin-bottom: 0;
}

.lgx-timeline-year-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 8px;
}

.lgx-timeline-year {
  background: #ff8a3d;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  position: relative;
}

.lgx-timeline-year::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ff8a3d;
  border-radius: 50%;
  border: 3px solid #f1f5f9;
  box-sizing: content-box;
}

.lgx-timeline-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 8px 30px rgba(15, 39, 68, 0.08);
  border: 1px solid #e2e8f0;
}

.lgx-timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f2744;
  margin: 0 0 10px;
}

.lgx-timeline-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* ——— Highlights ——— */
#lgx-legacy-highlights {
  padding: 56px 0;
  background: #fff;
}

.lgx-highlight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lgx-highlight-card:hover {
  box-shadow: 0 12px 40px rgba(15, 39, 68, 0.1);
  transform: translateY(-4px);
}

.lgx-highlight-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lgx-highlight-card__icon img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.lgx-highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2744;
  margin: 0 0 12px;
}

.lgx-highlight-card p {
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* ——— Infrastructure ——— */
#lgx-legacy-infrastructure {
  padding: 56px 0;
  background: #f8fafc;
}

.lgx-infra-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 0 4px;
}

.lgx-infra-title-row h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #0f2744;
  margin: 0;
  white-space: nowrap;
}

.lgx-infra-title-row__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, transparent);
  min-width: 40px;
}

.lgx-infra-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lgx-infra-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}

.lgx-infra-list__check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.lgx-infra-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 39, 68, 0.12);
}

.lgx-infra-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* ——— By the numbers ——— */
#lgx-legacy-numbers {
  padding: 56px 0;
  background: #fff;
}

.lgx-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  height: 100%;
}

.lgx-stat-card__value {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 8px;
  line-height: 1.2;
}

.lgx-stat-card__suffix {
  font-weight: 800;
}

.lgx-stat-card__label {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ——— Gallery ——— */
#lgx-legacy-gallery {
  padding: 56px 0 72px;
  background: #f1f5f9;
}

.lgx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lgx-gallery-cell {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.08);
}

.lgx-gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.lgx-gallery-cell:hover img {
  transform: scale(1.05);
}

/* ——— Responsive ——— */
@media (max-width: 991px) {
  .lgx-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lgx-timeline-item {
    grid-template-columns: 88px 1fr;
    gap: 20px;
  }

  .lgx-timeline-wrap::before {
    left: 42px;
  }
}

@media (max-width: 767px) {
  #lgx-legacy-story,
  #lgx-legacy-timeline,
  #lgx-legacy-highlights,
  #lgx-legacy-infrastructure,
  #lgx-legacy-numbers,
  #lgx-legacy-gallery {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .lgx-section-heading__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .lgx-section-heading__line {
    max-width: 60px;
  }

  .lgx-timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 0;
  }

  .lgx-timeline-wrap::before {
    left: 14px;
    top: 4px;
    bottom: 4px;
  }

  .lgx-timeline-year-col {
    align-items: flex-start;
    padding-left: 44px;
    padding-top: 0;
  }

  .lgx-timeline-year::after {
    left: -36px;
    right: auto;
    top: 50%;
  }

  .lgx-infra-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lgx-infra-title-row__line {
    width: 100%;
    max-width: 200px;
  }

  .lgx-infra-photo {
    margin-top: 24px;
  }
}

@media (max-width: 575px) {
  .lgx-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lgx-gallery-cell {
    aspect-ratio: 16 / 10;
  }

  #lgx-top-contact-bar {
    padding: 12px;
  }

  .lgx-btn-contact-primary {
    width: 100%;
    max-width: 280px;
  }
}
