/* ==========================================================================
   Υδραυλικά Γκιόκας – stylesheet
   All colour pairs meet WCAG 2.1 AA contrast (4.5:1 text, 3:1 UI/focus).
   ========================================================================== */

:root {
  --c-text: #1d2433;
  --c-muted: #4a5468;
  --c-bg: #ffffff;
  --c-surface: #f2f5f9;
  --c-line: #d6dde7;
  --c-brand: #0b3c6f;
  --c-brand-deep: #072a4f;
  --c-accent: #1e6b3d;
  --c-link: #0a4d96;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #d4e1f0;
  --c-eyebrow-on-dark: #a8e6bf;
  --c-focus: #0b3c6f;
  --c-focus-on-dark: #ffcf4a;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 10px 28px rgb(16 24 40 / 0.08);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  color-scheme: light;
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  color: var(--c-brand-deep);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  color: var(--c-brand-deep);
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--c-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

ul {
  margin: 0;
  padding: 0;
}

/* Lists used for layout keep their list semantics for screen readers. */
.nav-list,
.actions,
.works-grid {
  list-style: none;
}

address {
  font-style: normal;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- accessibility helpers */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--c-brand-deep);
  color: var(--c-on-dark);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.skip-link:focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-focus-on-dark);
}

/* The skip-link target receives focus programmatically; no ring needed. */
main:focus {
  outline: none;
}

/* ---------------------------------------------------------------- header */

.espa-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
}

.espa-link {
  display: block;
  max-width: 64rem;
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
}

.espa-link img {
  width: 100%;
}

/* The banner link can span the whole viewport, so draw its ring inside. */
.espa-link:focus-visible {
  outline-offset: -4px;
  border-radius: 0.5rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--c-brand-deep);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover .brand-name {
  text-decoration: underline;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
  background: var(--c-brand);
  color: var(--c-on-dark);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--c-surface);
  text-decoration: underline;
}

.lang-list {
  padding: 0.25rem;
  border: 1px solid var(--c-line);
  border-radius: 0.75rem;
}

.lang-list a {
  font-weight: 500;
}

.lang-list a[aria-current="page"] {
  background: var(--c-brand);
  color: var(--c-on-dark);
  font-weight: 700;
}

@media (max-width: 47.99rem) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav,
  .lang-nav {
    width: 100%;
  }

  .main-nav .nav-list a {
    padding-inline: 0.65rem;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: var(--c-brand);
  color: var(--c-on-dark);
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
  border-top: 6px solid var(--c-accent);
}

/* Centred column: title and text, then the large location photo, then the buttons. */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--c-eyebrow-on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-light {
  background: #ffffff;
  color: var(--c-brand-deep);
}

.btn-light:hover {
  background: #e3ecf7;
  text-decoration: underline;
}

.btn-outline-light {
  border-color: #ffffff;
  color: var(--c-on-dark);
}

.btn-outline-light:hover {
  background: var(--c-brand-deep);
  text-decoration: underline;
}

.hero-media {
  width: 100%;
  max-width: 60rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.28);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section-alt {
  background: var(--c-surface);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--c-muted);
  font-size: 1.125rem;
}

/* works */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-body h3 {
  margin-bottom: 0.2rem;
}

.work-meta {
  margin-bottom: 0.6rem;
  color: var(--c-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.work-body p:last-child {
  margin-bottom: 0;
  color: var(--c-muted);
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 1.25rem;
}

.card p {
  margin: 1.25rem 0 0;
}

.info-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.info-list dt {
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 30rem) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .info-list dd + dt {
    margin-top: 0.75rem;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  background: var(--c-brand-deep);
  color: var(--c-on-dark-muted);
  font-size: 0.975rem;
}

.site-footer h2 {
  color: var(--c-on-dark);
  font-size: 1.375rem;
}

.site-footer a {
  color: var(--c-on-dark);
}

.site-footer .info-list {
  margin-bottom: 1.25rem;
}

.site-footer dt {
  color: var(--c-on-dark);
}

.funding {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
}

.copyright {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- forced colours / print */

@media (forced-colors: active) {
  .btn,
  .lang-list a[aria-current="page"] {
    border: 2px solid ButtonText;
  }
}

@media print {
  .skip-link,
  .main-nav,
  .lang-nav {
    display: none;
  }

  .hero,
  .site-footer {
    background: none;
    color: #000000;
  }
}
