/*
 * Medaesthetic — main stylesheet
 * Version: 3.9.2
 * Navy/Sky palette · Fraunces (latin) + Georgia fallback (greek) · Inter
 */

:root {
  --c-bg:          #f5fafd;
  --c-bg-alt:      #e5f5fc;
  --c-surface:     #ffffff;
  --c-ink:         #112d63;
  --c-ink-deep:    #0b1f47;
  --c-ink-soft:    #2b4a86;
  --c-accent:      #009fdf;
  --c-accent-dark: #0086bd;
  --c-accent-lite: #5cc4ee;
  --c-glow:        #7fe0ff;
  --c-petrol:      #2b6fb0;
  --c-muted:       #7a8ba3;
  --c-rule:        #d3e6f0;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1456px;
  --gutter: 72px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 100px;
  --shadow-sm: 0 2px 8px -2px rgba(17,45,99,.07), 0 1px 2px rgba(17,45,99,.04);
  --shadow-md: 0 10px 24px -8px rgba(17,45,99,.14), 0 3px 6px -2px rgba(17,45,99,.06);
}

/* ---------- Fonts (self-hosted variable woff2) ---------- */
@font-face {
  font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/literata-greek-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('../fonts/literata-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A, U+2190-2199;
}
@font-face {
  font-family: 'Literata'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url('../fonts/literata-greek-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Literata'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url('../fonts/literata-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2039-203A;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-greek-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-greek-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122;
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--c-bg); color: var(--c-ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-petrol); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 200; background: var(--c-surface); padding: 10px 16px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-petrol); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--c-accent); }
.eyebrow-light { color: var(--c-accent-lite); margin-bottom: 26px; }
.eyebrow-light::before { height: 1px; background: var(--c-accent); }
.section-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 400; letter-spacing: -1px; }
.accent-em, .section-title em { font-style: italic; font-weight: 300; color: var(--c-accent); }
.accent-em-light { font-style: italic; font-weight: 300; color: var(--c-accent-lite); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 16px 34px; border-radius: var(--r-pill); transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn-solid { color: #fff; background: var(--c-accent); border: 1.5px solid var(--c-accent); }
.btn-solid:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: #fff; }
.btn-ghost { color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.28); padding: 16px 30px; }
.btn-ghost:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn-accent { color: #fff; background: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-white { color: var(--c-ink); background: #fff; white-space: nowrap; padding: 17px 34px; }
.btn-white:hover { background: var(--c-bg-alt); color: var(--c-ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--c-rule); position: sticky; top: 0; z-index: 100; background: rgba(245,250,253,.9); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1600px; margin: 0 auto; padding: 10px var(--gutter); }
.site-branding img, .custom-logo { height: 88px; width: auto; display: block; }
.main-nav ul { list-style: none; display: flex; gap: 36px; align-items: center; margin: 0; padding: 0; }
.main-nav a { color: var(--c-ink-soft); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.main-nav a:hover { color: var(--c-accent); }
.header-cta { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #fff !important; background: var(--c-ink); padding: 12px 24px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease; }
.header-cta:hover { background: var(--c-accent); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--c-ink); align-items: center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; max-width: 1600px; margin: 0 auto; }
.hero-copy { padding: 96px var(--gutter) 84px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-family: var(--serif); font-size: clamp(44px, 6vw, 82px); line-height: 1.02; font-weight: 400; letter-spacing: -2px; margin: 0 0 26px; color: #fff; }
.hero-title .accent { font-style: italic; font-weight: 300; color: var(--c-accent-lite); }
.hero-lead { font-size: 18px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,.75); max-width: 470px; margin: 0 0 40px; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; max-width: 470px; }
.hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(0,159,223,.3); border-radius: 14px; padding: 20px 22px; backdrop-filter: blur(8px); }
.hero-stat-wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; padding: 22px 24px; }
.hero-stat-num { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; color: var(--c-accent); }
.hero-stat-wide .hero-stat-num { font-size: 44px; }
.hero-stat-num .unit { font-size: 20px; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; }
.hero-stat-wide .hero-stat-label { margin-top: 0; }

.hero-visual { position: relative; min-height: 640px; border-left: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.face-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.face-inner { position: relative; display: inline-block; }
.hero-face-img { display: block; max-width: 100%; max-height: 600px; width: auto; height: auto; filter: drop-shadow(0 12px 34px rgba(0,0,0,.4)); }
.hero-scan { position: absolute; left: 6%; right: 6%; height: 2px; top: 14%; background: linear-gradient(90deg, transparent, rgba(127,224,255,.7), transparent); box-shadow: 0 0 14px 2px rgba(127,224,255,.35); opacity: 0; animation: mea-scan 6.5s ease-in-out 1s infinite; pointer-events: none; }
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.hero-pt { position: absolute; width: 10px; height: 10px; transform: translate(-50%,-50%); }
.hero-pt::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c-glow); box-shadow: 0 0 10px 2px rgba(127,224,255,.5); animation: mea-ptp 3.4s ease-in-out infinite; }
.hero-pt::after { content: ''; position: absolute; inset: -6px; border: 1px solid rgba(127,224,255,.5); border-radius: 50%; animation: mea-ptr 3.4s ease-out infinite; }
.hero-visual-glow { position: absolute; inset: 0; background: radial-gradient(circle at 52% 40%, rgba(0,159,223,.30), transparent 58%); }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual-tint { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,31,71,.55) 0%, transparent 45%); }
#mea-cell { opacity: 0; animation: mea-fade 1.4s ease-out .3s forwards; }
.mea-fibre { fill: none; stroke-width: 1.3; }
.mea-cell { transform-box: fill-box; transform-origin: center; animation: mea-cellpulse 4s ease-in-out infinite; }
.mea-cell-halo { transform-box: fill-box; transform-origin: center; opacity: .5; animation: mea-halo 4s ease-in-out infinite; }
.mea-core-glow { transform-box: fill-box; transform-origin: center; animation: mea-glow 6s ease-in-out infinite; }
.mea-core-rot { transform-box: fill-box; transform-origin: 300px 322px; animation: mea-spin 70s linear infinite; }
.mea-membrane { transform-box: fill-box; transform-origin: center; animation: mea-breathe 6s ease-in-out infinite; }
.mea-membrane-inner { transform-box: fill-box; transform-origin: center; animation: mea-breathe 6s ease-in-out infinite; }
.mea-nucleus { transform-box: fill-box; transform-origin: center; animation: mea-breathe 6s ease-in-out infinite; }
.mea-ripple { transform-box: fill-box; transform-origin: 300px 322px; opacity: 0; animation: mea-ripple 5s ease-out infinite; }
.mea-ripple--2 { animation-delay: 2.5s; }

.analysis-panel { position: absolute; top: 24px; left: 24px; width: 150px; background: rgba(9,26,60,.55); backdrop-filter: blur(10px); border: 1px solid rgba(0,159,223,.35); border-radius: var(--r-lg); padding: 13px 14px; z-index: 3; }
.analysis-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.analysis-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.analysis-live { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--c-glow); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); display: inline-block; animation: mea-pulse 2s infinite; }
.analysis-metrics { display: flex; flex-direction: column; gap: 13px; }
.metric-row { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.82); margin-bottom: 5px; }
.metric-val { font-family: var(--serif); color: var(--c-glow); font-weight: 500; }
.metric-track { height: 5px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.metric-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-glow)); }
.metric-bar.bar--collagen { background: linear-gradient(90deg, #009fdf, #7fe0ff); }
.metric-bar.bar--elasticity { background: linear-gradient(90deg, #17b890, #6ff0c8); }
.metric-bar.bar--hydration { background: linear-gradient(90deg, #6f7bff, #b3bcff); }
.bar--collagen { background: linear-gradient(90deg, #009fdf, #7fe0ff); }
.bar--elasticity { background: linear-gradient(90deg, #17b890, #6ff0c8); }
.bar--hydration { background: linear-gradient(90deg, #6f7bff, #b3bcff); }
.val--collagen { color: #7fe0ff; }
.val--elasticity { color: #6ff0c8; }
.val--hydration { color: #b3bcff; }

.result-badge { position: absolute; left: 26px; bottom: 96px; display: flex; align-items: center; gap: 12px; background: rgba(9,26,60,.55); backdrop-filter: blur(10px); border: 1px solid rgba(0,159,223,.35); border-radius: 14px; padding: 12px 16px; z-index: 3; animation: mea-floaty 5s ease-in-out infinite; }
.result-num { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--c-glow); line-height: 1; }
.result-label { font-size: 11px; line-height: 1.35; color: rgba(255,255,255,.75); }
.status-strip { position: absolute; right: 26px; bottom: 26px; left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-glow); z-index: 3; }
.status-strip .pulse-dot { width: 7px; height: 7px; }

/* ---------- Science ---------- */
.science { padding: 100px 0; background: var(--c-bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--c-rule); flex-wrap: wrap; gap: 20px; }
.section-head .section-title { max-width: 660px; }
.section-intro { font-size: 14px; line-height: 1.65; color: var(--c-ink-soft); max-width: 360px; }
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.science-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-md); padding: 40px 34px; box-shadow: var(--shadow-sm); }
.science-num { font-family: var(--serif); font-size: 54px; font-weight: 300; color: var(--c-accent); letter-spacing: -2px; }
.science-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 18px 0 12px; letter-spacing: -.2px; }
.science-card p { font-size: 14.5px; line-height: 1.7; color: var(--c-ink-soft); }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--c-surface); border-top: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule); }
.services-title { margin-bottom: 52px; }
.services-list { display: flex; flex-direction: column; }
.service-row { display: grid; grid-template-columns: 70px 1.3fr 2fr 40px; align-items: center; gap: 28px; padding: 28px 24px; border-radius: var(--r-md); transition: background .3s ease, padding-left .3s ease; color: inherit; }
.service-row:hover { background: var(--c-bg); padding-left: 36px; color: inherit; }
.service-code { font-family: var(--serif); font-size: 36px; font-weight: 300; color: var(--c-muted); }
.service-tag { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-petrol); margin-bottom: 8px; }
.service-name { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.1px; text-transform: uppercase; color: var(--c-ink); }
.service-desc { font-size: 15px; line-height: 1.6; color: var(--c-ink-soft); }
.service-arrow { font-size: 20px; color: var(--c-accent); justify-self: end; }

/* ---------- Doctor ---------- */
.doctor { padding: 100px 0; background: var(--c-bg); }
.doctor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.doctor-photo img, .doctor-photo-placeholder { width: 100%; height: 540px; object-fit: cover; border-radius: var(--r-lg); }
.doctor-photo-placeholder { background: linear-gradient(135deg, var(--c-bg-alt), var(--c-rule)); display: flex; align-items: center; justify-content: center; color: var(--c-muted); font-size: 12px; letter-spacing: 2px; }
.doctor-name { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -1.5px; margin: 0 0 12px; }
.doctor-role { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 30px; }
.doctor-bio { font-size: 17px; line-height: 1.75; color: var(--c-ink-soft); max-width: 540px; margin: 0 0 20px; }
.doctor-quote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.5; color: var(--c-ink); max-width: 540px; margin: 0 0 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-ink); color: var(--c-bg); position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: -50%; right: -8%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,159,223,.25) 0%, transparent 62%); pointer-events: none; }
.cta-inner { padding: 96px var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; position: relative; z-index: 1; }
.cta-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 400; letter-spacing: -1px; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 72px var(--gutter) 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 72px; width: auto; }
.footer-nav h4, .footer-contact h4, .footer-legal h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-ink); margin-bottom: 18px; }
.footer-nav ul, .footer-contact ul, .footer-legal ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a, .footer-contact li, .footer-legal a { font-size: 14px; color: var(--c-ink-soft); }
.footer-nav a:hover, .footer-contact a:hover, .footer-legal a:hover { color: var(--c-accent); }
.footer-bottom { border-top: 1px solid var(--c-rule); padding: 26px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-muted); }
.footer-bottom a { color: var(--c-petrol); }

.services-all { margin-top: 40px; }

/* ---------- Services archive + single ---------- */
.page-hero-services .page-hero-lead,
.page-hero-single .page-hero-lead { font-size: 18px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,.75); max-width: 560px; margin: 18px 0 0; }
.page-hero .accent { font-style: italic; font-weight: 300; color: var(--c-accent-lite); }
.page-hero-single { padding-bottom: 48px; }
.page-hero-cta { margin-top: 30px; }

.services-archive { padding: 80px 0 96px; background: var(--c-bg); }
.srv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.srv-cards-3 { grid-template-columns: repeat(3, 1fr); }
.srv-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; color: inherit; }
.srv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.srv-card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.srv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.srv-card:hover .srv-card-media img { transform: scale(1.05); }
.srv-card-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.srv-card-code { font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--c-accent); letter-spacing: -2px; line-height: 1; margin-bottom: 12px; }
.srv-card-body .service-tag { margin-bottom: 10px; }
.srv-card-title { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.3px; margin: 0 0 12px; color: var(--c-ink); }
.srv-card-lead { font-size: 14.5px; line-height: 1.65; color: var(--c-ink-soft); margin: 0 0 20px; }
.srv-card-more { margin-top: auto; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--c-accent); }
.srv-empty { text-align: center; font-size: 17px; color: var(--c-ink-soft); padding: 40px 0; }

.related-services { padding: 24px 0 96px; background: var(--c-bg); }

/* ---------- Single therapeia — two-column + sticky sidebar ---------- */
.single-meta { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-accent-lite); }
.single-section { padding: 64px 0 96px; background: var(--c-bg); }
.single-layout { display: block; }
.single-main { max-width: 760px; }
.single-featured { margin: 0 0 40px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-bg-alt); }
.single-featured img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Numbered h2 inside the body */
.single-body .mea-h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 120px; }
.mea-h2__num { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--c-accent); flex-shrink: 0; letter-spacing: 0; }

/* Sidebar shell */
.single-sidebar { display: none; }
.sidebar-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-ink); margin-bottom: 16px; }
.sidebar-block { margin-top: 34px; }

/* TOC */
.mea-toc { display: flex; flex-direction: column; }
.mea-toc__link { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; color: var(--c-ink-soft); font-size: 13.5px; line-height: 1.4; transition: color .18s; border: none; }
.mea-toc__link:hover { color: var(--c-accent); }
.mea-toc__link.active { color: var(--c-accent); font-weight: 600; }
.mea-toc__num { font-size: 11px; font-weight: 600; color: var(--c-muted); flex-shrink: 0; }
.mea-toc__link:hover .mea-toc__num, .mea-toc__link.active .mea-toc__num { color: var(--c-accent); }
.mea-toc__text { flex: 1; }

/* Άλλες θεραπείες */
.sidebar-others { list-style: none; display: flex; flex-direction: column; }
.sidebar-others li { border-bottom: 1px solid var(--c-rule); }
.sidebar-others li:last-child { border-bottom: none; }
.sidebar-others a { display: block; padding: 12px 0; }
.sidebar-others__tag { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-petrol); margin-bottom: 3px; }
.sidebar-others__name { display: block; font-size: 14.5px; color: var(--c-ink); line-height: 1.35; }
.sidebar-others a:hover .sidebar-others__name { color: var(--c-accent); }

/* Sidebar CTA */
.sidebar-cta { margin-top: 34px; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.sidebar-cta__icon { width: 46px; height: 46px; margin: 0 auto 16px; background: var(--c-ink); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.sidebar-cta__icon svg { width: 22px; height: 22px; color: var(--c-accent-lite); }
.sidebar-cta p { font-size: 14px; line-height: 1.55; color: var(--c-ink-soft); margin: 0 0 18px; }
.btn-block { display: block; width: 100%; text-align: center; }

@media (min-width: 1024px) {
  .single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
  .single-main { max-width: none; }
  .single-sidebar { display: block; position: sticky; top: calc(88px + 32px); }
}

/* ---------- FAQ accordion (card style) ---------- */
.mea-faq { margin-top: 56px; }
.mea-faq__title { scroll-margin-top: 120px; margin-bottom: 24px; }
.mea-faq__intro { margin-bottom: 22px; }
.mea-faq__intro p { color: var(--c-ink-soft); font-size: 15.5px; line-height: 1.7; }
.mea-faq__list { display: flex; flex-direction: column; gap: 14px; }
.mea-faq__item { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.mea-faq__item.is-open { box-shadow: var(--shadow-md); border-color: var(--c-accent-lite); }
.mea-faq__h { margin: 0; font-size: inherit; font-weight: inherit; }
.mea-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.2px; color: var(--c-ink); transition: color .2s; }
.mea-faq__q:hover { color: var(--c-accent); }
.mea-faq__q-text { flex: 1; line-height: 1.4; }
.mea-faq__icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.mea-faq__icon::before, .mea-faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px; background: var(--c-accent); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .28s ease, opacity .2s ease; }
.mea-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.mea-faq__item.is-open .mea-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.mea-faq__a { height: 0; overflow: hidden; transition: height .3s ease; }
.mea-faq__a-inner { padding: 2px 28px 26px; }
.mea-faq__a-inner p { margin: 0 0 14px; color: var(--c-ink-soft); font-size: 15.5px; line-height: 1.7; }
.mea-faq__a-inner p:last-child { margin-bottom: 0; }
.mea-faq__a-inner ul, .mea-faq__a-inner ol { margin: 0 0 14px 20px; color: var(--c-ink-soft); }
.mea-faq__a-inner li { margin-bottom: 6px; line-height: 1.6; }
.mea-faq__a-inner a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .mea-faq__a { transition: none; }
  .mea-faq__icon::before, .mea-faq__icon::after { transition: none; }
}

/* ---------- Contact / Booking page ---------- */
.page-hero-contact .page-hero-lead { font-size: 18px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,.75); max-width: 560px; margin: 18px 0 0; }
.contact-section { padding: 72px 0 80px; background: var(--c-bg); }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }

.contact-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 32px 30px; }
.contact-card__title { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.2px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--c-rule); }
.contact-row { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--c-rule); color: inherit; }
.contact-row:last-child { border-bottom: none; }
a.contact-row:hover .contact-row__value { color: var(--c-accent); }
.contact-row__ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--c-petrol); }
.contact-row__ic svg { width: 19px; height: 19px; }
.contact-row__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c-muted); margin-bottom: 3px; }
.contact-row__value { display: block; font-size: 15px; color: var(--c-ink); line-height: 1.45; }
.contact-hours { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.contact-hours__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.contact-hours__day { color: var(--c-ink-soft); }
.contact-hours__time { color: var(--c-ink); font-weight: 500; white-space: nowrap; }

.contact-cta { position: relative; overflow: hidden; margin-top: 24px; background: var(--c-ink); color: #fff; border-radius: var(--r-lg); padding: 30px 28px; }
.contact-cta__glow { position: absolute; top: -40%; right: -20%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(0,159,223,.35) 0%, transparent 62%); pointer-events: none; }
.contact-cta h3 { position: relative; font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0 0 10px; }
.contact-cta p { position: relative; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.75); margin: 0 0 20px; }
.contact-cta .btn { position: relative; }

/* Form card */
.contact-form-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 40px 40px 34px; }
.contact-form__title { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.3px; margin: 0 0 8px; }
.contact-form__intro { font-size: 15px; color: var(--c-ink-soft); margin: 0 0 28px; }
.contact-form__privacy { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--c-muted); }
.form-missing { padding: 24px; background: var(--c-bg-alt); border-radius: var(--r-md); color: var(--c-ink-soft); font-size: 14px; }

/* ── Gravity Forms styling parity ── */
.contact-form__body .gform_wrapper { margin: 0; }
.contact-form__body .gform_wrapper form { margin: 0; }
.contact-form__body .gform_fields { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact-form__body .gfield_label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c-ink); margin-bottom: 8px; }
.contact-form__body .gfield_required { color: var(--c-accent); font-weight: 700; margin-left: 4px; }
.contact-form__body input[type="text"],
.contact-form__body input[type="email"],
.contact-form__body input[type="tel"],
.contact-form__body input[type="url"],
.contact-form__body input[type="number"],
.contact-form__body select,
.contact-form__body textarea {
	width: 100%; font-family: var(--sans); font-size: 15px; color: var(--c-ink);
	background: var(--c-bg); border: 1px solid var(--c-rule); border-radius: var(--r-md);
	padding: 13px 15px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.contact-form__body textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.contact-form__body input:focus,
.contact-form__body select:focus,
.contact-form__body textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0,159,223,.14); }
.contact-form__body input::placeholder,
.contact-form__body textarea::placeholder { color: var(--c-muted); }
.contact-form__body .gfield_description,
.contact-form__body .charleft,
.contact-form__body .ginput_counter { font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }
.contact-form__body .gfield_consent_label,
.contact-form__body .gchoice label { font-size: 13.5px; color: var(--c-ink-soft); line-height: 1.55; }
.contact-form__body .gchoice { display: flex; align-items: flex-start; gap: 10px; }
.contact-form__body .gform_footer { margin: 26px 0 0; padding: 0; }
.contact-form__body .gform_button {
	display: inline-block; width: 100%; font-family: var(--sans); font-size: 12px; font-weight: 700;
	letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--c-accent);
	border: none; border-radius: var(--r-pill); padding: 17px 34px; cursor: pointer; transition: background .2s, transform .2s;
}
.contact-form__body .gform_button:hover { background: var(--c-accent-dark); transform: translateY(-1px); }
.contact-form__body .validation_message,
.contact-form__body .gfield_validation_message { color: #c0392b; font-size: 13px; margin-top: 6px; }
.contact-form__body .gform_validation_errors { background: #fdeceb; border: 1px solid #f5c6c2; border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; color: #c0392b; }
.contact-form__body .gform_confirmation_message { padding: 28px; background: var(--c-bg-alt); border-radius: var(--r-md); color: var(--c-ink); font-size: 15px; line-height: 1.6; }

/* Below: info cards + map */
.contact-below { padding: 0 0 90px; background: var(--c-bg); }
.contact-below__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 34px 32px; }
.info-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.info-card__ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--c-petrol); }
.info-card__ic--ok { background: rgba(0,159,223,.12); color: var(--c-accent); }
.info-card__ic svg { width: 20px; height: 20px; }
.info-card__head h2 { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -.2px; margin: 0; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--c-ink-soft); }
.info-list__tick { flex-shrink: 0; color: var(--c-accent); font-weight: 700; margin-top: 1px; }

.location-card__addr { font-size: 15px; color: var(--c-ink-soft); margin: 0 0 18px; }
.mea-map { position: relative; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--c-bg-alt), var(--c-rule)); aspect-ratio: 16 / 10; margin-bottom: 18px; }
.mea-map.is-loaded { background: none; }
.mea-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.mea-map__load { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: none; border: none; cursor: pointer; color: var(--c-ink-soft); }
.mea-map__pin { width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--c-accent); }
.mea-map__pin svg { width: 22px; height: 22px; }
.mea-map__label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c-ink); }
.mea-map__note { font-size: 11.5px; color: var(--c-muted); }
.mea-map__load:hover .mea-map__label { color: var(--c-accent); }

.contact-disclaimer { padding: 0 0 90px; background: var(--c-bg); }
.contact-disclaimer p { display: flex; align-items: flex-start; gap: 10px; background: var(--c-bg-alt); border-radius: var(--r-md); padding: 16px 20px; font-size: 14px; line-height: 1.6; color: var(--c-ink-soft); margin: 0; }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-below__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-form-card { padding: 28px 22px; }
}

/* ---------- Legal pages ---------- */
.legal-updated { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-accent-lite); }
.legal-section { padding: 64px 0 96px; background: var(--c-bg); }
.legal-layout { display: block; }
.legal-main { max-width: 780px; }
.legal-sidebar { display: none; }
.legal-body .mea-h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 120px; font-size: 26px; margin-top: 44px; }
.legal-body .mea-h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: var(--c-ink-soft); }
.legal-body ul, .legal-body ol { margin: 0 0 18px 22px; }
.legal-body li { margin-bottom: 8px; }

.legal-cta { margin-top: 34px; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); padding: 26px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.legal-cta__icon { width: 44px; height: 44px; margin: 0 auto 14px; background: var(--c-ink); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.legal-cta__icon svg { width: 21px; height: 21px; color: var(--c-accent-lite); }
.legal-cta p { font-size: 14px; color: var(--c-ink-soft); margin: 0 0 8px; }
.legal-cta a { font-size: 14px; font-weight: 600; color: var(--c-accent); word-break: break-word; }

@media (min-width: 1024px) {
  .legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
  .legal-main { max-width: none; }
  .legal-sidebar { display: block; position: sticky; top: calc(88px + 32px); align-self: start; }
}

/* ---------- Archive pillar (below therapies grid) ---------- */
.archive-pillar { padding: 8px 0 88px; background: var(--c-bg); }
.pillar-layout { display: block; }
.pillar-main { min-width: 0; }
.pillar-sidebar { display: none; }

/* body content (scoped so the FAQ accordion below is untouched) */
.archive-pillar__body .mea-h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 120px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.3px; color: var(--c-ink); margin: 44px 0 14px; }
.archive-pillar__body .mea-h2:first-child { margin-top: 0; }
.archive-pillar__body h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 24px 0 8px; color: var(--c-ink); }
.archive-pillar__body p { color: var(--c-ink-soft); line-height: 1.75; margin: 0 0 16px; }
.archive-pillar__body ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; }
.archive-pillar__body ul li { position: relative; padding-left: 22px; color: var(--c-ink-soft); line-height: 1.65; }
.archive-pillar__body ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.archive-pillar__body a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.archive-pillar__body a:hover { text-decoration: underline; text-underline-offset: 2px; }
.archive-pillar .mea-faq { margin-top: 48px; }
.archive-pillar .mea-faq__title { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--c-ink); }

/* doctor card */
.pillar-doctor { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px; text-align: center; margin-bottom: 26px; }
.pillar-doctor__photo { border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.pillar-doctor__photo img { display: block; width: 100%; height: auto; }
.pillar-doctor__photo--placeholder { aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(160deg, #eef4fb, #dfeaf6); color: var(--c-petrol); border: 1px dashed var(--c-accent-lite); }
.pillar-doctor__photo--placeholder svg { width: 40px; height: 40px; opacity: .7; }
.pillar-doctor__photo--placeholder span { font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.pillar-doctor__cap { font-size: 13px; color: var(--c-ink-soft); margin: 0 0 14px; line-height: 1.4; }
.pillar-doctor__cta { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 11px 20px; border-radius: 100px; background: var(--c-ink); color: #fff; }
.pillar-doctor__cta:hover { background: var(--c-accent); }

@media (min-width: 1024px) {
  .pillar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
  .pillar-sidebar { display: block; position: sticky; top: calc(88px + 32px); align-self: start; }
}

/* ---------- Breadcrumbs ---------- */
.mea-crumbs { font-size: 12px; letter-spacing: .5px; margin-bottom: 20px; }
.mea-crumbs a { color: var(--c-petrol); }
.mea-crumbs a:hover { color: var(--c-accent); }
.mea-crumbs .breadcrumb_last { color: var(--c-muted); }
.page-hero .mea-crumbs--hero { color: rgba(255,255,255,.55); margin-bottom: 22px; }
.page-hero .mea-crumbs--hero a { color: rgba(255,255,255,.8); }
.page-hero .mea-crumbs--hero a:hover { color: #fff; }
.page-hero .mea-crumbs--hero .breadcrumb_last { color: var(--c-accent-lite); }

/* ---------- Content pages (page.php / single.php) ---------- */
.page-hero { background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-deep) 100%); color: #fff; padding: 72px 0 56px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.5vw, 58px); font-weight: 400; letter-spacing: -1px; line-height: 1.08; }
.entry-content { max-width: 820px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.entry-content h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.5px; margin: 42px 0 16px; }
.entry-content h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 32px 0 12px; }
.entry-content p { margin: 0 0 18px; color: var(--c-ink-soft); }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; color: var(--c-ink-soft); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--r-md); }

/* ---------- Animations ---------- */
@keyframes mea-pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes mea-fibre-draw { to { stroke-dashoffset: 0; } }
@keyframes mea-cellpulse { 0%,100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes mea-halo { 0%,100% { opacity: .18; transform: scale(.85); } 50% { opacity: .5; transform: scale(1.15); } }
@keyframes mea-glow { 0%,100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes mea-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes mea-spin { to { transform: rotate(360deg); } }
@keyframes mea-ripple { 0% { opacity: .55; transform: scale(.55); } 70% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes mea-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mea-scan { 0% { top: 14%; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { top: 82%; opacity: 0; } }
@keyframes mea-ptp { 0%,100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes mea-ptr { 0% { opacity: .6; transform: scale(.5); } 80%,100% { opacity: 0; transform: scale(1.8); } }
@keyframes mea-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .mea-cell, .mea-cell-halo, .mea-core-glow, .mea-core-rot, .mea-membrane, .mea-membrane-inner, .mea-nucleus, .mea-ripple, .result-badge, .hero-scan, .hero-pt::before, .hero-pt::after { animation: none; }
  #mea-cell { opacity: 1; animation: none; }
  .mea-ripple { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .science-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .srv-cards, .srv-cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* backdrop-filter creates a containing block for fixed-position descendants.
     Kept off below 900px — and the drawer uses height:100dvh rather than
     top/bottom so its height is viewport-based regardless of containing block.
     NOTE: mirror any change here in inc/critical-css.php (wp_head 999). */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-bg); }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 86vw;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(165deg, #17386f 0%, var(--c-ink-deep) 100%);
    box-shadow: -22px 0 60px -22px rgba(6,17,40,.6);
    padding: 92px 28px 28px;
    z-index: 99;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { display: flex; flex-direction: column; }

  /* Accent glow, echoes the hero */
  .main-nav::before {
    content: ''; position: absolute; top: -70px; right: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,159,223,.5) 0%, transparent 70%);
    pointer-events: none;
  }

  .main-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    position: relative; z-index: 1;
  }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav a {
    display: block; padding: 17px 2px;
    font-family: var(--serif); font-size: 22px; font-weight: 400;
    letter-spacing: -.2px; text-transform: none; color: #fff;
    transition: color .18s ease, padding-left .18s ease;
  }
  .main-nav a:hover, .main-nav a:focus { color: var(--c-glow); padding-left: 10px; }
  .main-nav .current-menu-item > a { color: var(--c-accent-lite); }

  /* Staggered entrance */
  .main-nav.is-open li { animation: mea-nav-in .38s ease both; }
  .main-nav.is-open li:nth-child(1) { animation-delay: .04s; }
  .main-nav.is-open li:nth-child(2) { animation-delay: .09s; }
  .main-nav.is-open li:nth-child(3) { animation-delay: .14s; }
  .main-nav.is-open li:nth-child(4) { animation-delay: .19s; }
  .main-nav.is-open li:nth-child(5) { animation-delay: .24s; }
  .main-nav.is-open .nav-extra { animation: mea-nav-in .38s .28s ease both; }

  .nav-extra { display: block; margin-top: auto; padding-top: 30px; position: relative; z-index: 1; }
  .nav-extra .btn { margin-bottom: 18px; }
  .nav-extra__tel {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  }
  .nav-extra__tel:hover { color: #fff; }

  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; position: relative; z-index: 101; }
  body.nav-open .menu-toggle { color: #fff; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: ''; position: fixed; inset: 0;
    background: rgba(9,22,52,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    z-index: 98;
  }
}
@keyframes mea-nav-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .main-nav.is-open li, .main-nav.is-open .nav-extra { animation: none; }
}
/* Drawer extras are mobile-only */
@media (min-width: 901px) { .nav-extra { display: none; } }
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-branding img, .custom-logo { height: 60px; }
  .hero-copy { padding: 64px var(--gutter) 56px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .analysis-panel { width: 138px; top: 16px; left: 16px; }
  .result-badge { left: 16px; bottom: 78px; }
  .status-strip { right: 16px; bottom: 18px; left: auto; }
  .service-row { grid-template-columns: 48px 1fr; gap: 12px 16px; padding: 22px 12px; }
  .service-desc { grid-column: 2; }
  .service-arrow { display: none; }
  .service-code { font-size: 26px; }
  .doctor-photo img, .doctor-photo-placeholder { height: 400px; }
  .cta-inner { padding: 64px var(--gutter); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .srv-cards, .srv-cards-3 { grid-template-columns: 1fr; }
}

/* ---------- Blog (v3.4.0) ---------- */
.blog-section { padding: 56px 0 96px; background: var(--c-bg); }

.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.blog-filter__pill { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--c-rule); border-radius: var(--r-pill); background: var(--c-surface); font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--c-ink-soft); transition: all .18s; }
.blog-filter__pill:hover { border-color: var(--c-accent); color: var(--c-accent); }
.blog-filter__pill.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

.blog-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.blog-card__thumb { aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-bg) 100%); overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--c-accent-lite); }
.blog-card__ph svg { width: 56px; height: 56px; opacity: .55; }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.blog-card__tag { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--c-petrol); margin-bottom: 10px; }
.blog-card__title { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -.3px; line-height: 1.28; color: var(--c-ink); margin-bottom: 10px; transition: color .18s; }
.blog-card:hover .blog-card__title { color: var(--c-accent-dark); }
.blog-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--c-ink-soft); margin-bottom: 16px; }
.blog-card__meta { margin-top: auto; display: flex; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--c-muted); }

/* Featured card — spans full width on page 1 */
.blog-card--feat { grid-column: 1 / -1; }
.blog-card--feat .blog-card__link { flex-direction: row; }
.blog-card--feat .blog-card__thumb { flex: 0 0 54%; aspect-ratio: auto; min-height: 340px; }
.blog-card--feat .blog-card__body { justify-content: center; padding: 40px 44px; }
.blog-card--feat .blog-card__title { font-size: clamp(24px, 2.6vw, 34px); }
.blog-card--feat .blog-card__excerpt { font-size: 15.5px; }

/* Pagination */
.blog-pagination { margin-top: 56px; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--c-rule); border-radius: var(--r-pill); background: var(--c-surface); font-size: 13.5px; font-weight: 600; color: var(--c-ink-soft); transition: all .18s; }
.blog-pagination .page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.blog-pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.blog-pagination .page-numbers.dots { border: none; background: none; }
.blog-empty { color: var(--c-ink-soft); }

/* Related («Διαβάστε επίσης») under single posts */
.related { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--c-rule); }
.related__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -.6px; margin-bottom: 32px; }

/* Hero extras on single */
.hero-cat { color: inherit; }
.hero-cat:hover { color: var(--c-glow); }
.single-meta time { color: inherit; }

@media (max-width: 1100px) {
  .blog-grid, .blog-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .blog-card--feat .blog-card__link { flex-direction: column; }
  .blog-card--feat .blog-card__thumb { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .blog-card--feat .blog-card__body { padding: 26px 26px 24px; }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid--3 { grid-template-columns: 1fr; }
  .blog-section { padding: 40px 0 72px; }
}

/* ---------- Outline button (secondary, e.g. bio link) ---------- */
.btn-outline { color: var(--c-ink); background: transparent; border: 1.5px solid var(--c-rule); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); background: transparent; }

/* ---------- Bio sidebar card (page-bio.php) ---------- */
.single-layout--bio .single-main { padding-top: 4px; }
.bio-card { background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.bio-card__photo { aspect-ratio: 3 / 4; background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-deep) 100%); overflow: hidden; }
.bio-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-card__photo-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgba(255,255,255,.4); }
.bio-card__photo-ph svg { width: 64px; height: 64px; }
.bio-card__name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.3px; color: var(--c-ink); padding: 20px 22px 6px; line-height: 1.25; }
.bio-card__creds { list-style: none; margin: 0; padding: 0 22px 22px; }
.bio-card__creds li { position: relative; padding: 6px 0 6px 18px; font-size: 13px; line-height: 1.4; color: var(--c-ink-soft); border: none; }
.bio-card__creds li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }

/* ---------- Floating action buttons (WhatsApp + back-to-top) ---------- */
.mea-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.mea-fab__btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: 0 6px 20px rgba(11,31,59,.22); transition: transform .18s ease, box-shadow .18s ease, opacity .25s ease, visibility .25s ease; color: #fff; }
.mea-fab__btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11,31,59,.28); }
.mea-fab__wa { background: #25d366; }
.mea-fab__wa:hover { background: #1ebe5b; color: #fff; }
.mea-fab__top { background: var(--c-ink); opacity: 0; visibility: hidden; }
.mea-fab__top.is-visible { opacity: 1; visibility: visible; }
.mea-fab__top:hover { background: var(--c-accent); }
@media (max-width: 640px) {
  .mea-fab { right: 14px; bottom: 14px; gap: 10px; }
  .mea-fab__btn { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .mea-fab__btn { transition: opacity .2s ease, visibility .2s ease; }
  .mea-fab__btn:hover { transform: none; }
}

/* ---------- Featured image ratio fixes (v3.8.0) ---------- */
/* Guarantee cover-fit everywhere a thumbnail renders, so a missing generated
   size (WP falls back to full) can never stretch the image. */
.blog-card__thumb img,
.single-featured img,
.bio-card__photo img { object-fit: cover; object-position: center; }

/* Featured blog card: give the media a fixed ratio and let the text column
   match it, instead of stretching the image to whatever height the text needs. */
.blog-card--feat .blog-card__link { align-items: stretch; }
.blog-card--feat .blog-card__thumb { flex: 0 0 52%; aspect-ratio: 16 / 10; min-height: 0; }
.blog-card--feat .blog-card__thumb img { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .blog-card--feat .blog-card__thumb { flex: none; aspect-ratio: 16 / 9; }
  .single-featured { aspect-ratio: 3 / 2; }
}

/* ---------- Το Ιατρείο / office page (v3.10.0) ---------- */
.office-intro { padding: 72px 0 8px; }
.office-intro__grid { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.office-intro__copy { max-width: none; margin: 0; padding: 0; }
.office-intro__copy > *:first-child { margin-top: 0; }
.office-intro__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.office-intro__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.office-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 20px; padding: 16px 20px; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.office-rating__stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.office-rating__num { font-family: var(--serif); font-size: 24px; color: var(--c-ink); line-height: 1; }
.office-rating__meta { font-size: 12.5px; color: var(--c-muted); }
.office-rating:hover { border-color: var(--c-accent); }

/* Video */
.office-video-section { padding: 72px 0 8px; }
.office-video { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-deep) 100%); box-shadow: var(--shadow-md); }
.office-video video, .office-video iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.mea-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mea-embed__load { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(11,31,71,.45); border: none; cursor: pointer; color: #fff; transition: background .2s ease; }
.mea-embed__load:hover { background: rgba(11,31,71,.32); }
.mea-embed__play { width: 74px; height: 74px; border-radius: 50%; background: var(--c-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px rgba(0,159,223,.7); transition: transform .2s ease; }
.mea-embed__load:hover .mea-embed__play { transform: scale(1.07); }
.mea-embed__play svg { width: 32px; height: 32px; margin-left: 3px; }
.mea-embed__label { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.mea-embed__note { font-size: 11.5px; opacity: .75; }
.office-video__cap { margin-top: 14px; font-size: 13.5px; color: var(--c-muted); text-align: center; }

/* Gallery */
.office-gallery-section { padding: 72px 0 8px; }
.office-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.office-gallery__item { position: relative; padding: 0; border: none; cursor: pointer; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1 / 1; background: var(--c-bg-alt); box-shadow: var(--shadow-sm); }
.office-gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.office-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.office-gallery__item:hover img { transform: scale(1.06); }
.office-gallery__zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11,31,71,.35); color: #fff; opacity: 0; transition: opacity .22s ease; }
.office-gallery__item:hover .office-gallery__zoom, .office-gallery__item:focus-visible .office-gallery__zoom { opacity: 1; }
.office-gallery__zoom svg { width: 30px; height: 30px; }

/* Features */
.office-features { padding: 80px 0 8px; }
.office-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.office-feature { padding: 26px 24px; background: var(--c-surface); border: 1px solid var(--c-rule); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.office-feature__ic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-accent); margin-bottom: 14px; }
.office-feature__ic svg { width: 19px; height: 19px; }
.office-feature h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--c-ink); margin-bottom: 6px; }
.office-feature p { font-size: 14px; line-height: 1.55; color: var(--c-ink-soft); margin: 0; }

/* Location */
.office-location { padding: 80px 0 96px; }
.office-location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.office-location__addr { font-size: 17px; line-height: 1.6; color: var(--c-ink-soft); margin: 18px 0 22px; }
.office-hours { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--c-rule); }
.office-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--c-rule); font-size: 14.5px; }
.office-hours span { color: var(--c-ink-soft); }
.office-hours strong { color: var(--c-ink); font-weight: 600; }
.office-location .mea-map { aspect-ratio: 4 / 3; margin: 0; }

/* Lightbox */
.mea-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; background: rgba(6,17,40,.92); }
.mea-lightbox[hidden] { display: none; }
.mea-lightbox__fig { margin: 0; max-width: 90vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mea-lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r-md); display: block; }
.mea-lightbox__cap { color: rgba(255,255,255,.8); font-size: 13.5px; text-align: center; }
.mea-lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; }
.mea-lightbox__close:hover { background: rgba(255,255,255,.22); }
.mea-lightbox__nav { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; }
.mea-lightbox__nav:hover { background: rgba(255,255,255,.22); }

@media (max-width: 1100px) {
  .office-intro__grid { grid-template-columns: 1fr 320px; gap: 40px; }
  .office-gallery { grid-template-columns: repeat(3, 1fr); }
  .office-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .office-intro__grid, .office-location__grid { grid-template-columns: 1fr; gap: 36px; }
  .office-intro__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .office-intro, .office-video-section, .office-gallery-section, .office-features { padding-top: 52px; }
  .office-location { padding: 56px 0 72px; }
  .office-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .office-gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .office-features__grid { grid-template-columns: 1fr; }
  .mea-lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}
