/* Βασιλική Γαλάνη, Παιδίατρος — κοινό stylesheet (αρχική + blog) */
:root {
  --brand: #a5d6a7;
  --brand-dark: #8cc98f;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-600: #16a34a;
  --green-700: #15803d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-600: #2563eb;
  --purple-600: #9333ea;
  --orange-600: #ea580c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.wrap { max-width: 1152px; margin: 0 auto; }
.wrap-narrow { max-width: 896px; margin: 0 auto; }

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

:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 2px; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 32px;
  border: 2px solid transparent; border-radius: 9999px;
  font: inherit; font-size: 14px; font-weight: 500; line-height: 1.25;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .3s, background-color .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: scale(1.05); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--emerald-50); }
.btn-blue { background: #fff; border-color: var(--blue-600); color: var(--blue-600); }
.btn-blue:hover { background: var(--blue-50); }
.btn-plain {
  background: #fff; border: 1px solid var(--gray-200); color: var(--gray-800);
  border-radius: 6px; padding: 8px 16px; min-height: 40px;
}
.btn-plain:hover { background: var(--gray-100); transform: none; }
.btn-square { border-radius: 6px; padding: 8px 16px; min-height: 40px; }
.btn-square:hover { transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 24px; }

/* ---------- Πλοήγηση ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  transition: background-color .3s, box-shadow .3s;
}
.nav.scrolled, .nav.open { background: #fff; box-shadow: var(--shadow-lg); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.nav-brand {
  font-size: 22px; font-weight: 700; color: var(--emerald-700);
  text-decoration: none; line-height: 1.2; white-space: nowrap; transition: color .3s;
}
.nav.scrolled .nav-brand { color: var(--emerald-600); }
.nav-links { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--gray-800); text-decoration: none; transition: color .3s; }
.nav-links a:not(.btn):hover { color: var(--emerald-600); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; flex: none;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--gray-800);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav.open .nav-toggle .icon-open { display: none; }
.nav.open .nav-toggle .icon-close { display: block; }

@media (min-width: 1440px) {
  .nav-brand { font-size: 24px; }
  .nav-links { gap: 32px; }
}

@media (max-width: 1279px) {
  .nav-brand { font-size: 18px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--gray-100); }
  .nav-links .btn { margin-top: 16px; }
}
@media (max-width: 400px) { .nav-brand { font-size: 15px; } }
@media (max-width: 340px) { .nav-brand { font-size: 13px; } }

/* ---------- Ενότητες ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: 36px; line-height: 1.11; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--gray-600); max-width: 672px; margin: 0 auto; }
.bg-white { background: #fff; }
.bg-gray { background: var(--gray-50); }
.bg-mint { background: linear-gradient(to bottom right, var(--emerald-50), var(--green-50)); }

.card { background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); }
.card-pad { padding: 32px; }

.dots li { display: flex; align-items: flex-start; }
.dots li + li { margin-top: 12px; }
.dots li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  margin: 8px 12px 0 0; background: var(--dot, var(--emerald-600));
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(to bottom right, var(--emerald-50), #fff);
  padding: calc(var(--nav-h) + 32px) 0 80px;
}
.hero-inner { max-width: 896px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 60px; line-height: 1; font-weight: 700; margin-bottom: 24px; animation: fade-in .6s ease-out both; }
.hero h1 span { display: block; color: var(--emerald-600); }
.hero p { font-size: 20px; line-height: 1.625; color: var(--gray-600); max-width: 672px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Σχετικά ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-col > * + * { margin-top: 24px; }
.panel { padding: 32px; border-radius: 16px; }
.panel h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.panel p, .panel li { color: var(--gray-600); line-height: 1.625; }
.panel-emerald { background: var(--emerald-50); }
.panel-green { background: var(--green-50); }
.portrait { position: relative; max-width: 384px; margin: 0 auto; }
.portrait-frame { background: linear-gradient(to bottom right, var(--emerald-100), var(--green-100)); border-radius: 24px; padding: 24px; }
.portrait-frame img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); }
.portrait-tag {
  position: absolute; left: 8px; bottom: 8px; padding: 8px 16px; border-radius: 8px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.portrait-tag strong { display: block; font-size: 18px; font-weight: 600; }
.portrait-tag span { font-size: 14px; color: var(--gray-600); }

/* ---------- Βιογραφικό ---------- */
.cv-contact { font-size: 18px; color: var(--gray-600); }
.cv-contact p { max-width: none; }
.cv-contact p + p { margin-top: 8px; }
.cv-contact .name { font-weight: 600; color: var(--emerald-700); }
.cv-contact a { text-decoration: none; }
.cv-contact a:hover { text-decoration: underline; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cv-grid + .cv-grid { margin-top: 48px; }
.card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.card-title svg { width: 32px; height: 32px; flex: none; }
.card-title h3 { font-size: 24px; font-weight: 600; }
.timeline > li { border-left: 4px solid var(--line, var(--emerald-200)); padding: 0 0 24px 24px; }
.timeline > li + li { margin-top: 24px; }
.timeline-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.timeline h4 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.timeline .when { flex: none; font-size: 14px; font-weight: 500; color: var(--accent, var(--emerald-600)); text-align: right; }
.timeline .where { font-weight: 500; color: var(--accent-dark, var(--emerald-700)); margin-bottom: 4px; }
.timeline .note { font-size: 14px; color: var(--gray-600); }
.t-green { --line: var(--green-200); --accent: var(--green-600); --accent-dark: var(--green-700); }
.c-emerald { color: var(--emerald-600); }
.c-green { color: var(--green-600); }
.c-purple { color: var(--purple-600); }
.c-orange { color: var(--orange-600); }
.dots-purple { --dot: var(--purple-600); }
.dots-orange { --dot: var(--orange-600); }
.dots-purple li, .dots-orange li { color: var(--gray-700); }

/* ---------- Ιατρείο ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery figure {
  position: relative; overflow: hidden; border-radius: 8px; background: #fff;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); transition: box-shadow .3s;
}
.gallery figure:hover { box-shadow: var(--shadow-lg); }
.gallery img { width: 100%; height: 256px; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  color: #fff; font-size: 18px; font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
}
.callout { margin-top: 48px; padding: 32px; border-radius: 16px; background: var(--emerald-50); text-align: center; }
.callout h3 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.callout p { color: var(--gray-600); line-height: 1.625; max-width: 768px; margin: 0 auto; }

/* ---------- Υπηρεσίες ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.service { padding: 32px; text-align: center; transition: transform .3s, box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--emerald-100); color: var(--emerald-600);
}
.service-icon svg { width: 32px; height: 32px; }
.service h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service p { color: var(--gray-600); line-height: 1.625; }

/* ---------- Άρθρα ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 8px;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s;
}
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card-img { width: 100%; height: 192px; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-500); margin-bottom: 8px; }
.post-date svg { width: 16px; height: 16px; flex: none; }
.post-card h2, .post-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--emerald-700); }
.post-card p { color: var(--gray-600); margin-bottom: 16px; flex: 1; }
.posts-empty { text-align: center; color: var(--gray-600); margin-bottom: 32px; }
.center { text-align: center; }

.post-list > * + * { margin-top: 32px; }
.post-list .post-card { flex-direction: row; }
.post-list .post-card-img { width: 260px; height: auto; min-height: 100%; flex: none; }
.post-list .post-card h2 { font-size: 24px; }
.post-list .post-card .btn { align-self: flex-start; }

.page { background: var(--gray-50); min-height: 100vh; padding: calc(var(--nav-h) + 48px) 0 80px; }
.page-head { margin-bottom: 32px; }
.page-head .btn { margin-bottom: 24px; }
.page-head h1 { font-size: 36px; line-height: 1.11; font-weight: 700; margin-bottom: 16px; }
.page-head p { font-size: 20px; color: var(--gray-600); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }

.article { background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); padding: 32px; }
.article h1 { font-size: 36px; line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; margin-bottom: 32px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--gray-700); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 28px; line-height: 1.3; color: var(--gray-800); margin-top: 1.8em; }
.prose h3 { font-size: 22px; line-height: 1.4; color: var(--gray-800); margin-top: 1.6em; }
.prose h4 { font-size: 18px; color: var(--gray-800); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--emerald-700); text-decoration: underline; }
.prose blockquote { border-left: 4px solid var(--emerald-200); padding-left: 1em; font-style: italic; color: var(--gray-600); }
.prose img { border-radius: 8px; margin-left: auto; margin-right: auto; }
.prose hr { border: 0; border-top: 1px solid var(--gray-200); }

/* ---------- Αξιολογήσεις ---------- */
.source { font-size: 14px; color: var(--blue-600); margin-top: 8px !important; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex; flex-direction: column; padding: 24px; border-radius: 8px;
  background: var(--blue-50); box-shadow: var(--shadow-lg); transition: box-shadow .3s;
}
.review:hover { box-shadow: var(--shadow-xl); }
.review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.review-score { font-weight: 600; color: var(--blue-600); }
.review-top time { font-size: 12px; color: var(--gray-500); padding-top: 4px; }
.review-text { flex: 1; font-size: 14px; font-style: italic; line-height: 1.625; color: var(--gray-700); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-200); color: var(--blue-600); font-size: 14px; font-weight: 600;
}
.review-author strong { display: block; font-size: 14px; font-weight: 600; }
.review-author small { font-size: 12px; color: var(--gray-600); }
.reviews-more { text-align: center; margin-top: 32px; }
.reviews-total { text-align: center; margin-top: 48px; font-size: 14px; color: var(--gray-600); }
.reviews-total strong { font-weight: 600; color: var(--blue-600); }

/* ---------- Επικοινωνία ---------- */
.contact { background: linear-gradient(to bottom right, var(--green-400), var(--green-600)); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { font-size: 20px; color: var(--green-100); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.contact-card {
  padding: 32px; border-radius: 8px; text-align: center;
  background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.contact-card svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--green-200); display: block; }
.contact-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--green-100); }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .big { margin-bottom: 16px; }
.contact-card .small { font-size: 14px; color: var(--green-200); }
.contact-card p + p { margin-top: 4px; }

.footer { background: var(--gray-800); color: #d1d5db; padding: 24px 0; font-size: 14px; text-align: center; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--gray-100); padding: 24px; }
.notfound h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.notfound p { font-size: 20px; color: var(--gray-600); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery, .posts, .reviews { grid-template-columns: repeat(2, 1fr); }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-grid + .cv-grid { margin-top: 32px; }
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 30px; }
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 32px; }
  .gallery, .posts, .reviews, .services { grid-template-columns: 1fr; }
  .contact-grid { gap: 20px; }
  .panel, .card-pad, .callout, .service, .contact-card { padding: 24px; }
  .timeline-top { flex-direction: column; gap: 4px; }
  .timeline .when { text-align: left; }
  .timeline > li { padding-left: 16px; }
  .contact .btn { width: 100%; padding-left: 16px; padding-right: 16px; }
  .page { padding-top: calc(var(--nav-h) + 24px); }
  .page-head h1, .article h1 { font-size: 28px; }
  .page-head p { font-size: 17px; }
  .article { padding: 20px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 20px; }
  .post-list .post-card { flex-direction: column; }
  .post-list .post-card-img { width: 100%; height: 192px; min-height: 0; }
  .post-list .post-card h2 { font-size: 20px; }
  .pager { flex-direction: column; }
}

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