/* ═══════════════════════════════════════════════════════════════
   Dr. Kardiologos — Ιδιωτική Καρδιολογική Κλινική

   One typeface, Manrope, with a full Greek set: headings strong
   (800 / 700), labels semi-bold (600), running text regular (400).

   Colour keeps the original's intent — "σύγχρονο, γαλήνιο και
   πολυτελές" — deep navy on warm ivory, with a quiet gold used only
   for figures and small accents.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:    #13233F;
  --navy-2:  #1D3358;
  --ivory:   #F8F5F0;
  --sand:    #EFE9E0;
  --white:   #FFFFFF;
  --gold:    #A8834A;
  --gold-lt: #D9C29B;
  --ink:     #16202E;
  --ink-2:   #4C5664;
  --ink-3:   #858C97;
  --line:    #E4DDD2;
  --alert:   #A3262F;
  --alert-bg:#FBEDEE;

  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --x-bold: 800; --bold: 700; --semi: 600; --regular: 400;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(19, 35, 63, .05), 0 16px 40px -18px rgba(19, 35, 63, .18);
  --shadow-lg: 0 2px 6px rgba(19, 35, 63, .06), 0 40px 80px -30px rgba(19, 35, 63, .35);

  --wrap: 1220px;
  --pad: clamp(20px, 4vw, 40px);
  --head: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 10px); background: var(--ivory); }
body {
  background: var(--ivory); color: var(--ink);
  font-family: var(--font); font-weight: var(--regular);
  font-size: 17px; line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol, dl { list-style: none; }
::selection { background: var(--navy); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
svg, .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ══════════  TYPE  ══════════ */
h1, h2, h3 { color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: var(--x-bold); line-height: 1.08; letter-spacing: -.028em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: var(--x-bold); line-height: 1.12; letter-spacing: -.024em; }
h3 { font-size: 19px; font-weight: var(--bold); line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: var(--bold);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow .ico { width: 16px; height: 16px; }

/* ══════════  BUTTONS  ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 12px;
  font-size: 15px; font-weight: var(--bold); letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: 0 12px 26px -14px rgba(19, 35, 63, .8); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--line { border: 1.5px solid var(--line); color: var(--navy); background: transparent; }
.btn--line:hover { border-color: var(--navy); }
.btn--block { width: 100%; }

/* ══════════  REVEAL  ══════════ */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.cv > :nth-child(2), .bento > :nth-child(2), .contact-info > :nth-child(2) { transition-delay: .08s; }
.cv > :nth-child(3), .bento > :nth-child(3), .contact-info > :nth-child(3) { transition-delay: .16s; }

/* ══════════  HEADER  ══════════ */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head);
  background: rgba(248, 245, 240, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(19, 35, 63, .35); }
.head-in { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--gold-lt); }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2; }
.brand-name { font-size: 20px; font-weight: var(--x-bold); letter-spacing: -.02em; color: var(--navy); }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; padding: 8px 0; font-size: 15px; font-weight: var(--semi); color: var(--ink-2); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.head-cta { min-height: 44px; padding: 0 20px; font-size: 14px; }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span { top: 21px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--head) 0 0 0; z-index: 45;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--ivory); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
.menu:focus { outline: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: var(--bold); color: var(--navy); }

/* ══════════  HERO  ══════════
   Text on the ivory ground, the portrait in its own frame: the face
   stays whole at every window size. */
.hero {
  padding: calc(var(--head) + clamp(36px, 5vw, 72px)) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(700px 500px at 85% 30%, rgba(168, 131, 74, .09), transparent 70%),
    var(--ivory);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-text h1 {
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 18ch;
  margin-bottom: 22px;
}
.hero-text h1 span { color: var(--gold); }
.hero-text .lead { max-width: 42ch; margin-bottom: 32px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: 36px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 460px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 28px; font-weight: var(--x-bold); color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.hero-facts span { font-size: 14px; font-weight: var(--semi); color: var(--ink-3); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--head) - 90px);
  min-height: 460px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.hero-badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold-lt); flex: none; }
.hero-badge-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.hero-badge > span:last-child { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.hero-badge strong { font-size: 15px; font-weight: var(--bold); color: var(--navy); }

/* ══════════  SECTIONS  ══════════ */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); }
.sec-head .eyebrow { margin-bottom: 12px; }

/* Clinic */
.clinic { padding: clamp(90px, 11vw, 140px) 0 clamp(70px, 8vw, 100px); }
.clinic-grid { display: grid; grid-template-columns: 1fr 1.25fr .95fr; gap: 26px; align-items: end; }
.clinic-text .eyebrow { margin-bottom: 14px; }
.clinic-text h2 { margin-bottom: 18px; }
.clinic-text p:last-child { color: var(--ink-2); }
.clinic-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); box-shadow: var(--shadow); }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.clinic-photo:hover img { transform: scale(1.03); }
.clinic-photo--a { aspect-ratio: 4 / 3.4; }
.clinic-photo--b { aspect-ratio: 4 / 4.6; margin-bottom: -40px; }
.clinic-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 13px; font-weight: var(--semi); color: var(--navy);
}

/* Doctor */
.doctor { padding: clamp(90px, 11vw, 140px) 0 clamp(90px, 11vw, 130px); background: var(--white); }
.doctor-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.doctor-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--sand); box-shadow: var(--shadow-lg); }
/* The white-coat portrait is cropped from the bottom so the building sign above the doctor stays out of frame. */
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.doctor-text .eyebrow { margin-bottom: 14px; }
.doctor-text h2 { margin-bottom: 10px; }
.gold { font-size: 17px; font-weight: var(--bold); color: var(--gold); }
.role { font-size: 17px; font-weight: var(--semi); color: var(--navy); margin-bottom: 24px; }
.doctor-text > p:not(.eyebrow):not(.gold):not(.role) { color: var(--ink-2); margin-bottom: 14px; }
.doctor-text .btn { margin-top: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 12px; }
.stats > div + div { border-left: 1px solid var(--line); }
.hero-text [data-reveal]:nth-child(2) { transition-delay: .08s; }
.hero-text [data-reveal]:nth-child(3) { transition-delay: .16s; }
.hero-text [data-reveal]:nth-child(4) { transition-delay: .24s; }
.hero-text [data-reveal]:nth-child(5) { transition-delay: .32s; }
.stats .ico { color: var(--gold); margin-bottom: 12px; }
.stats dd { order: -1; font-size: clamp(30px, 3.4vw, 42px); font-weight: var(--x-bold); color: var(--navy); line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stats .ico { order: -2; }
.stats dt { font-size: 12.5px; font-weight: var(--bold); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.cv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; scroll-margin-top: calc(var(--head) + 20px); }
.cv-card { padding: 30px 28px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); }
.cv-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold-lt); margin-bottom: 18px; }
.cv-icon svg { width: 24px; height: 24px; }
.cv-card h3 { margin-bottom: 14px; }
.cv-list li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--line); }
.cv-list li:first-child { border-top: 0; padding-top: 0; }
.cv-list strong { font-weight: var(--semi); color: var(--ink); font-size: 16px; }
.cv-list span { font-size: 15px; color: var(--ink-2); }
.cv-list--plain li { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.cv-list--plain li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* Services */
.services { padding: clamp(90px, 11vw, 140px) 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 22px; align-items: stretch; }
.svc {
  padding: 30px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sand); color: var(--navy); margin-bottom: 20px; }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 10px; }
.svc p { color: var(--ink-2); font-size: 16px; }
.svc--feature { grid-column: 3 / 5; grid-row: 1 / 3; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--navy); border-color: var(--navy); }
.svc--feature .svc-photo { flex: 1; min-height: 220px; overflow: hidden; }
.svc--feature .svc-photo img { max-height: 380px; }
.svc--feature .svc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s var(--ease); }
.svc--feature:hover .svc-photo img { transform: scale(1.04); }
.svc--feature .svc-body { padding: 30px 30px 32px; }
.svc--feature .svc-icon { background: rgba(255, 255, 255, .1); color: var(--gold-lt); }
.svc--feature h3 { color: var(--white); font-size: clamp(22px, 2vw, 26px); }
.svc--feature p { color: rgba(255, 255, 255, .8); }

/* Contact */
.contact { padding: clamp(90px, 11vw, 140px) 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info { display: flex; gap: 14px; padding: 22px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); }
.info-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--white); color: var(--navy); flex: none; box-shadow: 0 4px 12px -6px rgba(19, 35, 63, .25); }
.info h3 { font-size: 16px; margin-bottom: 4px; }
.info p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.info--alert { grid-column: 1 / -1; background: var(--alert-bg); border-color: #F1D3D6; }
.info--alert .info-icon { color: var(--alert); }
.info--alert h3 { color: var(--alert); }
.info--alert p { color: #7A2A31; }
.info:nth-child(3) { grid-column: 1 / -1; }
.fake-tel { cursor: default; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: var(--semi); }
.map { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.4vw, 40px); border-radius: 22px; background: var(--ivory); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 14px; font-weight: var(--semi); color: var(--navy); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 16px; transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 35, 63, .1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--alert); background: var(--alert-bg); }
.form .btn { margin-top: 6px; min-height: 56px; font-size: 16px; }
.form-note { font-size: 14px; color: var(--ink-3); text-align: center; }
.form-note.is-ok { color: var(--navy); font-weight: var(--semi); }

/* Legal */
.page-head { padding: calc(var(--head) + clamp(56px, 7vw, 90px)) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head-in { max-width: 760px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { margin-bottom: 12px; }
.legal { padding: clamp(56px, 7vw, 90px) 0 clamp(80px, 10vw, 120px); }
.prose { max-width: 780px; }
.prose h2 { font-size: 23px; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); }

/* Footer */
.foot { background: var(--navy); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 80px); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 34px; align-items: start; padding-bottom: 40px; }
.foot-name { font-size: 24px; font-weight: var(--x-bold); color: var(--white); letter-spacing: -.02em; margin-bottom: 10px; }
.foot-brand p:last-child { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.foot-brand .ico { width: 18px; height: 18px; color: var(--gold-lt); }
.foot-legal { display: flex; flex-direction: column; gap: 2px; }
.foot-legal a { display: inline-block; padding: 6px 0; font-size: 15px; transition: color .25s; width: fit-content; }
.foot-legal a:hover { color: var(--white); }
.foot-copy { text-align: right; font-size: 15px; }
.foot-copy p:first-child { color: var(--white); font-weight: var(--semi); }
.foot-base { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }
.foot-base a { padding: 6px 0; transition: color .25s; }
.foot-base a:hover { color: var(--white); }

/* ══════════  RESPONSIVE  ══════════ */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .clinic-grid { grid-template-columns: 1fr 1fr; }
  .clinic-text { grid-column: 1 / -1; max-width: 640px; }
  .clinic-photo--b { margin-bottom: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc--feature { grid-column: 1 / -1; grid-row: auto; }
  .svc--feature .svc-photo { aspect-ratio: 16 / 9; flex: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --head: 68px; }
  .nav, .head-cta { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .hero-media img { aspect-ratio: 5 / 4; min-height: 0; max-height: none; object-position: 50% 16%; }
  .hero-badge { left: 14px; bottom: 14px; }
  .hero-text h1 { max-width: 20ch; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 520px; aspect-ratio: 1 / 1; }
  .doctor-photo img { object-position: 50% 62%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cv { grid-template-columns: 1fr; max-width: 560px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-copy { text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-media img { aspect-ratio: 1 / 1; }
  .hero-facts { gap: 28px; }
  .hero-badge { padding: 10px 14px 10px 10px; }
  .hero-badge-icon { width: 36px; height: 36px; }
  .clinic-grid, .bento, .contact-info, .form-row { grid-template-columns: 1fr; }
  .info, .info--alert, .map { grid-column: auto; }
  .foot-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
