/* ─────────────────────────────────────────────────────────
   Custom eCommerce Solutions — /custom-ecommerce-solutions/
   Mirror of live structure. Brand red accent.
   ───────────────────────────────────────────────────────── */

.ces-section-inner { max-width: 1200px; margin: 0 auto; }

/* ── Atoms ────────────────────────────────────────── */
.ces-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.ces-h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 14px; color: var(--black); text-transform: uppercase; }
.ces-h2 em { font-style: normal; color: var(--red); font-weight: 900; }
.ces-section { padding: 64px 48px; background: var(--white); }
.ces-section--cases { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ces-section-head { max-width: 880px; margin: 0 auto 40px; text-align: center; }
.ces-section-sub { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 14px auto 0; max-width: 760px; }

/* ── HERO ─────────────────────────────────────────── */
.ces-hero { position: relative; padding: 88px 48px 80px; background: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--red) 22%, transparent) 0%, transparent 45%), radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--red) 8%, transparent) 0%, transparent 50%), var(--black); color: var(--white); overflow: hidden; }
.ces-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%); }
.ces-hero-inner { position: relative; z-index: 1; }
.ces-hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--red) 38%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--red) 12%, transparent); }
.ces-hero-h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 14px; color: var(--white); text-transform: uppercase; }
.ces-hero-h1 em { font-style: normal; color: var(--red); font-weight: 900; }
.ces-hero-tag { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.85); margin: 0 0 18px; }
.ces-hero-lead { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 880px; margin: 0 0 26px; }
.ces-platform-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ces-platform-tags li { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); padding: 8px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; }

/* ── WHAT WE BUILD (6 capability cards) ──────────── */
.ces-cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ces-cap-card { padding: 32px 28px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.ces-cap-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 35%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,0.06); background: var(--white); }
.ces-cap-num { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.16em; color: var(--red); margin: 0 0 14px; }
.ces-cap-title { font-size: 20px; font-weight: 900; color: var(--black); margin: 0 0 12px; letter-spacing: -0.01em; line-height: 1.25; }
.ces-cap-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .ces-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ces-cap-grid { grid-template-columns: 1fr; } }

/* ── CASE STUDIES (2×2 cards) ────────────────────── */
.ces-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ces-case-card { padding: 32px 32px 28px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 14px; display: flex; flex-direction: column; }
.ces-case-head { margin: 0 0 18px; }
.ces-case-name { font-size: 22px; font-weight: 900; color: var(--black); margin: 0 0 4px; letter-spacing: -0.01em; }
.ces-case-tagline { font-size: 14px; color: var(--muted); margin: 0; }
.ces-case-tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.ces-case-tags li { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); padding: 5px 10px; background: color-mix(in srgb, var(--red) 10%, transparent); border: 1px solid color-mix(in srgb, var(--red) 22%, transparent); border-radius: 999px; }
.ces-case-bullets { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.ces-case-bullets li { position: relative; padding-left: 22px; margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--black); }
.ces-case-bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.ces-case-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: var(--red); border-radius: 8px; text-decoration: none; box-shadow: 0 10px 24px color-mix(in srgb, var(--red) 24%, transparent); transition: background 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s; align-self: flex-start; }
.ces-case-link svg { width: 14px; height: 14px; transition: transform 0.22s; }
.ces-case-link:hover { background: var(--black); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.ces-case-link:hover svg { transform: translateX(4px); }
@media (max-width: 820px) { .ces-case-grid { grid-template-columns: 1fr; } }

/* ── FINAL CTA ────────────────────────────────────── */
.ces-cta { padding: 80px 48px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--red) 22%, transparent) 0%, transparent 55%), var(--black); color: var(--white); position: relative; overflow: hidden; }
.ces-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); }
.ces-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.ces-cta-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; color: var(--white); text-transform: uppercase; }
.ces-cta-title em { font-style: normal; color: var(--red); font-weight: 900; }
.ces-cta-sub { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.78); margin: 0 0 32px; }
.ces-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 32px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: var(--red); border-radius: 8px; text-decoration: none; box-shadow: 0 12px 28px color-mix(in srgb, var(--red) 28%, transparent); transition: background 0.22s, transform 0.22s; }
.ces-cta-btn:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.ces-cta-btn svg { width: 14px; height: 14px; transition: transform 0.22s; }
.ces-cta-btn:hover svg { transform: translateX(4px); }

/* ── SOLUTIONS (Challenge → built/approach/result) ── */
.ces-solutions { display: grid; gap: 24px; }
.ces-solution { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 14px; padding: 32px 32px 28px; box-shadow: 0 12px 28px rgba(0,0,0,0.04); }
.ces-solution-head { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.ces-solution-title { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.ces-solution-name { font-size: 22px; font-weight: 900; color: var(--black); margin: 0; letter-spacing: -0.01em; }
.ces-solution-name strong { color: var(--red); font-weight: 800; font-size: 14px; letter-spacing: 0.04em; }
.ces-solution-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ces-solution-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.ces-solution-list { list-style: none; padding: 0; margin: 0; }
.ces-solution-list li { position: relative; padding-left: 22px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--black); }
.ces-solution-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: color-mix(in srgb, var(--red) 50%, transparent); border-radius: 50%; }
.ces-solution-results { list-style: none; padding: 0; margin: 0; }
.ces-solution-results li { position: relative; padding-left: 26px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--black); font-weight: 600; }
.ces-solution-results li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900; font-size: 16px; }
.ces-solution-col--results { background: color-mix(in srgb, var(--red) 6%, transparent); padding: 18px; border-radius: 10px; }
.ces-solution-col--results h4 { margin-top: 0; }
@media (max-width: 820px) { .ces-solution-cols { grid-template-columns: 1fr; } }

/* ── TECHNICAL HIGHLIGHTS (4 cards) ──────────────── */
.ces-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ces-tech-card { padding: 28px 30px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; }
.ces-tech-title { font-size: 18px; font-weight: 900; color: var(--black); margin: 0 0 16px; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.ces-tech-list { list-style: none; padding: 0; margin: 0; }
.ces-tech-list li { position: relative; padding-left: 22px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ces-tech-list li::before { content: "›"; position: absolute; left: 0; top: -2px; color: var(--red); font-weight: 900; font-size: 18px; }
@media (max-width: 700px) { .ces-tech-grid { grid-template-columns: 1fr; } }

/* ── RESULTS & IMPACT (groups of stats) ───────────── */
.ces-section--impact { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.ces-section--impact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--red) 22%, transparent) 0%, transparent 45%); pointer-events: none; }
.ces-section--impact .ces-section-inner { position: relative; z-index: 1; }
.ces-section--impact .ces-eyebrow { color: var(--red); }
.ces-section--impact .ces-h2 { color: var(--white); }
.ces-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ces-impact-group { padding: 28px 30px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; }
.ces-impact-title { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.ces-impact-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ces-impact-stats li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ces-impact-stats li:last-child { border-bottom: 0; }
.ces-impact-value { font-size: 26px; font-weight: 900; color: var(--white); letter-spacing: -0.02em; line-height: 1; }
.ces-impact-label { font-size: 14px; color: rgba(255,255,255,0.7); }
@media (max-width: 900px) { .ces-impact-grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  .ces-hero, .ces-cta { padding: 56px 24px; }
  .ces-section { padding: 48px 24px; }
  .ces-solution { padding: 24px 22px; }
}
