/* Ελένη Ατραΐδου, Παιδοψυχολόγος. Site styles (no framework). */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #23202b;
  --muted: #615b6e;
  --line: #ebe6f1;
  --brand: #8e7cc3;
  --brand-ink: #5a4796;
  --brand-dark: #463875;
  --brand-soft: #f2eefa;
  --star: #f4b400;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(35, 32, 43, .05), 0 8px 28px rgba(70, 56, 117, .08);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1140px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--alt { background: var(--surface); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-ink); color: #fff; box-shadow: 0 6px 18px rgba(90, 71, 150, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-ink); border-color: #d7cfea; }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(35, 32, 43, .05); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; }
.brand__role { font-size: .78rem; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9688rem; padding: 8px 14px; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav .btn { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.15rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(35, 32, 43, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 1.0625rem; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -220px;
  background: radial-gradient(closest-side, rgba(142, 124, 195, .22), rgba(142, 124, 195, 0));
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand-ink); }
.hero__lead { font-size: 1.1875rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  box-shadow: var(--shadow);
}
.rating:hover { color: var(--ink); border-color: #d7cfea; }
.rating__g { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.rating__stars { color: var(--star); letter-spacing: 1px; }
.rating__count { color: var(--muted); font-weight: 600; }

.hero__photo { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 200px 200px 28px 28px;
  background: linear-gradient(160deg, #b8a9e3, var(--brand));
}
.hero__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 200px 200px 28px 28px;
  box-shadow: 0 24px 60px rgba(70, 56, 117, .25);
}
.hero__badge {
  position: absolute;
  left: -24px;
  bottom: 36px;
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: .875rem;
  line-height: 1.35;
  max-width: 230px;
}
.hero__badge strong { display: block; font-size: .9375rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; width: min(300px, 78%); }
  .hero { padding-top: 28px; }
  .hero__photo::before { inset: 16px -16px -16px 16px; }
  .hero__badge { left: -12px; bottom: 20px; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 640px) {
  .hero__photo { width: 190px; }
  .hero__photo img { aspect-ratio: 1 / 1; border-radius: 50%; object-position: 50% 22%; }
  .hero__photo::before { inset: 10px -10px -10px 10px; border-radius: 50%; }
  .hero__badge { display: none; }
  .hero__grid { gap: 24px; }
}

/* ---------- Approach cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card img { width: 150px; height: 104px; object-fit: contain; margin: 0 auto 20px; border-radius: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7cfea; }
.service__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.15rem; }
.service h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin: 0; line-height: 1.35; }
.service p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__photo { position: sticky; top: calc(var(--header-h) + 24px); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--brand-dark);
}
.quote footer { font-family: var(--font-body); font-style: normal; font-size: .875rem; font-weight: 700; margin-top: 8px; color: var(--brand-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--brand-ink); }
.fact span { font-size: .875rem; color: var(--muted); line-height: 1.4; display: block; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-weight: 700;
  font-size: 1.0625rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-ink); line-height: 1; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 2px 20px; color: var(--muted); }
.acc .acc__body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 360px; margin-inline: auto; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 18px; }
.reviews__score { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.reviews__meta { text-align: left; line-height: 1.35; }
.reviews__meta .stars { color: var(--star); font-size: 1.1rem; letter-spacing: 2px; }
.reviews__meta span { color: var(--muted); font-size: .9375rem; }
.reviews { columns: 3 300px; column-gap: 20px; }
.review {
  break-inside: avoid;
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.review__name { font-weight: 700; line-height: 1.3; }
.review__name a { color: var(--ink); text-decoration: none; }
.review__name a:hover { color: var(--brand-ink); text-decoration: underline; }
.review__stars { color: var(--star); font-size: .8125rem; letter-spacing: 1px; }
.review blockquote { margin: 0; color: var(--muted); font-size: .9688rem; }
.reviews__more { text-align: center; margin-top: 16px; }

/* ---------- Education logos ---------- */
.edu { padding: 48px 0; border-top: 1px solid var(--line); }
.edu__title { text-align: center; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.edu__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.edu__logos img { height: 76px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.edu__logos a:hover img, .edu__logos img:hover { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.contact__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.contact__list small { display: block; font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact__list a, .contact__list span.val { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--brand-ink); text-decoration: underline; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow); background: var(--brand-soft); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dark); color: #e7e1f5; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer a { color: #fff; }
.footer p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(35, 32, 43, .16);
  }
  .callbar .btn { min-height: 46px; padding: 10px 12px; }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
}

/* Font Awesome 5.0 draws the handset mirrored; flip it so it faces the usual way. */
.fa-phone { transform: scaleX(-1); }
