/* =========================================================
   Enterprise Applications page
   ========================================================= */

.page-enterprise-apps {
  background: #fff;
}

.page-enterprise-apps .service-detail-hero .hero-copy h1 .accent {
  color: var(--blue-400);
}

.page-enterprise-apps .btn-submit-upper {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  padding: 16px 24px;
}

.page-enterprise-apps .panel-note a {
  color: var(--blue-400);
  text-decoration: underline;
}

/* Hero metrics — 4 boxes */
.ea-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 24px;
}

.ea-metric-box {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(63, 182, 247, 0.35);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.ea-metric-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ea-metric-box span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

/* Services — 2x2 */
.ea-services-section {
  padding: 80px 0 88px;
  background: #fff;
}

.ea-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.ea-service-card {
  background: #fff;
  border: 1px solid rgba(15, 141, 235, 0.18);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(15, 32, 66, 0.05);
}

.ea-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-500);
  background: var(--blue-pill-bg);
  border: 1px solid #c8e5fa;
}

.ea-service-icon .lucide {
  width: 24px;
  height: 24px;
}

.ea-service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.ea-service-card p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-body);
  margin: 0;
}

/* Portfolio list */
.ea-portfolio-section {
  padding: 80px 0 88px;
  background: var(--bg-grey);
}

.ea-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
}

.ea-portfolio-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: linear-gradient(180deg, #0f2454 0%, #0b1b40 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px 32px 36px 28px;
  box-shadow: 0 20px 50px rgba(15, 32, 66, 0.12);
  position: relative;
}

.ea-portfolio-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--blue-400);
  letter-spacing: -0.03em;
}

.ea-portfolio-body {
  color: #fff;
  padding-right: 40px;
}

.ea-portfolio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-right: 36px;
}

.ea-portfolio-head h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  flex: 1 1 100%;
}

.ea-portfolio-head h3 .sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.ea-portfolio-location {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-400);
}

.ea-portfolio-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.ea-portfolio-arrow:hover {
  background: rgba(15, 141, 235, 0.2);
  border-color: rgba(63, 182, 247, 0.4);
  color: #fff;
}

.ea-portfolio-arrow .lucide {
  width: 20px;
  height: 20px;
}

.ea-portfolio-desc {
  font-size: 14px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
}

.ea-portfolio-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ea-portfolio-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.ea-portfolio-features .lucide {
  width: 16px;
  height: 16px;
  color: var(--blue-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Why — 3x2 white cards */
.ea-why-section {
  padding: 80px 0 88px;
  background: #fff;
}

.ea-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.ea-why-card {
  background: #fff;
  border: 1px solid rgba(15, 141, 235, 0.16);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.ea-why-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-500);
  background: var(--blue-pill-bg);
  border: 1px solid #c8e5fa;
}

.ea-why-icon .lucide {
  width: 22px;
  height: 22px;
}

.ea-why-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.ea-why-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

/* Mid CTA */
.ea-cta-section {
  padding: 0 24px 88px;
  background: #fff;
}

.ea-cta-box {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 40px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0f2454 0%, #0b1b40 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(15, 32, 66, 0.14);
}

.ea-cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.ea-cta-box p {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 28px;
}

.ea-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.ea-cta-actions .btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.ea-cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

@media (max-width: 1024px) {
  .ea-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ea-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ea-portfolio-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ea-services-grid {
    grid-template-columns: 1fr;
  }

  .ea-portfolio-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px;
  }

  .ea-portfolio-arrow {
    top: 24px;
    right: 24px;
  }

  .ea-portfolio-body {
    padding-right: 0;
  }

  .ea-why-grid {
    grid-template-columns: 1fr;
  }

  .ea-cta-box {
    padding: 40px 24px;
  }

  .ea-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ea-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
