/* ─────────────────────────────────────────────────────────
   eCommerce Consultant — /services/ecommerce-consultant/

   Follows the supplied landing-page design rather than the
   shared service-page system, the same way service-melbourne.css
   does, so none of the other service templates are affected.
   Values are taken from the supplied comp: 1240px container,
   52px uppercase headings set flush left, square corners
   throughout, and a red marker behind the emphasised words.

   One red: the brand --red (#FF2C55), as backgrounds and as
   text. The comp set red text on light grounds a shade darker;
   the house red is used instead so this page matches the rest
   of the site. Red is never the only carrier of meaning here —
   every red number and label repeats in adjacent text — so it
   is decoration rather than content.
   ───────────────────────────────────────────────────────── */

.ecc {
  --ecc-ink:      #101010;
  --ecc-ink-2:    #202020;
  --ecc-ink-3:    #151515;
  --ecc-alt:      #FAFAFA;
  --ecc-rule:     #E0E0E0;
  --ecc-rule-dk:  #555555;
  --ecc-body:     #3A3A3A;
  --ecc-body-dk:  rgba(255,255,255,0.72);
  --ecc-red-text: var(--red);
}

/* ── Shell ────────────────────────────────────────────── */
.ecc-section { padding: 88px 48px; background: #fff; }
.ecc-section--alt  { background: var(--ecc-alt); }
.ecc-section--dark { background: var(--ecc-ink); color: #fff; }
.ecc-section--dark-2 { background: var(--ecc-ink-2); color: #fff; }
.ecc-inner { max-width: 1240px; margin: 0 auto; }
.ecc-measure { max-width: 920px; }

/* ── Type ─────────────────────────────────────────────── */
.ecc-eyebrow { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ecc-red-text); margin: 0 0 18px; }
.ecc-section--dark .ecc-eyebrow,
.ecc-section--dark-2 .ecc-eyebrow,
.ecc-hero .ecc-eyebrow { color: var(--red); }

.ecc-h1, .ecc-h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-transform: uppercase; margin: 0 0 20px; color: var(--ecc-ink); }
.ecc-h1 { color: #fff; }
.ecc-section--dark .ecc-h2, .ecc-section--dark-2 .ecc-h2 { color: #fff; }

/* The marker. box-decoration-break keeps the red block closed on
   every line when the phrase wraps, instead of leaving the last
   line open-ended. */
.ecc-mark { background: var(--red); color: #fff; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.ecc-lead { font-size: 17px; line-height: 1.6; color: var(--ecc-body); margin: 0 0 16px; max-width: 70ch; }
/* The comp sets the About paragraph larger, darker and across the full
   container rather than at the usual measure. */
.ecc-lead--about { font-size: 19px; line-height: 1.6; color: var(--ecc-ink); max-width: none; }
.ecc-label { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ecc-rule-dk); margin: 38px 0 14px; }
.ecc-lead:last-child { margin-bottom: 0; }
.ecc-section--dark .ecc-lead, .ecc-section--dark-2 .ecc-lead { color: var(--ecc-body-dk); }
.ecc-lead strong { color: var(--ecc-ink); font-weight: 700; }
.ecc-section--dark .ecc-lead strong { color: #fff; }
.ecc-lead a { color: var(--ecc-red-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Buttons ──────────────────────────────────────────── */
.ecc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ecc-btn svg { width: 14px; height: 14px; }
.ecc-btn--primary { background: var(--red); color: #fff; }
.ecc-btn--primary:hover { background: #fff; color: var(--ecc-ink); }
.ecc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.ecc-btn--ghost:hover { background: #fff; color: var(--ecc-ink); border-color: #fff; }
.ecc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ecc-link { font-size: 14px; font-weight: 700; color: var(--ecc-red-text); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap; }
.ecc-section--dark .ecc-link, .ecc-section--dark-2 .ecc-link { color: #fff; }
.ecc-link:hover { color: var(--red); }

/* Inbound anchors still have to clear the sticky site header. */
.ecc [id] { scroll-margin-top: 95px; }

/* ── Hero ─────────────────────────────────────────────── */
.ecc-hero { background: var(--ecc-ink-2); color: #fff; padding: 76px 48px 84px; }
.ecc-hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.ecc-hero-copy .ecc-lead { color: rgba(255,255,255,0.84); max-width: 54ch; }
.ecc-hero-copy .ecc-actions { margin-top: 30px; }
.ecc-hero-portrait { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ecc-hero-portrait img { width: 320px; height: 320px; border-radius: 50%; object-fit: cover; object-position: top center; border: 4px solid var(--red); background: var(--ecc-ink-3); display: block; }
.ecc-hero-portrait figcaption { background: var(--ecc-ink); padding: 16px 28px; margin-top: -18px; text-align: center; position: relative; z-index: 1; }
.ecc-hero-portrait figcaption strong { display: block; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.ecc-hero-portrait figcaption span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.66); margin-top: 3px; }

/* ── Brand strip ──────────────────────────────────────── */
/* Full-bleed: the rail runs the whole width of the window rather than
   stopping at the 1240px container, so the logos read as a continuous
   belt instead of a boxed-in panel. */
.ecc-brands { background: #fff; border-top: 1px solid var(--ecc-rule); border-bottom: 1px solid var(--ecc-rule); padding: 0 0 8px; overflow: hidden; }
/* The label rides inside the band with the logos it introduces, so the two
   move as one block. The rail itself stays full-bleed; only the label is
   held to the container. */
.ecc-brands-head { max-width: 1240px; margin: 0 auto; padding: 44px 24px 0; }
.ecc-brands-head .ecc-label { margin: 0; }
.ecc-brands-track { display: flex; align-items: center; gap: 56px; padding: 26px 0; width: max-content; animation: ecc-marquee 55s linear infinite; }
.ecc-brands-track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) opacity(0.6); transition: filter 0.25s; flex-shrink: 0; }
.ecc-brands-track img:hover { filter: none; }
@keyframes ecc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ecc-brands-track { animation: none; } }

/* ── Split: heading left, cards right ─────────────────── */
.ecc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.ecc-cards { display: grid; gap: 12px; }
.ecc-card { background: var(--ecc-alt); padding: 24px; }
.ecc-card h3 { font-size: 19px; font-weight: 700; color: var(--ecc-ink); margin: 0 0 8px; line-height: 1.3; }
.ecc-card p { font-size: 15px; line-height: 1.6; color: var(--ecc-body); margin: 0; }

/* ── Story ────────────────────────────────────────────── */
.ecc-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 48px; align-items: center; margin-bottom: 44px; }
.ecc-pullquote { background: var(--red); color: #fff; padding: 28px; margin: 0; }
.ecc-pullquote blockquote { margin: 0 0 14px; font-size: 19px; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: -0.01em; }
.ecc-pullquote blockquote p { margin: 0; color: inherit; }
/* Full white, uppercase and tracked — at 13px in 86% white it was the
   quietest thing on the loudest panel. */
.ecc-pullquote figcaption { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
/* A justified row: each figure carries flex-grow equal to its own aspect
   ratio (set inline from the attachment), so a portrait and a landscape
   shot come out the same height with widths in proportion. */
.ecc-photos { --ecc-frame: 10px; display: flex; gap: 28px; align-items: flex-start; }

/* The frame is a fixed width on every photo, so it has to be handed out
   equally before the rest of the row is shared by aspect ratio. Giving each
   figure a flex-basis of exactly the frame (2 x --ecc-frame) does that: each
   takes its border off the top, then the remaining space divides in
   proportion to --ecc-grow. Content width then tracks the aspect ratio and
   the two images come out the same height.

   With a basis of 0 the fixed 20px was being subtracted *after* the split,
   which cost the narrow photo proportionally more and left the pair uneven. */
.ecc-photo { margin: 0; min-width: 0; flex: var(--ecc-grow, 1) 1 calc(var(--ecc-frame) * 2); }
.ecc-photo img { width: 100%; height: auto; display: block; border: var(--ecc-frame) solid var(--ecc-alt); box-sizing: border-box; }
.ecc-photo figcaption { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 10px; line-height: 1.5; }

/* ── Stats ────────────────────────────────────────────── */
.ecc-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 40px 0 0; border-top: 1px solid var(--ecc-rule); }
.ecc-stat-num { display: block; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1; color: var(--ecc-red-text); margin-bottom: 10px; }
.ecc-stat-label { display: block; font-size: 14px; line-height: 1.5; color: var(--ecc-body); }

/* ── Numbered grids (capabilities, consultation) ──────── */
.ecc-numbered { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.ecc-numbered--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ecc-numbered li { background: var(--ecc-alt); border-top: 4px solid var(--ecc-ink); padding: 28px 24px 26px; }
.ecc-num { display: block; font-size: 26px; font-weight: 800; color: var(--ecc-red-text); line-height: 1; margin-bottom: 14px; }
.ecc-numbered h3 { font-size: 17px; font-weight: 700; color: var(--ecc-ink); margin: 0 0 8px; line-height: 1.3; }
.ecc-numbered p { font-size: 14.5px; line-height: 1.6; color: var(--ecc-body); margin: 0; }

/* ── Case cards ───────────────────────────────────────── */
.ecc-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.ecc-head-row .ecc-h2 { margin-bottom: 0; }
.ecc-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ecc-case { background: var(--ecc-ink); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.ecc-case:hover { background: #000; transform: translateY(-3px); }
.ecc-case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ecc-case-tags li { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; border: 1px solid var(--ecc-rule-dk); padding: 3px 8px; }
.ecc-case-brand { font-size: 15px; font-weight: 700; color: #fff; }
.ecc-case-metric { font-size: 26px; font-weight: 800; color: var(--red); line-height: 1.15; margin-top: auto; }
.ecc-case-metric span { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.68); margin-top: 4px; }
.ecc-case-more { font-size: 13px; font-weight: 700; color: #fff; }

/* ── Testimonials ─────────────────────────────────────── */
.ecc-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(222px, 1fr)); gap: 16px; }
.ecc-quote { background: var(--ecc-ink-3); color: #fff; padding: 28px; margin: 0; display: flex; flex-direction: column; }
.ecc-quote-mark { font-size: 40px; font-weight: 800; line-height: 0.7; color: var(--red); margin-bottom: 14px; }
.ecc-quote blockquote { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.86); }
.ecc-quote blockquote p { margin: 0; color: inherit; }
.ecc-quote figcaption { margin-top: auto; }
.ecc-quote figcaption strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.ecc-quote figcaption span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* ── FAQ ──────────────────────────────────────────────── */
.ecc-faq { max-width: 920px; border-top: 1px solid var(--ecc-rule); }
.ecc-faq-item { border-bottom: 1px solid var(--ecc-rule); }
.ecc-faq-q { font-size: 19px; font-weight: 700; color: var(--ecc-ink); padding: 22px 40px 22px 0; cursor: pointer; list-style: none; position: relative; line-height: 1.35; }
.ecc-faq-q::-webkit-details-marker { display: none; }
.ecc-faq-q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ecc-red-text); border-bottom: 2px solid var(--ecc-red-text); transform: translateY(-70%) rotate(45deg); transition: transform 0.22s; }
.ecc-faq-item[open] .ecc-faq-q::after { transform: translateY(-30%) rotate(225deg); }
.ecc-faq-q:hover { color: var(--ecc-red-text); }
.ecc-faq-a { font-size: 15.5px; line-height: 1.7; color: var(--ecc-body); padding: 0 40px 24px 0; }
.ecc-faq-a p { margin: 0 0 12px; color: inherit; }
.ecc-faq-a p:last-child { margin: 0; }
.ecc-faq-a a { color: var(--ecc-red-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Closing CTA ──────────────────────────────────────── */
.ecc-cta { background: var(--ecc-ink); color: #fff; padding: 96px 24px; text-align: center; position: relative; overflow: hidden; }
/* Colour lives on the mark itself, not the section: the section's colour is
   inherited by the paragraph below, which must stay grey. */
.ecc-cta-mark { position: absolute; top: -28px; left: -24px; width: 110px; height: 110px; color: var(--red); pointer-events: none; }
.ecc-cta-inner { max-width: 1240px; margin-inline: auto; position: relative; z-index: 1; }
/* Larger than the body headings — this is the last thing on the page. */
.ecc-cta .ecc-h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.75rem); margin: 0 auto 22px; max-width: 900px; }
.ecc-cta .ecc-lead { color: #E6E6E6; font-size: 19px; margin-left: auto; margin-right: auto; max-width: 640px; }
.ecc-cta .ecc-lead strong { color: #fff; }
.ecc-cta .ecc-actions { justify-content: center; margin-top: 32px; }
.ecc-cta .ecc-btn { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.ecc-cta .ecc-btn--primary { padding: 16px 28px; border-width: 0; }
.ecc-cta .ecc-btn--ghost { padding: 14px 26px; border: 2px solid #fff; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ecc-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ecc-hero-portrait { align-items: flex-start; }
  .ecc-split, .ecc-story-grid { grid-template-columns: 1fr; gap: 32px; }
  .ecc-numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ecc-section, .ecc-hero, .ecc-cta { padding-left: 24px; padding-right: 24px; }
  .ecc-section { padding-top: 64px; padding-bottom: 64px; }
  .ecc-photos { flex-direction: column; gap: 20px; }
  .ecc-photo { flex: none !important; width: 100%; }
  .ecc-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 620px) {
  .ecc-numbered, .ecc-numbered--three, .ecc-stats { grid-template-columns: 1fr; }
  .ecc-hero-portrait img { width: 240px; height: 240px; }
  .ecc-actions .ecc-btn { width: 100%; justify-content: center; }
}

/* theme style.css carries a bare `p { color: var(--ld-text-muted) }`, which
   outranks any colour inherited from an ancestor. Every paragraph inside a
   coloured panel therefore has to state its own colour or it renders #666 —
   invisible on the red pull-quote and on the near-black review cards. */
.ecc-pullquote p, .ecc-quote p, .ecc-card p, .ecc-numbered p, .ecc-faq-a p, .ecc p.ecc-lead { color: inherit; }
.ecc .ecc-cta p.ecc-lead { color: #E6E6E6; }
.ecc-card p, .ecc-numbered p { color: var(--ecc-body); }
.ecc-faq-a p { color: var(--ecc-body); }

/* The two consultation testimonials sit in a white section, not the dark
   reviews band they were originally drawn in. */
.ecc-quotes--light { margin-top: 0; }
/* Runs on from the reviews block above it, so it carries no top padding of
   its own. */
.ecc-section--tight { padding-top: 0; }
.ecc-quotes--light .ecc-quote { background: var(--ecc-alt); color: var(--ecc-ink); border-top: 4px solid var(--red); }
.ecc-quotes--light .ecc-quote blockquote,
.ecc-quotes--light .ecc-quote blockquote p { color: var(--ecc-body); }
.ecc-quotes--light .ecc-quote figcaption strong { color: var(--ecc-ink); }
.ecc-quotes--light .ecc-quote figcaption span { color: var(--ecc-body); }

/* ── Early-career credential ─────────────────────────────
   A record, not prose: term on the left, detail on the right,
   hairline-separated so it reads as a short CV block inside the
   story rather than another paragraph. */
.ecc-cred { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,0.16); max-width: 54ch; }
.ecc-cred-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 9px 0; }
.ecc-cred-row + .ecc-cred-row { border-top: 1px solid rgba(255,255,255,0.08); }
.ecc-cred dt { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); line-height: 1.5; }
.ecc-cred dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.78); }
.ecc-cred dd strong { color: #fff; font-weight: 800; }
@media (max-width: 620px) {
  .ecc-cred-row { grid-template-columns: 1fr; gap: 3px; }
}
