/* ==========================================================================
   ΑΛΙΑΚΜΩΝΑΣ ΕΝΕΡΓΕΙΑΚΗ — base.css
   Reset, design tokens, typography, utilities.
   Ύφος: ήπιο / οργανικό. Τόνοι φασκόμηλου, στρογγυλεμένες φόρμες,
   απαλές διαβαθμίσεις.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: inherit; }

/* --- Design tokens ------------------------------------------------------- */

:root {
  /* Χρώματα — παλέτα φασκόμηλου, χαμηλής έντασης */
  --bg:           #f2f5f1;
  --bg-warm:      #f8f6f1;
  --surface:      #ffffff;
  --ink:          #1e2a24;
  --ink-soft:     #4d5c54;
  --ink-faint:    #87958c;
  --ink-invert:   #e8efe9;
  --accent:       #4e7c62;
  --accent-deep:  #3c6450;
  --accent-soft:  #8fb49c;
  --accent-wash:  #e6efe7;
  --line:         #dde5dd;

  /* Τυπογραφία */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", "Noto Sans", Arial, sans-serif;
  --font-body:    "Noto Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.17rem, 1.10rem + 0.33vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.29rem + 0.62vw, 1.80rem);
  --step-3:  clamp(1.74rem, 1.48rem + 1.24vw, 2.48rem);
  --step-4:  clamp(2.10rem, 1.58rem + 2.50vw, 3.55rem);

  /* Ρυθμός & γεωμετρία */
  --measure:     64ch;
  --shell:       1160px;
  --shell-tight: 720px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);
  --section-y:   clamp(4rem, 8.5vw, 8rem);

  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  --shadow-soft:  0 1px 2px rgba(30, 42, 36, 0.04),
                  0 8px 24px -16px rgba(30, 42, 36, 0.18);
  --shadow-lift:  0 2px 6px rgba(30, 42, 36, 0.05),
                  0 18px 40px -22px rgba(30, 42, 36, 0.28);

  /* Κινήσεις — αργές και ρευστές */
  --ease:   cubic-bezier(0.25, 0.65, 0.25, 1);
  --t-fast: 200ms;
  --t-base: 340ms;
  --t-slow: 760ms;
}

/* --- Σκελετός ------------------------------------------------------------ */

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Σημείωση: δεν μπαίνει overflow-x: hidden στο body. Θα ήταν περιττό — τα
   blobs του hero και το φωτεινό σχήμα του CTA είναι ήδη κλεισμένα μέσα σε
   γονείς με overflow: hidden — και σε ορισμένους περιηγητές χαλάει το
   position: sticky της κεφαλίδας. */

body.is-locked { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.35; }

p { max-width: var(--measure); }

strong { font-weight: 600; }

/* --- Utilities ----------------------------------------------------------- */

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

.shell--tight { max-width: var(--shell-tight); }

.section { padding-block: var(--section-y); }

/* Ώστε η sticky κεφαλίδα να μην καλύπτει τον τίτλο μετά από κλικ σε άγκυρα. */
:target,
[id] { scroll-margin-top: 110px; }

/* Ετικέτα ενότητας σε μορφή απαλής πινακίδας. */
.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.34rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.66;
  color: var(--ink-soft);
}

.center { text-align: center; }
.center p { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

/* --- Προσβασιμότητα ------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translate(-50%, -140%);
  background-color: var(--ink);
  color: var(--ink-invert);
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --- Αποκάλυψη στο scroll ------------------------------------------------ */

/* Εφαρμόζεται μόνο με ενεργή JS (κλάση .js από inline script στο <head>).
   Εδώ η κίνηση συνδυάζει μετακίνηση με ελάχιστη κλιμάκωση. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
}

.reveal {
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Σεβασμός στις προτιμήσεις κίνησης ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
