/* ============================================================
   Μαρία Κελαράκη — Δερματολόγος Αφροδισιολόγος
   Custom static site · no frameworks
   Palette: porcelain / warm ink / pine / blush
   Type: GFS Didot (display) + Commissioner (body), self-hosted
   Signature: "aurora" hairline (Ellipse Nordlys — northern lights)
   ============================================================ */

/* ---------- Fonts (Greek + Latin subsets) ---------- */
@font-face {
  font-family: "GFS Didot";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/gfsdidot-greek.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: "GFS Didot";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/gfsdidot-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/commissioner-greek.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: "Commissioner";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/commissioner-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FBF9F6;
  --surface: #FFFFFF;
  --blush: #F3E8E0;
  --ink: #26201B;
  --ink-soft: #4C433C;
  --muted: #756A61;
  --pine: #2E5B4C;
  --pine-dark: #234A3D;
  --pine-tint: #EAF0ED;
  --line: #E7DDD3;
  --aurora: #2E5B4C;
  --font-display: "GFS Didot", "Times New Roman", Georgia, serif;
  --font-body: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(38, 32, 27, .05), 0 12px 32px -16px rgba(38, 32, 27, .18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blush); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

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

/* ---------- Signature: aurora hairline ---------- */
.aurora-top { height: 3px; background: var(--aurora); }
.aurora-rule {
  display: block; width: 5.5rem; height: 2px; border: 0; border-radius: 2px;
  background: var(--aurora); margin: 1.4rem 0 1.6rem;
}
.aurora-rule.center { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.25; }
.brand .brand-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .01em; }
.brand .brand-role {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding-block: .3rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pine); }
.nav-tel {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pine); color: #fff !important; border-bottom: 0 !important;
  padding: .55rem 1.05rem; border-radius: 8px; font-weight: 600; font-size: .92rem !important;
  white-space: nowrap;
}
.nav-tel:hover { background: var(--pine-dark); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 56rem) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; padding: .5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding-block: .85rem; border-bottom: 0; }
  .nav-tel { padding: .5rem .85rem; font-size: .85rem !important; }
}

/* ---------- Type scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(1.65rem, 2.8vw, 2.2rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.18rem; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
@media (max-width: 40rem) {
  body { font-size: 1rem; line-height: 1.65; }
  .lead { font-size: 1.06rem; }
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .65rem 1.3rem; border-radius: 8px; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine-dark); }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2.2rem, 5vw, 3.5rem) clamp(2.2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero p + p { margin-top: .9rem; }
.hero .lead { margin-top: 1rem; max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); }

.hours-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem 1.7rem; margin-top: .4rem;
}
.hours-card h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.hours-card .byappt { font-size: .85rem; font-weight: 600; color: var(--pine); margin-bottom: 1rem; }
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .55rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.hours-list li span:last-child { font-weight: 600; white-space: nowrap; }
.hours-card address { font-style: normal; font-size: .92rem; color: var(--ink-soft); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.hours-card address a { display: inline-block; margin-top: .4rem; font-weight: 600; }

@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-blush { background: var(--blush); --muted: #5F544B; }
.section-ink { background: var(--ink); color: var(--paper); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .tel-big {
  font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: #fff; display: inline-block; margin-block: .3rem .6rem;
}
.cta-band .tel-big:hover { color: #fff; }
.cta-band p { color: #CFC7BF; max-width: 34rem; margin-inline: auto; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(1.8rem, 4vw, 2.8rem) clamp(1.2rem, 3vw, 2rem); }
.page-head p { max-width: 44rem; }

/* ---------- Treatments page ---------- */
.anchor-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.anchor-pills a {
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .45rem 1rem;
}
.anchor-pills a:hover { border-color: var(--pine); color: var(--pine-dark); }
.treat-section { padding-block: clamp(2rem, 5vw, 3.5rem); scroll-margin-top: 2rem; }
.treat-section + .treat-section { border-top: 1px solid var(--line); }
.treat-list { display: grid; gap: .8rem; margin-top: 1.6rem; }
.treat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  scroll-margin-top: 2rem; overflow: hidden;
}
.treat summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .9rem;
  padding: 1.05rem 1.3rem; font-weight: 600; font-size: 1.02rem;
}
.treat summary::-webkit-details-marker { display: none; }
.treat summary h3 { font: inherit; display: inline; margin: 0; }
.treat:target { border-color: var(--pine); box-shadow: var(--shadow); }
.treat summary::before {
  content: "+"; font-family: var(--font-display); font-size: 1.25rem; line-height: 1;
  color: var(--pine); flex-shrink: 0; transform: translateY(.05em);
}
.treat[open] summary::before { content: "−"; }
.treat[open] summary { border-bottom: 1px solid var(--line); }
.treat .treat-body { padding: 1.1rem 1.3rem 1.3rem; color: var(--ink-soft); }
.treat .treat-body p + p { margin-top: .8rem; }
.treat .treat-body ul { margin: .6rem 0 .2rem 1.2rem; }
.treat:hover { border-color: var(--pine); }

/* ---------- Equipment page ---------- */
.device-list { display: grid; gap: 1rem; margin-top: 1.8rem; }
.device {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.device h3 { margin-bottom: .3rem; }
.device .use { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.device ul { list-style: none; margin-top: .8rem; border-top: 1px solid var(--line); }
.device ul li { padding-block: .55rem; border-bottom: 1px dashed var(--line); font-size: .95rem; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.device ul li:last-child { border-bottom: 0; }
.device ul li strong { font-weight: 650; color: var(--pine-dark); }
@media (max-width: 40rem) { .device ul li { grid-template-columns: 1fr; gap: .1rem; } }
.device--product { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; }
.device--product img { width: 76px; height: auto; flex: 0 0 auto; border-radius: 6px; }
.device--product .device-body { min-width: 0; }
.device--product h3 { margin-bottom: .35rem; }
.device--product .use { margin-bottom: 0; }

/* ---------- Biography page ---------- */
.bio-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bio-layout .prose p + p { margin-top: 1rem; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 1.4rem; margin-top: .4rem; }
.timeline li { position: relative; padding-bottom: 1.3rem; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.4rem - 5px); top: .5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--pine);
}
.timeline .year { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .1em; color: var(--pine); }
.timeline p { font-size: .95rem; color: var(--ink-soft); }
.spec-list { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; }
.spec-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .85rem; font-size: .88rem; line-height: 1.5; }
@media (max-width: 56rem) { .bio-layout { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-block + .contact-block { margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.contact-block h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-block .big { font-size: 1.35rem; font-weight: 650; }
.contact-block address { font-style: normal; }
.social-links { display: flex; gap: .7rem; margin-top: .6rem; }
.social-links a {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: .45rem 1rem;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--surface);
}
.social-links a:hover { border-color: var(--pine); color: var(--pine-dark); }
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.amea-note {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  background: var(--pine-tint); color: var(--pine-dark); font-weight: 600; font-size: .92rem;
  border-radius: 8px; padding: .55rem 1.1rem;
}
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Photo carousel ---------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.carousel .slides { display: flex; transition: transform .55s cubic-bezier(.3, .7, .3, 1); }
.carousel .slide { position: relative; flex: 0 0 100%; }
.carousel .slide img { width: 100%; height: clamp(180px, 34vw, 400px); object-fit: cover; }
.carousel .slide--product img { object-fit: contain; background: var(--blush); padding: .6rem 0; }
.carousel .slide figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.2rem 1.5rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(20, 16, 13, .72));
  color: #fff; font-weight: 600; font-size: 1rem;
}
.carousel .slide figcaption a { color: #fff; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%;
  width: 2.75rem; height: 2.75rem; cursor: pointer; color: var(--ink);
  font-size: 1.2rem; line-height: 1; box-shadow: var(--shadow);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: .8rem; }
.carousel-btn.next { right: .8rem; }
.carousel-dots { position: absolute; inset-inline: 0; bottom: .7rem; display: flex; justify-content: center; gap: .9rem; }
.carousel-dots button {
  position: relative; width: .65rem; height: .65rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .6); padding: 0;
}
.carousel-dots button::after { content: ""; position: absolute; inset: -9px; }
.carousel-dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .carousel .slides { transition: none; } }

/* ---------- Compact home sections ---------- */
.section-sm { padding-block: clamp(1.8rem, 3.5vw, 2.6rem); }
.mini-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mini-cat {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem;
}
.mini-cat:hover { border-color: var(--pine); color: var(--pine-dark); }
.side-title { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: .6rem; }
.equip-line { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 56rem) { .mini-cat-grid { grid-template-columns: 1fr; } }

/* ---------- Equipment page: two-column simple devices ---------- */
.device-list.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 40rem) { .device-list.two-col { grid-template-columns: 1fr; } }

/* ---------- Accessibility tools (ΕΣΠΑ requirement) ---------- */
.a11y-btn {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 3rem; height: 3rem; border-radius: 1.5rem; border: 2px solid #fff;
  background: var(--pine); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 1.35rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28); padding-inline: .75rem;
}
.a11y-btn:hover { background: var(--pine-dark); }
.a11y-btn-label { display: none; font-size: .85rem; font-weight: 600; }
@media (min-width: 56rem) { .a11y-btn-label { display: inline; } }
.a11y-panel {
  position: fixed; right: 1rem; bottom: 4.6rem; z-index: 90;
  width: min(17rem, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25); padding: 1rem 1.1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: .7rem; }
.a11y-panel .a11y-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.a11y-panel button {
  flex: 1; font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); padding: .5rem .6rem; cursor: pointer; text-align: left;
}
.a11y-panel button.center { text-align: center; }
.a11y-panel button:hover { border-color: var(--pine); }
.a11y-panel button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }

body.a11y-contrast {
  --paper: #ffffff; --surface: #ffffff; --blush: #ffffff; --pine-tint: #ffffff;
  --ink: #000000; --ink-soft: #000000; --muted: #1a1a1a;
  --pine: #00512F; --pine-dark: #003820; --line: #555555; --aurora: #000000;
}
body.a11y-contrast .site-foot { background: #000; color: #fff; }
body.a11y-contrast .site-foot p, body.a11y-contrast .site-foot li, body.a11y-contrast .foot-disclaimer, body.a11y-contrast .foot-legal { color: #fff; }
body.a11y-grayscale .site-head, body.a11y-grayscale main, body.a11y-grayscale .site-foot, body.a11y-grayscale .aurora-top { filter: grayscale(1); }
body.a11y-underline a { text-decoration: underline !important; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #CFC7BF; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2.5rem; }
.site-foot h2 { font-size: 1.25rem; color: var(--paper); margin-bottom: .8rem; }
.site-foot .foot-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--paper); }
.site-foot .foot-role { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: .2rem; margin-bottom: 1rem; }
.site-foot p, .site-foot li { font-size: .93rem; }
.site-foot ul { list-style: none; }
.site-foot ul li { padding-block: .25rem; }
.site-foot ul li.u-mt-s { margin-top: .5rem; }
.site-foot a { color: var(--paper); }
.site-foot a:hover { color: #fff; }
.foot-disclaimer { font-size: .84rem; color: #9C9289; max-width: 38rem; margin-top: 1rem; }
.foot-badges { background: #fff; border-top: 1px solid var(--line); }
.foot-badges .wrap { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; padding-block: .8rem; }
.foot-badges img { height: 42px; width: auto; }
.foot-legal { border-top: 1px solid #3B342E; padding-block: 1.2rem; font-size: .85rem; color: #9C9289; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 56rem) { .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Utilities (spacing overrides, last so they win the cascade) ---------- */
.u-mt-xs { margin-top: .3rem; }
.u-mt-s { margin-top: .5rem; }
.u-mt-m { margin-top: 1rem; }
.u-pt-s { padding-top: 1.2rem; }
.u-pb-l { padding-bottom: 3.5rem; }
.u-measure { max-width: 44rem; }
