/*
 * contact-desks.css — «Our desks» of /contact/ (MKT-WP-REPLICA-CONTACT-DESKS), canvas Contact.dc.html
 * l.391-427 (markup) and l.160-199, l.208-211 (CSS). Loaded only on pages whose
 * `_cexum_sections_key` is `contact` (inc/page-sections.php).
 *
 * WHAT LIVES HERE: what Elementor has no control for. The big «01» behind the heading stays behind
 * its column's text, the heading breaks in balanced lines, the e-mail row sits at the foot of its
 * card, the address can break anywhere and is selected whole, the OTC wave (drawn by
 * contact-desks.js) and its stroke, and the blinking of the «Live» dot and of the clock's colon.
 * Text, type, colours, the cards, their hover lift and shadow, the tiles and the grid are settings
 * in wp-admin; the cards come in with the motion module's `cx-reveal-stagger`.
 *
 * MOTION: the wave draws itself once (2.4 s) when it comes into view, and the dot and the colon
 * blink for 4 s when the clock card comes into view, only while contact-desks.js runs
 * (`cx-ct-wave--in`, `cx-ct-clk--on`), under html.cx-motion and prefers-reduced-motion:
 * no-preference. Otherwise the wave is drawn and nothing blinks.
 *
 * COLOURS: tokens only, never a hex.
 */

/* ---- «01» behind the heading [canvas .num-bg l.164] ---- */
.cx-ct-dh {
  position: relative;
  isolation: isolate;
}
.cx-ct-dh > .cx-ct-num {
  pointer-events: none;
}
:where(.cx-ct-dh) .elementor-heading-title {
  text-wrap: balance;
}

/* ---- the e-mail row at the foot of its card [canvas .bl l.176-177] ---- */
.cx-ct-bc > .cx-ct-bl {
  margin-block-start: auto;
}
:where(.cx-ct-mail) .elementor-heading-title {
  overflow-wrap: anywhere;
  user-select: all;
}

/* ---- without JS (MKT-WP-REPLICA-G2-F9): nothing that needs the script is shown ----
   «Copy» is an inert anchor until contact-desks.js wires it (`cx-ct-copy--ready`), and the clock's
   «Live» badge (`cx-ct-live`, a CSS class on its container in the page) and time would read
   «Live … ET» with no hour until it runs (`cx-ct-clk--live`). The address, the city and the desk hours
   stay: they are text. */
.cx-ct-copy:not(.cx-ct-copy--ready) {
  display: none;
}
:where(.cx-ct-clk:not(.cx-ct-clk--live)) .elementor-element:is(.cx-ct-live, .cx-ct-time) {
  display: none;
}

/* ---- the OTC wave [canvas .wave l.187-189] ---- */
.cx-ct-wave svg {
  display: block;
  inline-size: 100%;
  block-size: 56px;
}
.cx-ct-wave path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
}

/* ---- the clock [canvas .live l.192-194, .tz b i l.199] ---- */
.cx-ct-colon {
  color: var(--cx-azul-corporativo);
}

/* ---- motion (contact-desks.js) [canvas draw l.188-189, blink l.193-194 and l.199] ----
 * The canvas blinks the dot and the colon forever; here they blink for 4 s from the moment the clock
 * card is on screen and then stay lit (owner 2026-11-09, «Quitar y parar solas»,
 * MKT-WP-MOTION-NO-AUTOPLAY-NO-PAUSE-BUTTONS). No pause button. */
@media (prefers-reduced-motion: no-preference) {
  :where(html.cx-motion) .cx-ct-wave--armed:not(.cx-ct-wave--in) path {
    stroke-dashoffset: 260;
  }
  :where(html.cx-motion) .cx-ct-wave--in path {
    animation: cx-ct-draw 2.4s ease 0.6s backwards;
  }
  :where(html.cx-motion) .cx-ct-clk--on .cx-ct-dot {
    animation: cx-ct-blink 2s ease-in-out 2;
  }
  :where(html.cx-motion) .cx-ct-clk--on .cx-ct-colon {
    animation: cx-ct-blink 1s steps(1) 4;
  }
  @keyframes cx-ct-draw {
    from {
      stroke-dashoffset: 260;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes cx-ct-blink {
    50% {
      opacity: 0.25;
    }
  }
}
