/* ==========================================================================
 Sites4all — Πρότυπο ιστοσελίδας δημοσιότητας ΙΚΕ/ΕΠΕ
 Χρωματικό θέμα: αντικαθίσταται αυτόματα από το Apps Script
 ========================================================================== */
:root {
 --primary: #0A2540;
 --secondary: #4A90E2;
 --ink: #1a1d23;
 --muted: #5b6270;
 --line: #e7e9ee;
 --surface: #ffffff;
 --bg: #f6f7fa;
 --radius: 14px;
 --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
 --maxw: 1080px;
 --focus: 0 0 0 3px color-mix(in srgb, var(--secondary) 55%, white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
 margin: 0;
 font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 color: var(--ink);
 background: var(--bg);
 line-height: 1.55;
 -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2 { color: var(--primary); margin: 0; }

.skip-link {
 position: absolute; left: -999px; top: 0; z-index: 200;
 background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top band (shared background: header + hero) ---------- */
.top-band {
 position: relative;
 background-image: url('hero.svg');
 background-repeat: no-repeat;
 background-position: center top;
 background-size: cover;
 background-color: #fbfcfe;
}
/* The artwork's shapes live in the right half of hero.svg. On narrower
 bands the "cover" crop naturally centers on empty space, so we shift the
 focal point rightward to keep the graphic visible next to the caption. */
@media (max-width: 900px) { .top-band { background-position: 78% top; } }
@media (max-width: 560px) { .top-band { background-position: 92% top; } }

/* ---------- Header ---------- */
.site-header {
 position: sticky; top: 0; z-index: 100;
 background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .container {
 position: relative;
 display: flex; align-items: center; justify-content: space-between;
 padding-block: 12px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.brand__logo { border-radius: 8px; flex-shrink: 0; }
.brand__identity { display: flex; flex-direction: column; line-height: 1.25; color: var(--ink); min-width: 0; flex: 1 1 auto; }
.brand__identity strong,
.brand__identity b {
 display: block; font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--primary);
 letter-spacing: .01em; line-height: 1.08;
 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__identity small,
.brand__identity span.subtitle {
 display: block; font-size: clamp(.72rem, 1.3vw, 1.05rem); font-weight: 600; letter-spacing: .03em;
 color: var(--muted); line-height: 1.15;
 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.menu-button {
 display: inline-flex; align-items: center; justify-content: center;
 width: 44px; height: 44px; border-radius: 10px; border: none; cursor: pointer;
 background: var(--secondary); color: #fff; flex-shrink: 0;
}
.menu-button__icon { width: 22px; height: 22px; }
.menu-button:focus-visible { outline: none; box-shadow: var(--focus); }

.site-menu {
 position: absolute; top: calc(100% + 8px); right: 0; left: auto;
 width: max-content; max-width: 220px;
 background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
 padding: 8px;
}
.site-menu[hidden] { display: none; }
.site-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.site-menu a {
 display: block; padding: 10px 10px; border-radius: 8px; text-align: right;
 text-decoration: none; color: var(--ink); font-weight: 700; font-size: .82rem;
 letter-spacing: .03em;
}
.site-menu a:hover { color: var(--primary); background: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding-top: 400px; }
@media (max-width: 900px) { .hero { padding-top: 300px; } }
@media (max-width: 560px) { .hero { padding-top: 220px; } }

.hero__caption { text-align: center; padding-block: 22px 30px; }
.hero__caption-primary {
 margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.25; color: var(--primary);
}
.hero__caption-divider {
 content: ""; display: block; width: 64px; height: 4px; margin: 16px auto;
 border-radius: 2px; background: #777777;
}
.hero__caption-secondary {
 margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.25; color: var(--secondary);
}
@media (max-width: 560px) {
 .hero__caption-primary,
 .hero__caption-secondary { font-size: 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 44px; scroll-margin-top: 84px; }
.section__title {
 display: flex; align-items: center; gap: 10px; font-size: 1.4rem;
 margin-bottom: 20px;
}
.section__icon {
 display: inline-flex; align-items: center; justify-content: center;
 width: 34px; height: 34px; border-radius: 50%; font-size: 1rem;
 background: color-mix(in srgb, var(--secondary) 16%, white); color: var(--primary);
 flex-shrink: 0;
}
.card {
 background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
 box-shadow: var(--shadow); padding: 6px 24px;
}

.details-grid { margin: 0; }
.details-grid__row {
 display: grid; grid-template-columns: 220px 1fr; gap: 16px;
 padding: 16px 0; border-bottom: 1px solid var(--line);
}
.details-grid__row:last-child { border-bottom: none; }
.details-grid dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.details-grid dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) {
 .details-grid__row { grid-template-columns: 1fr; gap: 4px; }
}

.documents__content { display: flex; flex-direction: column; }
.doc-row {
 display: flex; align-items: center; justify-content: space-between; gap: 16px;
 padding: 16px 0; border-bottom: 1px solid var(--line);
}
.doc-row:last-child { border-bottom: none; }
.doc-row__name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.doc-row__name svg { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; }
.doc-row__link {
 display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
 font-weight: 700; font-size: .9rem; color: var(--primary); white-space: nowrap;
}
.doc-row__link:hover { text-decoration: underline; }
.documents__empty { padding: 22px 0; color: var(--muted); font-style: italic; }
.documents__note { color: var(--muted); font-size: .82rem; margin: 14px 0 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; background: var(--primary); color: #fff; }
.site-footer .container { padding-block: 26px; text-align: center; }
.site-footer p { margin: 4px 0; font-size: .88rem; opacity: .9; }
.site-footer a { color: #fff; font-weight: 700; }

/* ---------- Accessibility widget ---------- */
.accessibility { position: fixed; left: 20px; bottom: 20px; z-index: 150; }
.accessibility__button {
 width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
 background: var(--primary); color: #fff; box-shadow: var(--shadow);
 display: inline-flex; align-items: center; justify-content: center;
}
.accessibility__button svg { width: 26px; height: 26px; }
.accessibility__button:focus-visible { outline: none; box-shadow: var(--focus); }
.accessibility__panel {
 position: absolute; bottom: 62px; left: 0; width: 220px;
 background: #fff; border: 1px solid var(--line); border-radius: 12px;
 box-shadow: var(--shadow); padding: 16px;
}
.accessibility__panel h2 { font-size: .95rem; margin: 0 0 4px; }
.accessibility__panel p { margin: 0 0 12px; font-size: .78rem; color: var(--muted); }
.accessibility__panel button {
 width: 100%; display: flex; align-items: center; gap: 10px;
 padding: 10px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px;
 background: var(--bg); cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--ink);
}
.accessibility__panel button svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.accessibility__panel button:last-child { margin-bottom: 0; }
.accessibility__panel button:hover { background: var(--line); }

/* High-contrast mode */
body.a11y-contrast {
 filter: contrast(1.15) saturate(1.1);
 background: #000; color: #fff;
}
body.a11y-contrast .top-band { background-image: none; background-color: #111; }
body.a11y-contrast .card,
body.a11y-contrast .site-header,
body.a11y-contrast .accessibility__panel { background: #111; border-color: #444; color: #fff; }
body.a11y-contrast .details-grid dt,
body.a11y-contrast .muted { color: #cfcfcf; }
body.a11y-contrast a { color: #7fd1ff; }

/* Larger text mode */
body.a11y-large { font-size: 118%; }

/* ---------- Scroll to top ---------- */
.scroll-top {
 position: fixed; right: 20px; bottom: 20px; z-index: 150;
 width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
 background: var(--secondary); color: #fff; box-shadow: var(--shadow);
 display: inline-flex; align-items: center; justify-content: center;
 opacity: 0; visibility: hidden; transform: translateY(8px);
 transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top:focus-visible { outline: none; box-shadow: var(--focus); }

@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .scroll-top { transition: none; }
}
