/* Γραμματοσειρές: GFS Didot, Commissioner, Graduate (SIL Open Font License), από τον φάκελο του site. */
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/commissioner-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: "Commissioner";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/commissioner-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/commissioner-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;
}

@font-face {
  font-family: "GFS Didot";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gfs-didot-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: "GFS Didot";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gfs-didot-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;
}

@font-face {
  font-family: "Graduate";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/graduate-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;
}

/* Τα χρώματα και οι αποστάσεις, από το λογότυπο του CMP. */
:root {
  --paper: #F5F6F4;
  --ink: #2A2926;
  --ink-soft: #57554F;
  --sand: #C9B78A;
  --sand-text: #76633A;
  --rule: #D6D7D2;
  --sea: #0F3A43;
  --sea-text: #CFE2DF;
  --sea-rule: rgba(201, 183, 138, 0.28);

  --serif: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --logo: "Graduate", "Rockwell", serif;

  --line: 1.5px;
  --gutter: 1rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Βάση */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(201, 183, 138, 0.25); }
a, button { touch-action: manipulation; }
section[id] { scroll-margin-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, dl, dd, address { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
/* Το Didot έχει φαρδύ κενό ανάμεσα στις λέξεις στα μεγάλα μεγέθη. */
.hero__title, .section-title, .ledger__col h3, .clients__list dt { word-spacing: -0.05em; }
p, dd, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sand-text); outline-offset: 3px; border-radius: 1px; }
.num { font-variant-numeric: lining-nums tabular-nums; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

/* Επάνω μέρος */
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}
.brand { text-decoration: none; display: inline-flex; padding: 0.5rem 0; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--logo);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sand);
}
.brand__mark i {
  width: 2px;
  height: 0.85em;
  background: var(--ink);
}
.site-nav { display: none; margin-left: auto; gap: 2rem; }
.site-nav a,
.lang {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 160ms var(--ease-out);
}
.lang { margin-left: auto; }

/* Η πρώτη εικόνα: το ανοιχτό πλαίσιο του λογοτύπου */
.hero { padding-block: 1.5rem var(--section); }
.frame {
  position: relative;
  padding: 3rem 1.25rem 2.5rem;
}
.frame__line { position: absolute; background: var(--ink); }
.frame__line--left { left: 0; top: 0; bottom: 0; width: var(--line); transform-origin: top; }
.frame__line--top { left: 0; top: 0; width: 46%; height: var(--line); transform-origin: left; }
.frame__line--bottom { left: 0; right: 0; bottom: 0; height: var(--line); transform-origin: right; }
.frame__line--tick { right: 0; bottom: 0; width: var(--line); height: clamp(2.25rem, 7vw, 4.5rem); transform-origin: bottom; }

.hero__title {
  font-size: clamp(2.125rem, 5.6vw + 0.75rem, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 11.5em;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

/* Κουμπιά και σύνδεσμοι */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); color: var(--paper); }
.button--ink .num { color: var(--sand); }
.button--sand { background: var(--sand); color: var(--ink); }

.text-link {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--sand);
  padding: 0.75rem 0;
  transition: text-decoration-color 160ms var(--ease-out);
}
.text-link--light { color: var(--paper); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .lang:hover { color: var(--ink); }
  .button--ink:hover { background: #3A3935; }
  .button--sand:hover { background: #D6C79F; }
  .text-link:hover { text-decoration-color: currentColor; }
}

/* Τίτλοι ενοτήτων */
.section-title {
  font-size: clamp(2rem, 2.4vw + 1.25rem, 3rem);
  line-height: 1.1;
}

/* Υπηρεσίες: οι τρεις στήλες, χωρισμένες όπως τα γράμματα του λογοτύπου */
.services { padding-block: 0 var(--section); }
.ledger { margin-top: 2.5rem; border-top: var(--line) solid var(--ink); }
.ledger__col { padding-block: 2rem; }
.ledger__col + .ledger__col { border-top: var(--line) solid var(--ink); }
.ledger__col h3 { font-size: 1.875rem; line-height: 1.15; }
.ledger__col p { margin-top: 0.5rem; color: var(--ink-soft); max-width: 30ch; }
.ledger__col ul { margin-top: 1.25rem; }
.ledger__col li {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.ledger__col li:last-child { border-bottom: 0; }

/* Συνεργασίες */
.clients { padding-block: 0 var(--section); }
.clients__list { margin-top: 2rem; display: grid; gap: 1.75rem; }
.clients__list dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.clients__list dd { margin-top: 0.35rem; color: var(--ink-soft); max-width: 40ch; }

/* Επικοινωνία: η θάλασσα της Καρδάμαινας */
.contact {
  background: var(--sea);
  color: var(--paper);
  padding-block: var(--section) 3rem;
}
.contact ::selection { background: var(--sand); color: var(--sea); }
.contact :focus-visible { outline-color: var(--sand); }
.contact__inner { display: grid; gap: 3rem; }
.contact__address {
  margin-top: 2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--sea-text);
}
.contact__phone {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw + 1rem, 3.5rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--sand);
  text-decoration: none;
  justify-self: start;
}
.contact__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.island {
  position: relative;
  display: block;
  color: var(--sand);
  text-decoration: none;
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
}
.island svg { display: block; width: 100%; height: auto; overflow: visible; }
.island__shape {
  fill: rgba(201, 183, 138, 0.07);
  stroke: var(--sand);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.island__dot { fill: var(--sand); }
.island__ring { fill: none; stroke: var(--sand); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.6; }
.island__label {
  position: absolute;
  left: 51.5%;
  top: 59%;
  font-size: 0.9375rem;
  color: var(--paper);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .island__shape { transition: fill 240ms var(--ease-out); }
  .island:hover .island__shape { fill: rgba(201, 183, 138, 0.14); }
}

.site-footer {
  background: var(--sea);
  color: var(--sea-text);
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--sea-rule);
  position: relative;
}
/* Η γωνία του πλαισίου, ξανά, στο τέλος της σελίδας. */
.site-footer__inner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 1px;
  height: 1.25rem;
  background: var(--sea-rule);
}
.site-footer a { color: var(--sea-text); text-decoration-color: var(--sea-rule); text-underline-offset: 0.3em; padding-block: 0.5rem; }

/* Μεγαλύτερες οθόνες */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
  .frame { padding: 4.5rem 3rem 3.5rem; }
  .clients__list { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
}

@media (min-width: 60rem) {
  :root { --gutter: 3rem; }
  .site-nav { display: flex; }
  .lang { margin-left: 0; }
  .site-header__inner { min-height: 5.5rem; }
  .brand__mark { font-size: 1.75rem; }

  .hero { padding-top: 2rem; }
  .frame { padding: 6rem 5rem 4.5rem; }
  .hero__actions { justify-content: flex-end; margin-top: 3.5rem; }

  .ledger { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ledger__col { padding: 2.5rem 2.5rem 0.5rem; }
  .ledger__col:first-child { padding-left: 0; }
  .ledger__col:last-child { padding-right: 0; }
  .ledger__col + .ledger__col { border-top: 0; border-left: 2px solid var(--ink); }

  .clients__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
  .clients__list { margin-top: 0.5rem; }

}

@media (min-width: 72rem) {
  .contact__inner { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4rem; }
  .island { justify-self: end; margin-inline: 0; }
}

/* Η μία κίνηση της σελίδας: το πλαίσιο ζωγραφίζεται από τις γωνίες του */
@media (prefers-reduced-motion: no-preference) {
  .frame__line { animation: draw 700ms var(--ease-out) both; }
  .frame__line--left { animation-name: draw-y; }
  .frame__line--top { animation-delay: 60ms; animation-duration: 600ms; }
  .frame__line--tick { animation-name: draw-y; animation-delay: 200ms; animation-duration: 360ms; }
  .frame__line--bottom { animation-delay: 260ms; animation-duration: 640ms; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
