/* ==========================================================================
   AZETECH INFRA — MEPF DESIGN & CONSTRUCTION SHOWCASE STYLESHEET
   Pixel-Accurate reproduction of MEPF Design & Construction Showcase(1).png
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER NAV OVERRIDES (ACTIVE STATE & PILL BUTTON)
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #ECEEF2;
}

.site-nav .nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1F2937;
  padding: 0.5rem 0.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav .nav-link:hover {
  color: var(--color-primary-red);
}

.site-nav .nav-link.active {
  color: #111827;
}

/* Red underline strictly under the active menu link text */
.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary-red);
  border-radius: 2px;
}

.btn-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--color-primary-red);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.625rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(194, 19, 29, 0.25);
}

.btn-header-pill:hover {
  background-color: var(--color-primary-dark-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 19, 29, 0.35);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. MAIN MEPF SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.mepf-showcase-section {
  position: relative;
  background-color: #FFFFFF;
  padding-top: 3.25rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Background Faint Architectural Wireframe */
.mepf-bg-wireframe {
  position: absolute;
  left: -20px;
  top: 180px;
  width: 380px;
  height: 600px;
  background-image: url('../images/mepf/wireframe_alpha.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.mepf-showcase-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.mepf-showcase-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.32fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* Left Column Content */
.mepf-left-col {
  padding-top: 0.5rem;
}

.mepf-eyebrow {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-red);
  margin-bottom: 0.625rem;
}

.mepf-red-rule {
  width: 64px;
  height: 5px;
  background-color: var(--color-primary-red);
  margin-bottom: 1.5rem;
  border-radius: 3px;
}

.mepf-headline {
  font-size: clamp(2.6rem, 3.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #101828;
  margin-bottom: 1.625rem;
}

.mepf-headline .text-red {
  display: block;
  color: var(--color-primary-red);
}

.mepf-lead {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1F2937;
  margin-bottom: 1.625rem;
  max-width: 520px;
}

.mepf-capabilities-label {
  display: block;
  font-size: 1.03125rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1.25rem;
}

/* Bullet list (11 verbatim items from PDF Page 7) */
.mepf-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mepf-bullet-list li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: 0.65rem;
  font-size: 1.03125rem;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.45;
  display: flex;
  align-items: center;
}

.mepf-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  flex-shrink: 0;
}

/* Right Column: Upper BIM Visual + Lower 3 Photo Cards */
.mepf-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mepf-bim-visual {
  position: relative;
  width: 100%;
  margin-top: -1.75rem;
}

.mepf-bim-visual img {
  width: 100%;
  height: 340px;
  display: block;
  max-height: 360px;
  object-fit: cover;
  object-position: right top;
}

/* 3 Tall Portrait Photo Cards */
.mepf-three-photos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.mepf-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 0.59;
  box-shadow: 0 12px 32px -4px rgba(16, 24, 40, 0.12);
  background-color: #E8EDF3;
}

.mepf-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform var(--transition-smooth);
}

.mepf-photo-card:first-child img {
  object-position: center center;
}

.mepf-photo-card:nth-child(2) img {
  object-position: center 20%;
}

.mepf-photo-card:last-child img {
  object-position: center center;
}

.mepf-photo-card:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   3. CTA BANNER (DARK NAVY / BRAND RED DIAGONAL)
   -------------------------------------------------------------------------- */
.mepf-cta-banner {
  position: relative;
  overflow: hidden;
  background-color: #060D17;
  padding: 4.75rem 0;
  color: #FFFFFF;
}

.mepf-cta-red-facet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(135deg, #C2131D 0%, #A50F18 100%);
  clip-path: polygon(36% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.mepf-cta-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
}

.mepf-cta-content {
  max-width: 620px;
}

.mepf-cta-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

.mepf-cta-heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
}

.mepf-cta-desc {
  font-size: 1.03125rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0;
}

.mepf-cta-action {
  flex-shrink: 0;
  z-index: 3;
}

.btn-cta-white-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #FFFFFF;
  color: #060D17;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9375rem 2.125rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.btn-cta-white-pill:hover {
  transform: translateY(-2px);
  background-color: #F8FAFC;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #060D17;
}

/* --------------------------------------------------------------------------
   4. SITE FOOTER (4-COLUMN DARK THEME)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #05080C;
  color: #9CA3AF;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.35fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-brand .footer-logo img {
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #9CA3AF;
  max-width: 280px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.90625rem;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: 0.90625rem;
  line-height: 1.5;
  color: #9CA3AF;
}

.footer-contact-item a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: #FFFFFF;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary-red);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social-row {
  margin-top: 1.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--color-primary-red);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: #6B7280;
}

.footer-copyright {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: #6B7280;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #9CA3AF;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .mepf-showcase-grid {
    gap: 2.5rem;
  }
  .mepf-cta-container {
    gap: 2rem;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .mepf-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mepf-right-col {
    order: 2;
  }

  .mepf-bim-visual {
    margin-top: 0;
  }

  .mepf-bim-visual img {
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }

  .mepf-photo-card {
    aspect-ratio: 0.68;
  }

  .mepf-cta-red-facet {
    width: 45%;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

@media (max-width: 768px) {
  .mepf-showcase-section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .mepf-headline {
    font-size: 2.45rem;
  }

  .mepf-three-photos-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .mepf-cta-banner {
    padding: 3.5rem 0;
  }

  .mepf-cta-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .mepf-cta-red-facet {
    width: 65%;
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .mepf-headline {
    font-size: 2.05rem;
  }

  .mepf-three-photos-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mepf-photo-card {
    aspect-ratio: 1.35;
  }

  .btn-cta-white-pill {
    width: 100%;
    justify-content: center;
  }
}
