/* ==========================================================================
   JP Web Solutions - E-commerce Websites landing page
   Builds on page-cro.css and page-wdd.css. Sections unique to this page
   are prefixed eco-.
   ========================================================================== */

/* ---------- Hero ---------- */
.eco-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 214px 0 110px;
  border-radius: 20px;
  background: var(--jp-secondary);
  color: var(--jp-text);
}
.eco-hero-title {
  margin: 0 0 24px;
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--jp-dark);
}
.eco-hero-title span {
  position: relative;
  display: inline;
  z-index: 0;
  background: linear-gradient(transparent 62%, var(--jp-primary) 62%, var(--jp-primary) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.eco-hero-text {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.6;
}
.eco-hero .cro-hero-points {
  margin-bottom: 30px;
}

/* Hero visual: a mini shop with live-looking notifications */
.eco-hero-visual {
  position: relative;
  max-width: 600px;
  margin: 0 0 0 auto;
  padding: 30px 40px 90px 20px;
}
.eco-shop {
  overflow: hidden;
  border-radius: 16px;
  background: var(--jp-white);
  box-shadow: 0 40px 80px rgba(5, 5, 5, 0.16);
}
.eco-shop-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--jp-border);
  background: var(--jp-accent);
}
.eco-shop-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jp-border);
}
.eco-shop-bar em {
  flex: 1;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--jp-white);
  color: var(--jp-text);
  font-size: 12px;
  font-style: normal;
}
.eco-shop-bar i {
  color: var(--jp-text);
  font-size: 14px;
}
.eco-shop-body {
  padding: 18px 20px 24px;
}
.eco-shop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--jp-text);
}
.eco-shop-nav strong {
  margin-right: auto;
  color: var(--jp-dark);
  font-family: var(--tj-ff-heading);
  font-size: 15px;
}
.eco-shop-nav b {
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--jp-dark);
  color: var(--jp-primary);
  font-weight: 600;
}
.eco-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.eco-product p {
  margin: 10px 0 2px;
  color: var(--jp-dark);
  font-size: 13px;
  font-weight: 500;
}
.eco-product strong {
  color: var(--jp-text);
  font-size: 13px;
}
.eco-product-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
}
.eco-product-img::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
}
.eco-img-1 {
  background: linear-gradient(160deg, #eceee4, #d8dccb);
}
.eco-img-1::after {
  width: 64%;
  height: 46%;
  border-radius: 8px 8px 4px 4px;
  background: repeating-linear-gradient(90deg, #c9cdb8 0 6px, #bfc3ad 6px 12px);
}
.eco-img-2 {
  background: linear-gradient(160deg, #f4ede4, #e6d9c8);
}
.eco-img-2::after {
  width: 38%;
  height: 58%;
  border-radius: 40% 40% 30% 30%;
  background: linear-gradient(#d8c3a7, #c7ab88);
}
.eco-img-3 {
  background: linear-gradient(160deg, #eef1d4, #dde4a8);
}
.eco-img-3::after {
  width: 40%;
  height: 40%;
  border-radius: 8px;
  background: linear-gradient(#ffffff, #f1f1ea);
  box-shadow: 0 -10px 0 -6px #a3a58f;
}
.eco-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: var(--jp-white);
  box-shadow: 0 18px 40px rgba(5, 5, 5, 0.14);
  animation: wdd-float 6s ease-in-out infinite;
}
.eco-float small {
  display: block;
  color: var(--jp-text);
  font-size: 12px;
  line-height: 1.3;
}
.eco-float strong {
  display: block;
  color: var(--jp-dark);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}
.eco-float em {
  display: block;
  color: #2f8a3d;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.eco-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--jp-primary);
  color: var(--jp-dark);
  font-size: 16px;
}
.eco-float-icon-dark {
  background: var(--jp-dark);
  color: var(--jp-primary);
}
.eco-float-order {
  top: 0;
  right: 0;
}
.eco-float-ship {
  left: -10px;
  bottom: 40px;
  animation-delay: -2s;
}
.eco-float-sales {
  right: 0;
  bottom: 6px;
  display: block;
  min-width: 170px;
  padding: 14px 18px;
  animation-delay: -4s;
}
.eco-float-sales strong {
  font-family: var(--tj-ff-heading);
  font-size: 24px;
}
.eco-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 36px;
  margin-top: 8px;
}
.eco-bars i {
  flex: 1;
  border-radius: 3px;
  background: var(--jp-secondary);
}
.eco-bars i:nth-child(1) { height: 35%; }
.eco-bars i:nth-child(2) { height: 55%; }
.eco-bars i:nth-child(3) { height: 42%; }
.eco-bars i:nth-child(4) { height: 70%; }
.eco-bars i:nth-child(5) { height: 60%; }
.eco-bars i:nth-child(6) { height: 88%; }
.eco-bars i:nth-child(7) { height: 100%; }
.eco-bars i:last-child {
  background: var(--jp-primary);
}

/* ---------- Platforms ---------- */
.eco-platforms {
  padding: 120px 0;
}
.eco-platform {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--jp-border);
  border-radius: 16px;
  background: var(--jp-white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.eco-platform:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(5, 5, 5, 0.07);
}
.eco-platform-ours {
  border-color: var(--cro-ink);
  background: var(--cro-ink);
  color: var(--cro-muted-dark);
}
.eco-platform-ours h3,
.eco-platform-ours .cro-check-list li,
.eco-platform-ours .eco-platform-best strong {
  color: var(--jp-white);
}
.eco-platform-ours .eco-platform-best {
  border-color: var(--cro-line-dark);
}
.eco-platform-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--jp-primary);
  color: var(--jp-dark);
  font-size: 12px;
  font-weight: 600;
}
.eco-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--jp-secondary);
  color: var(--jp-dark);
  font-size: 26px;
}
.eco-platform-ours .eco-platform-icon {
  background: var(--jp-primary);
}
.eco-platform-icon img {
  width: 40px;
  height: 40px;
}
.eco-platform-icon-text {
  background: #95bf47;
  color: var(--jp-white);
  font-family: var(--tj-ff-heading);
  font-size: 30px;
  font-weight: 700;
}
.eco-platform h3 {
  margin: 0 0 12px;
  font-size: 26px;
}
.eco-platform > p {
  margin: 0 0 18px;
  font-size: 15px;
}
.eco-platform-best {
  padding: 16px 0;
  border-top: 1px solid var(--jp-border);
  border-bottom: 1px solid var(--jp-border);
}
.eco-platform-best strong {
  display: block;
  margin-bottom: 2px;
  color: var(--jp-dark);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eco-platform .cro-check-list li {
  font-size: 15px;
}
.eco-platform-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 0;
  color: var(--jp-dark);
  font-weight: 500;
  text-align: center;
}
.eco-platform-note i {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--jp-primary);
  font-size: 15px;
}

/* ---------- Shop CMS ---------- */
.eco-cms {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-radius: 16px;
  background: var(--cro-ink);
  color: var(--cro-muted-dark);
}
.eco-cms::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 237, 49, 0.14), rgba(211, 237, 49, 0) 65%);
  transform: translateX(-50%);
  pointer-events: none;
}
.eco-cms .container {
  position: relative;
}
.eco-cms .cro-label {
  color: var(--jp-primary);
}
.eco-cms .cro-sec-title {
  color: var(--jp-white);
}
.eco-screen {
  overflow: hidden;
  border: 1px solid var(--cro-line-dark);
  border-radius: 14px;
  background: var(--jp-white);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.eco-screen .cro-browser-bar {
  border-color: var(--cro-line-dark);
  background: var(--cro-ink-3);
}
.eco-screen .cro-browser-bar span {
  background: rgba(255, 255, 255, 0.2);
}
.eco-screen .cro-browser-bar em {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cro-muted-dark);
}
.eco-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.eco-screen-caption {
  margin-bottom: 40px;
}
.eco-cms-feature {
  padding: 26px 24px;
  border: 1px solid var(--cro-line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.eco-cms-feature > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(211, 237, 49, 0.12);
  color: var(--jp-primary);
  font-size: 18px;
}
.eco-cms-feature h3 {
  margin: 0 0 8px;
  color: var(--jp-white);
  font-size: 19px;
}
.eco-cms-feature p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Built to sell ---------- */
.eco-sell {
  padding: 120px 0;
}
.eco-sell-intro {
  margin: 20px 0 32px;
}
.eco-journey {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eco-journey::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 26px;
  border-left: 2px dashed #c9cac4;
}
.eco-journey li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 14px 0;
}
.eco-journey-num {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 6px solid var(--jp-accent);
  border-radius: 50%;
  background: var(--jp-dark);
  color: var(--jp-primary);
  font-family: var(--tj-ff-heading);
  font-size: 15px;
  font-weight: 700;
  box-sizing: content-box;
  margin: -6px 0 0 -6px;
}
.eco-journey li:last-child .eco-journey-num {
  background: var(--jp-primary);
  color: var(--jp-dark);
}
.eco-journey h3 {
  margin: 6px 0 6px;
  font-size: 22px;
}
.eco-journey p {
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mobile */
@media (max-width: 767px) {
  .eco-hero {
    padding: 130px 0 60px;
    border-radius: 12px;
  }
  .eco-hero-title {
    font-size: 40px;
  }
  .eco-hero-text {
    font-size: 16px;
  }
  .eco-hero-visual {
    padding: 50px 0 70px;
  }
  .eco-shop-body {
    padding: 14px 14px 18px;
  }
  .eco-shop-nav span {
    display: none;
  }
  .eco-shop-grid {
    gap: 8px;
  }
  .eco-product p,
  .eco-product strong {
    font-size: 11px;
  }
  .eco-float {
    padding: 9px 12px 9px 9px;
    gap: 9px;
  }
  .eco-float-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .eco-float strong {
    font-size: 13px;
  }
  .eco-float-ship {
    left: 0;
    bottom: 10px;
  }
  .eco-float-sales {
    min-width: 130px;
    padding: 10px 14px;
  }
  .eco-float-sales strong {
    font-size: 18px;
  }
  .eco-bars {
    height: 24px;
  }
  .eco-platforms,
  .eco-cms,
  .eco-sell {
    padding: 70px 0;
  }
  .eco-cms {
    border-radius: 12px;
  }
  .eco-platform {
    padding: 28px 22px;
  }
  .eco-platform-note {
    align-items: flex-start;
    text-align: left;
  }
  /* Crop the sidebar on phones so the orders table stays readable */
  .eco-screen img {
    aspect-ratio: 1280 / 626;
    object-fit: cover;
    object-position: right top;
  }
  .eco-journey h3 {
    font-size: 19px;
  }
}

/* ios */
@media (max-width: 340px) {
  .eco-hero-title {
    font-size: 33px;
  }
}

/* windows */
@media (min-width: 451px) and (max-width: 767px) {
  .eco-hero-title {
    font-size: 48px;
  }
}

/* tab portrait view */
@media (min-width: 768px) and (max-width: 991px) {
  .eco-hero {
    padding: 160px 0 80px;
    border-radius: 12px;
  }
  .eco-hero-title {
    font-size: 56px;
  }
  .eco-hero-visual {
    margin: 0 auto;
  }
  .eco-platforms,
  .eco-cms,
  .eco-sell {
    padding: 90px 0;
  }
  .eco-cms {
    border-radius: 12px;
  }
}

/* tab landscape */
@media (min-width: 992px) and (max-width: 1199px) {
  .eco-hero {
    padding: 190px 0 90px;
  }
  .eco-hero-title {
    font-size: 52px;
  }
  .eco-platforms,
  .eco-cms,
  .eco-sell {
    padding: 100px 0;
  }
  .eco-hero-visual {
    padding-right: 20px;
  }
}

/* Laptop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .eco-hero-title {
    font-size: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-float {
    animation: none;
  }
}
