:root {
  --ink: #0b1d3a;
  --ink-soft: #4b5a70;
  --bg: #fbfcfe;
  --bg-alt: #eef3fb;
  --line: #d8e1ee;
  --accent: #0058b4;
  --accent-2: #0058b4;
  --dark: #06224a;
  --radius: 14px;
  --serif: "Commissioner", system-ui, sans-serif;
  --sans: "Commissioner", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg) url(img/bg-pattern.png) 0 0 / 296px 400px repeat;
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.2; margin: 0 0 .5em; }
h3 { font-weight: 500; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
mark { background: #fff1c9; color: inherit; padding: 0 .2em; border-radius: 3px; }

/* Language: show only the active language */
html[data-lang="el"] [lang="en"],
html[data-lang="en"] [lang="el"] { display: none !important; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 252, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo b { font-weight: 500; }
.logo b span { color: var(--accent); }
.logo-mark { width: 24px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--dark); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: none; font: 600 .8rem var(--sans); color: var(--ink-soft);
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 8vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-disc {
  width: min(380px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%;
  background: var(--bg-alt); display: grid; place-items: center; position: relative;
}
.hero-disc::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed var(--line);
}
.hero-mark { width: 44%; height: auto; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: rgba(238, 243, 251, .72); }
.section-dark {
  color: #eef4fc;
  background: linear-gradient(rgba(0, 88, 180, .93), rgba(0, 88, 180, .93)), url(img/pattern-blue.jpg) center / 520px repeat;
}
.section-dark .eyebrow { color: #b8d3f5; }
.section-dark .btn-primary { background: #fff; color: var(--accent); }
.section-dark .btn-primary:hover { background: var(--dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #b8d3f5; }
.section-intro { color: var(--ink-soft); max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.feature { border-top: 1px solid var(--ink); padding-top: 20px; }
.feature .num { font: 500 .85rem var(--sans); color: var(--accent-2); display: block; margin-bottom: 12px; }
.feature p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 38, 46, .07); }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.portrait { position: sticky; top: 100px; }
.portrait-ph {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(rgba(238, 243, 251, .9), rgba(238, 243, 251, .9)), url(img/bg-pattern.png) 0 0 / 222px 300px;
  border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft);
}
.role { color: var(--accent); font-weight: 500; }
.sub { margin-top: 36px; font-size: 1.15rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 16px 20px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent-2);
}
.timeline strong { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* Locations */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.location {
  background: var(--bg); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
}
.location h3 { font-size: 1.6rem; }
.location dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 20px 0; }
.location dt { color: var(--ink-soft); font-size: .9rem; }
.location dd { margin: 0; }
.map-link { font-weight: 500; text-decoration: none; }

/* Referrals */
.referral { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-family: var(--serif);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-line mark { background: rgba(255, 241, 201, .2); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: #d6e4f7; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--sans); color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #b8d3f5; outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: center; }
.form .check input { width: auto; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--dark); color: #a7b9d6; border-top: 1px solid rgba(255,255,255,.08); padding: 32px 0; }
.site-footer .logo { color: #fff; }
.site-footer .logo b span { color: #b8d3f5; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.small { font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .referral, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; margin-inline: auto; }
  .hero-disc { width: 200px; }
  .features, .cards { grid-template-columns: 1fr 1fr; }
  .portrait { position: static; max-width: 320px; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; gap: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .cards, .locations, .form .row { grid-template-columns: 1fr; }
  .location { padding: 24px; }
}

.credentials { font-size: .9rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; letter-spacing: .02em; }
.about-grid .bio { font-size: 1.05rem; }
.timeline em { font-style: normal; color: var(--ink-soft); display: block; font-size: .92rem; }
.memberships { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.memberships li { padding-left: 18px; position: relative; }
.memberships li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.hero-note { margin-top: 28px; font-size: .92rem; color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 12px; }
.form .consent { align-items: flex-start; font-size: .85rem; }
.form .consent input { margin-top: 3px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(11, 29, 58, .12); }

/* Photos */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(11, 29, 58, .12); }
.photo-wide { margin: 36px 0 8px; }
.photo-wide img { aspect-ratio: 16 / 7; object-fit: cover; }
#microscope .photo-wide img { object-position: 50% 62%; }
#locations .photo-wide img { object-position: 50% 45%; }
.hero-photo { position: relative; margin: 0; max-width: 440px; justify-self: end; width: 100%; }
.hero-photo img:not(.hero-badge) { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 22px; box-shadow: 0 24px 50px rgba(11, 29, 58, .16); }
.hero-badge {
  position: absolute; left: -18px; bottom: -18px; width: 76px; height: 76px; padding: 16px;
  background: var(--accent); border-radius: 50%; object-fit: contain; box-shadow: 0 10px 24px rgba(0, 88, 180, .35);
}
.referral { align-items: center; }
.referral .photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; }
.referral .steps { margin-top: 24px; }
@media (max-width: 900px) {
  .hero-photo { max-width: 420px; }
  .hero-badge { left: -8px; bottom: -8px; width: 60px; height: 60px; padding: 12px; }
  .photo-wide img { aspect-ratio: 4 / 3; }
}

/* Treatment details */
.card-link { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.card-link p { flex: 1; }
.card-more {
  margin-top: 18px; align-self: flex-start; background: none; border: 0; padding: 0;
  font: 600 .92rem var(--sans); color: var(--accent); cursor: pointer;
}
.card-more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-more:focus-visible { outline: none; }
.card-link:has(.card-more:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-link:hover { border-color: var(--accent); }
dialog.therapy {
  width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: 18px; color: var(--ink); background: var(--bg); box-shadow: 0 30px 80px rgba(11, 29, 58, .3);
}
dialog.therapy::backdrop { background: rgba(6, 34, 74, .55); backdrop-filter: blur(3px); }
.therapy-inner { padding: 40px 44px 36px; position: relative; }
.therapy h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300; margin-right: 32px; }
.therapy h4 { font: 600 1.02rem var(--sans); color: var(--accent); margin: 26px 0 8px; }
.therapy-intro { font-size: 1.08rem; color: var(--ink-soft); }
.therapy ul { margin: 0; padding-left: 20px; }
.therapy li { margin-bottom: 6px; }
.therapy li::marker { color: var(--accent); }
.therapy .btn { margin-top: 26px; }
.therapy-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.therapy-close:hover { background: var(--bg-alt); }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .therapy-inner { padding: 32px 22px 26px; }
}

/* Lectures */
.stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 28px 0 32px; }
.stats div { display: flex; flex-direction: column; color: var(--ink-soft); font-size: .92rem; }
.stats strong { font: 300 2.6rem/1.1 var(--serif); color: var(--accent); }
.talk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.talk-filters button {
  font: 500 .9rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.talk-filters button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.talk-year { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.talk-year h3 { font: 300 2rem/1 var(--serif); color: var(--accent); margin: 0; }
.talk-year ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.talk p { margin: 0; }
.talk-event { font-weight: 600; }
.talk-title { color: var(--ink); margin-top: 2px !important; }
.talk-meta { font-size: .88rem; color: var(--ink-soft); margin-top: 6px !important; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: rgba(0, 88, 180, .08); border-radius: 999px; padding: 2px 10px; margin-right: 6px; }
.talk[hidden], .talk-year[hidden] { display: none; }
.talks-more { margin-top: 20px; }
.talks-more[hidden] { display: none; }
@media (max-width: 700px) {
  .talk-year { grid-template-columns: 1fr; gap: 10px; }
  .gallery-open img { height: 220px; }
}
@media (max-width: 1240px) and (min-width: 1101px) {
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
}

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 8px 0 40px; }
.gallery-item { margin: 0; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-open img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: 50% 30%; transition: transform .3s; }
.gallery-open:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(6, 20, 40, .88); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 90px); margin: 0 auto; border-radius: 10px; }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; font-size: .95rem; }
.lightbox .therapy-close { top: -14px; right: -14px; z-index: 1; }

/* Courses */
#courses .sub { margin-top: 8px; }
#courses .sub ~ .sub { margin-top: 48px; }
.courses-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 16px; }
.courses-list:empty { display: none; }
.course { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; }
.course h4 { font: 500 1.15rem/1.35 var(--sans); margin: 4px 0 10px; }
.course p { margin: 0 0 8px; }
.course-date { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.course-cta { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.courses-past .course h4 { color: var(--ink-soft); }
.courses-past .course-cta { display: none; }
.courses-empty { margin-top: 16px; padding: 28px 30px; border: 1px dashed var(--accent); border-radius: var(--radius); background: rgba(0, 88, 180, .04); display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.courses-empty p { margin: 0; max-width: 46em; }
.courses-empty[hidden] { display: none; }

/* Congress timeline strip */
.strip-wrap { position: relative; margin: 8px 0 40px; }
.gallery.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0; padding: 4px 2px 14px; scrollbar-width: thin;
}
.gallery.strip .gallery-item { flex: 0 0 auto; width: 250px; scroll-snap-align: start; }
.gallery.strip .gallery-open { position: relative; }
.gallery.strip .gallery-open img { height: 320px; }
.year-badge {
  position: absolute; left: 12px; top: 12px; background: var(--accent); color: #fff;
  font: 600 .95rem var(--sans); padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.strip-nav {
  position: absolute; top: 140px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--accent); font-size: 1.6rem; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 18px rgba(11, 29, 58, .15);
}
.strip-nav.prev { left: -14px; }
.strip-nav.next { right: -14px; }
.strip-nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .gallery.strip .gallery-item { width: 72vw; }
  .gallery.strip .gallery-open img { height: 300px; }
  .strip-nav { display: none; }
}
