/*
Theme Name: DEYAA Professional
Theme URI: https://www.deyaa.gr/
Author: DEYAA Apokoronas
Description: A fast, accessible, service-first theme for the Municipal Water and Sewerage Company of Apokoronas.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: deyaa-professional
*/

:root {
  --navy: #092f52;
  --blue: #086da8;
  --aqua: #0aa6b7;
  --sky: #dff5fb;
  --ink: #17324a;
  --muted: #60758a;
  --line: #dbe7ef;
  --paper: #fff;
  --soft: #f4f8fb;
  --warning: #f3a712;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(9, 47, 82, .12);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
#services, #citizen-guide, #announcements, #about, #president, #english, #contact { scroll-margin-top: 122px; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; left: 20px; top: -80px; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 18px; }
.eyebrow { margin: 0 0 10px; color: var(--aqua); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); letter-spacing: -.04em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.15rem; }
.section { padding: clamp(70px, 8vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.section-heading p:last-child { max-width: 560px; margin: 0; color: var(--muted); }

.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar-inner { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar strong { color: #ffd27a; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(9,47,82,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; min-width: 260px; }
.brand img { width: 150px; height: 70px; object-fit: contain; object-position: left center; }
.brand-text { display: none; font-size: .75rem; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 750; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--aqua); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--blue); color: #fff !important; box-shadow: 0 10px 24px rgba(8,109,168,.22); }
.nav-toggle { display: none; border: 0; border-radius: 12px; background: var(--soft); color: var(--navy); width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }
.language-switcher { position: relative; z-index: 12; flex: 0 0 auto; }
.language-switcher summary { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); box-shadow: 0 7px 18px rgba(4,36,59,.06); cursor: pointer; list-style: none; font-size: .79rem; font-weight: 850; white-space: nowrap; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher summary:focus-visible, .language-switcher[open] summary { border-color: #80cdd4; background: var(--soft); }
.language-flag { width: 24px; height: 16px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(4,36,59,.17); border-radius: 3px; box-shadow: 0 1px 3px rgba(4,36,59,.12); }
.language-chevron { color: var(--aqua); font-size: .8rem; transition: transform .18s ease; }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 20px 45px rgba(4,36,59,.18); }
.language-menu a { min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.language-menu a:hover, .language-menu a:focus-visible { background: var(--soft); }
.language-menu strong, .language-menu small { display: block; }
.language-menu strong { font-size: .86rem; }
.language-menu small { margin-top: 1px; color: var(--muted); font-size: .66rem; font-weight: 650; }
.editor-login { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; flex: 0 0 auto; border: 1px solid #c8d9e1; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(4,36,59,.14); text-decoration: none; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.editor-login:hover, .editor-login:focus-visible { background: var(--blue); color: #fff; }
.editor-login svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; background: #0b4068; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,34,60,.94) 0%, rgba(5,54,89,.78) 43%, rgba(5,54,89,.12) 76%), url("https://www.deyaa.gr/wp-content/uploads/2025/11/maxresdefault.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; right: -7vw; bottom: -180px; width: 560px; height: 560px; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(10,166,183,.08), 0 0 0 140px rgba(255,255,255,.04); }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 94px 0 116px; color: #fff; }
.hero .eyebrow { color: #7de7ef; }
.hero h1 { margin: 0 0 22px; color: #fff; }
.hero-lead { max-width: 660px; margin: 0 0 34px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-service-note { max-width: 640px; margin: 20px 0 0; color: rgba(255,255,255,.78); font-size: .92rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 14px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua); color: #fff; box-shadow: 0 15px 30px rgba(10,166,183,.27); }
.button-light { border: 1px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); }
.button-outline { border: 1px solid var(--blue); color: var(--blue); }
.service-ribbon { position: relative; z-index: 3; margin-top: -56px; }
.language-notice { margin: 22px 0 0; padding: 16px 20px; border: 1px solid #f5cc75; border-radius: 14px; background: #fff5d9; color: #6f4d00; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.service-card { position: relative; padding: 31px 24px; color: var(--navy); text-decoration: none; border-right: 1px solid var(--line); }
.service-card:last-child { border-right: 0; }
.service-card:hover { background: var(--sky); }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--sky); color: var(--blue); font-size: 1.55rem; }
.service-card span { display: block; margin-top: 7px; color: var(--muted); font-size: .9rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgba(9,47,82,.06); }
.news-date { color: var(--aqua); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 18px 0 14px; font-size: 1.2rem; }
.news-card p { margin: 0 0 22px; color: var(--muted); }
.news-link { margin-top: auto; font-weight: 800; text-decoration: none; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 7vw, 88px); align-items: center; }
.portrait-wrap { position: relative; }
.portrait-wrap::before { content: ""; position: absolute; inset: 30px -24px -24px 30px; border-radius: 28px; background: var(--sky); }
.portrait-wrap img { position: relative; width: 100%; max-height: 560px; object-fit: cover; object-position: top; border-radius: 28px; box-shadow: var(--shadow); }
.quote { margin: 24px 0; padding-left: 24px; border-left: 4px solid var(--aqua); font-size: 1.12rem; color: var(--muted); }
.signature { color: var(--navy); font-weight: 800; }

.contact-band { background: linear-gradient(135deg, var(--navy), #075f8f); color: #fff; }
.contact-band h2, .contact-band h3 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.contact-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-item { padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.07); }
.contact-item a { color: #fff; text-decoration: none; font-weight: 750; }
.contact-item small { display: block; color: rgba(255,255,255,.68); }

.page-hero { padding: 76px 0; background: linear-gradient(135deg, var(--navy), #087ca6); color: #fff; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-content { padding: 72px 0 100px; }
.entry-content { max-width: 920px; font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content .wp-block-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.entry-content .wp-block-file > a:first-child {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.entry-content .wp-block-file > a:first-child::before {
  content: "PDF · ";
  color: var(--aqua);
}
.entry-content .wp-block-file__button { display: none; }
.document-list { display: grid; gap: 14px; margin-top: 34px; }
.document-list a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); text-decoration: none; font-weight: 700; }
.post-list { display: grid; gap: 18px; }
.post-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 26px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.post-row:hover { border-color: var(--aqua); background: var(--soft); }
.post-row time { color: var(--aqua); font-weight: 800; }
.post-row h2 { font-size: 1.15rem; letter-spacing: 0; }

.site-footer { background: #071f35; color: rgba(255,255,255,.76); padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 48px; }
.site-footer h3 { color: #fff; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 24px; font-size: .86rem; }
.footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; }
.footer-bottom > :last-child { justify-self: end; text-align: right; }
.minos-credit { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78) !important; text-decoration: none; white-space: nowrap; }
.minos-credit:hover, .minos-credit:focus-visible { color: #fff !important; }
.minos-credit img { width: 22px; height: 15px; display: block; flex: 0 0 auto; object-fit: contain; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 92px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .service-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .topbar-inner { min-height: 54px; align-items: center; font-size: .78rem; }
  .topbar .topbar-secondary { display: none; }
  .header-inner { min-height: 76px; }
  .brand { min-width: 0; }
  .brand img { width: 126px; height: 58px; }
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(180deg, rgba(4,34,60,.65), rgba(4,34,60,.96)), url("https://www.deyaa.gr/wp-content/uploads/2025/11/maxresdefault.jpg") center/cover no-repeat; }
  .hero-content { padding: 78px 0 118px; }
  .service-grid, .news-grid, .contact-items, .footer-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 10px; }
  .footer-bottom > :last-child { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 640px) {
  .hero::after { display: none; }
  .portrait-wrap::before { inset: 18px 0 -18px 18px; }
}

:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }

/* Version 2 — richer civic-service visual system */
:root {
  --navy: #073451;
  --navy-deep: #04243b;
  --blue: #087eaf;
  --aqua: #12aeba;
  --aqua-bright: #39d1d5;
  --sky: #e5f6f8;
  --ink: #14344b;
  --muted: #5d7486;
  --line: #d8e5ea;
  --soft: #f2f7f9;
  --warning: #f3a712;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(4, 36, 59, .14);
  --content: 1240px;
}

body { letter-spacing: -.008em; }
.container { width: min(calc(100% - 48px), var(--content)); }
.section { padding: clamp(82px, 9vw, 132px) 0; }
.eyebrow { color: #078f9c; font-size: .73rem; letter-spacing: .17em; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4vw, 3.65rem); }

.topbar { position: relative; z-index: 1100; background: var(--navy-deep); font-size: .82rem; letter-spacing: .01em; }
.topbar-inner { min-height: 38px; }
.topbar strong { color: #ffd17a; }
.site-header { top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(7,52,81,.09); box-shadow: 0 8px 32px rgba(4,36,59,.05); }
.header-inner { min-height: 96px; gap: 26px; }
.brand { min-width: 300px; gap: 17px; }
.brand img { width: 130px; height: 66px; }
.brand-copy { display: block; padding-left: 17px; border-left: 1px solid var(--line); color: #607789; font-size: .66rem; font-weight: 800; line-height: 1.45; letter-spacing: .075em; text-transform: uppercase; }
.main-nav { gap: 4px; }
.main-nav > a, .nav-group > a { display: flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--navy); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a:focus-visible, .nav-group > a:hover, .nav-group > a:focus-visible { color: var(--blue); background: var(--soft); }
.nav-group { position: relative; }
.nav-group > a { text-decoration: none; }
.nav-group > a span { color: var(--aqua); font-size: .8rem; }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: -16px; width: 300px; display: grid; padding: 12px; border: 1px solid rgba(7,52,81,.1); border-radius: 18px; background: rgba(255,255,255,.99); box-shadow: 0 24px 60px rgba(4,36,59,.18); opacity: 0; visibility: hidden; transform: translateY(-7px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 12px 13px; border-radius: 11px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 750; line-height: 1.35; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--soft); color: var(--blue); }
.nav-dropdown strong, .nav-dropdown small { display: block; }
.nav-dropdown small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.nav-cta { min-height: 48px !important; margin-left: 8px; padding: 0 17px !important; border-radius: 13px !important; background: linear-gradient(135deg, var(--blue), var(--aqua)) !important; box-shadow: 0 12px 28px rgba(8,126,175,.25); color: #fff !important; }
.nav-cta b { font-size: 1rem; }

.hero { min-height: 735px; align-items: stretch; background: #063855; }
.hero::before { background: linear-gradient(90deg, rgba(3,31,51,.97) 0%, rgba(4,50,77,.84) 43%, rgba(4,50,77,.24) 77%), linear-gradient(0deg, rgba(3,31,51,.42), transparent 45%), url("https://www.deyaa.gr/wp-content/uploads/2025/11/maxresdefault.jpg") center/cover no-repeat; transform: scale(1.015); }
.hero::after { right: -120px; bottom: -220px; width: 720px; height: 720px; border-color: rgba(255,255,255,.13); box-shadow: 0 0 0 82px rgba(18,174,186,.08), 0 0 0 164px rgba(255,255,255,.025); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(310px, .62fr); gap: clamp(50px, 8vw, 112px); align-items: center; padding: 104px 0 150px; }
.hero-content { max-width: 760px; padding: 0; }
.location-label { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 30px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.location-label span { color: var(--aqua-bright); font-size: .65rem; }
.hero h1 { margin: 0 0 24px; font-size: clamp(3.2rem, 6vw, 6.3rem); line-height: .96; letter-spacing: -.058em; }
.hero-lead { max-width: 720px; margin-bottom: 36px; color: rgba(255,255,255,.84); font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.62; }
.hero-service-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: rgba(255,255,255,.72); }
.hero-service-note::before { content: "i"; flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; font-size: .7rem; font-weight: 900; }
.hero-mark { position: absolute; z-index: 1; right: 3vw; bottom: -38px; color: rgba(255,255,255,.045); font-size: clamp(8rem, 19vw, 20rem); font-weight: 900; line-height: 1; letter-spacing: -.09em; pointer-events: none; }
.hero-assist { padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: rgba(4,36,59,.54); color: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.assist-kicker { margin: 0 0 7px; color: var(--aqua-bright); font-size: .73rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-assist h2 { margin: 0 0 24px; color: #fff; font-size: 1.65rem; letter-spacing: -.03em; }
.assist-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; margin-top: 11px; padding: 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.07); color: #fff; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.assist-row:hover { background: rgba(255,255,255,.13); transform: translateX(3px); }
.assist-emergency { border-color: rgba(255,204,102,.36); background: rgba(255,187,51,.11); }
.assist-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(57,209,213,.14); color: var(--aqua-bright); font-size: 1.15rem; font-weight: 900; }
.assist-icon svg, .assist-hours > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.assist-row small, .assist-hours small { display: block; color: rgba(255,255,255,.62); font-size: .72rem; }
.assist-row strong, .assist-hours strong { display: block; margin-top: 2px; color: #fff; font-size: .92rem; }
.assist-row b { color: var(--aqua-bright); }
.assist-hours { display: grid; grid-template-columns: 22px 1fr; gap: 11px; margin-top: 19px; padding: 18px 5px 3px; border-top: 1px solid rgba(255,255,255,.13); }

.button { min-height: 56px; border-radius: 13px; }
.button-primary { background: linear-gradient(135deg, var(--aqua), #20c4c6); box-shadow: 0 17px 34px rgba(18,174,186,.3); }
.button-white { background: #fff; color: var(--navy); box-shadow: 0 16px 34px rgba(4,36,59,.16); }

.service-deck { position: relative; z-index: 5; margin-top: -78px; padding-bottom: 32px; }
.service-shell { padding: clamp(30px, 4vw, 50px); border: 1px solid rgba(7,52,81,.09); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.service-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.service-heading h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
.service-language-badge { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #ebd7a8; border-radius: 999px; background: #fff9e9; color: #71540b; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.service-language-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(243,167,18,.13); }
.service-grid { grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; box-shadow: none; overflow: hidden; }
.service-card { min-height: 284px; padding: 30px 25px 27px; border-right: 1px solid var(--line); background: #fff; transition: background .2s ease, transform .2s ease; }
.service-card:hover { z-index: 1; background: linear-gradient(180deg, #edfafa, #fff); transform: translateY(-5px); box-shadow: 0 20px 45px rgba(4,36,59,.1); }
.service-card .service-number { position: absolute; top: 21px; right: 21px; margin: 0; color: #adc0ca; font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.service-icon { width: 50px; height: 50px; margin-bottom: 31px; border-radius: 15px; background: linear-gradient(135deg, var(--sky), #f1fbfc); color: var(--blue); font-size: 1.3rem; }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { max-width: 190px; font-size: 1.12rem; }
.service-card > span:not(.service-icon):not(.service-number) { margin-top: 12px; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.service-card > b { position: absolute; right: 25px; bottom: 24px; color: var(--aqua); font-size: 1.1rem; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-radius: 17px; background: var(--soft); }
.trust-strip > div { display: flex; align-items: center; gap: 16px; padding: 19px 24px; border-right: 1px solid var(--line); }
.trust-strip > div:last-child { border-right: 0; }
.trust-strip strong { color: var(--navy); font-size: 1.45rem; letter-spacing: -.04em; }
.trust-strip span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.service-shell > .language-notice { margin-bottom: 0; font-size: .85rem; }

.guide-section { padding-top: 84px; background: linear-gradient(180deg, #f3f8fa 0%, #eaf3f6 100%); }
.section-heading-centered { align-items: center; }
.section-heading-centered > p { max-width: 440px !important; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-card { position: relative; min-height: 270px; padding: 34px; overflow: hidden; border: 1px solid rgba(7,52,81,.1); border-radius: 24px; background: rgba(255,255,255,.92); color: var(--ink); text-decoration: none; box-shadow: 0 13px 35px rgba(4,36,59,.05); transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(4,36,59,.1); }
.guide-card::after { content: ""; position: absolute; right: -55px; bottom: -75px; width: 170px; height: 170px; border: 1px solid rgba(18,174,186,.17); border-radius: 50%; box-shadow: 0 0 0 24px rgba(18,174,186,.035); }
.guide-card > span { color: var(--aqua); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.guide-card h3 { max-width: 420px; margin: 19px 0 13px; font-size: 1.55rem; }
.guide-card p { max-width: 450px; color: var(--muted); }
.guide-card b { position: absolute; z-index: 1; left: 34px; bottom: 30px; color: var(--blue); font-size: .86rem; }
.guide-card:first-child { background: linear-gradient(135deg, var(--navy-deep), #075c7d); color: #fff; }
.guide-card:first-child h3, .guide-card:first-child b { color: #fff; }
.guide-card:first-child p { color: rgba(255,255,255,.7); }

.section-soft { background: #fff; }
.news-grid { grid-template-columns: 1.16fr 1fr 1fr; gap: 20px; }
.news-card { min-height: 360px; padding: 30px; border-radius: 22px; box-shadow: 0 16px 42px rgba(4,36,59,.07); transition: transform .2s ease, border-color .2s ease; }
.news-card:hover { transform: translateY(-4px); border-color: #a9dce0; }
.news-meta { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.news-meta > span { color: var(--aqua); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-date { color: #78909f; font-size: .68rem; }
.news-card h3 { margin: 28px 0 18px; font-size: 1.18rem; line-height: 1.3; }
.news-card p { font-size: .9rem; }
.news-link { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); color: var(--blue); }

.institutional-section { overflow: hidden; background: #eef5f7; }
.institutional-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 76px); align-items: center; }
.institutional-lead { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.institutional-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.institutional-values > div { padding: 21px 17px; border: 1px solid rgba(7,52,81,.1); border-radius: 17px; background: rgba(255,255,255,.72); }
.institutional-values span, .institutional-values strong, .institutional-values small { display: block; }
.institutional-values span { margin-bottom: 19px; color: var(--aqua); font-size: .68rem; font-weight: 900; }
.institutional-values strong { color: var(--navy); }
.institutional-values small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.president-card { overflow: hidden; border-radius: 28px; background: var(--navy-deep); box-shadow: var(--shadow); }
.president-card .portrait-wrap::before { display: none; }
.president-card .portrait-wrap img { width: 100%; height: 365px; max-height: none; border-radius: 0; box-shadow: none; object-position: center 18%; }
.president-card .portrait-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(transparent, rgba(4,36,59,.78)); }
.president-card .portrait-wrap > span { position: absolute; z-index: 2; left: 27px; bottom: 22px; padding: 7px 11px; border-radius: 999px; background: var(--aqua); color: #fff; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.president-copy { padding: 30px 32px 33px; color: #fff; }
.president-copy .quote { margin: 0 0 24px; border-color: var(--aqua-bright); color: rgba(255,255,255,.78); font-size: .98rem; }
.president-copy .signature { margin-bottom: 0; color: #fff; }
.president-copy .signature small { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-weight: 600; }

.language-banner { padding: 65px 0; background: linear-gradient(112deg, #087ca0, #0ba4aa 55%, #21b8b4); color: #fff; }
.language-banner-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; align-items: center; }
.language-banner .eyebrow { color: #baf8f5; }
.language-banner h2 { color: #fff; font-size: clamp(2rem, 3.5vw, 3.15rem); }
.language-banner p { max-width: 690px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.language-banner-inner > div:last-child { display: grid; gap: 13px; justify-items: start; }
.language-banner small { color: rgba(255,255,255,.72); font-size: .75rem; }

.contact-band { background: radial-gradient(circle at 82% 0%, rgba(18,174,186,.22), transparent 36%), linear-gradient(135deg, var(--navy-deep), #075578); }
.contact-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 7vw, 88px); }
.contact-band p { color: rgba(255,255,255,.7); }
.contact-map-link { display: inline-flex; gap: 8px; margin-top: 12px; color: #fff; font-weight: 800; text-decoration: none; }
.contact-items { gap: 12px; }
.contact-item { padding: 20px 21px; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.075); }
.contact-item-wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-color: rgba(255,201,99,.33); background: rgba(255,185,50,.12); }
.contact-item-wide small { color: #ffd98f; }
.contact-item-wide a { font-size: 1.08rem; }

.site-footer { padding-top: 72px; background: #031c2e; }
.footer-grid { grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: 44px; }
.footer-brand img { width: 155px; height: 76px; padding: 9px 12px; border-radius: 13px; background: #fff; object-fit: contain; }
.footer-brand p { max-width: 300px; }
.site-footer h3 { font-size: .95rem; }
.site-footer ul { gap: 11px; font-size: .9rem; }

@media (max-width: 1600px) {
  .header-inner { gap: 14px; }
  .brand { min-width: 180px; }
  .brand-copy { display: none; }
  .main-nav > a, .nav-group > a { padding-inline: 9px; font-size: .82rem; }
  .nav-cta { margin-left: 2px; padding-inline: 13px !important; }
  .editor-login { width: 46px; padding: 0; }
  .editor-login-label { display: none; }
}

@media (max-width: 1040px) {
  .brand { min-width: 250px; }
  .main-nav { z-index: 11; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; left: 24px; right: 24px; top: 90px; display: none; max-height: calc(100vh - 130px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-group > a { min-height: 48px; padding: 0 14px; }
  .nav-group { display: grid; }
  .nav-dropdown { position: static; width: auto; display: grid; margin: 0 8px 8px; padding: 7px; border: 0; border-left: 2px solid var(--sky); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown a { padding: 10px 13px; }
  .nav-cta { margin: 6px 0 0 !important; }
  .hero-layout { grid-template-columns: 1fr .62fr; gap: 48px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; padding-top: 86px; }
  .hero-assist { max-width: 620px; }
  .service-heading, .section-heading-centered { align-items: flex-start; flex-direction: column; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .institutional-grid, .language-banner-inner, .contact-grid { grid-template-columns: 1fr; }
  .institutional-values { grid-template-columns: repeat(3, 1fr); }
  .language-banner-inner { gap: 28px; }
}

@media (max-width: 640px) {
  #services, #citizen-guide, #announcements, #about, #president, #english, #contact { scroll-margin-top: 96px; }
  .container { width: min(calc(100% - 30px), var(--content)); }
  .header-inner { min-height: 78px; gap: 8px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand img { width: 108px; height: 54px; }
  .language-switcher summary { min-height: 46px; padding-inline: 8px; }
  .language-menu { right: 0; width: min(240px, calc(100vw - 30px)); }
  .editor-login { width: 46px; }
  .main-nav { left: 15px; right: 15px; top: 74px; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(3,31,51,.72), rgba(3,31,51,.97) 70%), url("https://www.deyaa.gr/wp-content/uploads/2025/11/maxresdefault.jpg") 62% center/cover no-repeat; }
  .hero-layout { gap: 38px; padding: 72px 0 126px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.55rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-assist { padding: 22px; }
  .service-deck { margin-top: -58px; }
  .service-shell { padding: 24px 18px; border-radius: 24px; }
  .service-language-badge { white-space: normal; }
  .service-grid, .guide-grid, .news-grid, .institutional-values, .contact-items, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .guide-card { min-height: 290px; padding: 28px; }
  .guide-card b { left: 28px; }
  .news-card { min-height: 320px; }
  .contact-item-wide { grid-column: auto; display: block; }
  .president-card .portrait-wrap img { height: 320px; }
  .footer-grid { gap: 34px; }
}
