/* ΕΛΤΕΧΝΙΚΑ: services overview + the six service pages */

/* current page in the dropdown (shared CSS only underlines direct .nav links) */
.nav__dd > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.mega a[aria-current="page"] { background: var(--paper-2); color: var(--blue); }

/* ---------- hero tweaks ---------- */
.phero--svc .phero__title { font-size: clamp(44px, 6.4vw, 112px); max-width: 17ch; }
.phero--svc .phero__lead { font-weight: 500; }
.svc-num { min-width: 150px; }
.svc-num b { color: var(--blue-l); }
.svc-num small { display: block; margin-top: 10px; font: inherit; color: rgba(255,255,255,.55); }

/* ---------- intro ---------- */
.svc-intro { position: relative; overflow: hidden; }
.svc-intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc-intro__media { position: relative; }
.svc-intro__img { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.svc-intro__img img { width: 100%; height: 118%; object-fit: cover; }
.svc-intro__tag {
  position: absolute; left: 16px; bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 12px/1.3 var(--f-b); letter-spacing: .14em; text-transform: uppercase;
}
.svc-intro__tag b { color: var(--blue); font: 900 22px/1 var(--f-d); letter-spacing: 0; margin-right: 8px; }
.svc-intro__txt { padding-top: clamp(0px, 3vw, 40px); }
.svc-intro__lead { font: 700 clamp(24px, 2.5vw, 40px)/1.25 var(--f-b); letter-spacing: -.02em; }
.svc-intro__lead .fw { color: #cfd5df; }
.svc-intro__p { margin-top: 34px; max-width: 640px; }
.svc-intro__big {
  position: absolute; right: calc(var(--pad) * -.5); bottom: -0.12em; z-index: -1; pointer-events: none; user-select: none;
  font: 900 clamp(200px, 30vw, 460px)/.8 var(--f-d); color: var(--paper-2); letter-spacing: -.03em;
}

/* ---------- services list ---------- */
.svl__count { justify-self: end; text-align: right; font: 700 12px/1.6 var(--f-b); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.svl__count b { display: block; font: 900 clamp(64px, 7vw, 110px)/.85 var(--f-d); color: var(--blue); letter-spacing: 0; }
.svl { border-top: 1px solid transparent; counter-reset: svl; }
.svl__row {
  position: relative; display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr) 44px; gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(26px, 3vw, 40px) clamp(0px, 1.5vw, 24px); isolation: isolate; overflow: hidden;
  transition: color .5s var(--ease);
}
.svl__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #cfd5df; transform-origin: left; }
.svl__row:first-child::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #cfd5df; }
.svl__row::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svl__n { font: 900 clamp(34px, 3.4vw, 56px)/.9 var(--f-d); color: var(--blue); transition: color .5s var(--ease), translate .6s var(--ease); }
.svl__row h3 { font: 800 clamp(26px, 2.5vw, 42px)/1 var(--f-d); text-transform: uppercase; transition: translate .6s var(--ease); }
.svl__row p { color: var(--mute); font-size: 16px; line-height: 1.6; transition: color .5s var(--ease); }
.svl__plus { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px #cfd5df; transition: background .5s var(--ease), box-shadow .5s, rotate .6s var(--ease); }
.svl__plus::before, .svl__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.svl__plus::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
@media (hover: hover) and (min-width: 901px) {
  .svl__row:hover { color: #fff; }
  .svl__row:hover::after { transform: scaleY(1); transform-origin: top; }
  .svl__row:hover .svl__n { color: var(--blue-l); translate: 10px 0; }
  .svl__row:hover h3 { translate: 10px 0; }
  .svl__row:hover p { color: rgba(255,255,255,.75); }
  .svl__row:hover .svl__plus { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); rotate: 90deg; }
  .svl__row:hover .svl__plus::after { transform: rotate(0deg); }
}

/* ---------- process (pinned, drawing builds as you scroll) ---------- */
.proc { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.proc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(111,155,230,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(111,155,230,.07) 1px, transparent 1px);
  background-size: 80px 80px;
}
.proc__pin { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--hdr) + 30px) 0 60px; }
.proc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.proc .h2 { color: #fff; }
.proc__draw { display: block; width: 100%; max-width: 520px; max-height: 44vh; margin-top: clamp(26px, 4vh, 50px); overflow: visible; }
.proc__draw path, .proc__draw circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.proc__draw .pd-ax { stroke: rgba(111,155,230,.35); stroke-dasharray: 5 6; }
.proc__draw .pd-st { stroke: #fff; stroke-width: 2; }
.proc__draw .pd-win { stroke: rgba(111,155,230,.8); }
.proc__draw .pd-dim { stroke: var(--blue-l); }
.proc__draw .pd-node { fill: var(--blue-l); stroke: none; }
.proc__draw .pd-bub { stroke: rgba(111,155,230,.7); }
.proc__draw text { fill: var(--blue-l); font: 800 18px var(--f-d); text-anchor: middle; dominant-baseline: central; }
.stages { position: relative; padding-left: 34px; }
.stages__rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.12); }
.stages__rail i { display: block; width: 100%; height: 100%; background: var(--blue-l); transform: scaleY(0); transform-origin: top; }
.stage { padding: 26px 0; opacity: .25; transition: opacity .6s var(--ease); }
.stage + .stage { border-top: 1px solid rgba(255,255,255,.12); }
.stage.is-on { opacity: 1; }
.stage__n { display: flex; align-items: baseline; gap: 12px; font: 700 12px/1 var(--f-b); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.stage__n b { font: 900 46px/.9 var(--f-d); letter-spacing: 0; color: var(--blue-l); }
.stage p { font: 400 clamp(17px, 1.35vw, 21px)/1.6 var(--f-b); color: rgba(255,255,255,.88); max-width: 560px; }

/* ---------- before / after (κατασκευές) ---------- */
.svc-ba { background: var(--ink); color: #fff; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.svc-ba .h2 { color: #fff; }
.svc-ba .sec__head p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.svc-ba__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.svc-ba__item:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.svc-ba__item .ba { aspect-ratio: 4/3; }
.svc-ba__info { display: flex; gap: 18px; align-items: baseline; margin-top: 20px; }
.svc-ba__info i { font: 900 24px/1 var(--f-d); color: var(--blue-l); font-style: normal; }
.svc-ba__info h3 { font: 800 clamp(26px, 2.4vw, 38px)/1 var(--f-d); text-transform: uppercase; }
.svc-ba__info p { color: rgba(255,255,255,.65); margin-top: 6px; font-size: 15px; }
.svc-ba__foot { display: flex; justify-content: center; margin-top: clamp(50px, 6vw, 90px); }

/* ---------- collaborations (μελέτες) ---------- */
.collab__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.collab__img { aspect-ratio: 5/4; overflow: hidden; border-radius: 4px; }
.collab__img img { width: 100%; height: 118%; object-fit: cover; }
.collab__txt > p:not(.eyebrow) { margin-top: 28px; color: var(--mute); font-size: 18px; max-width: 540px; }

/* ---------- CTA: questions are longer than the home title ---------- */
.cta__title--q { font-size: clamp(44px, 6.6vw, 118px); max-width: 18ch; }
.cta__row .btn svg { width: 20px; height: 20px; }

/* ---------- next service ---------- */
.nxt { position: relative; border-bottom: 1px solid var(--line); }
.nxt__link { position: relative; display: block; overflow: hidden; isolation: isolate; padding: clamp(70px, 10vw, 150px) 0; }
.nxt__bg { position: absolute; inset: 0; z-index: -1; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
.nxt__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease); }
.nxt__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,32,.9), rgba(11,18,32,.45)); }
.nxt__lbl { display: flex; align-items: center; gap: 14px; font: 700 12px/1 var(--f-b); letter-spacing: .22em; text-transform: uppercase; color: var(--blue); transition: color .5s var(--ease); }
.nxt__lbl::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.nxt__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 26px; }
.nxt__t { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 30px); font: 900 clamp(46px, 7.4vw, 128px)/.88 var(--f-d); text-transform: uppercase; transition: color .5s var(--ease); max-width: 16ch; }
.nxt__t i { font-style: normal; font-size: .38em; line-height: 1; color: var(--blue); padding-top: .2em; transition: color .5s var(--ease); }
.nxt__arrow { flex: none; width: clamp(64px, 7vw, 104px); height: clamp(64px, 7vw, 104px); border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform .6s var(--ease), background .5s; }
.nxt__arrow svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) {
  .nxt__link:hover .nxt__bg { clip-path: inset(0 0 0 0); }
  .nxt__link:hover .nxt__bg img { transform: scale(1.02); }
  .nxt__link:hover .nxt__t { color: #fff; }
  .nxt__link:hover .nxt__t i, .nxt__link:hover .nxt__lbl { color: var(--blue-l); }
  .nxt__link:hover .nxt__arrow { transform: rotate(-45deg); background: #fff; color: var(--ink); }
}
@media (hover: none) {
  .nxt__bg { clip-path: none; }
  .nxt__bg img { transform: none; }
  .nxt__t { color: #fff; }
  .nxt__t i, .nxt__lbl { color: var(--blue-l); }
}

/* =================================================================
   Overview page (ypiresies.html)
   ================================================================= */
.sx__head { margin-bottom: clamp(30px, 5vw, 70px); }
.sx { position: relative; }
.sx__list { position: relative; z-index: 2; }
.sx__row {
  position: relative; display: grid; grid-template-columns: 90px 150px minmax(0, 1fr) minmax(0, 340px) 64px; gap: clamp(16px, 3vw, 44px); align-items: center;
  padding: clamp(28px, 3.2vw, 46px) 0; border-bottom: 1px solid var(--line);
}
.sx__row:first-child { border-top: 1px solid var(--line); }
.sx__row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.sx__n { font: 900 clamp(36px, 4vw, 64px)/.85 var(--f-d); color: var(--blue); }
.sx__t { font: 900 clamp(30px, 3.4vw, 58px)/.92 var(--f-d); text-transform: uppercase; transition: transform .6s var(--ease), color .4s; }
.sx__d { color: var(--mute); font-size: 15.5px; line-height: 1.6; }
.sx__go { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, box-shadow .4s, color .4s, transform .6s var(--ease); }
.sx__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.sx__thumb { display: block; width: 150px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.sx__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sx__row:hover .sx__thumb img { transform: scale(1.06); }
@media (hover: hover) and (min-width: 901px) {
  .sx__list:hover .sx__row .sx__t { color: #b9c1ce; }
  .sx__list .sx__row:hover .sx__t { color: var(--ink); transform: translateX(16px); }
  .sx__row:hover::after { transform: scaleX(1); transform-origin: left; }
  .sx__row:hover .sx__go { background: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: #fff; transform: rotate(-45deg); }
}

.sx-team { padding-top: 0; }
.sx-team__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.sx-team__lead { font: 700 clamp(24px, 2.5vw, 40px)/1.25 var(--f-b); letter-spacing: -.02em; }
.sx-team__lead .fw { color: #cfd5df; }
.sx-facts { border-top: 1px solid var(--line); }
.sx-facts li { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sx-facts b { font: 900 clamp(48px, 5vw, 80px)/.85 var(--f-d); color: var(--blue); min-width: 1.6ch; }
.sx-facts span { font: 700 13px/1.45 var(--f-b); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .proc__pin { min-height: 0; padding: 100px 0; }
  .proc__grid { grid-template-columns: 1fr; }
  .proc__draw { max-height: none; max-width: 420px; }
  .stage { opacity: 1; }
  .collab__grid, .sx-team__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .svc-intro__grid { grid-template-columns: 1fr; }
  .svc-intro__img { aspect-ratio: 4/3; }
  .svl__count { justify-self: start; text-align: left; }
  .svl__row { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: 26px 0; }
  .svl__n { grid-row: 1 / span 2; }
  .svl__row h3 { grid-column: 2; grid-row: 1; }
  .svl__row p { grid-column: 2; grid-row: 2; }
  .svl__plus { display: none; }
  .svc-ba__grid { grid-template-columns: 1fr; }
  .svc-ba__item:nth-child(even) { margin-top: 0; }
  .nxt__row { flex-direction: column; align-items: flex-start; }
  .sx__list { display: grid; gap: 22px; }
  .sx__row { grid-template-columns: 1fr; gap: 0; padding: 0 0 24px; border: 0 !important; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(11,18,32,.35); }
  .sx__row::after { display: none; }
  .sx__thumb { position: relative; width: auto; aspect-ratio: 16/10; border-radius: 0; margin-bottom: 22px; }
  .sx__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .sx__n { position: absolute; top: 14px; left: 18px; z-index: 2; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
  .sx__t, .sx__d { padding: 0 20px; }
  .sx__d { margin-top: 12px; }
  .sx__t { font-size: 32px; }
  .sx__go { margin: 18px 20px 0; width: 48px; height: 48px; background: var(--blue); color: #fff; box-shadow: none; }
}
@media (max-width: 760px) {
  .svc-intro__big { display: none; }
  .cta__title--q { font-size: clamp(38px, 10.5vw, 64px); }
  .svc-ba__item .ba { aspect-ratio: 4/5; }
  .stages { padding-left: 22px; }
}

/* ---------- free text section (Gutenberg «Ενότητα κειμένου» and loose WordPress blocks) ---------- */
.elx-text__head { margin-bottom: clamp(30px, 4vw, 56px); }
.elx-prose { max-width: 820px; }
.elx-prose > * + * { margin-top: 1.1em; }
.elx-prose h2 { font: 800 clamp(30px, 3.4vw, 48px)/1 var(--f-d); text-transform: uppercase; color: var(--ink); margin-top: 1.6em; }
.elx-prose h3, .elx-prose h4 { font: 700 21px/1.3 var(--f-b); color: var(--ink); margin-top: 1.4em; }
.elx-prose h2:first-child, .elx-prose h3:first-child { margin-top: 0; }
.elx-prose ul, .elx-prose ol { padding-left: 1.3em; color: var(--mute); font-size: 17px; }
.elx-prose ul { list-style: disc; }
.elx-prose ol { list-style: decimal; }
.elx-prose li + li { margin-top: .4em; }
.elx-prose li::marker { color: var(--blue); }
.elx-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.elx-prose figure img { width: 100%; height: auto; border-radius: 4px; }
.elx-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.elx-prose blockquote { border-left: 3px solid var(--blue); padding: 4px 0 4px 22px; }
.elx-prose blockquote p { color: var(--ink); font-size: 19px; }
.elx-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.elx-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.elx-prose th, .elx-prose td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.elx-prose th { color: var(--ink); }
