/*
 * Medaesthetic — main stylesheet
 * Version: 2.4.0
 * 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: hidden; }
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; }
.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-mesh { opacity: 0; animation: mea-fade 1.6s ease-out .4s forwards; }
.mea-feat path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: mea-draw 1.8s ease-out 1.1s forwards; opacity: .9; }
.mea-node { transform-box: fill-box; transform-origin: center; animation: mea-nodepulse 3s ease-in-out infinite; }

.analysis-panel { position: absolute; top: 26px; right: 26px; width: 224px; background: rgba(9,26,60,.55); backdrop-filter: blur(10px); border: 1px solid rgba(0,159,223,.35); border-radius: var(--r-lg); padding: 16px 18px; 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: 15px; }
.metric-row { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.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)); }

.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; left: 26px; bottom: 28px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.6); 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.2fr 1fr 1.4fr; gap: 48px; }
.footer-brand img { height: 72px; width: auto; }
.footer-nav h4, .footer-contact 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 { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a, .footer-contact li { font-size: 14px; color: var(--c-ink-soft); }
.footer-nav a:hover, .footer-contact 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; }
.single-featured img { width: 100%; height: auto; 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; }
}

/* ---------- 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-draw { to { stroke-dashoffset: 0; } }
@keyframes mea-nodepulse { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.7); } }
@keyframes mea-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mea-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .mea-node, .result-badge { animation: none; }
  #mea-mesh { opacity: 1; animation: none; }
  .mea-feat path { stroke-dashoffset: 0; animation: none; }
}

/* ---------- 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) {
  .main-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 80%; max-width: 360px; background: var(--c-surface); box-shadow: var(--shadow-md); padding: 96px 32px 32px; z-index: 99; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a { font-size: 14px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; position: relative; z-index: 101; }
  body.nav-open::before { content: ''; position: fixed; inset: 0; background: rgba(17,45,99,.4); z-index: 98; }
}
@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: 190px; top: 16px; right: 16px; }
  .result-badge { left: 16px; bottom: 78px; }
  .status-strip { left: 16px; bottom: 20px; }
  .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; }
}
