/*
Theme Name: Ecoming Marketplace Intelligence
Theme URI: https://ecoming.eu
Author: Ecoming
Description: A minimal WordPress theme for Ecoming's marketplace operating intelligence website.
Version: 3.0.2
License: GNU General Public License v2 or later
Text Domain: ecoming
*/

:root {
  --ink: #0e1715;
  --forest: #193c35;
  --spruce: #31544d;
  --moss: #7e8f75;
  --sand: #efe9dd;
  --linen: #f7f2ea;
  --clay: #b8865b;
  --amber: #d7a561;
  --mist: #e3e8e3;
  --white: #ffffff;
  --slate: #59635f;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 20px 55px rgba(14, 23, 21, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.45;
}
a { color: inherit; }
.ec-wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.ec-section { padding: 92px 0; }
.ec-kicker { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; font-weight: 800; color: var(--clay); margin: 0 0 14px; }
.ec-h1, .ec-h2, .ec-h3 { margin: 0; letter-spacing: -.04em; line-height: .98; }
.ec-h1 { font-size: clamp(48px, 7vw, 92px); max-width: 790px; }
.ec-h2 { font-size: clamp(34px, 4.5vw, 62px); max-width: 820px; }
.ec-h3 { font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -.025em; }
.ec-lead { font-size: clamp(18px, 2vw, 23px); color: var(--slate); max-width: 720px; margin: 24px 0 0; }
.ec-copy { color: var(--slate); font-size: 16px; margin: 14px 0 0; }
.ec-small { color: var(--slate); font-size: 13px; }
.ec-btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ec-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 20px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.ec-btn:hover { transform: translateY(-2px); }
.ec-btn-primary { background: var(--forest); color: var(--white); }
.ec-btn-secondary { background: rgba(25,60,53,.08); color: var(--forest); }
.ec-nav { position: sticky; top: 0; z-index: 99; background: rgba(247,242,234,.86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(14,23,21,.08); }
.ec-nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ec-brand { font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: .115em; font-size: 18px; white-space: nowrap; line-height: 1; }
.ec-nav-links { display: flex; align-items: center; gap: 22px; }
.ec-nav-links a { color: var(--slate); text-decoration: none; font-weight: 700; font-size: 14px; }
.ec-nav-links a:hover { color: var(--forest); }
.ec-menu-toggle { display: none; border: 1px solid rgba(14,23,21,.1); background: transparent; border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.ec-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; }
.ec-video-banner { position: relative; background: #171917; }
.ec-showroom-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.ec-video-toggle { position: absolute; bottom: 18px; right: 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 10px 16px; background: rgba(14,23,21,.85); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ec-video-toggle[hidden] { display: none; }
.ec-hero-grid { display: grid; grid-template-columns: 1fr .88fr; gap: 54px; align-items: center; }
.ec-hero-card { background: rgba(255,255,255,.56); backdrop-filter: blur(8px); border: 1px solid rgba(25,60,53,.12); border-radius: var(--radius); padding: 22px; margin-top: 36px; max-width: 640px; }
.ec-hero-image { min-height: 620px; border-radius: 28px; background: url('assets/images/hero-operating-room.jpg') center/cover no-repeat; box-shadow: var(--shadow); }
.ec-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.ec-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.ec-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.ec-card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 26px rgba(14,23,21,.055); }
.ec-card-dark { background: var(--forest); color: var(--white); border-color: var(--forest); }
.ec-card-dark .ec-copy, .ec-card-dark .ec-small { color: rgba(255,255,255,.72); }
.ec-card-number { color: var(--clay); font-weight: 900; font-size: 13px; margin-bottom: 22px; }
.ec-list { margin: 22px 0 0; padding: 0; list-style: none; }
.ec-list li { position: relative; padding-left: 24px; margin: 12px 0; color: var(--slate); }
.ec-list li:before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.ec-dark { background: var(--ink); color: var(--white); }
.ec-dark .ec-lead, .ec-dark .ec-copy, .ec-dark .ec-list li { color: rgba(255,255,255,.74); }
.ec-dark .ec-list li:before { background: var(--amber); }
.ec-dashboard { border-radius: 26px; min-height: 470px; background: url('assets/images/intelligence-dashboard.jpg') center/cover no-repeat; box-shadow: var(--shadow); }
.ec-method-step { display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ec-method-step:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.ec-step-num { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: var(--white); font-weight: 900; }
.ec-white { background: var(--white); }
.ec-pricing-note { margin-top: 26px; padding: 18px 20px; background: var(--linen); border-radius: 16px; color: var(--slate); }
.ec-image-panel { min-height: 520px; border-radius: 26px; background: url('assets/images/europe-profit-growth.jpg') 62% 35%/cover no-repeat; box-shadow: var(--shadow); }
.ec-question-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.ec-question-card { background: var(--white); border: 1px solid rgba(14,23,21,.09); border-radius: var(--radius); padding: 24px; min-height: 210px; box-shadow: 0 8px 26px rgba(14,23,21,.055); }
.ec-question-card span { display: block; color: var(--clay); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 28px; }
.ec-question-card strong { display: block; font-size: 22px; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.ec-anchor-line { margin: 34px auto 0; max-width: 760px; text-align: center; font-size: 22px; line-height: 1.25; font-weight: 900; color: var(--forest); }
.ec-calculator { background: var(--linen); border-radius: 24px; padding: 28px; border: 1px solid rgba(14,23,21,.08); }
.ec-field { margin: 16px 0; }
.ec-field label { display: block; font-weight: 800; margin-bottom: 8px; }
.ec-field input { width: 100%; border-radius: 12px; border: 1px solid var(--mist); padding: 13px 14px; font: inherit; }
.ec-result { margin-top: 20px; padding: 22px; background: var(--forest); color: var(--white); border-radius: 18px; }
.ec-result strong { font-size: 32px; display: block; letter-spacing: -.04em; }
.ec-cta { background: var(--forest); color: var(--white); text-align: center; }
.ec-cta .ec-lead { color: rgba(255,255,255,.76); margin-left: auto; margin-right: auto; }
.ec-cta .ec-btn-primary { background: var(--white); color: var(--forest); }

/* 1.1 — contrast fixes on dark green */
.ec-nav-links a.ec-btn-primary, .ec-nav-links a.ec-btn-primary:hover { color: var(--white); }
.ec-cta .ec-btn-secondary { background: rgba(255,255,255,.12); color: var(--white); }
.ec-result .ec-small { color: rgba(255,255,255,.72); }
/* 1.1 — European reach facts, closing line, Insights, articles and pages */
.ec-facts { margin: 30px 0 22px; }
.ec-facts div { padding: 16px 0; border-top: 1px solid rgba(14,23,21,.09); }
.ec-facts div:last-child { border-bottom: 1px solid rgba(14,23,21,.09); }
.ec-facts dt { color: var(--clay); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.ec-facts dd { margin: 0; color: var(--slate); }
.ec-cta .ec-kicker { color: var(--amber); }
.ec-cta .ec-anchor-line { color: var(--white); margin-top: 48px; }
.ec-insight-card { display: flex; flex-direction: column; }
.ec-insight-card .ec-h3 a { text-decoration: none; }
.ec-insight-card .ec-h3 a:hover { color: var(--forest); }
.ec-insight-card .ec-copy { flex: 1; }
.ec-text-link { margin-top: 18px; font-weight: 800; color: var(--forest); text-decoration: none; }
.ec-text-link:hover { text-decoration: underline; }
.ec-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ec-filter a { border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; text-decoration: none; background: rgba(25,60,53,.08); color: var(--forest); }
.ec-filter a.is-active { background: var(--forest); color: var(--white); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.pagination .page-numbers { border-radius: 999px; padding: 9px 15px; font-weight: 800; text-decoration: none; background: rgba(25,60,53,.08); color: var(--forest); }
.pagination .page-numbers.current { background: var(--forest); color: var(--white); }
.ec-narrow { width: min(760px, calc(100% - 36px)); margin: 0 auto; }
.ec-narrow .ec-kicker a { text-decoration: none; }
.ec-narrow .ec-small { margin: 18px 0 0; }
.ec-article-image { margin-top: 36px; }
.ec-article-image img { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: var(--shadow); }
.ec-prose { margin-top: 36px; font-size: 18px; line-height: 1.65; }
.ec-prose > * { margin: 0 0 1.2em; }
.ec-prose h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 1.6em 0 .5em; }
.ec-prose h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 1.4em 0 .4em; }
.ec-prose a { color: var(--forest); }
.ec-prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--clay); font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--forest); }
.ec-prose blockquote p { margin: 0; }
.ec-prose img, .ec-prose video, .ec-prose iframe { max-width: 100%; }
.ec-prose img { height: auto; border-radius: 18px; }
.ec-prose figure { margin: 1.6em 0; }
.ec-prose figcaption { font-size: 13px; color: var(--slate); margin-top: 8px; }
/* 1.3 — footer: light, quiet, hairline divided */
.ec-footer { padding: 64px 0 32px; background: var(--linen); color: var(--slate); border-top: 1px solid rgba(14,23,21,.08); -webkit-font-smoothing: antialiased; }
.ec-footer a { color: inherit; text-decoration: none; transition: color .15s ease; }
.ec-footer a:hover { color: var(--ink); }
.ec-footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; }
.ec-footer .ec-footer-brand { font-size: 18px; font-weight: 500; letter-spacing: .115em; line-height: 1; color: var(--ink); }
.ec-footer-tagline { margin: 12px 0 0; font-size: 14px; }
.ec-footer .ec-footer-email { font-size: 14px; font-weight: 500; color: var(--forest); }
.ec-footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(14,23,21,.09); font-size: 12px; letter-spacing: .01em; color: rgba(89,99,95,.85); }
.ec-footer-links { display: flex; }
.ec-footer .ec-footer-email:hover { color: var(--ink); }

/* 1.7 — distribution partnership */
.ec-dist-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 8px; }
.ec-dist-label { margin: 0; color: var(--amber); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ec-dist-lists .ec-list { margin-top: 14px; }
.ec-dark .ec-dist-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.ec-dark .ec-dist-card .ec-card-number { color: var(--amber); }
.ec-dark .ec-dist-card .ec-copy { color: rgba(255,255,255,.7); }
.ec-dark .ec-anchor-line { color: rgba(255,255,255,.86); }
@media (max-width: 920px) { .ec-dist-lists { grid-template-columns: 1fr; gap: 20px; } }

@media (max-width: 920px) { .ec-footer-top { align-items: flex-start; } .ec-footer-bottom { flex-direction: column-reverse; } }
.ec-footer-links a + a { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(14,23,21,.16); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

@media (max-width: 920px) {
  .ec-hero { min-height: auto; padding: 42px 0 72px; }
  .ec-hero-grid, .ec-split { grid-template-columns: 1fr; }
  .ec-hero-image, .ec-dashboard, .ec-image-panel { min-height: 420px; }
  .ec-grid-3, .ec-grid-4, .ec-question-grid { grid-template-columns: 1fr; }
  .ec-nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 18px; background: var(--linen); border-bottom: 1px solid rgba(14,23,21,.08); }
  .ec-nav-links.is-open { display: grid; }
  .ec-menu-toggle { display: inline-flex; }
  .ec-section { padding: 72px 0; }
  .ec-question-card { min-height: auto; }
}

/* Space between the showroom banner and the next section. */
.ec-video-banner + .ec-hero { padding-top: clamp(64px, 6vw, 112px); padding-bottom: clamp(64px, 6vw, 112px); }
