/* ===== Καρδιολογικό Ιατρείο Δουλάμη Βασιλείου ===== */
:root {
  --navy: #0f2340;
  --navy-2: #1a3358;
  --red: #b3262e;
  --red-dark: #8e1c23;
  --cream: #faf7f2;
  --sand: #f1ebe1;
  --ink: #1c2430;
  --muted: #5d6675;
  --line: #e3dccf;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 64, .08);
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 em, h2 em, h3 em { color: var(--red); font-style: italic; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }

/* ===== Header ===== */
.topbar { background: var(--navy); color: #cfd8e6; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar .urgent { color: #ffb3b7; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
/* Blur lives on a pseudo-element so the fixed mobile menu isn't contained by the header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(10px);
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(15, 35, 64, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--navy); }
.logo-text span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--ink); border-radius: 8px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .nav-cta { background: var(--red); color: #fff; border-radius: 999px; padding: 10px 20px; margin-left: 8px; }
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: 11px; margin-left: 6px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px !important;
  display: block !important;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 10px 14px; }
.dropdown a:hover { background: var(--sand); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 100px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 34px; color: var(--navy); font-weight: 500; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .ecg-bg { position: absolute; left: -40%; right: -20%; top: 50%; transform: translateY(-50%); opacity: .5; z-index: 0; }

/* Photo placeholder (until real photos arrive) */
.photo {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .monogram { font-family: var(--serif); font-size: 96px; color: rgba(255,255,255,.9); font-style: italic; }
.photo .ph-note { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .1em; text-transform: uppercase; }
.photo-badge {
  position: absolute; z-index: 2; bottom: 30px; left: -30px;
  background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; max-width: 260px;
}
.photo-badge .dot { width: 42px; height: 42px; border-radius: 50%; background: #fbe9ea; display: grid; place-items: center; flex-shrink: 0; }
.photo-badge strong { display: block; font-size: 15px; color: var(--navy); }
.photo-badge span { font-size: 13px; color: var(--muted); }

/* ===== Ticker ===== */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 35s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 20px; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: "♥"; color: var(--red); font-style: normal; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* About split */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.split .photo { aspect-ratio: 4/5; border-radius: var(--radius); }
.split h2 { font-size: clamp(30px, 3.6vw, 46px); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.link-arrow { color: var(--red); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .num { position: absolute; top: 28px; right: 30px; font-family: var(--serif); font-size: 15px; color: var(--muted); }
.card .icon { width: 60px; height: 60px; border-radius: 50%; background: #fbe9ea; display: grid; place-items: center; margin-bottom: 24px; }
.card .icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); flex: 1; }
.card .more { color: var(--red); font-weight: 600; font-size: 15px; }

/* Quote */
.quote { background: var(--navy); color: #fff; text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.quote .ecg-bg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: .12; }
.quote blockquote { position: relative; margin: 0 auto; max-width: 860px; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.45; font-style: italic; }
.quote blockquote::before { content: "“"; display: block; font-size: 90px; line-height: .6; color: var(--red); margin-bottom: 20px; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--sans); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #aab7cc; }

/* Info strip */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-box { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.info-box h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.info-box p, .info-box a { color: var(--muted); text-decoration: none; }
.info-box a:hover { color: var(--red); }
.info-box .big { font-size: 22px; font-weight: 600; color: var(--navy); display: block; }

/* CTA */
.cta { padding: 100px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  border-radius: 28px; padding: 70px 60px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-box h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.cta-box h2 em { color: #ffd6d8; }
.cta-box p { color: #ffe3e4; }
.cta-box .eyebrow { color: #ffd6d8; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-actions .btn-primary { background: #fff; color: var(--red); }
.cta-actions .btn-primary:hover { background: var(--navy); color: #fff; }

/* Page header (inner pages) */
.page-hero { padding: 80px 0 70px; background: var(--sand); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 58px); max-width: 820px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 680px; }
.page-hero .ecg-bg { position: absolute; right: -10%; bottom: 0; width: 60%; opacity: .35; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* Timeline (CV) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 90px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 40px; padding-bottom: 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 85px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--cream); }
.timeline .year { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.timeline h3 { font-size: 21px; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* Article / service detail */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.prose h2 { font-size: 30px; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose p, .prose li { color: #384252; }
.aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside-box.dark { background: var(--navy); color: #fff; border: 0; }
.aside-box.dark h3 { color: #fff; }
.aside-box.dark p { color: #c7d1e0; }
.aside-box h3 { font-size: 20px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--red); }
.aside-box .btn { width: 100%; margin-top: 8px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { width: 46px; height: 46px; border-radius: 50%; background: #fbe9ea; display: grid; place-items: center; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { text-decoration: none; color: var(--muted); }
.contact-list a:hover { color: var(--red); }
.contact-list span { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours tr.closed td:last-child { color: var(--muted); font-weight: 400; }

.form { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form h2 { font-size: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.form small { display: block; color: var(--muted); margin-top: 12px; font-size: 13px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 60px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: #0b1a30; color: #aab7cc; padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: #aab7cc; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text span { color: #8796ad; }
.site-footer .logo-mark { background: var(--red); }
.footer-about { margin-top: 18px; max-width: 320px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2a3c58; display: grid; place-items: center; }
.social a:hover { background: var(--red); border-color: var(--red); }
.areas { margin-top: 50px; padding-top: 26px; border-top: 1px solid #1f3150; font-size: 14px; }
.areas span { color: #fff; margin-right: 8px; }
.footer-bottom { margin-top: 26px; padding-top: 26px; border-top: 1px solid #1f3150; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Floating call button (mobile) */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--red);
  display: none; place-items: center; box-shadow: 0 8px 24px rgba(179,38,46,.4);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--nav-top, 80px); left: 0; right: 0; bottom: 0; background: var(--cream);
    padding: 20px 24px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta { margin: 20px 0 0; text-align: center; border-bottom: 0; border-radius: 999px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px !important; background: transparent; min-width: 0; }
  .dropdown a { font-size: 16px; }
  .has-dropdown > a::after { content: ""; }
  .hero .container, .split, .contact-grid, .cta-box { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .photo-badge { left: 0; }
  .fab-call { display: grid; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section, .cta { padding: 70px 0; }
  .cards, .info-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 28px; border-radius: 20px; }
  .form { padding: 28px 22px; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 1px; }
  .logo-text strong { font-size: 16px; }
  .logo-text span { font-size: 10px; }
  .hero-stats { gap: 24px; }
}
.footer-bottom .credit { margin-left: auto; color: #8796ad; }
.footer-bottom .credit strong { color: #fff; font-weight: 600; }
.footer-bottom .credit:hover strong { color: var(--red); }

/* ===== Motion & interactivity ===== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--red), #e2555c);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Reveal variants + stagger */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal[data-anim="left"] { transform: translateX(-48px); }
.reveal[data-anim="right"] { transform: translateX(48px); }
.reveal[data-anim="zoom"] { transform: scale(.94); }
.reveal.visible { transform: none; }

/* Hero entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.hero .container > div:first-child > *,
.page-hero .container > * { animation: rise .9s var(--ease) both; }
.hero .container > div:first-child > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .1s; }
.hero .container > div:first-child > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .2s; }
.hero .container > div:first-child > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .3s; }
.hero .container > div:first-child > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: .4s; }
.hero-visual { animation: pop 1.1s .25s var(--ease) both; }
@keyframes float { 50% { transform: translateY(-10px); } }
.photo-badge { animation: float 5s ease-in-out infinite; }

/* ECG line: draws in, then a pulse travels along it like a monitor */
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }
@keyframes ecgPulse { to { stroke-dashoffset: -1; } }
.ecg-bg .ecg-base { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecgDraw 2.6s .3s ease-out forwards; opacity: .55; }
.ecg-bg .ecg-pulse { stroke-dasharray: .07 .93; animation: ecgPulse 3.2s 2.4s linear infinite; stroke-dashoffset: .07; }

/* Heartbeat */
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
.logo-mark svg { animation: beat 1.8s ease-in-out infinite; }
.card:hover .icon svg, .contact-list li:hover .ic svg, .info-box:hover h3 svg { animation: beat 1.2s ease-in-out infinite; }

/* Card spotlight + tilt (tilt set from JS) */
.card { transform-style: preserve-3d; will-change: transform; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(179, 38, 46, .09), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card .icon { transition: transform .4s var(--ease), background .3s; }
.card:hover .icon { transform: translateZ(30px); background: #f8d7d9; }
.card .more { transition: letter-spacing .3s; }
.card:hover .more { letter-spacing: .02em; }

/* Info boxes, aside, contact rows */
.info-box { transition: transform .3s var(--ease), box-shadow .3s; }
.info-box:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-list li { transition: transform .3s var(--ease); }
.contact-list li:hover { transform: translateX(6px); }

/* Button shine sweep */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 120%; }

/* Animated nav underline (desktop) */
@media (min-width: 901px) {
  .main-nav > ul > li > a:not(.nav-cta) { position: relative; }
  .main-nav > ul > li > a:not(.nav-cta)::before {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
    background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .main-nav > ul > li > a:not(.nav-cta):hover::before,
  .main-nav > ul > li > a[aria-current="page"]::before { transform: scaleX(1); transform-origin: left; }
}

/* Mobile menu items slide in */
@media (max-width: 900px) {
  .main-nav > ul > li { opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .4s var(--ease); }
  .nav-open .main-nav > ul > li { opacity: 1; transform: none; }
  .nav-open .main-nav > ul > li:nth-child(2) { transition-delay: .05s; }
  .nav-open .main-nav > ul > li:nth-child(3) { transition-delay: .1s; }
  .nav-open .main-nav > ul > li:nth-child(4) { transition-delay: .15s; }
  .nav-open .main-nav > ul > li:nth-child(5) { transition-delay: .2s; }
  .nav-open { overflow: hidden; }
}

/* Ticker pauses on hover */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Quote: words light up one by one */
.quote blockquote .w { opacity: .15; transition: opacity .5s; transition-delay: calc(var(--i) * 45ms + .2s); }
.quote blockquote.visible .w { opacity: 1; }

/* Timeline fills as you scroll */
.timeline::after {
  content: ""; position: absolute; left: 90px; top: 8px; width: 2px; margin-left: -.5px;
  height: calc((100% - 16px) * var(--p, 0)); background: var(--red);
}
.timeline li::before { transition: transform .4s var(--ease); }
.timeline li.visible::before { transform: scale(1.25); }
@media (max-width: 640px) { .timeline::after { left: 6px; } }

/* FAQ */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq details[open] p { animation: fadeDown .35s var(--ease); }
.faq summary::after { transition: transform .3s; }
.faq details { transition: border-color .3s, box-shadow .3s; }
.faq details:hover { border-color: #d9c9b6; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }
@media (max-width: 900px) { .to-top { bottom: 88px; right: 23px; } }

/* Floating call button pulse ring */
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(179, 38, 46, .5); } to { box-shadow: 0 0 0 18px rgba(179, 38, 46, 0); } }
.fab-call { animation: ring 2s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ===== Location / map ===== */
.location { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.location h2 { font-size: clamp(30px, 3.6vw, 44px); }
.location .contact-list { margin: 10px 0 30px; }
.location-map {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 480px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sand);
}
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-chip {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 340px;
  background: #fff; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; pointer-events: none;
}
.map-chip .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex-shrink: 0; animation: ring 2s infinite; }
.map-chip strong { display: block; color: var(--navy); font-size: 15px; }
.map-chip span { font-size: 13px; color: var(--muted); }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 70px; }
.map-head h2 { font-size: clamp(28px, 3vw, 38px); margin: 0; }
.map-head + .map { margin-top: 24px; }
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; gap: 36px; }
  .location-map { min-height: 380px; }
}

/* Phone booking card (contact page) */
.booking-card { padding: 44px 40px; border-radius: 20px; }
.booking-card h2 { color: #fff; font-size: 32px; }
.booking-card h2 em { color: #ff9ea3; }
.booking-card .eyebrow { color: #ff9ea3; }
.booking-card .btn { width: 100%; margin-top: 12px; font-size: 16px; padding: 16px 24px; }
@media (max-width: 640px) { .booking-card { padding: 32px 22px; } }

/* ===== Real photos ===== */
.photo img { object-position: center 30%; }

/* ===== Gallery (Το ιατρείο) ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.g-main { grid-column: span 2; grid-row: span 2; }
.g-cap {
  position: absolute; left: 14px; bottom: 14px; background: rgba(15,35,64,.82); color: #fff;
  font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
@media (hover: hover) { .g-item:hover img { transform: scale(1.05); } }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
}
@media (max-width: 520px) {
  .gallery { grid-auto-rows: 130px; }
  .g-main { grid-row: span 2; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,18,34,.92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }

/* Footer: detailed opening hours */
.f-hours strong { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }
.f-hours span { display: block; }
