/* ══ ΕΙΣΑΓΩΓΗ ΑΡΧΙΚΗΣ (inc/intro.php, assets/js/intro.js) ═══════════════════
   Χρονοδιάγραμμα (ms):
     0    – 750   το λογότυπο πέφτει με αναπήδηση
     750  – 1400  παιχνίδισμα: κούνημα + «ζουλήγματα»
     1400 – 1850  φόρτιση: μαζεύεται και τρέμει, η λάμψη δυναμώνει
     1850         ΕΚΡΗΞΗ: φλας, δύο κύματα, σπίθες
     2150 –       το λογότυπο ξαναστήνεται στο κέντρο, μικρότερο, σε λευκή κάψουλα
     2150 + i·70  τα προϊόντα πετάγονται γύρω του, με γραμμές προς το κέντρο
     3050         λεζάντα «Εννέα προϊόντα. Ένας προμηθευτής.»
     3700 –       ΠΑΡΟΥΣΙΑΣΗ (JS): ένα φως φεύγει από το κέντρο προς κάθε προϊόν, εκείνο
                  ανάβει και κάτω από το κέντρο γράφεται λέξη-λέξη τι κάνει (2,6–3,5″ το καθένα, ανάλογα με τις λέξεις)
     μετά         όλα ανάβουν μαζί (1800 ms), ο κύκλος κλείνει και αποκαλύπτει την αρχική
   Μόνο transform/opacity/clip-path — ομαλό και σε κινητά. */

.co-intro { display: none; }
html.intro-on, html.intro-on body { overflow: hidden; }
html.intro-on .co-intro { overflow: hidden;
  display: block; position: fixed; inset: 0; z-index: 10000;
  color: #E9ECFF; clip-path: circle(150% at 50% 50%);
  -webkit-tap-highlight-color: transparent;
}
.co-intro { transition: clip-path .75s cubic-bezier(.7, 0, .84, 0); }
html.intro-on .co-intro.is-out { clip-path: circle(0% at 50% 50%); }
/* Μέχρι να δώσει το JS το «ξεκίνα», τίποτα δεν κινείται (ούτε μετράει καθυστέρηση). */
.co-intro:not(.is-play) * { animation-play-state: paused !important; }
.co-intro.is-gone { display: none !important; }

/* φόντο: βαθύ μπλε με λάμψεις της μάρκας και σβησμένο πλέγμα */
.ci-bg { position: absolute; inset: 0; background:
  radial-gradient(42% 46% at 50% 50%, rgba(46,155,255,.22), transparent 70%),
  radial-gradient(60% 60% at 15% 85%, rgba(18,181,172,.16), transparent 70%),
  radial-gradient(55% 55% at 88% 12%, rgba(124,92,255,.18), transparent 70%),
  linear-gradient(160deg, #0C1330 0%, #060A1C 60%, #050816 100%); }
.ci-bg::after { content: ""; position: absolute; inset: 0; opacity: .22;
  background: linear-gradient(rgba(233,236,255,.08) 1px, transparent 1px) 0 0/56px 56px,
              linear-gradient(90deg, rgba(233,236,255,.08) 1px, transparent 1px) 0 0/56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%); }

.ci-stage { position: absolute; inset: 0; display: grid; place-items: center;
  /* σταθερό κελί: χωρίς αυτό το τεράστιο φλας «φούσκωνε» το πλέγμα και όλα ξέφευγαν από το κέντρο */
  grid-template-columns: 100%; grid-template-rows: 100%; overflow: hidden; }
.ci-stage > * { grid-area: 1 / 1; }

/* ── 1. Το λογότυπο ─────────────────────────────────────────────────────── */
.ci-logo { width: min(64vw, 420px); position: relative; z-index: 3;
  filter: drop-shadow(0 0 0 rgba(46,155,255,0));
  animation:
    ci-drop .75s cubic-bezier(.22, 1.2, .36, 1) both,
    ci-play .65s ease-in-out .75s both,
    ci-charge .45s ease-in 1.4s both,
    ci-boom .38s cubic-bezier(.2, .7, .3, 1) 1.85s both; }
.ci-logo img { width: 100%; height: auto; display: block; }
@keyframes ci-drop {
  0%   { transform: translateY(-70vh) rotate(-14deg) scale(.6); opacity: 0; }
  55%  { transform: translateY(18px) rotate(4deg) scaleX(1.08) scaleY(.9); opacity: 1; }
  75%  { transform: translateY(-10px) rotate(-2deg) scaleX(.97) scaleY(1.04); }
  100% { transform: none; opacity: 1; } }
@keyframes ci-play {
  0%   { transform: none; }
  20%  { transform: rotate(-7deg) scale(1.04); }
  40%  { transform: rotate(6deg) scaleX(1.06) scaleY(.95); }
  60%  { transform: rotate(-4deg) scale(1.02); }
  80%  { transform: rotate(2deg) scaleX(.97) scaleY(1.04); }
  100% { transform: none; } }
@keyframes ci-charge {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(46,155,255,0)); }
  20%  { transform: scale(.94) translateX(-3px); }
  40%  { transform: scale(.9) translateX(3px); }
  60%  { transform: scale(.87) translate(-3px, 1px); }
  80%  { transform: scale(.85) translate(3px, -1px); }
  100% { transform: scale(.84); filter: drop-shadow(0 0 28px rgba(46,155,255,.95)); } }
@keyframes ci-boom {
  0%   { transform: scale(.84); opacity: 1; filter: drop-shadow(0 0 28px rgba(46,155,255,.95)) blur(0); }
  100% { transform: scale(2.2); opacity: 0; filter: drop-shadow(0 0 40px rgba(46,155,255,0)) blur(10px); } }

/* ── 2. Έκρηξη ──────────────────────────────────────────────────────────── */
.ci-flash { width: 140vmax; height: 140vmax; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0, rgba(160,210,255,.55) 12%, rgba(46,155,255,0) 40%);
  opacity: 0; transform: scale(.1); animation: ci-flash .6s ease-out 1.85s both; }
@keyframes ci-flash { 0% { opacity: 0; transform: scale(.1); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

.ci-ring { width: 80px; height: 80px; border-radius: 50%; z-index: 2; pointer-events: none;
  border: 3px solid rgba(120,200,255,.9); box-shadow: 0 0 30px rgba(46,155,255,.6), inset 0 0 20px rgba(46,155,255,.4);
  opacity: 0; animation: ci-ring 1s cubic-bezier(.1, .6, .3, 1) 1.85s both; }
.ci-ring-2 { border-color: rgba(18,181,172,.8); animation-delay: 1.98s; animation-duration: 1.2s; }
@keyframes ci-ring { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(14); } }

.ci-sparks { width: 0; height: 0; position: relative; z-index: 2; }
.ci-sparks i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
  border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0;
  animation: ci-spark .95s cubic-bezier(.12, .8, .3, 1) calc(1.85s + var(--t)) both; }
@keyframes ci-spark {
  0%   { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.4); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); } }

/* ── 3. Το κέντρο ξαναστήνεται + τα προϊόντα γύρω ───────────────────────── */
.ci-hub { z-index: 4; width: min(40vw, 230px); padding: 16px 22px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 8px rgba(46,155,255,.14), 0 0 60px rgba(46,155,255,.55), 0 20px 50px rgba(0,0,0,.45);
  opacity: 0; transform: scale(.3);
  animation: ci-hub .75s cubic-bezier(.34, 1.56, .64, 1) 2.15s both, ci-pulse 2.4s ease-in-out 2.9s infinite; }
.ci-hub img { width: 100%; height: auto; display: block; }
@keyframes ci-hub { to { opacity: 1; transform: scale(1); } }
@keyframes ci-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(46,155,255,.14), 0 0 60px rgba(46,155,255,.5), 0 20px 50px rgba(0,0,0,.45); }
  50%      { box-shadow: 0 0 0 14px rgba(46,155,255,.08), 0 0 90px rgba(46,155,255,.7), 0 20px 50px rgba(0,0,0,.45); } }

.ci-tiles { list-style: none; margin: 0; padding: 0; width: 0; height: 0; position: relative; z-index: 5; }
.ci-tile { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.2); opacity: 0;
  animation: ci-out .8s cubic-bezier(.34, 1.45, .64, 1) calc(2.15s + var(--i) * 70ms) both; }
@keyframes ci-out {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-25deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) scale(1) rotate(0); } }
.ci-card { display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; border-radius: 18px;
  background: #fff; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 14px 36px rgba(0,0,0,.4), 0 0 26px color-mix(in srgb, var(--accent, #2E9BFF) 45%, transparent);
  animation: ci-float 3.2s ease-in-out calc(3s + var(--i) * 140ms) infinite alternate; }
.ci-card > * { flex: none; }
/* max-width:none — ο γενικός κανόνας img{max-width:100%} τα συρρίκνωνε μέσα στο πλακίδιο */
.ci-card img { height: calc(32px * var(--h, 1)); width: auto; max-width: none; display: block; }
.ci-card b { font: 800 1.02rem/1 var(--f-sans, system-ui); letter-spacing: -.01em; color: #0B1220; }
.ci-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #2E9BFF) 14%, #fff); color: var(--accent, #2E9BFF); }
.ci-ico svg { width: 20px; height: 20px; }
@keyframes ci-float { from { transform: translateY(-5px); } to { transform: translateY(5px); } }

/* γραμμές κέντρο → προϊόντα (σχεδιάζονται μετά την άφιξη των πλακιδίων) */
.ci-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.ci-lines line { stroke: rgba(150,200,255,.38); stroke-width: 1.5; stroke-dasharray: 4 7;
  opacity: 0; animation: ci-draw 1s ease-out both; }
@keyframes ci-draw { from { opacity: 0; stroke-dashoffset: 120; } to { opacity: 1; stroke-dashoffset: 0; } }

.ci-caption { align-self: end; margin: 0 0 clamp(5.5rem, 12vh, 8rem); z-index: 6; text-align: center;
  font: 700 clamp(1rem, .9rem + .6vw, 1.35rem)/1.3 var(--f-sans, system-ui); letter-spacing: .01em; color: #E9ECFF;
  opacity: 0; transform: translateY(10px); animation: ci-cap .6s ease-out 3.05s both; }
@keyframes ci-cap { to { opacity: 1; transform: none; } }

/* ── Παρουσίαση προϊόντων (intro.js: show/next/finale) ───────────────────── */
.ci-tile { cursor: pointer; }
.ci-card { transition: opacity .35s ease, filter .35s ease, box-shadow .35s ease, scale .45s cubic-bezier(.34, 1.56, .64, 1); }
/* τα υπόλοιπα κάνουν πίσω· το ενεργό ανεβαίνει και λάμπει στο χρώμα του */
.co-intro.is-tour .ci-tile:not(.is-on) .ci-card { opacity: .38; filter: saturate(.5); scale: .94; }
.co-intro.is-tour .ci-tile.is-on { z-index: 2; }
.co-intro.is-tour .ci-tile.is-on .ci-card { scale: 1.14;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2E9BFF) 80%, #fff),
              0 18px 44px rgba(0,0,0,.45), 0 0 54px color-mix(in srgb, var(--accent, #2E9BFF) 75%, transparent); }
.co-intro.is-finale .ci-card { scale: 1.06;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2E9BFF) 70%, #fff), 0 0 40px color-mix(in srgb, var(--accent, #2E9BFF) 60%, transparent); }

/* η γραμμή του ενεργού: συνεχής, στο χρώμα του, με ροή προς το προϊόν */
.ci-lines line { transition: stroke .3s ease, stroke-width .3s ease; }
.co-intro.is-tour .ci-lines line:not(.is-on) { stroke: rgba(150,200,255,.16); }
.ci-lines line.is-on { stroke: rgba(170,215,255,.95); stroke-width: 2.5; stroke-dasharray: 10 8; opacity: 1;
  animation: ci-flow .7s linear infinite; }
@keyframes ci-flow { to { stroke-dashoffset: -18; } }
/* το φως που ταξιδεύει από το κέντρο */
.ci-beam { fill: #fff; filter: drop-shadow(0 0 6px var(--accent, #2E9BFF)) drop-shadow(0 0 14px var(--accent, #2E9BFF)); }

/* τι κάνει: όνομα στο χρώμα του προϊόντος + μία πρόταση, λέξη-λέξη */
.ci-say { align-self: end; margin: 0 0 clamp(4.8rem, 9vh, 5.8rem); z-index: 6; width: min(92vw, 720px);
  text-align: center; pointer-events: none; opacity: 0; }
.co-intro.is-tour .ci-say { opacity: 1; }
.co-intro.is-tour .ci-caption, .co-intro.is-finale .ci-caption { animation: none; }
.co-intro.is-tour .ci-caption { opacity: 0; transition: opacity .3s; }
.co-intro.is-finale .ci-caption { opacity: 1; transform: none; }
.ci-say-name { display: block; margin-bottom: .35rem;
  font: 800 clamp(.8rem, .75rem + .25vw, .95rem)/1 var(--f-mono, ui-monospace); letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent, #2E9BFF) 55%, #fff); }
.ci-say-line { display: block; font: 700 clamp(1.05rem, .9rem + .75vw, 1.55rem)/1.35 var(--f-sans, system-ui);
  color: #F2F5FF; text-wrap: balance; }
.ci-say-line span { display: inline-block; white-space: pre; opacity: 0; transform: translateY(8px); filter: blur(3px); }
.ci-say.is-in .ci-say-name { animation: ci-cap .35s ease-out both; }
.ci-say.is-in .ci-say-line span { animation: ci-word .4s cubic-bezier(.2, .7, .3, 1) calc(120ms + var(--w) * 45ms) both; }
@keyframes ci-word { to { opacity: 1; transform: none; filter: none; } }

/* πρόοδος: μία τελεία ανά προϊόν */
.ci-dots { align-self: end; z-index: 6; display: flex; gap: 7px; list-style: none; padding: 0;
  margin: 0 0 clamp(3.4rem, 7vh, 4.6rem); opacity: 0; transition: opacity .4s; pointer-events: none; }
.co-intro.is-tour .ci-dots { opacity: 1; }
.ci-dots li { width: 7px; height: 7px; border-radius: 99px; background: rgba(233,236,255,.25); transition: width .35s, background .35s; }
.ci-dots li.is-past { background: rgba(233,236,255,.6); }
.ci-dots li.is-on { width: 22px; background: #fff; }

.ci-hint { align-self: end; z-index: 6; margin: 0 0 clamp(1.4rem, 3vh, 2rem); pointer-events: none;
  font: 500 .8rem/1.3 var(--f-sans, system-ui); color: rgba(233,236,255,.55); text-align: center; padding-inline: 1rem;
  opacity: 0; transition: opacity .5s .4s; }
.co-intro.is-tour .ci-hint { opacity: 1; }
.ci-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .ci-hint-mouse { display: inline; } .ci-hint-touch { display: none; } }
/* το CloudOn στο κέντρο είναι η «πόρτα» προς την αρχική */
.ci-hub { cursor: pointer; transition: scale .3s cubic-bezier(.34, 1.56, .64, 1); }
.co-intro.is-tour .ci-hub:hover, .co-intro.is-finale .ci-hub:hover { scale: 1.06; }

/* ── Παράλειψη ──────────────────────────────────────────────────────────── */
.ci-skip { position: absolute; right: clamp(1rem, 3vw, 2rem); top: clamp(1rem, 3vw, 2rem); z-index: 10;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: 600 .9rem/1 var(--f-sans, system-ui); color: #E9ECFF; background: rgba(255,255,255,.08);
  border: 1px solid rgba(233,236,255,.28); backdrop-filter: blur(6px);
  opacity: 0; animation: ci-cap .4s ease-out .6s both; }
.ci-skip:hover { background: rgba(255,255,255,.16); }
.ci-skip:focus-visible { outline: 2px solid #8CC8FF; outline-offset: 3px; }

/* ── Κινητό ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ci-card { height: 46px; padding: 0 12px; gap: 7px; border-radius: 14px; }
  .ci-card img { height: calc(22px * var(--h, 1)); }
  .ci-card b { font-size: .86rem; }
  .ci-ico { width: 26px; height: 26px; border-radius: 8px; }
  .ci-ico svg { width: 16px; height: 16px; }
  .ci-hub { width: min(46vw, 170px); padding: 11px 16px; }
  .ci-say { margin-bottom: 4.6rem; }
  .ci-dots { margin-bottom: 3.1rem; }
}

/* Ασφάλεια: αν ποτέ ενεργοποιηθεί με μειωμένη κίνηση, χωρίς κινούμενα μέρη. */
@media (prefers-reduced-motion: reduce) { html.intro-on .co-intro { display: none; } html.intro-on, html.intro-on body { overflow: auto; } }

/* Το widget συνομιλίας 3CX έχει τεράστιο z-index και έβγαινε πάνω από την εισαγωγή. */
html.intro-on call-us-selector, html.intro-on #wp-live-chat-by-3CX, html.intro-on #cookie-law-info-bar { visibility: hidden !important; }
