/* ============================================================================
   INVELO CINEMATIC ENGINE — section4.css              Sprint 04 · v0.4.0
   ----------------------------------------------------------------------------
   Section 4 "Services / Capabilities": a NORMAL document-flow section on the
   white light scene. No shell, no stage, no sticky, no pin, no scrub, no
   Section4Controller. This sheet owns:
     placement    the content grid (eyebrow + heading | support), the 3 × 2
                  capabilities matrix and its hairlines, the centred CTA
     type/colour  light-scene ink, the orange ramp, muted copy, "+" markers
     hover        subtle grey surface + a 2 px orange bottom indicator drawn
                  by ::after (scaleX 0 → 1) — no geometry change, no shadow
     reveal       a one-time, near-invisible entrance (opacity + 15 px) run by
                  section4.js with IntersectionObserver
     header       the dark-ink header theme while a light scene sits under the
                  fixed header (data-header-theme="dark"; switched by section4.js)
   It does NOT own editorial margin / padding / gap: the few defaults below
   are Elementor's own --padding-* / --margin-* / --gap variables at class
   specificity, so anything entered in the Advanced tab replaces them.
   ========================================================================== */

:root {
  --invelo-s4: var(--invelo-su, 1px);
  --invelo-s4-ink: #111111;
  --invelo-s4-muted: #6b6b6b;
  --invelo-s4-line: #e6e6e6;
  --invelo-s4-hover: #f5f5f5;
  --invelo-s4-orange: #F4762A;
  --invelo-s4-ease: 220ms ease;
}


/* == 1. Section + content grid ============================================ */
.e-con.invelo-section4,
.invelo-section4 {
  position: relative;
  --position: relative;
  background: #FFFFFF;
  color: var(--invelo-s4-ink);
  --padding-top: calc(120 * var(--invelo-s4));      /* Elementor Padding defaults — the editor's values replace them */
  --padding-bottom: calc(110 * var(--invelo-s4));
  --padding-left: 0px;
  --padding-right: 0px;
  --gap: 0px;
  z-index: 1;
  --z-index: 1;
}
.e-con.invelo-section4-content,
.invelo-section4-content {
  display: grid;
  --display: grid;
  grid-template-columns: minmax(0, 1fr) calc(300 * var(--invelo-s4));
  grid-template-rows: auto auto auto auto;
  align-items: start;
  --row-gap: calc(20 * var(--invelo-s4));
  --column-gap: calc(80 * var(--invelo-s4));
  --gap: var(--row-gap);
  row-gap: var(--row-gap);
  column-gap: var(--column-gap);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.invelo-section4-content > .invelo-section4-eyebrow  { grid-column: 1; grid-row: 1; }
.invelo-section4-content > .invelo-section4-heading  { grid-column: 1; grid-row: 2; }
.invelo-section4-content > .invelo-section4-support  { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.invelo-section4-content > .invelo-services          { grid-column: 1 / -1; grid-row: 3; --margin-top: calc(56 * var(--invelo-s4)); }
.invelo-section4-content > .invelo-section4-cta      { grid-column: 1 / -1; grid-row: 4; justify-self: center; --margin-top: calc(56 * var(--invelo-s4)); }
.invelo-section4-content > .elementor-widget { --container-widget-width: 100%; width: 100%; max-width: 100%; }
.invelo-section4-content > .invelo-section4-cta.elementor-widget { width: auto; }


/* == 2. Typography ========================================================= */
.invelo-section4 .invelo-section4-eyebrow .elementor-heading-title {
  font-family: var(--invelo-font-body);
  font-size: calc(14 * var(--invelo-s4));
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--invelo-s4-ink);
  margin: 0;
}
.invelo-section4 .invelo-section4-heading .elementor-heading-title {
  font-family: var(--invelo-font-display);
  font-weight: var(--invelo-weight-display, 800);
  font-size: calc(54 * var(--invelo-s4));
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--invelo-s4-ink);
  margin: 0;
}
.invelo-section4-brand {
  color: var(--invelo-s4-orange);
  background-image: var(--invelo-hero-gradient-headline, linear-gradient(90deg, #F04E23 0%, #F46F20 45%, #FAA61A 100%));
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .invelo-section4-brand { -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.invelo-section4 .invelo-section4-support,
.invelo-section4 .invelo-section4-support p {
  font-family: var(--invelo-font-body);
  font-size: calc(16 * var(--invelo-s4));
  line-height: 1.55;
  color: var(--invelo-s4-muted);
  margin: 0;
}


/* == 3. The capabilities matrix ============================================ */
.e-con.invelo-services,
.invelo-services {
  display: grid;
  --display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  --gap: 0px;
  gap: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}

/* a cell: flat, rectangular, hairlines shared with its neighbours */
.e-con.invelo-service-card,
.invelo-service-card {
  position: relative;
  --position: relative;
  --display: flex;
  --flex-direction: column;
  --align-items: flex-start;
  --gap: 0px;
  --padding-top: calc(40 * var(--invelo-s4));
  --padding-right: calc(36 * var(--invelo-s4));
  --padding-bottom: calc(44 * var(--invelo-s4));
  --padding-left: calc(36 * var(--invelo-s4));
  min-width: 0;
  background-color: #FFFFFF;
  color: var(--invelo-s4-ink);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: background-color var(--invelo-s4-ease);
  isolation: isolate;
}
/* hairlines: right edge except the last column; bottom edge except the last row (3 × 2) */
.invelo-services > .invelo-service-card:not(:nth-child(3n)) { border-right: 1px solid var(--invelo-s4-line); }
.invelo-services > .invelo-service-card:nth-child(-n+3)     { border-bottom: 1px solid var(--invelo-s4-line); }

/* the orange indicator: a pseudo-element, so the cell never changes size.
   (::after — Elementor defines .e-con:before, not :after; pinned anyway) */
.e-con.invelo-service-card::after,
.invelo-service-card::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;                                   /* sits on the shared hairline */
  top: auto;
  width: auto;
  height: 2px;
  background: var(--invelo-brand-gradient, linear-gradient(90deg, #F04E23, #FAA61A));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--invelo-s4-ease);
  opacity: 1;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
}
.invelo-service-card:hover,
.invelo-service-card:focus-within,
.invelo-service-card.is-hover { background-color: var(--invelo-s4-hover); }
.invelo-service-card:hover::after,
.invelo-service-card:focus-within::after,
.invelo-service-card.is-hover::after { transform: scaleX(1); }
/* when the container carries a link Elementor renders it as <a>: keep the ink */
a.invelo-service-card, a.invelo-service-card:hover, a.invelo-service-card:focus { color: var(--invelo-s4-ink); text-decoration: none; }
.invelo-service-card:focus-visible { outline: 2px solid var(--invelo-s4-orange); outline-offset: -2px; }
.invelo-service-card .elementor-widget { width: auto; max-width: 100%; }

/* cell typography */
.invelo-service-card .invelo-service-number .elementor-heading-title {
  font-family: var(--invelo-font-body);
  font-size: calc(13 * var(--invelo-s4));
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--invelo-s4-orange);
  margin: 0;
}
.invelo-service-card .invelo-service-title { --margin-top: calc(28 * var(--invelo-s4)); margin-top: calc(28 * var(--invelo-s4)); }
.invelo-service-card .invelo-service-title .elementor-heading-title {
  font-family: var(--invelo-font-display);
  font-weight: 700;
  font-size: calc(22 * var(--invelo-s4));
  line-height: 1.2;
  color: var(--invelo-s4-ink);
  margin: 0;
}
.invelo-service-card .invelo-service-subline { margin-top: calc(8 * var(--invelo-s4)); }
.invelo-service-card .invelo-service-subline .elementor-heading-title {
  font-family: var(--invelo-font-body);
  font-size: calc(15 * var(--invelo-s4));
  font-weight: 400;
  line-height: 1.45;
  color: var(--invelo-s4-muted);
  margin: 0;
}
/* the capability list: Elementor Icon List, two columns, orange "+" markers drawn here (no icon font) */
.invelo-service-card .invelo-service-list { margin-top: calc(28 * var(--invelo-s4)); width: 100%; }
.invelo-service-card .invelo-service-list .elementor-icon-list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(16 * var(--invelo-s4));
  row-gap: calc(10 * var(--invelo-s4));
  margin: 0;
  padding: 0;
  list-style: none;
}
.invelo-service-card .invelo-service-list .elementor-icon-list-item {
  display: flex;
  align-items: baseline;
  gap: calc(8 * var(--invelo-s4));
  margin: 0;
  padding: 0;
  font-family: var(--invelo-font-body);
  font-size: calc(13 * var(--invelo-s4));
  line-height: 1.35;
  color: var(--invelo-s4-muted);
}
.invelo-service-card .invelo-service-list .elementor-icon-list-item::before {
  content: "+";
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--invelo-s4-orange);
  line-height: 1;
}
.invelo-service-card .invelo-service-list .elementor-icon-list-icon { display: none; }   /* no icon selected; kept out of the flow if one is ever set */
.invelo-service-card .invelo-service-list .elementor-icon-list-text { color: inherit; }
.invelo-service-card .invelo-service-list a { color: inherit; text-decoration: none; }


/* == 4. CTA — the established primary pill with the white arrow circle ==== */
.invelo-section4 .invelo-section4-cta { line-height: 0; }
.invelo-section4 .invelo-section4-cta .elementor-button-wrapper { display: block; text-align: center; }
.invelo-section4 .invelo-section4-cta .elementor-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: calc(280 * var(--invelo-s4));
  height: calc(62 * var(--invelo-s4));
  min-height: 0;
  padding: 0 calc(76 * var(--invelo-s4)) 0 calc(24 * var(--invelo-s4));   /* component geometry: label inset + room for the circle */
  border-radius: var(--invelo-radius-pill, 999px);
  background-image: var(--invelo-brand-gradient);
  color: var(--invelo-cta-ink, #111111);
  font-family: var(--invelo-font-body);
  font-size: calc(16 * var(--invelo-s4));
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 calc(40 * var(--invelo-s4)) rgba(244, 118, 32, 0.35);
  transition: transform .2s ease;
}
.invelo-section4 .invelo-section4-cta .elementor-button:hover,
.invelo-section4 .invelo-section4-cta .elementor-button:focus { transform: translateY(calc(-2 * var(--invelo-s4))); color: var(--invelo-cta-ink, #111111); }
.invelo-section4 .invelo-section4-cta .elementor-button-content-wrapper { display: block; }
.invelo-section4 .invelo-section4-cta .elementor-button::after {
  content: "";
  position: absolute;
  right: calc(4 * var(--invelo-s4));
  top: calc(4 * var(--invelo-s4));
  width: calc(54 * var(--invelo-s4));
  height: calc(54 * var(--invelo-s4));
  border-radius: 50%;
  background: #FFFFFF url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'><path d='M0.5 11H28M18 1.6 28.6 11 18 20.4' fill='none' stroke='%23000' stroke-width='2'/></svg>") center / calc(24 * var(--invelo-s4)) calc(18 * var(--invelo-s4)) no-repeat;
  pointer-events: none;
}
.invelo-section4 :where(a, button):focus-visible { outline: 2px solid var(--invelo-s4-orange); outline-offset: 3px; }


/* == 5. Minimal reveal (once, opacity + 15 px, ≈ 0.55 s) ================== */
/* pre-state exists only when section4.js is running (html.invelo-s4-js) and never in the editor */
html.invelo-s4-js:not(.invelo-cine-editor) body:not(.elementor-editor-active) .invelo-section4:not(.is-in) > .invelo-section4-content > .invelo-section4-eyebrow,
html.invelo-s4-js:not(.invelo-cine-editor) body:not(.elementor-editor-active) .invelo-section4:not(.is-in) > .invelo-section4-content > .invelo-section4-heading,
html.invelo-s4-js:not(.invelo-cine-editor) body:not(.elementor-editor-active) .invelo-section4:not(.is-in) > .invelo-section4-content > .invelo-section4-support,
html.invelo-s4-js:not(.invelo-cine-editor) body:not(.elementor-editor-active) .invelo-section4:not(.is-in) > .invelo-section4-content > .invelo-services {
  opacity: 0;
  transform: translateY(15px);
}
html.invelo-s4-js:not(.invelo-cine-editor) body:not(.elementor-editor-active) .invelo-section4:not(.is-in) > .invelo-section4-content > .invelo-section4-cta { opacity: 0; }
.invelo-section4 > .invelo-section4-content > .invelo-section4-eyebrow,
.invelo-section4 > .invelo-section4-content > .invelo-section4-heading,
.invelo-section4 > .invelo-section4-content > .invelo-section4-support,
.invelo-section4 > .invelo-section4-content > .invelo-services,
.invelo-section4 > .invelo-section4-content > .invelo-section4-cta {
  transition: opacity .55s ease, transform .55s ease;
}
.invelo-section4 > .invelo-section4-content > .invelo-services      { transition-delay: .08s; }
.invelo-section4 > .invelo-section4-content > .invelo-section4-cta  { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .invelo-section4 > .invelo-section4-content > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  .invelo-service-card, .invelo-service-card::after { transition: none !important; }
}


/* == 6. Header on a light scene (dark ink) ================================== */
/* Section 4 (and Section 3's white body once it scrolls under the header) set
   data-header-theme="dark" through section4.js. Colour/theme state only — the
   header's geometry, position and markup are untouched. */
.invelo-header[data-header-theme="dark"] {
  --invelo-hdr-ink: #111111;
  --invelo-hdr-glass-a: rgba(17, 17, 17, 0.07);
  --invelo-hdr-glass-b: rgba(17, 17, 17, 0.02);
  --invelo-hdr-stroke-a: rgba(17, 17, 17, 0.22);
  --invelo-hdr-stroke-b: rgba(17, 17, 17, 0.06);
}
.invelo-header .invelo-header-logo img { transition: opacity .25s ease; }
.invelo-header[data-header-theme="dark"] .invelo-header-logo {
  background: url("../img/invelo-logo-dark.svg") left center / contain no-repeat;
}
.invelo-header[data-header-theme="dark"] .invelo-header-logo img { opacity: 0; }
.invelo-header .elementor-nav-menu--main .elementor-nav-menu a { transition: color .25s ease, opacity .18s ease; }
.invelo-header[data-header-theme="dark"] .elementor-menu-toggle i { color: #111111; }


/* == 7. Responsive ========================================================= */
@media (max-width: 1024px) {
  .e-con.invelo-section4-content, .invelo-section4-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
  }
  .invelo-section4-content > .invelo-section4-support { grid-column: 1; grid-row: 3; align-self: start; max-width: 60ch; }
  .invelo-section4-content > .invelo-services         { grid-row: 4; }
  .invelo-section4-content > .invelo-section4-cta     { grid-row: 5; }
  .e-con.invelo-services, .invelo-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invelo-services > .invelo-service-card { border: 0; }
  .invelo-services > .invelo-service-card:nth-child(odd)  { border-right: 1px solid var(--invelo-s4-line); }
  .invelo-services > .invelo-service-card:nth-child(-n+4) { border-bottom: 1px solid var(--invelo-s4-line); }
  .invelo-section4 .invelo-section4-heading .elementor-heading-title { font-size: clamp(32px, 5.2vw, 48px); }
}
@media (max-width: 767px) {
  .e-con.invelo-services, .invelo-services { grid-template-columns: minmax(0, 1fr); }
  .invelo-services > .invelo-service-card { border: 0; }
  .invelo-services > .invelo-service-card:not(:last-child) { border-bottom: 1px solid var(--invelo-s4-line); }
  .e-con.invelo-service-card, .invelo-service-card { --padding-left: 0px; --padding-right: 0px; --padding-top: 28px; --padding-bottom: 32px; }
  .invelo-service-card .invelo-service-list .elementor-icon-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invelo-section4 .invelo-section4-heading .elementor-heading-title { font-size: clamp(28px, 8vw, 40px); }
  .invelo-section4 .invelo-section4-support p { font-size: 15px; }
  .invelo-service-card .invelo-service-title .elementor-heading-title { font-size: 20px; }
  .invelo-service-card .invelo-service-list .elementor-icon-list-item { font-size: 13px; }
  .e-con.invelo-section4, .invelo-section4 { --padding-top: 72px; --padding-bottom: 72px; }
  /* touch: the pointer never hovers; focus-within still shows the state for keyboard/linked cards */
}
@media (hover: none) {
  .invelo-service-card:hover { background-color: #FFFFFF; }
  .invelo-service-card:hover::after { transform: scaleX(0); }
  .invelo-service-card:focus-within { background-color: var(--invelo-s4-hover); }
  .invelo-service-card:focus-within::after { transform: scaleX(1); }
}

/* == 8. Print ============================================================== */
@media print {
  .invelo-section4 > .invelo-section4-content > * { opacity: 1 !important; transform: none !important; }
  .invelo-service-card::after { display: none; }
}
