/* ==========================================================================
   bastoulis accounting — bold uppercase, navy & pale blue-grey,
   fixed photo band and reveal-on-scroll
   (earlier looks: site-versions/*.zip)
   ========================================================================== */

:root {
  --bg: #eef2f7;           /* page background, pale blue-grey */
  --paper: #ffffff;        /* cards, inputs */
  --ink: #0f1e33;          /* logo navy: text, dark sections, buttons */
  --ink-soft: #1b2d48;     /* hover on dark */
  --muted: #45536a;        /* secondary text on light, 7:1 */
  --on-dark: #eef2f7;      /* text on navy */
  --on-dark-muted: #b9c5d6;/* secondary text on navy, 8:1 */
  --rule: #0f1e33;         /* card borders */
  --dash: rgba(15, 30, 51, 0.45);
  --dash-dark: rgba(238, 242, 247, 0.4);
  --focus: #3d7bd9;

  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Montserrat", var(--font);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.5rem, 1rem + 2.6vw, 2.9rem);
  --step-4: clamp(1.85rem, 1.1rem + 3.8vw, 4.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  --container: 75rem;
  --header-h: 5.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-padding-top: calc(var(--header-h) + 1rem); }

/* Desktop: the whole design at 80% (like browser zoom 80%). Everything is in rem, so this one value scales text, spacing and boxes. */
@media (min-width: 1024px) { html { font-size: 80%; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

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

/* Bold uppercase headings (Greek accents drop automatically with lang="el") */
h1, h2, h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.08;
  text-wrap: balance;
}
h1, h2 { font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em; overflow-wrap: break-word; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }

p { margin: 0 0 var(--space-2); }
strong { font-weight: 700; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
}
.skip-link:focus { top: 1rem; }

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 38em;
}

.muted { color: var(--muted); }

/* ---------- Buttons: square, navy ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { background: var(--ink-soft); color: var(--on-dark); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn[disabled] { opacity: 0.5; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 242, 247, 0.96);
  border-bottom: 1px solid rgba(15, 30, 51, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 2.5rem; height: auto; }
.site-header .brand img { width: 3.1rem; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mark);
  line-height: 1.05;
}
.brand__name strong { font-size: 1.15rem; font-weight: 700; }
.brand__name span { font-size: 0.85rem; font-weight: 500; }
.brand:hover { color: var(--ink); }
/* Header only: a short fading rule, then the Greek office name */
.brand__name .brand__sub {
  display: flex;
  flex-direction: column;
  margin-top: 0.3rem;
  font-family: var(--font);
  font-size: max(0.68rem, 10px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}
.brand__sub::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  margin-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--ink), rgba(15, 30, 51, 0));
}

/* Uppercase, letter-spaced navigation */
.nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { box-shadow: inset 0 -1px 0 var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.nav .btn {
  min-height: 0;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: var(--on-dark);
}
.nav .btn:hover,
.nav .btn[aria-current="page"] { box-shadow: none; color: var(--on-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
  }
  .nav.is-open { display: block; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2.5rem, var(--container));
    margin: var(--space-2) auto var(--space-3);
  }
  .nav li + li { border-top: 1px dashed var(--dash); }
  .nav a { padding: 0.95rem 0; font-size: 0.95rem; }
  .nav a:hover,
  .nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; }
  .nav .btn { margin-top: var(--space-2); padding: 0.9rem 1rem; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding-block: var(--space-6); background: var(--bg); }
.section--tint { background: var(--bg); }
.section--navy { background: var(--ink); color: var(--on-dark); }
.section--navy h2,
.section--navy h3 { color: var(--on-dark); }
.section--navy .lead,
.section--navy .muted { color: var(--on-dark-muted); }
.section--navy a { color: var(--on-dark); }
/* Dark band directly above the dark footer: trim the doubled spacing and
   separate the two with a dashed line instead */
.section--before-footer { padding-bottom: var(--space-5); }
.section--before-footer > .container { padding-bottom: var(--space-5); border-bottom: 1px dashed var(--dash-dark); }
main:has(> .section--before-footer:last-child) + .site-footer { padding-top: var(--space-5); }

.section-head { max-width: 48rem; margin-bottom: var(--space-5); }
.section-head p:last-child { margin-bottom: 0; }

.page-intro { padding-block: var(--space-6) var(--space-4); }
.page-intro h1 { max-width: 16em; }
.page-intro h1.title-sm { font-size: clamp(1.7rem, 1.1rem + 2.9vw, 3.6rem); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: var(--space-6) var(--space-5); background: var(--bg); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18.75rem, 1fr);
  gap: var(--space-5);
  align-items: end;
}

.hero h1 { max-width: 14em; font-size: clamp(1.6rem, 0.9rem + 3.2vw, 3.2rem); }
.hero__line { display: block; }
.hero .lead { margin-bottom: var(--space-4); }

/* Contact card beside the hero text */
.contact-card {
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.contact-card p { margin: 0; }
.contact-card__title {
  margin-bottom: 0.6rem !important;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-card__list {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-3) 0;
  padding: var(--space-3) 0 0;
  border-top: 1px dashed var(--dash);
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-card__list li { display: flex; gap: 0.7rem; }
.contact-card__list .icon { margin-top: 0.1rem; }
.contact-card__list a { color: var(--ink); text-decoration: none; }
.contact-card__list a:hover { text-decoration: underline; }
.contact-card__list a.contact-card__map { color: inherit; }
.contact-card__btn { width: 100%; }

.contact-card__phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contact-card__phone:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero { padding-block: var(--space-5); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
  .contact-card { max-width: 440px; }
}

/* ---------- Photo band: fixed image revealed through a clipped window ---------- */

/* Hero and band share one window: the fixed photo shows softly behind the hero
   (under a pale veil) and fully in the band below it */
.hero-stage {
  position: relative;
  clip-path: inset(0);
  isolation: isolate;
}
.hero-stage .hero {
  background: linear-gradient(90deg,
    rgba(238, 242, 247, 0.93) 0%,
    rgba(238, 242, 247, 0.86) 50%,
    rgba(238, 242, 247, 0.74) 100%);
}
.photo-band {
  position: relative;
  height: min(78vh, 45rem);
}
@media (max-width: 900px) {
  .hero-stage .hero { background: rgba(238, 242, 247, 0.88); }
}
.photo-band__img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

@media (max-width: 700px) {
  .photo-band { height: 52vh; }
}

/* ---------- Services (home): framed boxes ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--rule);
  text-align: center;
  background: transparent;
  transition: background-color 0.2s var(--ease);
}
.service:hover { background: var(--paper); }
.service h3 {
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed var(--dash);
  font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.service p { margin: var(--space-2) 0 0; color: var(--muted); font-size: 0.95rem; }
.service a { color: inherit; text-decoration: none; }
.service a:hover { text-decoration: underline; }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: minmax(0, 1fr); } .service { padding: var(--space-4) var(--space-2); } }

.icon {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--ink);
  color: var(--on-dark);
}

/* Service details page */
.service-detail {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px dashed var(--dash);
}
.service-detail:first-child { border-top: 0; }
.service-detail h2 { font-size: clamp(1.1rem, 0.75rem + 1.8vw, 2.1rem); }
.service-detail ul { margin: 0 0 var(--space-2); padding-left: 1.2rem; }
.service-detail li { margin-bottom: 0.35rem; }
.service-detail li::marker { color: var(--ink); }
.service-detail__body { max-width: 48rem; }
.service-detail--featured {
  margin-block: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
}
.service-detail--featured h2 { color: var(--on-dark); }
.service-detail--featured li::marker { color: var(--on-dark); }
.service-detail--featured .icon-badge { background: var(--on-dark); color: var(--ink); }
.service-detail--featured + .service-detail { border-top: 0; }
.service-detail--featured .btn { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.service-detail--featured .btn:hover { background: #ffffff; }
.service-detail--featured .btn--ghost { background: transparent; color: var(--on-dark); }
.service-detail--featured .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

.service-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.service-index a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}
.service-index a:hover { background: var(--ink); color: var(--on-dark); }

@media (max-width: 600px) {
  .service-detail { grid-template-columns: 1fr; gap: var(--space-2); }
  .service-detail--featured { padding: var(--space-4) var(--space-3); }
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h1 { font-size: clamp(1.55rem, 0.9rem + 2.6vw, 3.2rem); }

/* Photo that drifts gently inside its frame while scrolling (see main.js) */
.parallax-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 40rem;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.split .parallax-frame .parallax-img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 92% 50%;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.02);
  will-change: transform;
}
/* navy tint so the black & white photo sits in the site's palette */
.parallax-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 30, 51, 0.18) 0%, rgba(15, 30, 51, 0.38) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
@media (max-width: 900px) {
  .parallax-frame { aspect-ratio: 4 / 3; }
}

/* "Το γραφείο" intro: landscape photo softly behind the text, drifting on scroll */
.intro-photo {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-6);
  background: var(--bg);
  isolation: isolate;
}
.intro-photo__bg.parallax-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  aspect-ratio: auto;
  max-height: none;
  background: var(--bg);
}
.intro-photo__bg .parallax-img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 80% 45%;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
/* pale veil: strong behind the text on the left, lighter on the right where the figure is */
.intro-photo__bg.parallax-frame::after {
  background: linear-gradient(90deg,
    rgba(238, 242, 247, 0.95) 0%,
    rgba(238, 242, 247, 0.9) 45%,
    rgba(238, 242, 247, 0.62) 75%,
    rgba(238, 242, 247, 0.5) 100%);
  mix-blend-mode: normal;
}
.intro-photo__content > div { max-width: 44rem; }
.intro-photo--collab .intro-photo__bg .parallax-img { object-position: 75% 50%; }
.intro-photo--collab .checklist { border-top-color: rgba(15, 30, 51, 0.35); }
.intro-photo--services { padding-block: var(--space-6) var(--space-5); }
/* "Το γραφείο" intro text, a little larger for easier reading */
.intro-photo--office .intro-photo__content > div { max-width: 48rem; }
.intro-photo--office .lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.intro-photo--office .intro-photo__content p:not(.lead) { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); line-height: 1.7; }
/* Home "Διοικητική Πληροφόρηση": dark dashboard photo, softened and cooled to the site's palette */
.intro-photo--reporting .intro-photo__bg .parallax-img {
  object-position: 70% 40%;
  filter: saturate(0.75) brightness(1.15) contrast(0.9);
}
.intro-photo--reporting .checklist { border-top-color: rgba(15, 30, 51, 0.35); }
.intro-photo--services .intro-photo__bg .parallax-img { object-position: 72% 55%; }
.intro-photo--services .service-index a { background: rgba(255, 255, 255, 0.7); }
.intro-photo--services .service-index a:hover { background: var(--ink); }
.intro-photo h1 { font-size: clamp(1.55rem, 0.9rem + 2.6vw, 3.2rem); }

@media (max-width: 900px) {
  .intro-photo__bg .parallax-img { object-position: 85% 45%; }
  .intro-photo__bg.parallax-frame::after {
    background: linear-gradient(180deg, rgba(238, 242, 247, 0.9) 0%, rgba(238, 242, 247, 0.93) 100%);
  }
}
.split--reverse > :first-child { order: 2; }
.split img.split__portrait { aspect-ratio: 4 / 5; max-height: 40rem; object-position: center 60%; }

.checklist { margin: 0 0 var(--space-4); padding: 0; list-style: none; border-top: 1px dashed var(--dash); }
.checklist li { position: relative; padding: 0.85rem 0 0.85rem 1.9rem; border-bottom: 1px dashed var(--dash); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2em;
  width: 1rem;
  height: 1rem;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef2f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
  .split--reverse > :first-child { order: 0; }
  .split img.split__portrait { aspect-ratio: 4 / 3; }
}

/* ---------- Communication (dark, like the template's "advantage" band) ---------- */

section[aria-labelledby="comm-title"] { background: var(--ink); color: var(--on-dark); }
section[aria-labelledby="comm-title"] h2,
section[aria-labelledby="comm-title"] h3 { color: var(--on-dark); }
section[aria-labelledby="comm-title"] .lead { color: var(--on-dark-muted); }
#steps-title { text-transform: uppercase; }

.promises {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--dash-dark);
}
.promises li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4);
  border-bottom: 1px dashed var(--dash-dark);
}
.promises .icon-badge { background: transparent; border: 1px solid var(--dash-dark); color: var(--on-dark); }
.promises h3 { margin: 0; font-size: clamp(1rem, 0.8rem + 0.9vw, 1.3rem); text-transform: uppercase; }
.promises p { margin: 0; color: var(--on-dark-muted); }

@media (max-width: 760px) {
  .promises li { grid-template-columns: 48px minmax(0, 1fr); gap: 0.5rem var(--space-2); }
  .promises p { grid-column: 2; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--dash-dark);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-2);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.steps p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; }
section:not([aria-labelledby="comm-title"]) .steps li { border-color: var(--rule); }
section:not([aria-labelledby="comm-title"]) .steps p { color: var(--muted); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Values: dark cards on light, like the template's impact cards ---------- */

.section--navy:has(.values) { background: var(--bg); color: var(--ink); }
/* Two light sections in a row (sectors, then values): one shorter gap with a dashed line instead of double padding */
.section--tint:has(+ .section--navy .values) { padding-bottom: var(--space-5); }
.section--tint + .section--navy:has(.values) { padding-top: 0; }
.section--tint + .section--navy:has(.values) > .container { padding-top: var(--space-5); border-top: 1px dashed var(--dash); }
.section--navy:has(.values) h2 { color: var(--ink); }
.section--navy:has(.values) .lead { color: var(--muted); }
.section--navy:has(.values) > .container > p a { color: var(--ink); }

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.value {
  padding: var(--space-5) var(--space-4);
  background: var(--ink);
  color: var(--on-dark);
}
.value h3 { font-size: 1.3rem; margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px dashed var(--dash-dark); text-transform: uppercase; color: var(--on-dark); }
.value p { margin: 0; color: var(--on-dark-muted); }

@media (max-width: 700px) { .values { grid-template-columns: 1fr; } .value { padding: var(--space-4) var(--space-3); } }

/* ---------- Sectors ---------- */

/* Sectors: icon + name only */
.sectors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sectors li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  border: 1px solid var(--rule);
  text-align: center;
  transition: background-color 0.2s var(--ease);
}
.sectors li:hover { background: var(--paper); }
.sector-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--ink);
  color: var(--on-dark);
}
.sector-icon .icon { width: 1.625rem; height: 1.625rem; }
.sectors h3 { margin: 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; }

@media (max-width: 1000px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Case studies ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.case img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.case:hover img { transform: scale(1.04); }
.case__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-3); }
.case__tag { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case h3 { margin-bottom: 0.5rem; text-transform: uppercase; font-size: 1.15rem; }
.case h3 a { color: var(--ink); text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; }
.case:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.case h3 a:focus-visible { outline: none; }
.case p { color: var(--muted); font-size: 0.95rem; }
.case__result { margin-top: auto; padding-top: var(--space-2); border-top: 1px dashed var(--dash); color: var(--ink) !important; font-weight: 500; }

.case--empty {
  justify-content: center;
  padding: var(--space-4);
  border-style: dashed;
  background: transparent;
}

/* Case study article */
.article { max-width: 48rem; }
.article h2 { font-size: var(--step-2); margin-top: var(--space-5); }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: 0.4rem; }
.article li::marker { color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-block: 1px dashed var(--dash);
}
.facts dt { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}
.results li { padding: var(--space-4) var(--space-3); background: var(--ink); color: var(--on-dark-muted); text-align: center; }
.results strong { display: block; font-size: 2.4rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--on-dark); line-height: 1.15; }

.notice {
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid #b7791f;
  background: #fdf6e7;
  color: #5f4210;
  font-size: 0.95rem;
}

.breadcrumb { margin-bottom: var(--space-3); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }

/* ---------- CTA band ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta h2 { margin-bottom: 0.5rem; }

/* "Ας γνωριστούμε": soft handshake photo, stronger veil on the text side.
   The photo is attached only when the section nears the screen (.bg-ready, main.js),
   so it never delays the first load. */
.section--cta-photo { background: var(--bg); }
.section--cta-photo.bg-ready {
  background:
    linear-gradient(90deg, rgba(238, 242, 247, 0.93) 0%, rgba(238, 242, 247, 0.84) 45%, rgba(238, 242, 247, 0.7) 100%),
    url("../img/cta-handshake.jpg") 58% 48% / cover no-repeat,
    var(--bg);
}
.section--cta-photo .btn--ghost { background: rgba(255, 255, 255, 0.75); }
.section--cta-photo .btn--ghost:hover { background: var(--ink); }
@media (max-width: 760px) {
  .section--cta-photo.bg-ready {
    background:
      linear-gradient(180deg, rgba(238, 242, 247, 0.9) 0%, rgba(238, 242, 247, 0.8) 100%),
      url("../img/cta-handshake.jpg") 58% 48% / cover no-repeat,
      var(--bg);
  }
}
.cta p { margin: 0; }
.section--navy .btn { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.section--navy .btn:hover { background: #ffffff; }
.section--navy .btn--ghost { background: transparent; color: var(--on-dark); }
.section--navy .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-grid .form { padding: var(--space-4); background: var(--paper); border: 1px solid var(--rule); }

/* Contact page: soft photo behind the title and the form */
.contact-page {
  background:
    linear-gradient(180deg, rgba(238, 242, 247, 0.72) 0%, rgba(238, 242, 247, 0.82) 55%, var(--bg) 100%),
    /* mirrored photo, sized and shifted so the coffee mug lands right of the title, above the form */
    url("../img/contact-bg.jpg") -10vw calc(210px - 32.5vw) / 130vw auto no-repeat,
    var(--bg);
}
.contact-page .page-intro,
.contact-page .section { background: transparent; }

@media (max-width: 900px) {
  .contact-page {
    background:
      linear-gradient(180deg, rgba(238, 242, 247, 0.7) 0, rgba(238, 242, 247, 0.85) 320px, var(--bg) 560px),
      url("../img/contact-bg.jpg") -250px -95px / auto 560px no-repeat,
      var(--bg);
  }
}
.contact-page .contact-grid .form { box-shadow: 0 30px 60px -40px rgba(15, 30, 51, 0.45); }
.contact-grid .form h2 { font-size: 1.6rem !important; }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-bottom: 1px dashed var(--dash-dark);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-list p { margin: 0; color: var(--on-dark-muted); }

.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.field .req { color: #b42318; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 8.75rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid rgba(61, 123, 217, 0.35); outline-offset: 0; border-color: var(--focus); }
.field .hint { margin: 0.35rem 0 0; color: var(--muted); font-size: var(--step--1); }
.field .error { margin: 0.35rem 0 0; color: #b42318; font-size: var(--step--1); font-weight: 500; }
.field [aria-invalid="true"] { border-color: #b42318; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--ink); }

.form-status { margin: 0; padding: var(--space-2) var(--space-3); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { background: #e7f4ec; color: #17623a; }
.form-status.is-error { background: #fdecea; color: #8a1c13; }

/* Contact side panel: dark, like the template's footer blocks */
.panel { padding: var(--space-4); background: var(--ink); color: var(--on-dark); }
.panel h2 { color: var(--on-dark); font-size: 1.6rem !important; }
.panel a { color: var(--on-dark); }
.panel .icon { color: var(--on-dark); }

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

.site-footer {
  position: relative;
  padding-block: var(--space-6) var(--space-4);
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-dark); }
.site-footer a.footer-map { color: inherit; }
.site-footer h2 { color: var(--on-dark); font-size: 0.85rem; letter-spacing: 0.14em; margin-bottom: var(--space-2); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--dash-dark);
}
.footer-grid > div + div { padding-left: var(--space-3); border-left: 1px dashed var(--dash-dark); }
.footer-grid .brand { color: var(--on-dark); margin-bottom: var(--space-2); }
.footer-grid .brand img { filter: brightness(0) invert(1); }
.footer-grid .brand:hover { text-decoration: none; }
.footer-legal-name { margin: calc(var(--space-1) * -1) 0 var(--space-3); color: var(--on-dark-muted); font-size: 0.9rem; letter-spacing: 0.02em; }
.tagline { max-width: 16em; color: var(--on-dark); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.35; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div + div { padding-left: 0; padding-top: var(--space-3); border-left: 0; border-top: 1px dashed var(--dash-dark); }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Small notice after clicking an email address ("copied") */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--dash-dark);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -20px rgba(15, 30, 51, 0.6);
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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