/* ==========================================================================
   ΚΠΩ Kids – Παιδικά Εκπαιδευτικά Προγράμματα Πληροφορικής & Ρομποτικής
   kids.kentropliroforikis.gr
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f6ff;
  --white: #ffffff;
  --ink: #1e2246;
  --muted: #5a6079;
  --primary: #4f46e5;
  --primary-dark: #3b32c9;
  --primary-soft: #ecebff;
  --accent: #ff9e2c;
  --accent-dark: #f07f00;
  --pink: #ff5da2;
  --green: #22b573;
  --sky: #0ea5e9;
  --purple: #8b5cf6;
  --red: #ef4444;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(30, 34, 70, 0.08);
  --shadow-md: 0 12px 34px rgba(30, 34, 70, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 34, 70, 0.16);
  --grad-hero: linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #6d28d9 100%);
  --grad-accent: linear-gradient(90deg, #ff9e2c, #ff5da2);
  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

section { padding: 4.5rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 120, 60, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(255, 120, 60, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 18px rgba(30, 34, 70, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-name { font-family: var(--font-head); font-weight: 800; line-height: 1.05; color: var(--ink); }
.brand-name span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--primary); text-transform: uppercase; }

.nav-links { display: flex; gap: 0.2rem; }
.nav-links a {
  font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { background: var(--primary-soft); color: var(--primary); }

.btn-call {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  white-space: nowrap;
}
.btn-call:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: var(--primary-soft);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: 5.5rem 0 6rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ff9e2c, transparent 70%);
  top: -120px; right: -80px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  bottom: -140px; left: -100px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero h1 .hl { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero p.lead { font-size: 1.18rem; color: #dcdcf5; max-width: 560px; margin-bottom: 1.8rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* Hero card */
.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  padding: 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero-card .emoji-row {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  font-size: 2.6rem;
  margin-bottom: 1rem;
}
.hero-card h3 { color: #fff; text-align: center; }
.hero-card p { color: #dcdcf5; text-align: center; margin: 0 0 1rem; }
.hero-card .pill-list { display: grid; gap: 0.5rem; }
.hero-card .pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

/* ---------- Stats ---------- */
.stats {
  padding: 2.4rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}
.stats-grid {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px dashed #e3e4f5;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { color: var(--muted); font-weight: 700; font-size: 0.92rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.about-text p { color: var(--muted); margin-bottom: 1rem; }

.feature-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature-tile {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.feature-tile .t-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.feature-tile strong { display: block; font-family: var(--font-head); }
.feature-tile span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Main program sections (IT Kids & Robotics) ---------- */
.program-main { position: relative; }
.program-main.alt { background: var(--white); }

.program-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.promo-visual {
  position: relative;
  border-radius: 26px;
  padding: 2.4rem 2rem;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.promo-visual.itkids { background: linear-gradient(135deg, #2563eb, #0ea5e9 60%, #22d3ee); }
.promo-visual.robotics { background: linear-gradient(135deg, #b45309, #f97316 55%, #fbbf24); }
.promo-visual .big-emoji { font-size: 4.4rem; text-align: center; margin-bottom: 0.8rem; }
.promo-visual h3 { color: #fff; text-align: center; font-size: 1.7rem; }
.promo-visual .age-chip {
  display: inline-block;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  width: fit-content;
}
.promo-visual ul { display: grid; gap: 0.5rem; }
.promo-visual li {
  background: rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.94rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.program-cards { display: grid; gap: 1.2rem; }
.p-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.4rem;
  display: flex;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 6px solid var(--primary);
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.p-card.pink { border-left-color: var(--pink); }
.p-card.green { border-left-color: var(--green); }
.p-card.sky { border-left-color: var(--sky); }
.p-card .p-ico {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--primary-soft);
}
.p-card h4 { margin-bottom: 0.25rem; font-size: 1.15rem; }
.p-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- More programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.program-tile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-tile .t-emoji {
  width: 68px; height: 68px;
  margin: 0 auto 1rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: var(--primary-soft);
}
.program-tile h3 { font-size: 1.15rem; }
.program-tile .age { font-family: var(--font-head); font-weight: 700; color: var(--accent-dark); font-size: 0.9rem; }
.program-tile p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Why us ---------- */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.why-card {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.why-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.why-card .w-ico { font-size: 2rem; margin-bottom: 0.7rem; }
.why-card h3 { font-size: 1.12rem; }
.why-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testi {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testi .stars { color: #f5a623; letter-spacing: 2px; }
.testi blockquote { margin: 0; color: var(--ink); font-size: 0.98rem; font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 0.7rem; }
.testi .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--primary-soft);
}
.testi .who strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.testi .who span { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-hero);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: #dcdcf5; max-width: 640px; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
}
.contact-info .info-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.contact-info .i-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.contact-info h4 { margin-bottom: 0.1rem; }
.contact-info p { margin: 0; color: var(--muted); }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid #e3e4f5;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.form-card textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.form-success {
  display: none;
  background: #e7f9f0;
  border: 2px solid var(--green);
  color: #14724a;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #171a3d; color: #c7cae6; padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer p { margin: 0.3rem 0; font-size: 0.95rem; }
.site-footer a { color: #c7cae6; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-links a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.88rem;
}
.footer-bottom .adult-link {
  background: var(--grad-accent);
  color: #fff;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: #fff;
    flex-direction: column;
    gap: 0.4rem;
    padding: 5.5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 70;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 0.8rem 1rem; }
  .nav-toggle { position: relative; display: grid; place-items: center; z-index: 90; }
  .btn-call { display: none; }

  .hero-grid, .about-grid, .program-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px dashed #e3e4f5; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 3.2rem 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .feature-tiles, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 4.5rem; }
}
