/* ΕΝΗΛΙΟΝ: σελίδα επιλογής μονάδας. Χωρίς JavaScript και χωρίς cookies. */

@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/assets/fonts/vollkorn-greek-wght-normal.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: "Vollkorn";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/assets/fonts/vollkorn-latin-wght-normal.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: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/commissioner-greek-wght-normal.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-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/commissioner-latin-wght-normal.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 {
  --gold: #eda901;
  --blue: #155a7c;
  --olive: #596534;
  --olive-deep: #3f4a22;
  --ink: #2a3016;
  --white: #fff;
  --bar: 0.75rem;
  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
  --sans: "Commissioner", "Segoe UI", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 420;
  line-height: 1.55;
}

h1, h2, p { margin: 0; }

a { color: inherit; text-underline-offset: 0.18em; }

a:focus-visible {
  outline: 0.25rem solid var(--ink);
  outline-offset: 0.2rem;
  border-radius: 0.2rem;
}

/* Επάνω ζώνη */

.top {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 2.4vh, 1.75rem) 1rem 0;
}

.logo {
  display: block;
  width: clamp(12.5rem, 19vw, 17.5rem);
  height: auto;
}

.lang {
  position: absolute;
  top: 1rem;
  right: clamp(1rem, 3vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.5rem;
  font-weight: 560;
  color: var(--olive-deep);
}

/* Κύριο περιεχόμενο */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intro {
  padding: clamp(0.75rem, 1.8vh, 1.25rem) 1rem clamp(1.25rem, 2.6vh, 2rem);
  text-align: center;
}

.intro h1 {
  font-family: var(--serif);
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--olive-deep);
  text-wrap: balance;
}

.intro p { margin-top: 0.5rem; font-size: clamp(1.25rem, 1.6vw, 1.4375rem); text-wrap: balance; }

/* Το χρυσό Τ του λογότυπου: η οριζόντια γραμμή και το κενό ανάμεσα στις μονάδες. */

.units {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bar);
  padding-top: var(--bar);
  background: var(--gold);
}

.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--white);
}

.unit--nafpaktos { background: var(--blue); --tone: var(--blue); }
.unit--kozani { background: var(--olive); --tone: var(--olive); }

.unit__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--tone);
}

.unit__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.6vw, 2.25rem) clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 2.8vw, 2.5rem);
}

.unit h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.5vw, 3.125rem);
  font-weight: 600;
  line-height: 1.1;
}

.unit__place { margin-top: 0.55rem; max-width: 38ch; }

.unit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.go {
  display: inline-flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.55rem 1.6rem;
  border: 0.125rem solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--tone);
  font-weight: 640;
  line-height: 1.25;
  text-decoration: none;
}

/* Όλη η μονάδα είναι κλικαρίσιμη. Το τηλέφωνο μένει ξεχωριστός σύνδεσμος από πάνω. */
.go::after {
  content: "";
  position: absolute;
  inset: 0;
}

.unit:hover .go { background: var(--gold); color: var(--ink); }

.unit .go:focus-visible,
.unit .tel a:focus-visible { outline-color: var(--white); }

.tel { position: relative; z-index: 1; }
.tel a { display: inline-block; padding-block: 0.4rem; font-weight: 600; white-space: nowrap; }

/* Υποσέλιδο */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
  font-size: 1.0625rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a { display: inline-block; padding-block: 0.25rem; }

/* Δύο στήλες: οι φωτογραφίες και τα χρωματιστά μέρη ευθυγραμμίζονται μεταξύ τους. */
@media (min-width: 52rem) {
  .units {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(13rem, 1fr) auto;
    row-gap: 0;
  }
  .unit {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
  .unit__photo {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 30rem) {
  .lang { top: 0.25rem; right: 0.5rem; }
  .top { padding-top: 2.75rem; }
  .go { width: 100%; justify-content: center; text-align: center; }
}
