/* ==========================================================================
   ΚΑΛΛΙΤΕΧΝΑΚΙΑ — Πρόγραμμα & Χρήσιμες Πληροφορίες 2026–2027
   Design tokens από το Figma (KALLITEXNAKIA.fig)
   ========================================================================== */

/* --- Γραμματοσειρά τίτλων --------------------------------------------------
   BPnoScript (backpacker.gr) — τα αρχεία είναι στο fonts/ στη ρίζα του project,
   μαζί με το backpacker_license.pdf. Δωρεάν για εμπορική χρήση.            */

@font-face {
  font-family: 'BPnoScript';
  src: url('../../fonts/BPnoScriptBold.woff') format('woff'),
       url('../../fonts/BPnoScriptBold.ttf')  format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BPnoScript';
  src: url('../../fonts/BPnoScript.woff') format('woff'),
       url('../../fonts/BPnoScript.ttf')  format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'BPnoScript';
  src: url('../../fonts/BPnoScriptLight.woff') format('woff'),
       url('../../fonts/BPnoScriptLight.ttf')  format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Χρώματα — ακριβώς όπως τα styles του Figma */
  --blue:  #2C489B;   /* ΜΠΛΕ */
  --coral: #F56D5B;   /* ΚΟΚΚΙΝΟ */
  --sky:   #E3F1FB;   /* ΓΑΛΑΖΙΟ ΓΚΡΙ */
  --white: #FFFFFF;
  --ink:   #14203F;

  /* Τυπογραφία */
  --font-head: 'BPnoScript', 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-h1:   clamp(1.85rem, 1.0rem + 3.6vw, 4.5rem);   /* 30 → 72 */
  --fs-h2:   clamp(1.55rem, .95rem + 2.4vw, 4rem);     /* 25 → 64 */
  --fs-h3:   clamp(1.5rem, 1.1rem + 1.4vw, 2.375rem);  /* 24 → 38 */
  --fs-body: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);   /* 16 → 18 */
  --fs-small: 0.875rem;

  /* Layout — το design έχει container 1388px μέσα σε καμβά 1920px */
  --container: 1388px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius-lg: 45px;
  --radius-sm: 12px;
  --shadow: 0 4px 4px rgba(0, 0, 0, .25);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0 0 .85em; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: var(--white); padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; padding: clamp(1.5rem, 4vw, 3.5rem) 0 0; }

.deco-blob {
  position: absolute;
  top: clamp(-10rem, -16vw, -5rem);
  right: clamp(-9rem, -8vw, -3rem);
  width: clamp(16rem, 27vw, 32.5rem);
  z-index: -1;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand { text-decoration: none; display: block; max-width: 46rem; flex: 1 1 20rem; }
.brand-logo { width: min(100%, 45.4rem); }
.brand-tagline {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--coral);
  font-size: clamp(.8rem, .45rem + 1.05vw, 1.5rem);
  letter-spacing: .01em;
}

.social { display: flex; gap: .75rem; align-items: center; padding-top: .5rem; }
.social a {
  display: grid; place-items: center;
  width: clamp(2.5rem, 3.3vw, 4rem);
  height: clamp(2.5rem, 3.3vw, 4rem);
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social a:hover,
.social a:focus-visible { background: var(--coral); color: var(--white); transform: translateY(-2px); }
.social svg {
  width: 60%; height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { padding: clamp(2.5rem, 7vw, 6.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.intro h1 { font-size: var(--fs-h1); color: var(--blue); }
.intro-year { color: var(--coral); }
.lead {
  max-width: 62ch;
  margin-top: clamp(1rem, 2vw, 1.75rem);
  font-size: clamp(1rem, .92rem + .35vw, 1.25rem);
  color: #33405e;
}

/* ==========================================================================
   Κάρτες εβδομαδιαίου προγράμματος
   ========================================================================== */
.weekly { padding-bottom: clamp(2.5rem, 6vw, 5rem); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2.2vw, 3.9rem);
}

.card {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 2.6vw, 2.5rem);
  min-height: clamp(14rem, 16vw, 19.9rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(44, 72, 155, .18); }

.card h3 { font-size: var(--fs-h3); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.card li { display: flex; flex-direction: column; }
.card time { font-weight: 500; opacity: .9; }

.card--coral { background: var(--coral); color: var(--white); }
.card--blue  { background: var(--blue);  color: var(--sky); }
.card--sky   { background: var(--sky);   color: var(--blue); }

/* ==========================================================================
   Accordion — ετήσιο πρόγραμμα
   ========================================================================== */
.annual { padding-bottom: clamp(1rem, 2vw, 1.5rem); }

.section-title {
  font-size: var(--fs-h2);
  color: var(--coral);
  margin-bottom: clamp(.75rem, 1.5vw, 1.4rem);
}
.section-title--blue { color: var(--blue); }

.accordion { display: grid; gap: clamp(.5rem, 1.2vw, 1.3rem); }

.acc-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.acc-item h3 { margin: 0; }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(.6rem, 1.1vw, 1rem) clamp(1rem, 1.6vw, 1.6rem);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, .75rem + 1.9vw, 3.4rem);
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}
.acc-day { flex: 0 0 auto; }
.acc-class { flex: 1 1 auto; text-align: right; font-size: .8em; }

.acc-chevron {
  flex: 0 0 auto;
  width: .55em; height: .55em;
  border-right: .11em solid currentColor;
  border-bottom: .11em solid currentColor;
  transform: rotate(45deg) translate(-.1em, -.1em);
  transform-origin: center;
  transition: transform .25s ease;
}
.acc-head[aria-expanded="true"] .acc-chevron { transform: rotate(225deg) translate(-.05em, -.05em); }

/* Το panel μένει ΠΑΝΤΑ display:grid — το display δεν πρέπει να αλλάζει, αλλιώς
   το grid-template-rows δεν κάνει interpolate και το κλείσιμο κόβεται απότομα.
   Το κρύβουμε με visibility (+ inert από το JS) αφού τελειώσει η σύμπτυξη.   */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .32s ease, visibility 0s linear .32s;
}
.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .32s ease, visibility 0s linear 0s;
}
/* Το .acc-panel-inner ΔΕΝ πρέπει να έχει padding: το padding δεν συμπτύσσεται
   και το κλειστό panel θα έμενε ~62px ψηλό. Το padding πάει στο .cycles.    */
.acc-panel > .acc-panel-inner { overflow: hidden; min-height: 0; }

.cycles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1rem, 2vw, 2.4rem);
  padding: clamp(1rem, 2vw, 1.9rem) clamp(1rem, 1.6vw, 1.6rem) clamp(1.5rem, 2.4vw, 2.4rem);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
}
.cycle > :last-child { margin-bottom: 0; }
.cycle-title  { font-weight: 700; margin: 0 0 .1em; }
.cycle-dates  { margin: 0 0 1.1em; }
.cycle-note   { margin: 0 0 1.1em; font-size: var(--fs-small); opacity: .85; }

.acc-item--coral { background: var(--coral); color: var(--white); }
.acc-item--blue  { background: var(--blue);  color: var(--sky); }
.acc-item--sky   { background: var(--sky);   color: var(--blue); }

.acc-item--coral .acc-head:hover { background: rgba(0, 0, 0, .06); }
.acc-item--blue  .acc-head:hover { background: rgba(255, 255, 255, .07); }
.acc-item--sky   .acc-head:hover { background: rgba(44, 72, 155, .07); }

/* ==========================================================================
   Πληροφοριακά πάνελ
   ========================================================================== */
.info { padding-bottom: clamp(3rem, 7vw, 6rem); }
.info .section-title { margin-top: clamp(2rem, 4vw, 3.2rem); }

.panel {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.6rem) clamp(1.5rem, 3vw, 2.6rem);
}
.panel > :last-child { margin-bottom: 0; }
.panel strong { color: var(--sky); }
.panel-list { margin: 0 0 .85em; padding-left: 1.25rem; }
.panel-list li { margin-bottom: .2em; }
.panel-sub {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.375rem);
  color: var(--sky);
  margin-top: 1.4em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--sky);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  overflow: hidden;
}
.deco-house {
  position: absolute;
  right: clamp(-4rem, -3vw, -1rem);
  bottom: 3.9rem;
  width: clamp(9rem, 14vw, 15rem);
  opacity: .45;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  color: var(--blue);
}
.footer-logo { width: min(100%, 20rem); }
.footer-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--coral);
  margin-top: .4rem;
  font-size: .95rem;
}
.footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.footer-contact p, .footer-social p { margin: 0 0 .35em; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.footer-legal {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 72, 155, .2);
  color: var(--blue);
  font-size: var(--fs-small);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1.5rem;
}
.footer-legal p { margin: 0; }
.footer-credits strong { font-weight: 700; letter-spacing: .01em; }
.footer-credits span { opacity: .5; padding: 0 .15rem; }

/* ==========================================================================
   Μικρές οθόνες
   ========================================================================== */
@media (max-width: 640px) {
  .acc-head { flex-wrap: wrap; row-gap: .15rem; }
  .acc-class { flex-basis: 100%; text-align: left; font-size: .62em; opacity: .9; }
  .acc-chevron { position: absolute; right: 1.1rem; }
  .acc-head { position: relative; padding-right: 3rem; }
  /* τα διακοσμητικά φεύγουν σε μικρές οθόνες — δεν υπάρχει χώρος και
     πέφτουν πάνω στο λογότυπο / στα credits */
  .deco-blob, .deco-house { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .deco-blob, .deco-house, .social, .skip-link { display: none !important; }
  /* στην εκτύπωση ανοίγουν όλα τα panel */
  .acc-panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .acc-panel > .acc-panel-inner { overflow: visible !important; }
  .acc-chevron { display: none !important; }
  .panel, .card, .acc-item { break-inside: avoid; }
  body { color: #000; }
}
