/* =====================================================================
   Clinical Clarity — compiled design system
   Tokens from DESIGN.md. No CDN, no inline styles.
   ===================================================================== */

:root {
    /* Colors */
    --surface: #fcf8fb;
    --surface-dim: #dcd9dc;
    --surface-bright: #fcf8fb;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f6f3f5;
    --surface-container: #f0edef;
    --surface-container-high: #eae7ea;
    --surface-container-highest: #e4e2e4;
    --on-surface: #1b1b1d;
    --on-surface-variant: #414755;
    --inverse-surface: #303032;
    --inverse-on-surface: #f3f0f2;
    --outline: #717786;
    --outline-variant: #c1c6d7;
    --primary: #0058bc;
    --on-primary: #ffffff;
    --primary-container: #0070eb;
    --on-primary-container: #fefcff;
    --inverse-primary: #adc6ff;
    --secondary: #006a63;
    --on-secondary: #ffffff;
    --secondary-container: #62f9eb;
    --on-secondary-container: #007169;
    --tertiary: #575c63;
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error-container: #93000a;
    --primary-fixed: #d8e2ff;
    --primary-fixed-dim: #adc6ff;
    --secondary-fixed: #62f9eb;
    --background: #fcf8fb;

    /* Typography */
    --font-display: 'Lexend', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing (8px base) */
    --unit: 8px;
    --gutter: 24px;
    --margin-mobile: 20px;
    --margin-desktop: 64px;
    --container-max: 1280px;
    --glass-padding: 24px;

    /* Radii */
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --radius-full: 9999px;

    /* Glass blur (reduced on mobile via media query) */
    --blur-panel: 20px;
    --blur-card: 40px;

    --cta-gradient: linear-gradient(135deg, #0070eb 0%, #0058bc 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    background-color: var(--surface);
    /* Level 0: soft refractive mesh behind the glass UI */
    background-image:
        radial-gradient(38rem 38rem at 12% -8%, rgba(0, 112, 235, 0.10), transparent 60%),
        radial-gradient(34rem 34rem at 100% 8%, rgba(0, 106, 99, 0.10), transparent 55%),
        radial-gradient(40rem 40rem at 50% 120%, rgba(0, 88, 188, 0.06), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
}
.icon--fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* Accessibility helpers */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--primary); color: var(--on-primary);
    padding: 10px 18px; border-radius: var(--radius-full);
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--margin-mobile);
}
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.stack > * + * { margin-top: var(--gutter); }

/* ---------- Typography roles ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 16px;
    text-transform: uppercase;
    color: var(--primary);
}
.display {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.01em;
    color: var(--on-surface);
}
.headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: var(--on-surface);
}
.body-lg { font-size: 18px; line-height: 28px; color: var(--on-surface-variant); }
.text-muted { color: var(--on-surface-variant); }
.text-faint { color: var(--outline); }

/* ---------- Glass surfaces ---------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(var(--blur-panel));
    -webkit-backdrop-filter: blur(var(--blur-panel));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
}
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(var(--blur-card));
    -webkit-backdrop-filter: blur(var(--blur-card));
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
                box-shadow .3s cubic-bezier(.4, 0, .2, 1),
                background .3s cubic-bezier(.4, 0, .2, 1);
}
a.glass-card:hover, .glass-card--hover:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -15px rgba(0, 88, 188, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .3s ease, background .25s ease, color .25s ease;
    text-align: center;
}
.btn:active { transform: scale(.96); }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary { color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(0, 88, 188, 0.55); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--primary);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.7); }
.btn--light { background: #fff; color: var(--primary); box-shadow: 0 16px 30px -12px rgba(0,0,0,.25); }
.btn--light:hover { background: var(--surface-container-lowest); }

/* Gradient CTA with shimmer sweep */
.cta-gradient {
    background: var(--cta-gradient);
    position: relative;
    overflow: hidden;
    color: var(--on-primary);
}
.cta-gradient::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: rotate(45deg);
    transition: .6s;
    pointer-events: none;
}
.cta-gradient:hover::after { left: 100%; top: 100%; }
@media (prefers-reduced-motion: reduce) {
    .cta-gradient::after { transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Header / nav ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 12px var(--margin-mobile);
    background: rgba(252, 248, 251, 0.6);
    backdrop-filter: blur(var(--blur-panel));
    -webkit-backdrop-filter: blur(var(--blur-panel));
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 20px -12px rgba(0, 0, 0, 0.2);
}
.site-header__logo img { height: 40px; width: auto; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--on-surface-variant); font-size: 15px; transition: color .2s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__cta {
    display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15;
    padding: 10px 22px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 14px; box-shadow: 0 10px 24px -12px rgba(0, 88, 188, 0.6);
}
.header__cta small { font-size: 10px; font-weight: 400; opacity: .85; }
.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: transparent; border: 0; color: var(--primary);
}
.nav-desktop { display: none; }

/* Mobile slide-down menu */
.nav-mobile {
    position: fixed; inset: 64px 0 auto 0; z-index: 49;
    display: none; flex-direction: column; gap: 4px;
    padding: 16px var(--margin-mobile) 24px;
    background: rgba(252, 248, 251, 0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.3);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: 14px 8px; font-size: 16px; color: var(--on-surface); border-radius: var(--radius-sm); }
.nav-mobile a:hover { background: rgba(255, 255, 255, 0.6); color: var(--primary); }
.nav-mobile .btn { margin-top: 12px; }
/* Keep the gradient CTA text white in the mobile menu (beats .nav-mobile a). */
.nav-mobile a.cta-gradient,
.nav-mobile a.cta-gradient:hover { color: var(--on-primary); background: var(--cta-gradient); }

/* ---------- Page shell ---------- */
.main { padding-top: 96px; }
.page-hero { padding-top: 120px; }

/* ---------- Spacing utilities ---------- */
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- Hero (slider-style banner, text overlaid on the photo) ---------- */
.hero-banner {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    min-height: 460px; display: flex; align-items: center; padding: 0;
}
.hero-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center top); z-index: 0; }
.hero-banner__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg,
        rgba(252, 248, 251, 0.97) 0%, rgba(252, 248, 251, 0.9) 38%,
        rgba(252, 248, 251, 0.4) 66%, rgba(252, 248, 251, 0) 100%);
}
.hero-banner__content {
    position: relative; z-index: 2; max-width: 600px;
    padding: clamp(28px, 5vw, 64px);
    display: flex; flex-direction: column; gap: 20px;
}
.hero-banner__title { margin-top: 6px; }
.hero-banner__lead { margin: 0; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__note {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: var(--outline);
}
.hero__note .material-symbols-outlined { font-size: 16px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 16px 20px; }
.stat__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--primary); }
.stat__label { font-size: 13px; color: var(--outline); }

/* ---------- About ---------- */
.about { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.about__media {
    width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
    padding: var(--glass-padding);
}
.about__media .material-symbols-outlined { font-size: 56px; color: rgba(0, 88, 188, 0.3); }

/* ---------- Section heading ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { margin-top: 8px; color: var(--on-surface-variant); }
.section-head--row {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid--services { grid-template-columns: 1fr; }
.grid--blog { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.service-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--glass-padding); gap: 8px; height: 100%;
}
.service-card__icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 8px;
}
.service-card__icon .material-symbols-outlined { font-size: 30px; }
.icon-bubble--primary { background: rgba(0, 88, 188, 0.1); color: var(--primary); }
.icon-bubble--secondary { background: rgba(0, 106, 99, 0.1); color: var(--secondary); }
.service-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.service-card p { color: var(--on-surface-variant); font-size: 15px; }

.blog-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.blog-card__media {
    aspect-ratio: 16 / 9; background: var(--surface-container-high);
    display: grid; place-items: center; overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__media .material-symbols-outlined { font-size: 44px; color: rgba(113, 119, 134, 0.35); }
/* Generated featured-image cover (brand SVG background + topic icon overlay). */
.blog-card__media--cover { position: relative; padding: 0; background: none; }
.blog-card__media--cover .blog-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.blog-card__media--cover .blog-card__cover-icon { position: relative; z-index: 1; font-size: 60px; color: #fff; opacity: 0.95; text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.blog-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__cat { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.blog-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.3; }
.blog-card__excerpt { font-size: 14px; color: var(--on-surface-variant); flex: 1; }
.blog-card__more { font-size: 13px; font-weight: 600; color: var(--primary); }
.blog-card:hover .blog-card__more { text-decoration: underline; }

.review-card { padding: var(--glass-padding); }
.review-card__stars { display: flex; gap: 2px; color: var(--secondary); margin-bottom: 16px; }
.review-card__stars .material-symbols-outlined { font-size: 18px; }
.review-card__quote { font-style: italic; color: var(--on-surface-variant); margin-bottom: 20px; }
.review-card__person { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; flex-shrink: 0;
}
.avatar--primary { background: var(--primary-fixed); color: var(--primary); }
.avatar--secondary { background: var(--secondary-fixed); color: var(--secondary); }
.review-card__name { display: block; font-weight: 600; }
.review-card__date { font-size: 13px; color: var(--outline); }

/* ---------- Tinted section ---------- */
.section--tint { background: var(--surface-container-low); }

/* ---------- Link-with-arrow ---------- */
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link .material-symbols-outlined { font-size: 18px; }

/* ---------- Final CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin-bottom: 16px; }
.cta-band p { font-size: 17px; opacity: .92; max-width: 620px; margin: 0 auto 32px; }
.cta-band__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-band__sub { font-size: 13px; opacity: .8; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full); font-weight: 600;
    background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.6); color: var(--on-surface-variant);
}
.pagination a:hover { color: var(--primary); }
.pagination .is-current { background: var(--cta-gradient); color: var(--on-primary); border-color: transparent; }

/* ---------- Prose (rendered post/page content) ---------- */
.prose { color: var(--on-surface-variant); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--font-display); color: var(--on-surface); line-height: 1.25;
    margin-top: 1.6em; font-weight: 600;
}
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose p { margin: 0; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius-md); margin-inline: auto; }
.prose blockquote {
    border-left: 4px solid var(--primary); padding-left: 18px; color: var(--on-surface);
    font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--outline-variant); padding: 10px 12px; text-align: left; }
/* Neutralise leftover Elementor wrappers (we don't load Elementor CSS) */
.prose [class*="elementor"] { all: revert; }

/* ---------- Single post ---------- */
.post-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--outline); font-size: 14px; }
.post-meta .material-symbols-outlined { font-size: 16px; }
.single__cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); overflow: hidden; }
.single__cover--gen { position: relative; display: grid; place-items: center; }
.single__cover--gen .blog-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.single__cover--gen .blog-card__cover-icon { position: relative; z-index: 1; font-size: 88px; color: #fff; opacity: 0.95; text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.single__content { padding: clamp(24px, 4vw, 48px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
.contact-info { padding: var(--glass-padding); display: flex; flex-direction: column; gap: 22px; }
.contact-info__item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info__item .material-symbols-outlined { color: var(--primary); }
.contact-info__item span.label { display: block; font-size: 13px; color: var(--outline); }
.contact-info__item a, .contact-info__item p { color: var(--on-surface); font-weight: 500; }
.contact-form { padding: var(--glass-padding); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--on-surface); }
.field .req { color: var(--error); }
.input, .textarea {
    width: 100%; padding: 12px 16px; font: inherit;
    color: var(--on-surface);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--outline-variant); border-radius: var(--radius-sm);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus {
    background: #fff; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 88, 188, 0.15); outline: none;
}
.textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--outline); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; }
.alert--ok { background: rgba(0, 106, 99, 0.12); color: var(--on-secondary-container); }
.alert--err { background: var(--error-container); color: var(--on-error-container); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 64px; padding: 48px var(--margin-mobile);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(var(--blur-panel)); -webkit-backdrop-filter: blur(var(--blur-panel));
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.site-footer__inner {
    max-width: var(--container-max); margin-inline: auto;
    display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center;
}
.site-footer__top { display: flex; flex-direction: column; gap: 24px; align-items: center; width: 100%; }
.site-footer__logo img { height: 52px; width: auto; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-links a { color: var(--on-surface-variant); transition: color .2s ease; }
.footer-links a:hover { color: var(--primary); }
.site-footer__copy { font-size: 14px; color: var(--on-surface-variant); opacity: .7; }
.footer-social { display: flex; gap: 12px; justify-content: center; }
.footer-social__link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--on-surface-variant);
    background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.65); transition: color .2s ease, background .2s ease, transform .15s ease; }
.footer-social__link:hover { color: var(--primary); background: #fff; transform: translateY(-2px); }

/* Contact map */
.contact-map { margin-top: var(--gutter); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: var(--shadow-card, 0 12px 30px -18px rgba(0,40,90,0.25)); }
.contact-map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* =====================================================================
   About (redesigned) — premium glass two-column
   ===================================================================== */
.about2 { display: grid; gap: 28px; align-items: start; }
.about2__intro { display: flex; flex-direction: column; gap: 18px; }
.about2__title { margin-top: 4px; }
.about2__title .hl { color: var(--primary); }
.about2__short { margin: 0; }
.about2__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.about2__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 4px; }
.about2__panel { position: relative; display: flex; flex-direction: column; gap: 18px; }
.about2__glow { position: absolute; top: -8%; right: -6%; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 112, 235, 0.18), transparent 70%); filter: blur(50px); z-index: 0; pointer-events: none; }
.about2__media { padding: 0; overflow: hidden; aspect-ratio: 16 / 10; position: relative; z-index: 1; }
.about2__media img { width: 100%; height: 100%; object-fit: cover; }
.about2__text { position: relative; z-index: 1; padding: clamp(22px, 3vw, 34px); }
.about2__text-head { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); padding: 6px 12px; border-radius: var(--radius-full); background: rgba(0, 88, 188, 0.08); margin-bottom: 16px; }
.about2__text-head .material-symbols-outlined { font-size: 18px; }
.about2__text .prose { font-size: 16px; line-height: 1.75; color: var(--on-surface-variant); }
.about2__text .prose > * + * { margin-top: 0.9em; }
.about2__lead { font-size: 17px; color: var(--on-surface); font-weight: 500; }
.about2__more { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.about2__values-head { text-align: center; margin-top: 44px; margin-bottom: 22px; }

/* Value cards */
.value-grid { grid-template-columns: 1fr; }
.value-card { padding: var(--glass-padding); display: flex; flex-direction: column; gap: 10px; height: 100%; }
.value-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.value-card__icon .material-symbols-outlined { font-size: 26px; }
.value-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.value-card__desc { color: var(--on-surface-variant); font-size: 14px; line-height: 1.55; }

/* =====================================================================
   Video section
   ===================================================================== */
.video-grid { grid-template-columns: 1fr; }
.video-card {
    padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: left;
    font: inherit; color: inherit; cursor: pointer; width: 100%;
    background: rgba(255, 255, 255, 0.6);
}
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-container-high); display: block; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__thumb > .material-symbols-outlined { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; font-size: 48px; color: var(--outline); }
.video-card__play {
    position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0, 88, 188, 0.85); color: #fff;
    box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.5); transition: transform .2s ease, background .2s ease;
}
.video-card:hover .video-card__play { transform: scale(1.08); background: var(--primary); }
.video-card__play .material-symbols-outlined { font-size: 34px; }
.video-card__tag { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-full); }
.video-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.video-card__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--on-surface); }
.video-card__desc { font-size: 13px; color: var(--on-surface-variant); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card__date { font-size: 12px; color: var(--outline); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.video-card__date .material-symbols-outlined { font-size: 15px; }

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.video-modal.is-open { display: flex; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 30, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.video-modal__panel { position: relative; width: 100%; max-width: 960px; }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.video-modal__close:hover { background: rgba(255, 255, 255, 0.32); }
/* Modal başlık + açıklama (koyu overlay üzerinde) */
.video-modal__meta { margin-top: 16px; text-align: center; color: #fff; }
.video-modal__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.video-modal__desc { margin-top: 6px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 720px; margin-inline: auto; overflow-wrap: anywhere; }

/* ---------- Video kartı: kategori + alt satır + eşit yükseklik ---------- */
.video-card__body { flex: 1 1 auto; }
.video-card__cat {
    align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase; color: var(--primary);
    background: rgba(0, 88, 188, 0.10); padding: 3px 10px; border-radius: var(--radius-full);
}
.video-card__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.video-card__watch { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--primary); }
.video-card__watch .material-symbols-outlined { font-size: 18px; }

/* =====================================================================
   Video slider / carousel (hafif, kütüphanesiz — scroll-snap tabanlı)
   ===================================================================== */
.vslider { position: relative; }
.vslider__viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 6px; /* kart gölgesi/odak halkası kırpılmasın */
}
.vslider__viewport::-webkit-scrollbar { display: none; }
.vslider__track { display: flex; gap: var(--gutter); --vpr: var(--vpr-m, 1); }
@media (min-width: 600px) { .vslider__track { --vpr: var(--vpr-t, 2); } }
@media (min-width: 900px) { .vslider__track { --vpr: var(--vpr-d, 4); } }
.vslider__item {
    flex: 0 0 calc((100% - (var(--vpr) - 1) * var(--gutter)) / var(--vpr));
    max-width: calc((100% - (var(--vpr) - 1) * var(--gutter)) / var(--vpr));
    scroll-snap-align: start; display: flex;
}
.vslider__item > .video-card { width: 100%; height: 100%; }

.vslider__arrow {
    position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(var(--blur-panel)); -webkit-backdrop-filter: blur(var(--blur-panel));
    color: var(--primary); display: grid; place-items: center;
    box-shadow: 0 10px 26px -12px rgba(0, 88, 188, 0.5); transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.vslider__arrow:hover { background: #fff; }
.vslider__arrow:active { transform: translateY(-50%) scale(.94); }
.vslider__arrow--prev { left: -8px; }
.vslider__arrow--next { right: -8px; }
.vslider__arrow[disabled] { opacity: 0; pointer-events: none; }
.vslider__arrow .material-symbols-outlined { font-size: 26px; }

.vslider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.vslider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--outline-variant); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.vslider__dot.is-active { background: var(--primary); transform: scale(1.25); }

/* Slider kapalıyken: admin'den ayarlanan kart sayısına göre sabit ızgara */
.video-grid--static { display: grid; gap: var(--gutter); grid-template-columns: repeat(var(--vpr-m, 1), 1fr); }
@media (min-width: 600px) { .video-grid--static { grid-template-columns: repeat(var(--vpr-t, 2), 1fr); } }
@media (min-width: 900px) { .video-grid--static { grid-template-columns: repeat(var(--vpr-d, 4), 1fr); } }
.video-grid--static .video-card { height: 100%; }

@media (max-width: 599px) {
    .vslider__arrow { width: 38px; height: 38px; }
    .vslider__arrow--prev { left: 2px; }
    .vslider__arrow--next { right: 2px; }
    .vslider__arrow .material-symbols-outlined { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .vslider__viewport { scroll-behavior: auto; }
}

/* Özgeçmiş (CV) modalı — glass panel; uzun içerik panel İÇİNDE kayar, asla kesilmez
   (gövdede truncate/line-clamp/overflow:hidden yok). */
.cv-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.cv-modal.is-open { display: flex; }
.cv-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 30, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cv-modal__panel {
    position: relative; width: 100%; max-width: 760px;
    max-height: 86vh; max-height: min(86vh, calc(100dvh - 32px));
    display: flex; flex-direction: column; overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.45);
}
.cv-modal__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 22px 24px 16px; border-bottom: 1px solid var(--outline-variant); flex-shrink: 0;
}
.cv-modal__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--on-surface); margin-top: 4px; }
.cv-modal__close {
    width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%;
    background: var(--surface-container-high); color: var(--on-surface);
    display: grid; place-items: center;
}
.cv-modal__close:hover { background: var(--surface-container-highest); }
.cv-modal__body {
    padding: 20px 24px 26px;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    overflow-wrap: anywhere; /* dar ekranda yatay taşmayı önler */
}
.cv-modal__empty { color: var(--outline); text-align: center; padding: 24px 0; }
@media (max-width: 599px) {
    /* Mobil: alttan açılan tam genişlik sayfa; kapatma butonu üstte, her zaman erişilebilir. */
    .cv-modal { padding: 12px 0 0; align-items: flex-end; }
    .cv-modal__panel { max-width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .cv-modal__head { padding: 18px 18px 14px; }
    .cv-modal__body { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); font-size: 16px; }
}

@media (min-width: 600px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .about2 { grid-template-columns: 5fr 6fr; gap: 40px; }
    .value-grid { grid-template-columns: repeat(4, 1fr); }
    .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
    .video-modal { padding: 0; }
    .video-modal__panel { max-width: 100%; }
    .video-modal__frame { border-radius: 0; }
    .video-modal__close { top: 12px; right: 12px; background: rgba(0, 0, 0, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
    .video-card__thumb img, .video-card__play { transition: none; }
}

/* =====================================================================
   CMS page blocks (Sayfa Yönetimi) — Clinical Clarity styled
   ===================================================================== */
.cms-block { padding-block: 48px; }
.cms-block--light { background: var(--surface-container-lowest); }
.cms-block--tint { background: var(--surface-container-low); }
.cms-block--dark { background: var(--inverse-surface); color: var(--inverse-on-surface); }
.cms-block--dark .headline, .cms-block--dark h2, .cms-block--dark h3 { color: #fff; }
.cms-block--dark .value-card__desc, .cms-block--dark p { color: rgba(255,255,255,0.8); }
.cms-hide-mobile { display: none; }
@media (min-width: 768px) { .cms-hide-mobile { display: block; } }

.cms-grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 600px) { .cms-grid--2, .cms-grid--3, .cms-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cms-grid--3 { grid-template-columns: repeat(3, 1fr); } .cms-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.cms-card { padding: var(--glass-padding); display: flex; flex-direction: column; gap: 10px; height: 100%; align-items: flex-start; text-align: left; }
.cms-card__media { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-container-high); }
.cms-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cms-text { padding: clamp(22px, 3vw, 34px); }
.cms-text--center { text-align: center; }
.cms-text .prose { color: var(--on-surface-variant); }

.cms-imgtext { display: grid; gap: 28px; align-items: center; }
.cms-imgtext__media { overflow: hidden; padding: 0; aspect-ratio: 4 / 3; }
.cms-imgtext__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .cms-imgtext { grid-template-columns: 1fr 1fr; } .cms-imgtext--rev .cms-imgtext__media { order: 2; } }

.cms-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-inline: auto; }
.cms-faq__item { padding: 0; overflow: hidden; }
.cms-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--on-surface); }
.cms-faq__item summary::-webkit-details-marker { display: none; }
.cms-faq__chevron { transition: transform .2s ease; color: var(--primary); }
.cms-faq__item[open] .cms-faq__chevron { transform: rotate(180deg); }
.cms-faq__a { padding: 0 22px 20px; color: var(--on-surface-variant); line-height: 1.7; }

.cms-banner { padding: clamp(28px, 5vw, 56px); background-size: cover; background-position: center; text-align: center; }
.cms-logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; }
.cms-logos__item { height: 56px; display: grid; place-items: center; opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.cms-logos__item:hover { opacity: 1; filter: none; }
.cms-logos__item img { max-height: 56px; width: auto; }
.cms-gallery__item { aspect-ratio: 4 / 3; overflow: hidden; padding: 0; }
.cms-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.cms-stat { text-align: center; align-items: center; }
.cms-spacer { height: 32px; } .cms-spacer--sm { height: 16px; } .cms-spacer--lg { height: 64px; }

/* =====================================================================
   Location — compact horizontal card (info + wide, short map)
   ===================================================================== */
.loc { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.loc__info { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.loc__title { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 27px); font-weight: 600; margin: 2px 0 0; color: var(--on-surface); line-height: 1.2; }
.loc__desc { color: var(--on-surface-variant); font-size: 15px; margin: 0; }
.loc__list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.loc__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.loc__list .material-symbols-outlined { font-size: 20px; color: var(--primary); margin-top: 1px; flex-shrink: 0; }
.loc__list a, .loc__list span { word-break: break-word; overflow-wrap: anywhere; }
.loc__list a { color: var(--on-surface); font-weight: 500; }
.loc__list a:hover { color: var(--primary); }
.loc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.loc__map { position: relative; min-height: var(--map-h, 300px); }
.loc-map { position: absolute; inset: 0; overflow: hidden; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-map__loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-container-high); color: var(--outline-variant); }
.loc-map__loading .material-symbols-outlined { font-size: 40px; }
/* Empty-map placeholder: deep-navy "city map" atmosphere on the site palette (see parts/map-texture.php) */
.loc-map--ph { background: #184173; }
.loc-map__bg { position: absolute; inset: 0; pointer-events: none; }
.loc-map__bg .map-tex,
.loc-map__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-map__tint { position: absolute; inset: 0; background: #000; pointer-events: none; }
.loc-map__overlay { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 105% at 32% 42%, rgba(0,0,0,0) 42%, rgba(0,0,0,.55) 100%),
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.loc-map__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px; }
.loc-map__inner b { font-family: var(--font-display); font-size: 16px; color: var(--on-surface); }
.loc-map__inner span { font-size: 13px; color: var(--on-surface-variant); max-width: 320px; }
.loc-map__pin { font-size: 40px; color: var(--primary); filter: drop-shadow(0 6px 12px rgba(0,88,188,.25)); }
/* light text + pin on the dark placeholder */
.loc-map--dark .loc-map__inner b { color: #fff; }
.loc-map--dark .loc-map__inner span { color: rgba(255,255,255,.82); }
.loc-map--dark .loc-map__pin { color: #35dcc9; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.loc-map--dark .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.loc-map--dark .btn--ghost:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.5); }
@media (max-width: 899px) { .loc__map { min-height: var(--map-h-m, 220px); } }
@media (min-width: 900px) { .loc { grid-template-columns: 38% 62%; } }

/* ---------- Floating WhatsApp button (admin-controlled) ---------- */
.wa-float {
    position: fixed; bottom: var(--wa-offset, 24px); z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: var(--wa-color, #25D366);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float--right { right: max(16px, env(safe-area-inset-right)); }
.wa-float--left  { left: max(16px, env(safe-area-inset-left)); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 32px -8px rgba(0,0,0,0.5); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-float--pulse { animation: waPulse 2.4s ease-in-out infinite; }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4), 0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4), 0 0 0 12px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float--pulse { animation: none; } }
@media (max-width: 767px) { .wa-float--no-mobile { display: none; } }
@media (min-width: 768px) { .wa-float--no-desktop { display: none; } }

/* =====================================================================
   Responsive — mobile-first; enhance upward. Verified from 320px.
   ===================================================================== */

/* Slightly reduce blur on small screens for performance (per DESIGN.md). */
@media (max-width: 767px) {
    :root { --blur-card: 18px; --blur-panel: 12px; }

    /* Mobile banner: height driven by content (no fixed ratio) so nothing is clipped. */
    .hero-banner { min-height: 0; aspect-ratio: auto; align-items: flex-start; }
    /* Bring the right-side doctor into the narrow mobile crop, head near the top. */
    .hero-banner__img { object-position: 78% 16%; }
    /* Clear at the top (doctor's head/shoulders visible), white lower where the
       text sits — so the title starts around the doctor's elbow line. */
    .hero-banner__overlay {
        background: linear-gradient(to bottom,
            rgba(252, 248, 251, 0) 0%, rgba(252, 248, 251, 0) 36%,
            rgba(252, 248, 251, 0.72) 52%, rgba(252, 248, 251, 0.95) 74%,
            rgba(252, 248, 251, 0.98) 100%);
    }
    /* Reserve the top zone for the doctor; text flows below it. */
    .hero-banner__content { padding: 54vw 22px 26px; gap: 16px; }
    .hero-banner__content > :not(.hero__buttons) { text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9); }

    /* Tighten the gap between the fixed header and the hero on mobile. */
    .main { padding-top: 72px; }
    .main > .section:first-child { padding-top: 16px; }
}

@media (min-width: 480px) {
    .grid--blog { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .container { padding-inline: var(--margin-desktop); }
    .site-header { padding: 12px var(--margin-desktop); }
    .site-footer { padding-inline: var(--margin-desktop); }
    .nav-mobile { display: none !important; }
    .nav-desktop { display: flex; align-items: center; gap: 32px; }
    .nav-toggle { display: none; }
    .section { padding-block: 72px; }

    .display { font-size: 44px; line-height: 52px; letter-spacing: -0.02em; }

    .about { flex-direction: row; }
    .about__col { flex: 1; }
    .about__col--media { order: 2; }

    .grid--services { grid-template-columns: repeat(3, 1fr); }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__top { flex-direction: row; justify-content: space-between; }
    .site-footer__inner { text-align: left; }

    .contact-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 56px 40px; }
    .cta-band h2 { font-size: 34px; }
}

@media (min-width: 1024px) {
    .grid--blog { grid-template-columns: repeat(4, 1fr); }
    .display { font-size: 48px; line-height: 56px; }
    .site-footer__logo img { height: 60px; }
}
