/* ==========================================================================
   Pathway IT — ecommerce-solutions.css  (E-commerce Solutions page)
   Banner hero with a CTA hotspot, what we build, a trust panel with stats
   and logos, a performance split and a closing CTA band.
   ========================================================================== */

.ec-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.ec-section, .ec-trust-wrap, .ec-cta-wrap { background: #F5F6FB; }

/* Icon slots are filled with an SVG by ecommerce-solutions.js. */
span[data-icon]:not([class]) { display: inline-flex; flex: none; vertical-align: middle; }
span[data-icon]:not([class]) svg { width: 1em; height: 1em; }

/* -------------------------------------------------------------------------- */
/* Hero banner                                                                */
/* -------------------------------------------------------------------------- */
.ec-hero { background: #04070F; padding-top: var(--header-h); }
.ec-hero-media { position: relative; max-width: 1600px; margin-inline: auto; }
.ec-banner { display: block; width: 100%; height: auto; }

/* Transparent overlays sitting exactly on the "Start your project" button
   baked into each banner. Percentages are measured from the artwork. */
.ec-hotspot {
  position: absolute; border: 0; background: transparent; padding: 0;
  cursor: pointer; border-radius: var(--r-pill);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.ec-hotspot:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(79, 70, 229, .45); }
.ec-hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ec-hotspot--desktop { left: 5.14%; top: 56.37%; width: 15.73%; height: 7.82%; }
.ec-hotspot--mobile  { left: 4.69%; top: 34.79%; width: 40.14%; height: 4.84%; display: none; }

@media (max-width: 760px) {
  .ec-hotspot--desktop { display: none; }
  .ec-hotspot--mobile  { display: block; }
}

/* -------------------------------------------------------------------------- */
/* Section heading                                                            */
/* -------------------------------------------------------------------------- */
.ec-head { text-align: center; max-width: 820px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); }
.ec-head h2 {
  margin-top: 1.1rem; max-width: 18ch; margin-inline: auto;
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
  line-height: 1.3; letter-spacing: -.02em; color: var(--slate-900);
}
/* Stops the line breaking after the hyphen in "e-commerce". */
.ec-nb { white-space: nowrap; }
@media (max-width: 620px) { .ec-head h2 { max-width: none; } }

/* -------------------------------------------------------------------------- */
/* What we build (3 x 2)                                                      */
/* -------------------------------------------------------------------------- */
.ec-build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.ec-build {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper); border: 1px solid #E7EAF4; border-radius: 16px;
  padding: 1.7rem 1.6rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ec-build:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.ec-ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--indigo-50); color: var(--indigo); margin-bottom: 1.2rem;
}
.ec-ico svg { width: 21px; height: 21px; }
.ec-build h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .55rem; color: var(--slate-900); }
.ec-build p { font-size: .87rem; line-height: 1.65; color: var(--slate-500); }
.ec-more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem;
  font-size: .84rem; font-weight: 600; color: var(--indigo);
}
.ec-more span { font-size: .95rem; transition: transform var(--t) var(--ease); }
.ec-more:hover span { transform: translateX(3px); }

@media (max-width: 980px) { .ec-build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ec-build-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Trust panel                                                                */
/* -------------------------------------------------------------------------- */
.ec-trust-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.ec-trust {
  background: #EEF0FA; border: 1px solid #E1E5F5; border-radius: 20px;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem);
}
.ec-trust-top {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: clamp(1.6rem, 3.5vw, 3rem); align-items: center;
}
.ec-trust-copy h2 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.35; letter-spacing: -.01em; color: var(--slate-900); }
.ec-trust-copy p { margin-top: .7rem; font-size: .84rem; line-height: 1.65; color: var(--slate-500); }

.ec-trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.ec-trust-stats > div { min-width: 0; }
.ec-trust-ico { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto .5rem; color: var(--indigo); }
.ec-trust-ico svg { width: 18px; height: 18px; }
.ec-trust-stats dt { font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 700; letter-spacing: -.02em; color: var(--indigo); }
.ec-trust-stats dd { margin-top: .2rem; font-size: .78rem; color: var(--slate-500); }

.ec-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.6rem, 3vw, 2.2rem); padding-top: clamp(1.4rem, 2.6vw, 1.9rem);
  border-top: 1px solid #DDE2F2;
}
.ec-logos li {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: #97A0BE;
}
.ec-logos svg { width: 17px; height: 17px; }
.ec-logos em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.05rem; text-transform: none; letter-spacing: 0; }

@media (max-width: 900px) {
  .ec-trust-top { grid-template-columns: 1fr; }
  .ec-trust-copy h2 br { display: none; }
}
@media (max-width: 560px) {
  .ec-trust-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .ec-logos { justify-content: center; }
}

/* -------------------------------------------------------------------------- */
/* Performance split                                                          */
/* -------------------------------------------------------------------------- */
.ec-section--perf { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.ec-perf {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 4vw, 3.4rem); align-items: center;
}
/* No radius or shadow here: the artwork already carries its own rounded card
   and drop shadow, and its backdrop matches this section, so the badges can
   overhang the card edge without a stray rectangle showing. */
.ec-perf-shot img { display: block; width: 100%; height: auto; }
.ec-perf-copy h2 { margin-top: 1.1rem; font-size: clamp(1.5rem, 2.9vw, 2.05rem); line-height: 1.25; letter-spacing: -.02em; color: var(--slate-900); }
.ec-perf-copy > p { margin-top: 1rem; font-size: .92rem; line-height: 1.7; color: var(--slate-500); }
.ec-perf-list { display: grid; gap: .8rem; margin: 1.6rem 0 1.6rem; }
.ec-perf-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .89rem; color: var(--slate-600); }
.ec-perf-list svg { width: 17px; height: 17px; color: var(--indigo); flex: none; margin-top: .16rem; }
.ec-perf-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--indigo); }
.ec-perf-link span { transition: transform var(--t) var(--ease); }
.ec-perf-link:hover span { transform: translateX(3px); }

@media (max-width: 940px) {
  .ec-perf { grid-template-columns: 1fr; }
  .ec-perf-copy h2 br { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Closing CTA band                                                           */
/* -------------------------------------------------------------------------- */
.ec-cta-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.ec-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1.6rem, 4vw, 3rem);
  background: #0A0F26; border-radius: 18px;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
  background-image: radial-gradient(110% 150% at 15% 0%, rgba(79, 70, 229, .16) 0%, transparent 60%);
}
.ec-cta-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; color: #fff; letter-spacing: -.01em; }
.ec-cta-copy p { margin-top: .6rem; font-size: .86rem; line-height: 1.6; color: #98A2C0; }

.ec-cta-action { flex: none; }
.ec-cta-form { display: flex; gap: .7rem; }
.ec-cta-form input {
  width: clamp(200px, 22vw, 260px);
  background: #131A36; border: 1px solid #262F55; color: #fff;
  border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
}
.ec-cta-form input::placeholder { color: #6E779B; }
.ec-cta-form input:focus-visible { outline: 2px solid var(--indigo-400); outline-offset: 1px; }
.ec-cta-btn {
  background: var(--indigo); color: #fff; border-radius: 10px;
  padding: .8rem 1.3rem; font-size: .88rem; white-space: nowrap; gap: .45rem;
}
.ec-cta-btn:hover { background: #4338CA; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); }

.ec-cta-points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.ec-cta-points li { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: #98A2C0; }
.ec-cta-points svg { width: 13px; height: 13px; color: var(--indigo-400); flex: none; }

@media (max-width: 940px) {
  .ec-cta { flex-direction: column; align-items: flex-start; }
  .ec-cta-copy h2 br { display: none; }
  .ec-cta-action { width: 100%; }
  .ec-cta-form input { width: 100%; flex: 1; }
}
@media (max-width: 520px) {
  .ec-cta-form { flex-direction: column; }
  .ec-cta-btn { justify-content: center; }
}
