/* econgress.gr — static rebuild
   Palette and type lifted from the legacy Helix Ultimate template. */

:root {
  --red: #af1e23;
  --black: #111;
  --ink: #252525;
  --muted: #6b6b6b;
  --border-dash: rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: "Roboto Mono", ui-monospace, monospace;
  margin: 0 0 1rem;
}

h1 { font-weight: 500; }
h2 { font-weight: 400; }
h3 { font-weight: 300; }
h4 { font-weight: 200; }

a {
  color: var(--red);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--black);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  padding: 18px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.site-header .container-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 64px;
  width: auto;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  padding: 8px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--red);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Off-canvas nav */

.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 85vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav-close {
  align-self: flex-end;
  margin: 16px 16px 0 0;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.site-nav-close .burger span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-nav-close .burger span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 32px;
  text-align: center;
}

.site-nav li + li {
  margin-top: 12px;
}

.site-nav a {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 4px;
  border-bottom: 3px dashed #000;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero (home) ---------- */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/main-bg.jpg") center/cover no-repeat;
  padding: 130px 0 160px;
}

.hero-box {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}

.hero-box h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
}

.hero-box .hero-sub {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  margin-top: 0.5rem;
}

.hero-box .hero-dates {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

.hero-box .hero-dates strong {
  font-weight: 500;
}

/* ---------- Info section (home) ---------- */

.info-section {
  padding: 70px 0;
}

.info-section img.info-image {
  margin: 0 auto 2rem;
}

.info-section h2 {
  text-align: center;
  font-size: 1.8rem;
}

.info-section .e-red {
  color: var(--red);
  font-weight: 400;
}

.info-section .lead {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: justify;
  font-size: 1.1rem;
}

.info-section h3.stroke {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.info-section h3.stroke::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #000;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}

.partner-grid a {
  display: block;
}

.partner-grid img {
  margin: 0 auto;
  filter: grayscale(70%);
  transition: filter 0.3s;
}

.partner-grid a:hover img,
.partner-grid a:focus-visible img {
  filter: grayscale(0%);
}

/* ---------- Page title banner ---------- */

.page-title {
  background: var(--red);
  color: #fff;
  padding: 2.5rem 0;
}

.page-title .stroke {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-title .stroke::before {
  content: "";
  flex: 1;
  height: 1px;
  background: #fff;
}

.page-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.page-title .page-subtitle {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 300;
}

/* ---------- Article content ---------- */

.article-body {
  padding: 60px 0;
}

.article-body .container {
  max-width: 860px;
}

.article-body img.article-image {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  display: inline-block;
  border-bottom: 3px dashed #000;
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h2 small {
  font-weight: 300;
  font-size: 1rem;
  display: block;
}

.article-body p {
  text-align: justify;
}

.article-body .term {
  border-bottom: 1px dashed #000;
}

/* ---------- Accordion (Τεχνολογίες) ---------- */

.accordion .card {
  border: none;
  margin-bottom: 0;
}

.accordion .card-header {
  border-bottom: 3px dashed rgba(175, 30, 35, 0.4);
  padding: 0;
}

.accordion .card-header button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.accordion .card-header button:hover,
.accordion .card-header button:focus-visible {
  color: var(--red);
}

.accordion .chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion .card-header button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.accordion .card-body {
  border: 2px dashed var(--border-dash);
  padding: 1rem;
  margin: 0 0 1rem;
}

.accordion .card-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.accordion [hidden] {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 50px 20px;
  font-size: 1rem;
}

.site-footer .footer-logo {
  width: 140px;
  margin-bottom: 1rem;
}

.site-footer .footer-email {
  font-size: 1.1rem;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 1rem 0;
  padding: 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copyright {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
}

/* ---------- Back to top ---------- */

.scroll-up {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 40;
}

.scroll-up.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-up svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .hero {
    padding: 90px 0 110px;
  }

  .hero-box {
    padding: 1.75rem 1.25rem;
  }

  .article-body,
  .info-section {
    padding: 40px 0;
  }
}
