/* ==========================================================================
   BHN Software — E-Commerce Development Design System (Logo Color Palette)
   Scoped exclusively under .bhn-ec-page
   ========================================================================== */

:root {
  --ec-navy: #061E47;
  --ec-navy-deep: #04122E;
  --ec-blue: #0066FF;
  --ec-cyan: #0088FF;
  --ec-orange: #FF8C00;
  --ec-orange-deep: #FF6B00;
  --ec-light: #f8fafc;
  --ec-white: #ffffff;
  --ec-font-display: 'Poppins', sans-serif, 'Poppins', sans-serif;
  --ec-font-body: 'Poppins', sans-serif;
}

.bhn-ec-page {
  font-family: var(--ec-font-body);
  color: var(--ec-navy);
  background: var(--ec-navy);
  overflow-x: clip;
  line-height: 1.65;
}

.bhn-ec-page h1,
.bhn-ec-page h2,
.bhn-ec-page h3,
.bhn-ec-page h4 {
  font-family: var(--ec-font-display);
  letter-spacing: -0.025em;
}

.bhn-ec-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.bhn-ec-grad {
  background: linear-gradient(120deg, #ffffff 0%, #38bdf8 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhn-ec-grad-dark {
  background: linear-gradient(120deg, #061E47 0%, #0066FF 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhn-ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.44);
  color: #ffb84d;
  margin-bottom: 18px;
}

.bhn-ec-eyebrow--light {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.22);
  color: #0052CC;
}

.bhn-ec-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.bhn-ec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bhn-ec-head h2 {
  font-size: clamp(1.88rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.bhn-ec-head p {
  font-size: 1.04rem;
  margin-bottom: 0;
}

.bhn-ec-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.36);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bhn-ec-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.52);
}

.bhn-ec-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.14);
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid rgba(0, 136, 255, 0.44);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bhn-ec-btn-secondary:hover {
  background: rgba(0, 102, 255, 0.28);
  border-color: #FF8C00;
}

.bhn-ec-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #061E47 !important;
  font-weight: 700;
  border: 1.5px solid rgba(6, 30, 71, 0.24);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bhn-ec-btn-outline:hover {
  background: #061E47;
  color: #ffffff !important;
  border-color: #061E47;
}

/* 1. HERO */
.ec-hero {
  position: relative;
  background: radial-gradient(circle at 82% 20%, rgba(0, 102, 255, 0.34) 0%, transparent 48%),
    radial-gradient(circle at 12% 84%, rgba(255, 140, 0, 0.16) 0%, transparent 44%),
    linear-gradient(125deg, #061E47 0%, #08285E 58%, #04122E 100%);
  color: #f8fafc;
  padding: 2rem 0 64px;
  overflow: hidden;
}

.ec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 90%);
  pointer-events: none;
}

.ec-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.ec-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.ec-breadcrumb a:hover {
  color: #FF8C00;
}

.ec-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.ec-hero h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 700;
  line-height: 1.09;
  color: #ffffff;
  margin-bottom: 20px;
}

.ec-hero-lead {
  font-size: 1.06rem;
  color: #cbd5e1;
  max-width: 585px;
  margin-bottom: 26px;
}

.ec-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.ec-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: #dbeafe;
  font-weight: 600;
}

.ec-hero-trust span i {
  color: #FF8C00;
  margin-right: 6px;
}

.ec-hero-stage {
  background: rgba(6, 30, 71, 0.92);
  border: 1px solid rgba(0, 136, 255, 0.34);
  border-radius: 22px;
  padding: 18px 20px 20px;
  box-shadow: 0 28px 60px rgba(2, 10, 30, 0.58);
}

.ec-stage-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 14px;
}

.ec-plat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ec-plat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 136, 255, 0.3);
  background: rgba(0, 102, 255, 0.14);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ec-plat-pill.is-active,
.ec-plat-pill:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  border-color: #FF8C00;
  color: #ffffff;
}

.ec-plat-logos {
  display: flex;
  gap: 6px;
}

.ec-plat-logos img {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 5px;
  padding: 2px;
  object-fit: contain;
}

.ec-store-frames {
  position: relative;
  margin-bottom: 14px;
}

.ec-desk-shot {
  width: 86%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid rgba(0, 136, 255, 0.3);
  display: block;
}

.ec-mob-shot {
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 100px;
  height: 185px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 3px solid #061E47;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 140, 0, 0.45);
}

.ec-speed-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.ec-stage-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ec-kpi-cell {
  background: rgba(4, 15, 38, 0.85);
  border: 1px solid rgba(0, 136, 255, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.ec-kpi-cell strong {
  display: block;
  font-family: var(--ec-font-display);
  font-size: 1.12rem;
  color: #38bdf8;
}

.ec-kpi-cell span {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.ec-stats-bar {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ec-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 136, 255, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
}

.ec-stat-num {
  font-family: var(--ec-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ec-stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* 2. SERVICES GRID */
.ec-services {
  background: #f8fafc;
  color: #061E47;
  padding: 88px 0;
}

.ec-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.ec-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #061E47;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ec-filter-btn.is-active,
.ec-filter-btn:hover {
  background: linear-gradient(135deg, #061E47 0%, #0066FF 100%);
  border-color: #0066FF;
  color: #ffffff;
}

.ec-srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ec-srv-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ec-srv-card:hover {
  transform: translateY(-4px);
  border-color: #FF8C00;
  box-shadow: 0 18px 36px rgba(6, 30, 71, 0.08);
}

.ec-srv-card.is-hidden {
  display: none;
}

.ec-srv-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.1);
  color: #0066FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.ec-srv-card h3 {
  font-size: 1.12rem;
  color: #061E47;
  margin-bottom: 8px;
}

.ec-srv-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0;
}

/* 3. CHECKOUT ARCHITECTURE */
.ec-arch-sec {
  background: linear-gradient(180deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  padding: 84px 0;
}

.ec-arch-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 136, 255, 0.3);
  border-radius: 24px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.ec-arch-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.ec-arch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ec-arch-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(0, 136, 255, 0.36);
  background: rgba(0, 102, 255, 0.14);
  color: #dbeafe;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.ec-arch-tab.is-active,
.ec-arch-tab:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  border-color: #FF8C00;
  color: #ffffff;
}

.ec-arch-card {
  background: rgba(4, 15, 38, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.34);
  border-radius: 18px;
  padding: 26px;
}

.ec-arch-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.ec-arch-card p {
  font-size: 0.94rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.ec-arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ec-arch-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffb84d;
  background: rgba(255, 140, 0, 0.14);
  border: 1px solid rgba(255, 140, 0, 0.3);
  padding: 5px 11px;
  border-radius: 8px;
}

/* 4. PORTFOLIO SLIDER */
.ec-portfolio {
  background: #ffffff;
  padding: 88px 0;
}

.ec-pf-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.ec-slider-btns {
  display: flex;
  gap: 10px;
}

.ec-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #061E47;
  cursor: pointer;
}

.ec-slider-btn:hover {
  background: #FF8C00;
  color: #ffffff;
  border-color: #FF8C00;
}

.ec-slider-viewport {
  overflow: hidden;
}

.ec-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ec-pf-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ec-pf-img {
  position: relative;
  height: 195px;
  overflow: hidden;
}

.ec-pf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ec-pf-img span {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #061E47;
  border: 1px solid rgba(255, 140, 0, 0.45);
  color: #ffb84d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.ec-pf-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ec-pf-body h3 {
  font-size: 1.12rem;
  color: #061E47;
  margin-bottom: 8px;
}

.ec-pf-body p {
  font-size: 0.87rem;
  color: #475569;
  margin-bottom: 14px;
  flex: 1;
}

.ec-pf-body strong {
  color: #FF6B00;
  font-size: 0.88rem;
}

.ec-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
}

.ec-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #FF8C00;
}

/* 5. TECH STACK (Navy) */
.ec-tech-sec {
  background: linear-gradient(180deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  padding: 84px 0;
}

.ec-tech-sec h2 {
  color: #ffffff;
}

/* 6. PRICING, FAQS & CTA */
.ec-pricing-faq {
  background: #f8fafc;
  padding: 88px 0;
}

.ec-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.ec-price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.ec-price-card.is-popular {
  background: linear-gradient(155deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  border-color: #FF8C00;
  box-shadow: 0 24px 55px rgba(6, 30, 71, 0.25);
}

.ec-pop-pill {
  position: absolute;
  top: -13px;
  right: 22px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ec-tier {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0066FF;
  margin-bottom: 10px;
}

.ec-price-card.is-popular .ec-tier {
  color: #38bdf8;
}

.ec-price-card h3 {
  font-size: 2.3rem;
  margin-bottom: 4px;
}

.ec-price-card.is-popular h3 {
  color: #ffffff;
}

.ec-tier-sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.ec-price-card.is-popular .ec-tier-sub {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
}

.ec-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.ec-price-card li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ec-price-card li i {
  color: #FF8C00;
  margin-top: 4px;
}

.ec-faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.ec-faq-list {
  display: grid;
  gap: 12px;
}

.ec-faq-item {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.ec-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--ec-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #061E47;
  cursor: pointer;
}

.ec-faq-q i {
  color: #FF8C00;
  transition: transform 0.2s ease;
}

.ec-faq-item.is-open .ec-faq-q i {
  transform: rotate(45deg);
}

.ec-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 22px;
}

.ec-faq-item.is-open .ec-faq-a {
  max-height: 220px;
  padding-bottom: 18px;
}

.ec-faq-a p {
  color: #475569;
  margin-bottom: 0;
  font-size: 0.93rem;
}

.ec-final-cta {
  background: #f8fafc;
  padding: 0 0 84px;
}

.ec-final-box {
  background: linear-gradient(135deg, #061E47 0%, #0052CC 100%);
  border: 1px solid rgba(255, 140, 0, 0.36);
  border-radius: 24px;
  padding: 44px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ec-final-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #ffffff;
  margin-bottom: 8px;
  max-width: 640px;
}

.ec-final-box p {
  color: #dbeafe;
  margin-bottom: 0;
}

.ec-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {

  .ec-hero-grid,
  .ec-arch-box,
  .ec-srv-grid,
  .ec-price-grid {
    grid-template-columns: 1fr;
  }

  .ec-pf-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 991px) {
  .ec-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ec-hero {
    padding: 36px 0 52px;
  }

  .ec-stats-bar {
    grid-template-columns: 1fr;
  }

  .ec-pf-card {
    flex: 0 0 100%;
  }

  .ec-desk-shot {
    width: 100%;
    height: 185px;
  }

  .ec-mob-shot {
    display: none;
  }

  .ec-arch-box,
  .ec-final-box {
    padding: 26px 20px;
  }
}