/* ============================================================
   ΤΗΛΕΜΑΤΙΚΗ ICT — Base: reset, element defaults, brand helpers
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  hyphens: manual;   /* no automatic hyphenation in Greek */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur-slow) var(--ease-standard),
              color var(--dur-slow) var(--ease-standard);
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul[role="list"], ol[role="list"] { list-style: none; }

::selection { background: rgba(91, 196, 236, 0.35); }

/* ---- Headings (Manrope) ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-title);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold);  line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { text-wrap: pretty; }
/* readable line length: 60–75 characters (Greek words run long) */
main p { max-width: min(72ch, 720px); }
.section-head--center p, .stat-banner p, .text-center p { margin-inline: auto; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); }

strong { font-weight: var(--fw-semibold); }

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---- Skip link (WCAG) ---- */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--tm-navy-800);
  color: var(--tm-white);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-3); color: var(--tm-white); }

/* ============================================================
   Brand helpers — the signature trio & friends
   ============================================================ */

/* Eyebrow: uppercase cyan letter-spaced kicker */
.tm-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
  line-height: 1.4;
}

/* The signature 3px cyan rule */
.tm-rule {
  display: block;
  width: 48px;
  height: var(--rule-w);
  background: var(--rule-accent);
  border: 0;
  border-radius: var(--radius-pill);
}

/* Oversized cyan index numerals (01, 02 …) */
.tm-numeral {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-numeral);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
  line-height: 1;
}

/* KPI figures: Manrope 800, tabular */
.tm-figure {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-variant-numeric: tabular-nums;
  color: var(--text-title);
}

/* Pale-cyan callout box */
.tm-callout {
  background: var(--surface-tint);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

/* ---- Section header pattern: eyebrow → rule → title → lede ---- */
.section-head { max-width: 720px; }
.section-head .tm-rule { margin: 18px 0 22px; }
.section-head .lede {
  margin-top: var(--space-4);
  font-size: var(--fs-body-lg);
  color: var(--text-lead);
  line-height: var(--lh-lead);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .tm-rule { margin-inline: auto; }

/* ============================================================
   Dark section context — sections that stay navy in both themes.
   Everything inside inherits dark-appropriate semantics.
   ============================================================ */
.on-dark {
  --text-title: var(--text-on-dark);
  --text-body: var(--text-on-dark-muted);
  --text-muted: #93A1B8;
  --text-link: var(--tm-cyan-500);
  --text-eyebrow: var(--tm-cyan-500);
  --text-numeral: var(--tm-cyan-500);
  --text-lead: #C6CFDE;
  --surface-card: rgba(255, 255, 255, 0.04);
  --surface-tint: rgba(91, 196, 236, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: var(--tm-cyan-500);
  --accent-hover: var(--tm-cyan-300);
  --accent-active: var(--tm-cyan-600);
  --accent-contrast: var(--tm-navy-900);
  color: var(--text-body);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }

.section { padding-block: var(--section-pad); }
.section--subtle { background: var(--surface-subtle); }
.section--dark { background: var(--surface-dark-2); }

/* ============================================================
   Motion hygiene
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
