/* =========================================================
   Κέντρο Ξένων Γλωσσών & STEM — Αλέκα Κονταξάκη
   Design tokens
   ========================================================= */
:root{
  /* colour */
  --ink:        #101B33;   /* deep navy — headings & primary text */
  --ink-soft:   #4B5568;   /* slate — body copy */
  --ink-faint:  #8894A6;   /* captions, meta */
  --brand:      #1F5D8C;   /* steel blue — primary accent */
  --brand-dark: #143F60;
  --brand-tint: #E7F0F7;   /* pale blue wash */
  --gold:       #D9A441;   /* warm gold — highlights, milestones */
  --gold-tint:  #FBF1DC;
  --bg:         #FFFFFF;
  --bg-soft:    #F4F7FA;
  --line:       #E3E8EE;
  --white:      #FFFFFF;
  --ok:         #2E7D5B;

  /* type */
  --f-display: 'Fraunces', ui-serif, Georgia, serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(16,27,51,0.08);
  --shadow-sm: 0 2px 10px rgba(16,27,51,0.06);
}

*,*::before,*::after{ box-sizing:border-box; }
[id]{ scroll-margin-top: 100px; }
html{ scroll-behavior:smooth; }
@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; }
}

body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink-soft);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:var(--f-display);
  color:var(--ink);
  margin:0 0 .5em;
  line-height:1.15;
  font-weight:600;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.1rem, 4.5vw, 3.4rem); font-weight:600; }
h2{ font-size:clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }

:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
}

.eyebrow{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand);
  font-weight:600;
  display:inline-block;
  margin-bottom:.9em;
}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

section{ padding:72px 0; }
.section-tight{ padding:40px 0; }
.bg-soft{ background:var(--bg-soft); }
.bg-brand{ background:var(--brand); color:var(--white); }
.bg-ink{ background:var(--ink); color:#fff; }

.lede{
  font-size:1.15rem;
  color:var(--ink-soft);
  max-width:62ch;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family:var(--f-body); font-weight:600; font-size:.95rem;
  padding:.85em 1.5em; border-radius:100px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration:none !important;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dark); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand); }
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:#c6903a; }
.btn-sm{ padding:.55em 1.1em; font-size:.85rem; }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width:var(--maxw); margin:0 auto;
}
.brand-mark{ display:flex; align-items:center; gap:.7em; }
.brand-badge{
  width:42px; height:42px; border-radius:11px;
  background:linear-gradient(155deg, var(--brand), var(--brand-dark));
  color:#fff; font-family:var(--f-display); font-weight:600; font-size:1.05rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-name{ font-family:var(--f-display); font-weight:600; color:var(--ink); font-size:1.05rem; line-height:1.2; }
.brand-name span{ display:block; font-family:var(--f-mono); font-weight:400; font-size:.66rem; color:var(--ink-faint); letter-spacing:.05em; }
.site-logo{ height:44px; width:auto; display:block; }
@media (max-width:480px){ .site-logo{ height:36px; } }

.nav-links{ display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.nav-links a{
  color:var(--ink-soft); font-weight:500; font-size:.93rem;
  padding:.6em .8em; border-radius:100px; transition:background .2s, color .2s;
}
.nav-links a:hover{ background:var(--brand-tint); color:var(--brand-dark); text-decoration:none; }
.nav-links a.active{ background:var(--ink); color:#fff; }
.nav-cta{ margin-left:6px; }
.nav-links .nav-cta a.btn-primary{ color:#fff; background:var(--brand); }
.nav-links .nav-cta a.btn-primary:hover{ color:#000; background:var(--bg-soft); text-decoration:none; }

.nav-toggle{
  display:none; background:none; border:1.5px solid var(--line); border-radius:10px;
  width:44px; height:40px; cursor:pointer; align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background:var(--ink); position:relative;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:880px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:#fff;
    flex-direction:column; align-items:stretch; border-bottom:1px solid var(--line);
    padding:10px 16px 18px; gap:2px; box-shadow:var(--shadow);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:.85em 1em; border-radius:10px; }
  .nav-cta{ margin-left:0; margin-top:8px; }
}

/* ---------- hero ---------- */
.hero{
  padding:76px 0 84px;
  background:
    radial-gradient(680px 340px at 88% -10%, var(--brand-tint), transparent),
    var(--bg);
  border-bottom:1px solid var(--line);
}
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; }
@media (max-width:880px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:1.6em; }
.hero-stats{ display:flex; gap:28px; margin-top:2.4em; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:var(--f-display); font-size:1.6rem; color:var(--ink); }
.hero-stats div span{ font-size:.82rem; color:var(--ink-faint); }

.hero-art{
  aspect-ratio:1/1; border-radius:24px; position:relative; overflow:hidden;
  background:linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.hero-art svg{ position:absolute; inset:0; width:100%; height:100%; }

/* photo rotator used on the homepage hero */
.hero-rotator{ background:var(--ink); aspect-ratio:4/3.6; }
.hero-rotator .rotator-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;
  opacity:0; transition:opacity 1.2s ease;
}
.hero-rotator .rotator-slide.active{ opacity:1; }

/* ---------- cards / grid ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:880px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover{ box-shadow:var(--shadow); transform:translateY(-3px); border-color:transparent; }
.card-icon{
  width:46px; height:46px; border-radius:12px; background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.card h3{ margin-bottom:.4em; }
.card p{ font-size:.94rem; color:var(--ink-soft); margin-bottom:.6em; }
.card-link{ font-size:.86rem; font-weight:600; }

/* section head */
.section-head{ max-width:640px; margin:0 0 40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- announcements ---------- */
.announce-card{
  border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:#fff;
  display:flex; flex-direction:column; gap:10px;
}
.announce-meta{ display:flex; gap:10px; align-items:center; font-family:var(--f-mono); font-size:.75rem; color:var(--ink-faint); }
.tag{
  display:inline-block; font-family:var(--f-mono); font-size:.68rem; letter-spacing:.05em; text-transform:uppercase;
  padding:.3em .7em; border-radius:100px; background:var(--brand-tint); color:var(--brand-dark); font-weight:600;
}
.tag.gold{ background:var(--gold-tint); color:#8a601c; }
.tag.recent{ background:#E1F5E9; color:#1F7A4C; margin-right:6px; }
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.filter-btn{
  font-family:var(--f-mono); font-size:.78rem; padding:.5em 1.1em; border-radius:100px;
  border:1.5px solid var(--line); background:#fff; cursor:pointer; color:var(--ink-soft);
}
.filter-btn.active, .filter-btn:hover{ border-color:var(--brand); color:var(--brand-dark); background:var(--brand-tint); }

/* ---------- level stepper (Αγγλικά) ---------- */
.stepper{ display:flex; flex-wrap:wrap; gap:10px; margin:30px 0 46px; }
.stepper a{
  font-family:var(--f-mono); font-size:.82rem; font-weight:600; color:var(--ink);
  border:1.5px solid var(--line); border-radius:100px; padding:.55em 1.15em;
  background:#fff; transition:.2s;
}
.stepper a:hover{ border-color:var(--brand); color:var(--brand-dark); background:var(--brand-tint); text-decoration:none; }

details.level{
  border:1px solid var(--line); border-radius:var(--radius); margin-bottom:12px; background:#fff; overflow:hidden;
}
details.level > summary{
  list-style:none; cursor:pointer; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-family:var(--f-display); font-weight:600; color:var(--ink); font-size:1.05rem;
}
details.level > summary::-webkit-details-marker{ display:none; }
details.level > summary .lvl-meta{ font-family:var(--f-mono); font-weight:400; font-size:.78rem; color:var(--ink-faint); }
details.level > summary::after{
  content:"+"; font-family:var(--f-body); font-size:1.4rem; color:var(--brand); flex-shrink:0;
}
details.level[open] > summary::after{ content:"–"; }
.level-body{ padding:0 24px 24px; border-top:1px solid var(--line); padding-top:18px; }
.level-body h4{ font-size:.95rem; margin-bottom:.3em; }
.placeholder-note{
  font-size:.82rem; color:var(--ink-faint); background:var(--bg-soft); border:1px dashed var(--line);
  border-radius:8px; padding:.7em 1em; font-family:var(--f-mono);
}

/* ---------- timeline (Ιστορία) ---------- */
.timeline{ position:relative; margin-left:14px; padding-left:34px; border-left:2px solid var(--line); }
.timeline-item{ position:relative; padding-bottom:44px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-42px; top:2px; width:16px; height:16px; border-radius:50%;
  background:var(--gold); border:3px solid #fff; box-shadow:0 0 0 2px var(--gold);
}
.timeline-year{ font-family:var(--f-mono); color:var(--brand); font-weight:600; font-size:.85rem; }

/* ---------- FAQ / accordion generic (πληρωμές) ---------- */
details.faq{ border-bottom:1px solid var(--line); padding:18px 0; }
details.faq summary{ cursor:pointer; font-weight:600; color:var(--ink); list-style:none; display:flex; justify-content:space-between; }
details.faq summary::-webkit-details-marker{ display:none; }
details.faq summary::after{ content:"+"; color:var(--brand); }
details.faq[open] summary::after{ content:"–"; }
details.faq p{ margin-top:12px; color:var(--ink-soft); }

/* ---------- teacher cards ---------- */
.teacher-card{ text-align:left; }
.teacher-avatar{
  width:100%; aspect-ratio:4/3.4; border-radius:12px; margin-bottom:16px;
  background:linear-gradient(155deg, var(--brand-tint), #fff); display:flex; align-items:center; justify-content:center;
}
.teacher-avatar svg{ width:56%; opacity:.55; }
.teacher-role{ font-family:var(--f-mono); font-size:.78rem; color:var(--brand); text-transform:uppercase; letter-spacing:.05em; margin-bottom:.6em; display:block; }

/* ---------- table (πληρωμές) ---------- */
table.pay-table{ width:100%; border-collapse:collapse; margin:20px 0 30px; }
table.pay-table th, table.pay-table td{ text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); font-size:.94rem; }
table.pay-table th{ font-family:var(--f-mono); font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:40px; }
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-item{ display:flex; gap:14px; margin-bottom:22px; align-items:flex-start; }
.contact-icon{ width:40px; height:40px; border-radius:10px; background:var(--brand-tint); color:var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-size:.85rem; font-weight:600; color:var(--ink); margin-bottom:.4em; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding:.85em 1em; border:1.5px solid var(--line); border-radius:10px; font-family:var(--f-body);
  font-size:.95rem; background:#fbfcfd;
}
.form-field input:focus, .form-field textarea:focus{ outline:none; border-color:var(--brand); background:#fff; }
.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); margin-top:24px; }
.map-embed iframe{ width:100%; height:280px; border:0; display:block; }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:#c9d2e0; padding:56px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer h4{ color:#fff; font-family:var(--f-mono); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1em; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-bottom:.6em; }
.site-footer a{ color:#c9d2e0; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:22px; display:flex; justify-content:space-between;
  flex-wrap:wrap; gap:10px; font-size:.82rem; color:#8a97ac;
}
.footer-bottom a{ color:#8a97ac; }

/* ---------- badges / misc ---------- */
.badge-soon{
  display:inline-flex; align-items:center; gap:.4em; font-family:var(--f-mono); font-size:.7rem;
  background:var(--gold-tint); color:#8a601c; padding:.3em .8em; border-radius:100px; font-weight:600;
}

/* ---------- cookie banner ---------- */
#cookie-banner{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:100; max-width:640px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow);
  padding:22px 24px; display:none;
}
#cookie-banner.show{ display:block; }
#cookie-banner p{ font-size:.88rem; color:var(--ink-soft); margin-bottom:14px; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }

#cookie-modal{
  position:fixed; inset:0; background:rgba(16,27,51,.5); z-index:110; display:none; align-items:center; justify-content:center; padding:20px;
}
#cookie-modal.show{ display:flex; }
.cookie-modal-box{ background:#fff; border-radius:16px; padding:30px; max-width:520px; width:100%; max-height:85vh; overflow:auto; }
.cookie-row{ display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); gap:16px; }
.switch{ position:relative; width:44px; height:26px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.switch span{ position:absolute; inset:0; background:var(--line); border-radius:100px; transition:.2s; cursor:pointer; }
.switch span::before{ content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + span{ background:var(--brand); }
.switch input:checked + span::before{ transform:translateX(18px); }
.switch input:disabled + span{ opacity:.5; cursor:not-allowed; }

/* ---------- page intro (used on inner pages) ---------- */
.page-intro{ padding:56px 0 20px; border-bottom:1px solid var(--line); }
.breadcrumb{ font-family:var(--f-mono); font-size:.78rem; color:var(--ink-faint); margin-bottom:1em; }
.breadcrumb a{ color:var(--ink-faint); }
