/* =========================
   Global reset / base
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   Custom fonts (EN)
   ========================= */

@font-face {
  font-family: "FoititisEn";
  src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FoititisEn";
  src: url("/assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FoititisEn";
  src: url("/assets/fonts/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Αγγλικό κείμενο (στο site με lang="el") */
body :lang(en) {
  font-family: "FoititisEn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Λίγο πιο «σφιχτοί» αγγλικοί τίτλοι */
body :lang(en) h1,
body :lang(en) h2,
body :lang(en) h3 {
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Έντονα αγγλικά */
body :lang(en) b,
body :lang(en) strong {
  font-weight: 700;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
  background: #f1f5f9;
  /* sticky footer ΔΕΝ γίνεται εδώ πια */
}

/* Ολόκληρο το app ως flex στήλη για sticky footer */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links */
a {
  color: #0f172a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Images να μην ξεφεύγουν */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Layout container
   ========================= */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Το main γεμίζει το ύψος ανάμεσα σε header/footer (μέσα στο #app) */
main.container {
  flex: 1 0 auto;
  padding-top: 20px;
  padding-bottom: 16px; /* μικρότερο κενό πάνω από το footer */
}

/* =========================
   Header / Top navigation
   ========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .brand {
  font-weight: 700;
  font-size: 18px;
}

.site-header .brand a {
  color: #0f172a;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header .nav a {
  font-size: 14px;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.site-header .nav a:hover {
  background: #e5f2ff;
  text-decoration: none;
}

.site-header .nav a.active,
.site-header .nav a[aria-current="page"] {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
  font-weight: 600;
}

/* =========================
   Banner (πάνω από το main)
   ========================= */

.banner {
  background: radial-gradient(
    circle at top left,
    #22c55e 0,
    #0f172a 50%,
    #020617 100%
  );
  color: #f9fafb;
  padding: 26px 16px;
}

.banner-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.banner-inner h1 {
  margin: 0 0 4px;
  font-size: 30px;
  letter-spacing: 0.04em;
}

.banner-inner p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

/* =========================
   Main sections (home)
   ========================= */

/* Hero text */
.hero {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px; /* λίγο πιο σφιχτό */
}

.hero h2 {
  font-size: 22px;
  margin-top: 0;
}

.hero p {
  margin: 0;
}

/* Generic section wrapper */
.section {
  margin-top: 16px;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
}

/* Badges */
.badge-ok {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 12px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #16a34a33;
}

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background 0.08s ease;
}

.btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #ecfdf5;
}

.btn-primary:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  text-decoration: none;
}

.btn-secondary {
  background: #e5f2ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.btn-secondary:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
  text-decoration: none;
}

/* =========================
   Footer (sticky)
   ========================= */

.site-footer,
.footer {
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
  margin-top: auto; /* σπρώχνει το footer στο κάτω μέρος μέσα στο #app */
}

/* =========================
   Chat / office layout helpers
   ========================= */

body.office-layout {
  background: #020617;
}

body.office-layout main.container {
  padding-top: 20px;
  padding-bottom: 24px;
}

/* =========================
   Generic helpers
   ========================= */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

/* Tablets / μικρά laptops */
@media (max-width: 1024px) {
  .banner-inner h1 {
    font-size: 26px;
  }

  .banner-inner p {
    font-size: 14px;
  }
}

/* Κινητά */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 4px;
  }

  .site-header .nav a {
    font-size: 13px;
    padding: 5px 9px;
  }

  .banner-inner h1 {
    font-size: 24px;
  }

  .banner-inner p {
    font-size: 14px;
  }

  .hero {
    padding: 14px 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .hero h2 {
    font-size: 19px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 12px 12px 14px;
  }

  main.container {
    padding-top: 18px;
    padding-bottom: 16px; /* πιο κοντά στο footer και σε mobile */
  }
}

/* Πολύ μικρές οθόνες (μικρά κινητά) */
@media (max-width: 480px) {
  .site-header .nav {
    gap: 6px;
  }

  .site-header .nav a {
    padding: 4px 8px;
  }

  .banner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .banner-inner h1 {
    font-size: 22px;
  }

  .site-footer,
  .footer {
    font-size: 12px;
  }
}