/* vickyfollidi.gr: one stylesheet, design tokens from the old site (logo colours, Open Sans). */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/open-sans-greek-normal.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/open-sans-latin-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/open-sans-latin-ext-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/open-sans-greek-italic.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/open-sans-latin-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand: the four logo colours, used exactly as on the old site */
  --yellow: #fbba30;
  --red: #e83c40;
  --green: #41ae60;
  --blue: #007ac0;
  /* darker shades only where white text sits on colour (contrast fix, see audit.md) */
  --yellow-ink: #8a5a00;
  --green-dark: #2e7d45;
  --blue-dark: #00609a;

  --ink: #2b2b2b;          /* headings */
  --text: #474747;         /* body: darker than the old #6f6f6f for contrast */
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --paper: #ffffff;
  --mist: #f3f3f3;         /* gallery background on the old "Το ιατρείο" page */
  --sky: #e8f5fe;          /* light blue band under the header on inner pages */

  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h4: 1.0625rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --lh: 1.7;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --radius: 5px;
  --wrap: 1140px;
  --prose: 46rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh); color: var(--text); background: var(--paper); }
img, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.3; font-weight: 700; margin: 0 0 var(--s4); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4, h5, h6 { font-size: var(--fs-h4); }
p, ul, ol, table, blockquote { margin: 0 0 var(--s4); }
strong, b { font-weight: 700; color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { left: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* four-colour rule: the old site's heading underline, built from the logo colours */
.rule { display: block; width: 150px; height: 4px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }
.ruled::after { content: ''; display: block; width: 125px; height: 4px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }

/* ── header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; }
.brand img { display: block; width: 97px; height: auto; }
.nav-toggle { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.nav-link, .nav-sub-toggle { display: block; padding: var(--s3) var(--s3); font: 600 0.9375rem/1.3 var(--font); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-sub-toggle:hover { color: var(--blue); }
.nav-link[aria-current="page"] { border-bottom-color: var(--blue); }
.nav-sub-toggle::after { content: ''; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.has-sub { position: relative; }
.has-sub:has([aria-current]) > .nav-sub-toggle { border-bottom-color: var(--blue); }
.sub { position: absolute; left: 0; top: 100%; min-width: 19rem; background: var(--paper); border-top: 3px solid var(--blue); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); padding: var(--s2) 0; display: none; }
.sub .nav-link { font-weight: 400; padding: var(--s2) var(--s4); border-bottom: 0; }
.sub .nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
@media (min-width: 961px) { .has-sub.dismissed > .sub { display: none; } } /* Escape closes it even while hovered or focused */

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); font: 600 0.9375rem var(--font); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .nav-toggle span[aria-hidden] { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--blue); max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { display: block; padding: var(--s2) var(--gutter) var(--s4); }
  .nav-link, .nav-sub-toggle { width: 100%; text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { color: var(--blue); border-bottom-color: var(--line); }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 var(--s4); min-width: 0; }
  .sub .nav-link { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .nav-sub-toggle::after { display: none; }
}

/* thin band under the header on inner pages (the old site's page-header strip) */
.band { height: 1.5rem; background: var(--sky); }

/* ── footer ─────────────────────────────────────────── */
.site-footer { background: var(--green-dark); color: #fff; margin-top: var(--s8); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); padding-block: var(--s5); font-size: var(--fs-small); }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.footer-contact a { text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }
.icon { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 0.35em; fill: currentColor; }
.to-top { margin-left: var(--s4); }

/* ── page heading ───────────────────────────────────── */
.page-head { padding-block: var(--s7) var(--s5); }
.page-head h1 { margin: 0; }
.page-head h1::after { content: ''; display: block; width: 150px; height: 5px; margin-top: var(--s4);
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }

/* ── prose (CMS markdown) ───────────────────────────── */
.prose { max-width: var(--prose); }
.prose h2 { margin-top: var(--s7); }
.prose h2::after { content: ''; display: block; width: 125px; height: 4px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }
.prose h3 { margin-top: var(--s6); }
.prose h4, .prose h5, .prose h6 { margin-top: var(--s5); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--blue); }
.prose p:has(> img) { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s3); }
.prose img { border-radius: 2px; }
.prose table { width: max-content; max-width: min(100vw - 2 * var(--gutter), var(--wrap)); border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose td, .prose th { min-width: 8rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--s2) var(--s3); vertical-align: top; text-align: left; }
.prose th { background: var(--mist); color: var(--ink); }
.prose td ul { margin: 0; }
.prose blockquote { border-left: 4px solid var(--blue); padding: var(--s2) var(--s4); background: var(--mist); }
.prose sup { line-height: 0; }
.prose a { overflow-wrap: anywhere; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 var(--s5); background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── slider (home hero, FAQ banner): scroll-snap + two buttons ─ */
.slider { position: relative; background: #000; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.35); color: #fff; cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { background: rgb(0 0 0 / 0.6); }
.slider-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.slider-btn.prev { left: var(--s4); }
.slider-btn.next { right: var(--s4); }
.hero .slide { aspect-ratio: 1920 / 620; min-height: 260px; }
.faq-slider .slide { aspect-ratio: 1800 / 500; min-height: 180px; }

/* ── home ───────────────────────────────────────────── */
.boxes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -3rem; position: relative; z-index: 2; }
.box { padding: var(--s5) var(--s5) var(--s6); color: #fff; }
.box p { margin: 0; white-space: pre-line; font-size: 0.9375rem; line-height: 1.6; }
.box .box-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--s3); line-height: 1.35; }
.box:nth-child(1) { background: var(--yellow); color: #2b2100; }
.box:nth-child(2) { background: var(--red); }
.box:nth-child(3) { background: var(--green-dark); }
.box:nth-child(4) { background: var(--blue); }
@media (max-width: 900px) { .boxes { grid-template-columns: repeat(2, 1fr); margin-top: 0; } }
@media (max-width: 520px) { .boxes { grid-template-columns: 1fr; } }

.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); align-items: start; padding-block: var(--s8) var(--s7); }
.intro h1 { font-size: var(--fs-h2); }
.intro h1::after { content: ''; display: block; width: 125px; height: 4px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--red) 25% 50%, var(--green) 50% 75%, var(--blue) 75% 100%); }
.intro-body p:first-child { font-size: var(--fs-lead); color: var(--ink); }
.services { list-style: none; margin: var(--s6) 0 0; padding: var(--s5) var(--s5) var(--s5) var(--s6); border: 3px solid var(--blue); }
.services li { position: relative; font-weight: 700; color: var(--ink); padding: 0.2rem 0; }
.services li::before { content: ''; position: absolute; left: -1.1rem; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.intro-figure { margin: 0; border: 3px solid var(--blue); line-height: 0; }
.intro-figure img { width: 100%; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s7); } .intro-figure { max-width: 436px; } }

.banner { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(240px, 30vw, 500px); overflow: hidden; text-decoration: none; isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banner-text { background: rgb(255 255 255 / 0.88); padding: var(--s4) var(--s6); border-radius: var(--radius); }
.banner-text .banner-title { display: block; font-size: var(--fs-h1); font-weight: 700; color: var(--red); line-height: 1.2; }
.banner-text .banner-sub { display: block; margin-top: var(--s2); color: var(--green-dark); letter-spacing: 0.08em; font-weight: 600; }
a.banner:hover .banner-title { text-decoration: underline; }

/* ── doctor ─────────────────────────────────────────── */
.doc-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.doc-top figure { margin: 0; text-align: center; }
.quote-banner { position: relative; display: grid; align-items: end; min-height: clamp(220px, 28vw, 390px); margin-block: var(--s7); overflow: hidden; isolation: isolate; }
.quote-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.quote-banner blockquote { margin: 0; padding: var(--s7) var(--s5) var(--s5); text-align: center; color: #fff; font-size: var(--fs-h2); font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); }
.doc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s7); align-items: start; }
.doc-bottom img { width: 100%; }
@media (max-width: 860px) { .doc-top, .doc-bottom { grid-template-columns: 1fr; gap: var(--s5); } .doc-top figure { order: -1; } .doc-top figure img { max-width: 200px; } }

/* ── clinic gallery ─────────────────────────────────── */
.gallery-section { background: var(--mist); padding-block: var(--s6) var(--s7); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
.gallery li { margin: 0; }
.gallery img { width: 100%; border: 1px solid #d9d9d9; background: #fff; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; gap: var(--s4); } }

/* ── FAQ ────────────────────────────────────────────── */
.faq-item { padding-block: var(--s5); }
.faq-item h2 { margin-top: var(--s4); }

/* ── articles list + post ───────────────────────────── */
.post-list { list-style: none; margin: 0; padding: 0; max-width: var(--prose); }
.post-list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.post-date { text-align: center; color: #fff; background: var(--blue-dark); border-radius: var(--radius); padding: var(--s2); line-height: 1.2; align-self: start; }
.post-date .d { display: block; font-size: 1.5rem; font-weight: 700; }
.post-date .my { display: block; font-size: 0.8125rem; }
.post-list h2 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-list p { margin: 0; color: var(--muted); }
.post-meta { color: var(--muted); font-size: var(--fs-small); margin-top: var(--s3); }
.post-meta a { font-weight: 600; }
.post-nav { display: flex; justify-content: space-between; gap: var(--s4); max-width: var(--prose); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* ── contact ────────────────────────────────────────── */
.map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 400px); border: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); padding-top: var(--s7); }
.contact-card img { width: 220px; margin-bottom: var(--s5); }
.contact-card address { font-style: normal; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); margin: var(--s4) 0; }
.contact-card dt { font-weight: 700; color: var(--ink); }
.contact-card dd { margin: 0; }
.form-embed iframe { width: 100%; min-height: 640px; border: 0; }
.contact-direct { border: 3px solid var(--blue); padding: var(--s5) var(--s6); }
.contact-direct h2 { font-size: var(--fs-h3); }
.contact-direct ul { list-style: none; margin: 0; padding: 0; }
.contact-direct li { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.contact-direct li:last-child { border-bottom: 0; }
.contact-direct a { font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s6); } }

.not-found { padding-block: var(--s8); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .slider-track { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .slider-btn, .band { display: none; } }
