/* xionas.gr: one stylesheet. Tokens are the measured values of the old Avada site (source/design.json,
   branding.json, screenshots): dark greys, light grey body text, white headings, Manrope 300/400 with wide
   letter-spacing, teal only in the logo and the old stat badges. Changes against the old site are listed in
   audit.md (looser line height on a proper measure, readable contact row, contrast of footer icons). */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #282a2d;          /* page (awb-color7) */
  --bg-deep: #212326;     /* bands, cards, fields (awb-color8) */
  --bg-foot: #202326;     /* footer row */
  --box: #36393d;         /* footer icon boxes */
  --line: #37383b;        /* hairlines */
  --line-2: #676767;      /* field borders */
  --text: #939393;        /* body text */
  --text-2: #9e9e9e;      /* menu links, card titles */
  --white: #fff;          /* headings, text on photos */
  --accent: #009ca4;      /* logo teal: focus ring */
  --error: #ff9a8f;
  --font: "Manrope", Arial, Helvetica, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --wide: 1170px;         /* old content width */
  --measure: 40rem;       /* about 75 characters of body text */
  --gutter: 30px;         /* old side padding */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 17px/1.75 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 400; letter-spacing: 2px; line-height: 1.3; }
p { margin: 0 0 var(--s4); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s2) var(--s4); background: var(--white); color: var(--bg); }
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header: logo left, search and burger right, flyout menu (old Avada flyout) ---------- */
.site-header { position: relative; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; padding: var(--s3) var(--gutter); }
.has-hero .site-header { position: absolute; inset: 0 0 auto; }
.logo img { width: 126px; }
.header-tools { display: flex; gap: var(--s2); margin-top: var(--s3); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.burger, .burger::before, .burger::after { display: block; width: 28px; height: 2px; background: currentColor; transition: transform .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -8px; } .burger::after { top: 8px; }
.menu-open .burger { background: transparent; }
.menu-open .burger::before { transform: translateY(8px) rotate(45deg); }
.menu-open .burger::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-block; padding: var(--s2) 0; color: var(--text-2); text-decoration: none; letter-spacing: 2px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--white); }
/* without JavaScript: the menu is a plain row under the header */
html:not(.js) .site-nav { position: absolute; left: var(--gutter); right: var(--gutter); top: 120px; }
html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.js .site-nav { position: fixed; inset: 0; z-index: -1; display: none; place-items: center; background: rgba(33, 35, 38, .97); text-align: center; }
.js .menu-open .site-nav { display: grid; }
.js .site-nav a { padding: var(--s3) var(--s4); font-size: 27px; }
.menu-open { overflow: hidden; }

/* ---------- shared blocks ---------- */
.title { font-size: 22px; text-align: center; }
.title--rule { display: flex; align-items: center; gap: var(--s5); max-width: 660px; margin-inline: auto; font-size: 17px; }
.title--rule::before, .title--rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--bg-deep); text-align: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .35) 60%, rgba(40, 42, 45, .6)); }
.hero > :not(.bg, .slides) { position: relative; z-index: 1; }
.hero--page { min-height: clamp(360px, 52vw, 680px); padding: var(--s9) var(--gutter) var(--s8); background: var(--bg-deep) center / cover no-repeat; }
.hero--page h1, .hero-title { margin: 0; color: var(--white); font-size: clamp(28px, 3vw, 37px); letter-spacing: 2px; }

/* ---------- home ---------- */
.hero--home { min-height: clamp(560px, 56vw, 760px); padding: var(--s10) var(--gutter) var(--s8); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slide:first-child, .slide.is-on { opacity: 1; }
.js .slide:first-child:not(.is-on) { opacity: 0; }
.hero-inner { max-width: 760px; }
.hero-logo img { width: 270px; margin: 0 auto var(--s5); }
.hero-text { margin: 0; color: var(--white); font-size: 19px; font-weight: 400; letter-spacing: 1px; line-height: 1.75; }
.intro { padding-block: var(--s9) var(--s7); text-align: center; }
.intro .title { margin-bottom: var(--s4); }
.intro p { max-width: var(--measure); margin-inline: auto; }
.details { padding-bottom: var(--s8); }
.details .title--rule { margin-bottom: var(--s5); }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 95fr 300fr 95fr 100fr; gap: var(--s1); max-width: var(--wide); aspect-ratio: 480 / 590; margin-inline: auto; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-1 { grid-area: 1 / 1 / 3 / 2; }
.collage-2 { grid-area: 1 / 2 / 2 / 3; }
.collage-3 { grid-area: 2 / 2 / 4 / 3; }
.collage-4 { grid-area: 3 / 1 / 5 / 2; }
.collage-5 { grid-area: 4 / 2 / 5 / 3; }
.stats { position: relative; padding-block: var(--s7); background: #111; }
.stats::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .62); }
.stats-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1290px; margin-block: 0; list-style: none; }
.stats-list li { padding: 0 var(--s4); color: #e6e6e6; font-size: 14px; text-align: center; }
.stats-list li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.stats-list img { width: 170px; margin: 0 auto var(--s5); }
.stats-list p { margin: 0; }
.quote { padding-block: var(--s8); text-align: center; }
.quote p { margin: 0; }
.cards { display: grid; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.card a { display: block; height: 100%; background: var(--bg-deep); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-title { padding: var(--s4) var(--s3); color: var(--text-2); font-size: 14px; letter-spacing: 2px; text-align: center; text-transform: uppercase; line-height: 1.5; }
.card a:hover .card-title, .card a:focus-visible .card-title { color: var(--white); }
.cards--home { grid-template-columns: repeat(4, 1fr); padding: 0 var(--gutter) var(--s8); }

/* ---------- company ---------- */
.band { padding-block: var(--s8); }
.band--deep { background: var(--bg-deep); }
.prose-center { text-align: center; }
.prose-center p, .prose-wide p { max-width: var(--measure); margin-inline: auto; }
.prose-wide { text-align: center; }
.carousel { position: relative; margin-bottom: var(--s7); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel-slide img { width: 100%; }
.carousel-nav { position: absolute; inset: 50% var(--gutter) auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.carousel-btn { width: 48px; height: 48px; border: 0; background: rgba(33, 35, 38, .7); color: var(--white); font: 400 32px/1 var(--font); cursor: pointer; pointer-events: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.two-col p { margin: 0; }
.quote-band { position: relative; display: grid; place-items: center; min-height: 360px; padding: var(--s8) var(--gutter); overflow: hidden; text-align: center; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .55); }
.quote-band-text { position: relative; z-index: 2; max-width: 760px; color: var(--white); font-size: 22px; font-weight: 400; line-height: 1.6; }
.quote-band-text p { margin: 0; }

/* ---------- services ---------- */
.services { padding: var(--s5) var(--gutter) var(--s7); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin: 0; padding: 0; list-style: none; }
.tile a { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); transition: background .3s; }
.tile a:hover::after { background: rgba(0, 0, 0, .25); }
.tile h2 { position: relative; z-index: 1; padding: var(--s4); font-size: clamp(22px, 2.2vw, 28px); }

/* ---------- professional spaces, house, jobs: photo behind the title, fading into the page ---------- */
.space { position: relative; padding: var(--s10) var(--gutter) var(--s8); overflow: hidden; text-align: center; }
.space-bg { position: absolute; inset: 0 0 auto; width: 100%; height: 760px; object-fit: cover; }
.space::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 760px; background: linear-gradient(rgba(40, 42, 45, .6), rgba(40, 42, 45, .82) 45%, var(--bg)); }
.space-inner { position: relative; z-index: 2; max-width: var(--wide); margin-inline: auto; }
.space h1 { margin-bottom: var(--s7); font-size: clamp(30px, 3.2vw, 44px); }
.space-text { max-width: var(--measure); margin-inline: auto; color: var(--white); }
.space-block p { margin-bottom: var(--s5); }
.space-block.lead p { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.4; }
.space .form-wrap { max-width: 980px; margin: var(--s7) auto 0; }

/* ---------- contact ---------- */
.map iframe { display: block; width: 100%; height: 500px; border: 0; }
.contact-bar { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: var(--s3) var(--s7); margin: 0; padding: var(--s5) var(--gutter); background: var(--bg-deep); list-style: none; color: var(--text); font-size: 15px; }
.contact-bar li { display: flex; align-items: center; gap: var(--s2); }
.contact-bar svg { flex: none; width: 18px; height: 18px; fill: var(--text-2); }
.contact-bar a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.contact-bar a:hover { color: var(--white); }
.contact-form { padding-block: var(--s8); text-align: center; }
.contact-form .title { margin-bottom: var(--s4); }
.contact-form .form-wrap { max-width: 680px; margin: var(--s6) auto 0; text-align: left; }
.more { padding: var(--s7) var(--gutter) var(--s8); }
.more .title--rule { margin-bottom: var(--s6); }
.cards--more { grid-template-columns: repeat(5, 1fr); }

/* ---------- projects ---------- */
.projects { position: relative; padding: var(--s10) var(--gutter) var(--s8); overflow: hidden; }
.projects-bg { position: absolute; inset: 0 0 auto; width: 100%; height: 640px; object-fit: cover; }
.projects::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 640px; background: linear-gradient(rgba(40, 42, 45, .25), rgba(40, 42, 45, .7) 55%, var(--bg)); }
.projects-inner { position: relative; z-index: 2; max-width: var(--wide); margin-inline: auto; }
.projects h1 { margin-bottom: var(--s6); font-size: clamp(36px, 4vw, 55px); text-align: center; }
.cards--grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- project ---------- */
.project-head { padding-block: var(--s7) var(--s6); text-align: center; }
.project-head .title--rule { font-size: 17px; }
.project-subtitle { margin: var(--s4) 0 0; color: var(--white); letter-spacing: 2px; }
.credits { margin: var(--s4) 0 0; font-size: 15px; }
.credits span { display: block; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin: 0 auto var(--s7); list-style: none; }
.gallery .wide { grid-column: 1 / -1; }
.gallery a { display: block; }
.gallery .wide img { margin-inline: auto; }
.gallery .half img { width: 100%; }
.lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; }
.lb-btn { position: fixed; width: 48px; height: 48px; border: 0; background: rgba(33, 35, 38, .8); color: var(--white); font: 400 30px/1 var(--font); cursor: pointer; }
.lb-prev { left: var(--s4); top: 50%; } .lb-next { right: var(--s4); top: 50%; } .lb-close { right: var(--s4); top: var(--s4); }

/* ---------- native form (markup by the build; old look: dark fields, placeholders, wide dark button) ---------- */
.cms-form__field { margin-bottom: var(--s4); }
.cms-form__field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cms-form input:not([type="checkbox"]), .cms-form textarea, .cms-form select { width: 100%; min-height: 50px; padding: var(--s3) var(--s4); border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-deep); color: var(--white); font: 300 15px/1.5 var(--font); }
.cms-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; color: var(--text); }
.cms-form textarea { min-height: 120px; resize: vertical; }
.cms-form ::placeholder { color: var(--text); opacity: 1; }
.cms-form [data-invalid] :is(input, textarea, select) { border-color: var(--error); }
.cms-form__error { margin: var(--s1) 0 0; color: var(--error); font-size: 15px; text-align: left; }
.cms-form__submit { width: 100%; min-height: 50px; border: 1px solid var(--line); background: var(--bg-deep); color: var(--white); font: 400 15px/1 var(--font); letter-spacing: 3px; text-transform: uppercase; cursor: pointer; }
.cms-form__submit:hover { background: #1a1c1e; }
.cms-form__submit:disabled { opacity: .6; cursor: progress; }
.cms-form__status { margin: var(--s4) 0 0; color: var(--white); text-align: center; }
.cms-form__status:empty { margin: 0; }
.cms-form__status[data-state="error"] { color: var(--error); }
.cms-form-fallback { color: var(--white); }

/* ---------- search, 404 ---------- */
.search, .notfound { padding-block: var(--s8); }
.search .title, .notfound .title { margin-bottom: var(--s6); }
.search-form { max-width: var(--measure); margin-inline: auto; }
.search-form label { display: block; margin-bottom: var(--s2); }
.search-row { display: flex; gap: var(--s2); }
.search-row input { flex: 1; min-height: 50px; padding: var(--s2) var(--s4); border: 1px solid var(--line-2); background: var(--bg-deep); color: var(--white); font: inherit; }
.search-row button { min-height: 50px; padding: 0 var(--s5); border: 1px solid var(--line); background: var(--bg-deep); color: var(--white); font: inherit; cursor: pointer; }
.search-status, .search-results { max-width: var(--measure); margin-inline: auto; }
.search-status { margin-top: var(--s5); }
.search-results { padding-left: var(--s5); }
.search-results li { margin-bottom: var(--s5); }
.search-results a { color: var(--white); }
.notfound { text-align: center; }
.notfound-links a { display: inline-block; padding: var(--s2); color: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-foot); padding: var(--s7) var(--gutter); }
.footer-inner { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: var(--s6); align-items: center; max-width: 1230px; margin-inline: auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.footer-logo img { width: 200px; }
.footer-text { text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 0 var(--s2); padding: 0; list-style: none; color: #999; }
.footer-links li + li::before { content: "•"; padding-inline: var(--s2); }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.copyright { margin: 0; font-size: 13px; line-height: 2.2; }
.copyright a { text-decoration: none; }
.copyright a:hover { color: var(--white); }
.social { display: flex; justify-content: center; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--box); color: #a6a6a6; }
.social a:hover { color: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- smaller screens (old breakpoints 1024 / 800 / 640) ---------- */
@media (max-width: 1024px) {
  .cards--home, .cards--more { grid-template-columns: repeat(3, 1fr); }
  .stats-list li { padding: 0 var(--s4); }
}
@media (max-width: 800px) {
  :root { --gutter: 20px; }
  .logo img { width: 90px; }
  .header-tools { margin-top: var(--s1); }
  .two-col, .tiles { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: 1fr; gap: var(--s7); }
  .stats-list li + li { border-left: 0; }
  .cards--grid, .cards--home, .cards--more { grid-template-columns: repeat(2, 1fr); }
  .contact-bar { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero--home, .space, .projects { padding-top: var(--s9); }
  .map iframe { height: 360px; }
}
@media (max-width: 640px) {
  .cards--grid, .cards--home, .cards--more { grid-template-columns: 1fr; }
  .collage { display: block; aspect-ratio: auto; }
  .collage img { height: auto; margin-bottom: 2px; }
  .gallery { grid-template-columns: 1fr; }
  .contact-bar { grid-template-columns: 1fr; }
  .hero-logo img { width: 220px; }
  .hero-text { font-size: 17px; }
  :root { --gutter: 12px; }
  .quote-band-text { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
