/* ΔΟΛΑΨΑΚΗΣ ΑΤΕ
   Χρώματα από τα χρώματα αγωγών κατά IEC 60446 και το γκρι πινάκων RAL 7035. */
:root {
  --paper: #eef0ed;
  --panel: #cbd0cc;      /* RAL 7035 */
  --panel-2: #dfe3e0;
  --ink: #1d2329;
  --ink-2: #4a535b;
  --line: #b4bcb7;
  --brown: #7b4b2a;      /* L1 */
  --black: #1d2329;      /* L2 */
  --grey: #6e777e;       /* L3 */
  --blue: #2d64a8;       /* N */
  --green: #2f8f46;      /* PE */
  --yellow: #e8c519;     /* PE */
  --ochre: #8a6d00;
  --white: #fbfcfb;
  --brand: #ed1b24;      /* κόκκινο λογοτύπου */
  --brand-dk: #c3121a;

  --f: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; }


/* ---------- Κεφαλίδα ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
@media (max-width: 520px) { .brand img { height: 22px; } }
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .5em .8em; border-radius: var(--r); }
.nav a:hover { background: var(--panel-2); color: var(--ink); }
.nav .nav-cta { background: var(--brand); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--brand-dk); color: #fff; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: block; font: 600 .95rem var(--f); color: var(--ink); background: none;
    border: 1.5px solid var(--ink); border-radius: var(--r); padding: .45em .9em; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em .4em; border-bottom: 1px solid var(--panel-2); border-radius: 0; }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--r); }
}

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--f); padding: 1em 1.5em; border-radius: var(--r);
  background: var(--brand); color: #fff; text-decoration: none; border: 1.5px solid var(--brand);
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 680; letter-spacing: -.035em; line-height: 1.02; max-width: 15ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin-top: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.hero-photo { margin-top: clamp(40px, 6vw, 72px); }
.hero-photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--r); }

/* Μονογραμμικό διάγραμμα */
.sld { margin: 0; }
.sld svg { width: 100%; height: auto; overflow: visible; }
.sld path, .sld circle { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.sld .bus { stroke-width: 7; stroke-linecap: square; }
.sld .load { fill: var(--paper); stroke-width: 2.5; }
.sld .x { stroke-width: 2; }
.sld-note { font: 500 13px var(--f); fill: var(--ink-2); }
.sld-label { font: 600 15px var(--f); fill: var(--ink); dominant-baseline: middle; }
.sld .feeder path, .sld .feeder circle { stroke: var(--wire); }
.sld .feeder .load { fill: var(--wire); }
.w-brown { --wire: var(--brown); }
.w-black { --wire: var(--black); }
.w-grey  { --wire: var(--grey); }
.w-blue  { --wire: var(--blue); }
.w-green { --wire: var(--green); }

/* Η μία κινούμενη στιγμή: γραμμές σχεδιάζονται, οι διακόπτες κλείνουν με τη σειρά */
@media (prefers-reduced-motion: no-preference) {
  .sld .draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.1s cubic-bezier(.6,0,.2,1) forwards; }
  .sld .sld-supply .draw { animation-delay: 0s; }
  .sld .bus { animation-delay: .35s; }
  .sld .feeder .draw { animation-delay: calc(.8s + var(--i) * .08s); }
  .sld .blade { transform: rotate(-32deg); animation: close .35s cubic-bezier(.5,0,.2,1.4) forwards; animation-delay: calc(1.6s + var(--i) * .18s); }
  .sld .load { opacity: .25; animation: on .3s forwards; animation-delay: calc(1.8s + var(--i) * .18s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes close { to { transform: rotate(0); } }
@keyframes on { to { opacity: 1; } }

/* ---------- Ενότητες ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.h-sm { font-size: 1.15rem; letter-spacing: 0; margin-bottom: .8em; }

/* Υπηρεσίες: ζυγός με κλάδους */
.services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bus-row {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  border-top: 6px solid var(--ink); position: relative;
}
.feed { position: relative; padding: 44px 24px 8px 0; }
.feed + .feed { padding-left: 24px; border-left: 1px solid var(--panel); }
.feed::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 28px; background: var(--wire);
}
.feed + .feed::before { left: 24px; }
.feed .tag {
  position: absolute; top: 6px; left: 12px; font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.feed + .feed .tag { left: 36px; }
.feed h3 { margin-bottom: .6em; }
.feed p { color: var(--ink-2); font-size: .98rem; }
.feed ul { list-style: none; padding: 0; margin: 1.2em 0 0; font-size: .94rem; }
.feed li { padding: .5em 0; border-top: 1px solid var(--panel-2); }
@media (max-width: 1300px) {
  .bus-row { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; column-gap: 32px; row-gap: 16px; }
  .feed, .feed + .feed { padding: 44px 0 24px; border-left: 0; border-top: 6px solid var(--ink); }
  .feed::before, .feed + .feed::before { left: 0; }
  .feed .tag, .feed + .feed .tag { left: 12px; }
}
@media (max-width: 900px) { .bus-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bus-row { grid-template-columns: 1fr; } }

/* ---------- Έργα ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .92rem var(--f); color: var(--ink); background: transparent; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5em 1em;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.proj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.proj[hidden] { display: none; }
.proj a { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.proj-img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.proj a:hover .proj-img img { transform: scale(1.03); }
.proj a:hover h3 { color: var(--blue); }
.proj-body { padding: 16px 2px 4px; }
.proj h3 { font-size: 1.2rem; margin: .45em 0 .3em; }
.meta { color: var(--ink-2); font-size: .94rem; margin: 0; }
.sum { color: var(--ink-2); margin: .8em 0 0; max-width: 52ch; }
.proj-lead { grid-column: span 2; grid-row: span 2; }
.proj-lead .proj-img { aspect-ratio: auto; height: calc(100% - 150px); min-height: 320px; }
.proj-lead h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-lead { grid-row: auto; }
  .proj-lead .proj-img { height: auto; aspect-ratio: 16/9; min-height: 0; }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-lead { grid-column: auto; }
}
.empty { color: var(--ink-2); }

/* Κατηγορίες: χρώμα αγωγού */
.cat { display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.cat::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--wire, var(--ink)); }
.c0 { --wire: var(--brown); }
.c1 { --wire: var(--blue); }
.c2 { --wire: var(--black); }
.c3 { --wire: var(--green); }
.c4 { --wire: var(--grey); }

.ph { width: 100%; height: 100%; display: grid; background: var(--panel); }
.ph svg { width: 100%; height: 100%; }
.ph path, .ph circle { fill: none; stroke: var(--wire); stroke-width: 2.4; opacity: .55; }
.ph path:first-child { stroke-width: 5; }
.ph circle { fill: var(--wire); opacity: .4; }

/* ---------- Εταιρεία ---------- */
.company { background: var(--ink); color: var(--white); }
.company a { color: #fff; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.company-text h2 { margin-bottom: .7em; }
.company-text p { color: #cfd5d1; font-size: 1.1rem; max-width: 60ch; }
.company-img { grid-column: 1 / -1; width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--r); }

/* Πινακίδα στοιχείων, όπως η πινακίδα ονομαστικών τιμών ενός πίνακα */
.plate {
  position: relative; background: var(--panel); color: var(--ink);
  border-radius: 6px; padding: 32px 32px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.08);
}
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #9aa29d; box-shadow: inset 0 1px 1px rgba(0,0,0,.35); }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.25px; height: 1.5px; background: #6b736e; transform: rotate(35deg); }
.s1 { top: 10px; left: 10px; } .s2 { top: 10px; right: 10px; } .s3 { bottom: 10px; left: 10px; } .s4 { bottom: 10px; right: 10px; }
.plate-name { font-weight: 750; letter-spacing: .04em; font-size: 1.05rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin: 0; }
.plate dl { margin: 0; }
.plate dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(29,35,41,.18); }
.plate dl div:last-child { border-bottom: 0; }
.plate dt { color: var(--ink-2); font-size: .95rem; }
.plate dd { margin: 0; font-weight: 700; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }

/* ---------- Πιστοποιήσεις, συνεργάτες ---------- */
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); border-top: 1px solid var(--line); }
.cert-list li { display: flex; gap: 20px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.cert-list img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.cert-list h3 { font-size: 1.1rem; margin-bottom: .3em; }
.cert-list p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.logos-block { margin-top: clamp(48px, 6vw, 80px); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos li { background: var(--paper); display: grid; place-items: center; min-height: 110px; padding: 20px; text-align: center; font-weight: 600; }
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* ---------- Επικοινωνία ---------- */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.lead-sm { color: var(--ink-2); font-size: 1.1rem; margin-top: .8em; max-width: 40ch; }
.contact-dl { margin: 2em 0 0; }
.contact-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--panel-2); }
.contact-dl dt { color: var(--ink-2); }
.contact-dl dd { margin: 0; font-weight: 600; }
.careers { margin-top: 2.5em; padding: 20px 22px; background: var(--paper); border-left: 4px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; }
.careers h3 { font-size: 1.05rem; margin-bottom: .4em; }
.careers p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--ink-2); }
.form input, .form textarea {
  font: 400 1rem var(--f); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: .8em .9em; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: var(--r); margin: 0; font-weight: 500; }
.notice.ok { background: #e3f1e6; color: #1d5a2c; }
.notice.err { background: #f7e4df; color: #7a2512; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- Σελίδα έργου ---------- */
.project-page .section { padding-top: clamp(40px, 6vw, 72px); }
.back { margin-bottom: 2em; }
.back a { font-weight: 600; text-decoration: none; }
.back a::before { content: "‹ "; }
.project-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 48px); }
.project-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -.03em; margin-top: .3em; }
.gallery-main { margin: 0; }
.gallery-main img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--r); background: var(--panel); }
.gallery-ph { aspect-ratio: 21/8; border-radius: var(--r); overflow: hidden; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 112px; height: 76px; object-fit: cover; border-radius: 2px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.project-text p { font-size: 1.1rem; max-width: 65ch; }
.facts { margin: 0 0 2em; border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.scope { list-style: none; padding: 0; margin: 0 0 2em; }
.scope li { padding: .55em 0 .55em 1.2em; position: relative; border-bottom: 1px solid var(--panel-2); }
.scope li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 3px; background: var(--ink); }
.next-proj { margin-top: clamp(56px, 8vw, 100px); border-top: 6px solid var(--ink); }
.next-proj a { display: flex; flex-direction: column; gap: 4px; padding: 24px 0; text-decoration: none; }
.next-proj span { color: var(--ink-2); font-size: .95rem; }
.next-proj strong { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -.02em; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

/* ---------- Υποσέλιδο ---------- */
.foot { background: var(--ink); color: #c4cbc6; padding: 64px 0 24px; font-size: .96rem; }
.foot a { color: #e9ece9; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0 0 .5em; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.foot-logo { height: 26px; width: auto; margin-bottom: 14px; }
.foot-name { color: #fff; font-weight: 750; letter-spacing: .03em; font-size: 1.05rem; }
.foot-desc { max-width: 38ch; }
.foot-label { color: #fff; font-weight: 600; }
.foot-social { display: flex; gap: 16px; margin-top: 1em !important; }
.funding ul { list-style: none; margin: 0; padding: 0; }
.funding li { padding: .3em 0; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #36404a; font-size: .88rem; color: #8f9993; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sld { max-width: 520px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
