/* GT PROPERTY DEVELOPMENT Ι.Κ.Ε. — στατική έκδοση
   Αναπαράγει τον σχεδιασμό του παλιού site (Bricks + WPCodeBox) με καθαρή CSS.
   Χωρίς inline styles/scripts, ώστε το CSP να μένει σε 'self'. */

/* ---------- Fonts (Roboto, OFL-1.1, self-hosted: latin + greek) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-greek-400-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: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-400-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: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-greek-500-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: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-500-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;
}

/* ---------- Tokens ---------- */
:root {
  --c-text: #323031;
  --c-heading: #1a1a1a;
  --c-bar: hsl(0 0% 23%);          /* header & footer */
  --c-bar-text: hsl(75 57% 95%);
  --c-white: #fff;
  --c-primary: #00b1c8;
  --c-link: #007180;                /* 5.6:1 σε λευκό */
  --c-link-hover: #004f59;

  --fs-body: clamp(1rem, 0.2083vw + 0.9583rem, 1.125rem);        /* 16 → 18px */
  --fs-h1: clamp(1.728rem, 1.5611vw + 1.4158rem, 2.6647rem);     /* 27.6 → 42.6px */
  --fs-h2: clamp(1.44rem, 0.9317vw + 1.2537rem, 1.999rem);       /* 23 → 32px */
  --fs-small: 0.875rem;                                         /* 14px */

  --space-s: clamp(1rem, 0.4167vw + 0.9167rem, 1.25rem);         /* 16 → 20px */
  --space-m: clamp(1.5rem, 0.625vw + 1.375rem, 1.875rem);        /* 24 → 30px */
  --space-l: clamp(2rem, 1.355vw + 1.7285rem, 2.8125rem);        /* 32 → 45px */

  --header-h: 3.875rem;                                         /* 62px */
  --wrap-max: 80rem;                                            /* 1280px */
  --weight-bold: 500;                                           /* Roboto Medium */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem); /* το sticky header να μην κρύβει το στοιχείο με focus (WCAG 2.4.11) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text);
  overflow-wrap: anywhere;             /* μεγάλες λέξεις σπάνε μόνο αν δεν χωράνε (reflow 320px / zoom 200%) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  max-width: 45ch;
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--c-heading);
  text-rendering: optimizeLegibility;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
/* Οι h3 (Διαχειριστής / Εταίρος) έχουν την εμφάνιση της έντονης ετικέτας του αρχικού site */
h3 { font-size: inherit; line-height: inherit; color: inherit; }

p { margin: 0 0 1.2em; max-width: 75ch; }
strong, b { font-weight: var(--weight-bold); }
abbr[title] { text-decoration: none; }

/* Λίστες «ετικέτα: τιμή» (στοιχεία εταιρείας, διαχειριστών, εταίρων) */
.facts { margin: 0 0 1.2em; max-width: 75ch; }
.facts dt, .facts dd { display: inline; margin: 0; }
.facts dt { font-weight: var(--weight-bold); }
h3 + .facts { margin-top: 0; }

/* Κρυφό οπτικά, διαθέσιμο σε screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; } /* ακολουθεί το χρώμα του κειμένου → ορατό σε ανοιχτό και σκούρο φόντο */
main:focus { outline: none; } /* το <main> παίρνει focus μόνο από το skip link· δεν είναι στοιχείο ελέγχου */

.link { color: var(--c-link); text-decoration: underline; text-underline-offset: 0.15em; }
.link:hover { color: var(--c-link-hover); }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 5px 10px;
  background: #000;
  color: #fff;
  font-weight: 700;
  border-bottom-right-radius: 8px;
  transform: translateY(-102%);
  transition: transform 0.3s;
}
.skip-link:focus { transform: translateY(0); }
.skip-link:focus-visible { outline-offset: -5px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.section { padding: var(--space-l) var(--space-m); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  min-height: var(--header-h);          /* min-height: μεγαλώνει με zoom κειμένου αντί να κόβει */
  padding: 0.25rem var(--space-m);
  background-color: var(--c-bar);
}
.site-logo { color: var(--c-white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 66vh;                     /* min-height: ο τίτλος δεν κόβεται με zoom 200% */
  padding: var(--space-l) var(--space-m);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(360deg, rgb(0 0 0 / 0.7) 20%, rgb(0 0 0 / 0.6) 40%, rgb(0 0 0 / 0.3) 70%, rgb(0 0 0 / 0.1) 85%, rgb(0 0 0 / 0.05) 90%, rgb(0 0 0 / 0.01) 95%);
}
.hero__wrap { position: relative; z-index: 2; flex: 1; }
.hero__title {
  width: 100%;
  max-width: 100%;
  color: var(--c-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.45); /* εξασφαλίζει αντίθεση και στα φωτεινά σημεία της φωτογραφίας */
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-l) var(--space-m);
  background-color: var(--c-bar);
  color: var(--c-bar-text);
  line-height: 1.4;
}
.site-footer__copy { margin-top: var(--space-s); }
.site-footer__copy p { font-size: var(--fs-small); }

/* ---------- Back to top (χωρίς JavaScript) ---------- */
.back-to-top {
  position: fixed;
  right: 1.875rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.625rem;
  line-height: 1;
  border-radius: 0.278rem;
  color: var(--c-text);
  background-color: var(--c-white);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.3);
}
.back-to-top svg { display: block; fill: var(--c-link); } /* 5.6:1 — το αρχικό #00b1c8 είχε 2.5:1 (WCAG 1.4.11 θέλει 3:1) */

/* Εμφανίζεται με το scroll όπου υποστηρίζονται τα scroll-driven animations·
   αλλού μένει πάντα ορατό (λειτουργεί κανονικά ως link). */
@supports (animation-timeline: scroll()) {
  .back-to-top {
    animation: back-to-top-reveal linear both;
    animation-timeline: scroll(root);
    animation-range: 0 40vh;
  }
  @keyframes back-to-top-reveal {
    from { opacity: 0; visibility: hidden; transform: translateY(6rem); }
    to   { opacity: 1; visibility: visible; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes back-to-top-reveal {
    from { opacity: 0; visibility: hidden; }
    to   { opacity: 1; visibility: visible; }
  }
}

@media (max-width: 991px) {
  .back-to-top { display: none; }
}

/* Windows High Contrast / forced colors */
@media (forced-colors: active) {
  .back-to-top { border: 1px solid ButtonText; }
  .back-to-top svg { fill: ButtonText; }
  .hero::before { display: none; }
}

/* ---------- 404 ---------- */
main.section { min-height: 50vh; }
main.section h1 { margin-bottom: 0.6em; }

/* Το τηλέφωνο δεν σπάει σε δύο γραμμές· κρατάμε το κανονικό "-" (αντί για U+2011),
   ώστε η αντιγραφή και η εκφώνηση από screen readers να δίνουν τον σωστό αριθμό. */
a[href^="tel:"] { white-space: nowrap; }
