/*
Theme Name: Coşkunses
Description: Theme for Prof. Dr. Fatih Mehmet Coşkunses. Plain CSS, no build step. Article typography and fonts are in prose.css.
Version: 2.0.0
Requires PHP: 8.2
License: GPL-2.0-or-later
*/

/* ============================================================ Tokens */

:root {
	--ink: #0e0e0e;
	--ink-2: #1a1917;
	--paper: #fafaf7;
	--stone: #eeebe5;
	--muted: #6b6760;
	--bronze: #7d6139;        /* text-safe accent (WCAG AA on paper) */
	--bronze-light: #c9a877;  /* accent on dark backgrounds */
	--line: rgb(14 14 14 / 0.12);
	--line-dark: rgb(250 250 247 / 0.12);
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Cormorant Garamond", ui-serif, Georgia, serif;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--gutter: clamp(16px, 4vw, 48px);
}

/* ============================================================ Base */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--bronze-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cs-skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--paper); padding: 0.75rem 1rem; border-radius: 8px; }
.cs-skip:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; flex: none; }
.icon-lg { width: 1.5rem; height: 1.5rem; flex: none; }

@media (max-width: 639px) { .hide-phone { display: none !important; } }
@media (max-width: 1023px) { .hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* ============================================================ Layout */

.cs-container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.cs-section { padding-block: clamp(5rem, 10vw, 9rem); }
.cs-section--stone { background: var(--stone); }
.cs-section--ink { background: var(--ink); color: var(--paper); }
.cs-mb { margin-bottom: clamp(3rem, 6vw, 5rem); }
.cs-mt { margin-top: 4rem; }
.cs-center { margin-inline: auto; }

.cs-grid-2, .cs-grid-3 { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .cs-grid-2, .cs-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cs-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .cs-split { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }

/* ============================================================ Type */

.cs-kicker, .cs-label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bronze);
	margin-bottom: 1rem;
}
.cs-label { color: var(--muted); letter-spacing: 0.16em; }
:is(.cs-hero, .cs-phero, .cs-section--ink) .cs-kicker { color: var(--bronze-light); }

.cs-h2 { font: 300 clamp(2.6rem, 5.4vw, 4.75rem)/1 var(--serif); letter-spacing: -0.015em; }
.cs-h3 { font: 400 clamp(2rem, 3.6vw, 3rem)/1.05 var(--serif); }
.cs-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); }
.cs-section--ink .cs-lead { color: rgb(250 250 247 / 0.7); }
.cs-num { font: italic 400 1.5rem/1 var(--serif); color: var(--bronze); }

/* ============================================================ Buttons & links */

.cs-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.cs-actions--center { justify-content: center; }
.cs-lead + .cs-btn { margin-top: 2.25rem; }

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	height: 3.1rem;
	padding-inline: 1.6rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.cs-btn:active { transform: scale(0.97); }
.cs-btn--sm { height: 2.4rem; padding-inline: 1.1rem; font-size: 0.85rem; }
.cs-btn--light { background: var(--paper); color: var(--ink); }
.cs-btn--light:hover { background: var(--bronze-light); }
.cs-btn--ghost { border: 1px solid rgb(250 250 247 / 0.3); color: var(--paper); }
.cs-btn--ghost:hover { background: rgb(250 250 247 / 0.1); border-color: rgb(250 250 247 / 0.6); }
.cs-btn--dark { background: var(--ink); color: var(--paper); }
.cs-btn--dark:hover { background: var(--bronze); }
.cs-btn--outline { border: 1px solid var(--line); background: var(--paper); }
.cs-btn--outline:hover { border-color: var(--ink); }

.cs-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.5rem;
	font-size: 0.92rem;
	font-weight: 500;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.5s var(--ease);
}
.cs-link svg { transition: transform 0.4s var(--ease); }
.cs-link:hover, a:hover > .cs-link { background-size: 100% 1px; }
.cs-link:hover svg, a:hover > .cs-link svg { transform: translateX(4px); }

.cs-icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; transition: background-color 0.3s; }
.cs-icon-btn:hover { background: rgb(250 250 247 / 0.12); }

.cs-lang { display: inline-flex; gap: 0.15rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; }
.cs-lang a { padding: 0.35rem 0.5rem; border-radius: 999px; opacity: 0.75; }
.cs-lang a:hover, .cs-lang a[aria-current] { opacity: 1; }
.cs-lang a[aria-current] { background: rgb(250 250 247 / 0.12); }

/* ============================================================ Header & menu */

.cs-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--paper);
	border-bottom: 1px solid transparent;
	transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}
.cs-header.is-scrolled {
	background: rgb(14 14 14 / 0.8);
	backdrop-filter: saturate(160%) blur(20px);
	-webkit-backdrop-filter: saturate(160%) blur(20px);
	border-color: rgb(250 250 247 / 0.08);
}
.cs-header.is-hidden { transform: translateY(-100%); }
.cs-header__inner { display: flex; align-items: center; gap: 2rem; height: 76px; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.cs-header__actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
@media (min-width: 1024px) { .cs-header__actions { margin-left: 0; } .cs-header__actions .cs-btn { margin-left: 0.75rem; } }

.cs-logo { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.cs-logo__mark {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid rgb(201 168 119 / 0.6);
	border-radius: 999px;
	font: italic 400 1.15rem var(--serif);
	color: var(--bronze-light);
}
.cs-logo__text { display: flex; flex-direction: column; font: 500 1.2rem/1.1 var(--serif); }
.cs-logo__text small { font: 400 0.62rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: rgb(250 250 247 / 0.65); }

.cs-nav { display: none; margin-inline: auto; }
@media (min-width: 1024px) { .cs-nav { display: block; } }
.cs-nav ul { display: flex; gap: clamp(1.1rem, 2vw, 2rem); font-size: 0.88rem; white-space: nowrap; }
.cs-nav a { color: rgb(250 250 247 / 0.78); transition: color 0.25s; }
.cs-nav a:hover, .cs-nav .current-menu-item > a, .cs-nav .current-page-ancestor > a { color: var(--paper); }

.cs-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: var(--paper);
	padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	animation: cs-fade 0.35s var(--ease);
}
.cs-menu[hidden] { display: none; }
.cs-menu__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.cs-menu__nav { margin-block: auto; padding-block: 2rem; }
.cs-menu__nav a { display: block; font: 300 clamp(2.4rem, 9vw, 3.5rem)/1.25 var(--serif); }
.cs-menu__contact { display: grid; gap: 0.9rem; font-size: 0.95rem; color: rgb(250 250 247 / 0.75); border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.cs-menu__contact > * { display: flex; align-items: center; gap: 0.75rem; }

/* ============================================================ Heroes */

.cs-hero, .cs-phero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }

/* Warm glow + film grain behind every hero. */
.cs-glow {
	position: absolute;
	inset: -10% 0 0;
	z-index: -2;
	background:
		radial-gradient(60% 50% at 78% 30%, rgb(125 97 57 / 0.4), transparent 70%),
		radial-gradient(40% 40% at 10% 90%, rgb(201 168 119 / 0.12), transparent 70%);
	animation: cs-drift 18s ease-in-out infinite alternate;
}
.cs-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.18;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.cs-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.cs-hero__content { padding-top: 150px; padding-bottom: 3.5rem; }
.cs-hero__title { font: 300 clamp(3.4rem, 8.6vw, 8rem)/0.92 var(--serif); letter-spacing: -0.02em; max-width: 11ch; margin-top: 1.5rem; }
.cs-hero__title span { display: block; font-style: italic; font-size: 0.34em; letter-spacing: 0; color: var(--bronze-light); margin-bottom: 0.35em; }
.cs-hero__lead { margin-top: 1.75rem; max-width: 36rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgb(250 250 247 / 0.72); }

/* Doctor photo, faded out on every side except the right edge. */
.cs-hero__portrait {
	position: absolute;
	z-index: -1;
	inset: 0 0 0 auto;
	width: min(50vw, 760px);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 55%), linear-gradient(to top, transparent, #000 35%), linear-gradient(to bottom, transparent, #000 22%);
	-webkit-mask-composite: source-in, source-in;
	mask-image: linear-gradient(to right, transparent, #000 55%), linear-gradient(to top, transparent, #000 35%), linear-gradient(to bottom, transparent, #000 22%);
	mask-composite: intersect;
}
.cs-hero__portrait img, .cs-hero__portrait .cs-portrait-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: 35% top; aspect-ratio: auto; border: 0; }
.cs-hero__portrait img { filter: brightness(0.74) saturate(0.9) contrast(1.05); }
@media (max-width: 1023px) { .cs-hero__portrait { width: 100%; bottom: 35%; opacity: 0.45; } }

.cs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.cs-chips a { display: block; padding: 0.55rem 1rem; border: 1px solid rgb(250 250 247 / 0.22); border-radius: 999px; font-size: 0.85rem; transition: background-color 0.3s, color 0.3s; }
.cs-chips a:hover { background: var(--paper); color: var(--ink); }
/* "All treatments" is a quiet text link on its own row, so the two highlighted chips stay a pair. */
.cs-chips__more { flex-basis: 100%; }
.cs-chips .cs-chips__more a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0; border: 0; border-radius: 0; color: rgb(250 250 247 / 0.75); text-decoration: underline 1px rgb(250 250 247 / 0.35); text-underline-offset: 5px; }
.cs-chips .cs-chips__more a:hover { background: none; color: var(--paper); }

.cs-hero__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding-block: 1.5rem 1.75rem; border-top: 1px solid var(--line-dark); font-size: 0.88rem; color: rgb(250 250 247 / 0.7); }
.cs-hero__facts > * { display: inline-flex; align-items: center; gap: 0.55rem; }
.cs-hero__facts svg { color: var(--bronze-light); }

/* Inner page hero */
.cs-phero { padding-block: 150px clamp(4rem, 8vw, 7rem); }
.cs-phero__title { font: 300 clamp(2.9rem, 6.6vw, 6rem)/0.98 var(--serif); letter-spacing: -0.015em; max-width: 18ch; }
.single .cs-phero__title { font-size: clamp(2.5rem, 5.2vw, 4.6rem); max-width: 22ch; }
.cs-phero__lead { margin-top: 1.75rem; max-width: 42rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgb(250 250 247 / 0.72); }
.cs-phero__lead + .cs-phero__lead { margin-top: 1rem; }
.cs-phero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; font-size: 0.85rem; color: rgb(250 250 247 / 0.65); }
.cs-phero__meta a { color: var(--paper); text-decoration: underline; text-decoration-color: rgb(201 168 119 / 0.6); text-underline-offset: 3px; }

/* Light page title (Treatments page): no dark hero, so the header stays solid from the start. */
.cs-pagehead { padding-block: calc(76px + clamp(2.5rem, 6vw, 4.5rem)) clamp(1.5rem, 3vw, 2.5rem); }
.cs-pagehead__title { font: 300 clamp(2.6rem, 5.5vw, 4.75rem)/1 var(--serif); letter-spacing: -0.015em; }
.cs-pagehead .cs-crumbs ol { margin-bottom: 1.5rem; color: var(--muted); }
.cs-pagehead .cs-crumbs a:hover { color: var(--ink); }
.cs-pagehead + .cs-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
body:has(.cs-pagehead) .cs-header { background: rgb(14 14 14 / 0.92); border-color: rgb(250 250 247 / 0.08); }

.cs-crumbs ol { display: flex; flex-wrap: wrap; margin-bottom: 2.5rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(250 250 247 / 0.55); }
.cs-crumbs li + li::before { content: "/"; margin-inline: 0.6rem; opacity: 0.5; }
.cs-crumbs a:hover { color: var(--paper); }

.cs-about__photo { border-radius: 28px; overflow: hidden; max-width: 460px; }
.cs-about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.cs-portrait-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	border: 1px solid rgb(250 250 247 / 0.1);
	background: radial-gradient(70% 60% at 50% 20%, rgb(201 168 119 / 0.25), transparent 70%), var(--ink-2);
}
.cs-portrait-placeholder span { font: italic 300 clamp(6rem, 12vw, 10rem) var(--serif); color: transparent; -webkit-text-stroke: 1px rgb(201 168 119 / 0.6); }

/* ============================================================ Home sections */

.cs-marquee { background: var(--ink); color: rgb(250 250 247 / 0.82); border-top: 1px solid rgb(250 250 247 / 0.08); overflow: hidden; padding-block: 1.4rem; }
.cs-marquee__track { display: flex; width: max-content; animation: cs-marquee 45s linear infinite; }
.cs-marquee:hover .cs-marquee__track { animation-play-state: paused; }
.cs-marquee__track span { display: inline-flex; align-items: center; font: italic 400 clamp(1.3rem, 2vw, 1.7rem) var(--serif); white-space: nowrap; }
.cs-marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--bronze-light); margin-inline: 2.25rem; }

.cs-statement { padding-block: clamp(6rem, 16vw, 13rem); }
.cs-statement p { font: 300 clamp(2rem, 4.6vw, 4.1rem)/1.12 var(--serif); letter-spacing: -0.01em; max-width: 22ch; }
.cs-word { transition: opacity 0.25s linear; }

/* Highlighted treatment (zygoma, jaw surgery): statement on the left, points and buttons on the right. */
.cs-spot__head { display: grid; gap: 2rem 5rem; align-items: end; }
@media (min-width: 1024px) { .cs-spot__head { grid-template-columns: 1.15fr 1fr; } }
.cs-spot .cs-h2 { max-width: 14ch; }
.cs-spot .cs-lead { margin-top: 0; }
.cs-points { display: grid; gap: 0.6rem; margin-top: 1.75rem; }
.cs-points li { display: flex; gap: 0.85rem; align-items: baseline; font-size: 1.02rem; }
.cs-points li::before { content: "✦"; flex: none; font-size: 0.7em; color: var(--bronze); }
.cs-section--ink .cs-points li::before { color: var(--bronze-light); }
.cs-sub { margin-top: clamp(3.5rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
.cs-spot__head + :is(.cs-gallery, .cs-admin-hint) { margin-top: clamp(3rem, 6vw, 4.5rem); }
.cs-section--ink .cs-label { color: rgb(250 250 247 / 0.6); }

/* Before / after: drag the handle (a full-size range input) to compare. Without JS it rests at 50%. */
.cs-cases { display: grid; gap: 2rem; }
@media (min-width: 768px) { .cs-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-case figcaption { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.cs-section--ink .cs-case figcaption, .cs-section--ink .cs-cases__note { color: rgb(250 250 247 / 0.65); }
.cs-cases__note { margin-top: 1.5rem; font-size: 0.8rem; color: var(--muted); }
/* Every case gets the same 4:3 frame; photos are fitted, never cropped (clinical images often carry labels). */
.cs-ba { --pos: 50%; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--ink-2); }
.cs-ba img { width: 100%; height: 100%; object-fit: contain; }
.cs-ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cs-ba__handle { position: absolute; inset: 0 auto 0 var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.cs-ba__handle::after {
	content: "‹ ›";
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	box-shadow: 0 6px 20px rgb(14 14 14 / 0.3);
}
.cs-ba__tag { position: absolute; left: 1rem; bottom: 1rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgb(14 14 14 / 0.6); color: var(--paper); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.cs-ba__tag--after { left: auto; right: 1rem; }
.cs-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cs-ba:has(input:focus-visible) { outline: 2px solid var(--bronze-light); outline-offset: 3px; }

/* Teaching photos */
.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 1024px) { .cs-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-gallery figure { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.cs-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Other treatments: one row each */
.cs-tlist { border-bottom: 1px solid var(--line); }
.cs-tlist a { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0.4rem 1.5rem; align-items: baseline; padding-block: 1.75rem; border-top: 1px solid var(--line); transition: color 0.3s; }
.cs-tlist__title { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); }
.cs-tlist__text { grid-column: 2; color: var(--muted); font-size: 0.95rem; }
.cs-tlist svg { grid-row: 1; grid-column: 3; align-self: center; transition: transform 0.4s var(--ease); }
.cs-tlist a:hover { color: var(--bronze); }
.cs-tlist a:hover svg { transform: translateX(6px); }
@media (min-width: 1024px) {
	.cs-tlist a { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; }
	.cs-tlist__text { grid-column: auto; }
	.cs-tlist svg { grid-row: auto; grid-column: auto; }
}

/* Where photos will appear (logged-in editors only). */
.cs-admin-hint { padding: 1.25rem 1.5rem; border: 1.5px dashed var(--bronze-light); border-radius: 16px; background: rgb(201 168 119 / 0.08); font-size: 0.92rem; }

.cs-feature { border-top: 1px solid var(--line); padding-top: 2rem; }
.cs-feature h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.25rem; }
.cs-feature p { margin-top: 0.75rem; color: var(--muted); line-height: 1.65; }

.cs-academic { display: grid; gap: 4rem; align-items: end; }
@media (min-width: 1024px) { .cs-academic { grid-template-columns: 1.1fr 1fr; } }
.cs-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.cs-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.cs-stats dd { font: 300 clamp(3.5rem, 7vw, 6rem)/1 var(--serif); }
.cs-stats dt { margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.4; color: rgb(250 250 247 / 0.65); }
/* Journals the doctor has published in, as badges. */
.cs-journals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.75rem; margin-top: clamp(4rem, 8vw, 6rem); }
.cs-journals li { display: flex; align-items: center; gap: 0.85rem; min-height: 4.5rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 14px; background: rgb(250 250 247 / 0.03); font: italic 400 1.12rem/1.25 var(--serif); color: rgb(250 250 247 / 0.82); }
.cs-journals li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--bronze-light); }

/* ============================================================ Cards */

.cs-tcard { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; border: 1px solid var(--line); border-radius: 26px; background: rgb(255 255 255 / 0.55); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.cs-tcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(14 14 14 / 0.25); }
.cs-tcard__media { margin-top: 1.25rem; width: 100%; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.cs-tcard__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-tcard__title { font: 400 clamp(1.8rem, 2.6vw, 2.3rem)/1.05 var(--serif); margin-top: 1.25rem; }
.cs-tcard__text { margin-top: 0.75rem; color: var(--muted); flex: 1; }

.cs-card__link { display: block; }
.cs-card__media { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--stone); }
.cs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cs-card:hover .cs-card__media img { transform: scale(1.05); }
.cs-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(60% 60% at 30% 30%, rgb(201 168 119 / 0.35), transparent 70%), var(--ink-2); }
.cs-card__placeholder span { font: italic 400 7rem var(--serif); color: transparent; -webkit-text-stroke: 1px rgb(201 168 119 / 0.7); }
.cs-card__meta { margin-top: 1.4rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cs-card__title { font: 400 1.75rem/1.12 var(--serif); margin-top: 0.6rem; }
.cs-card__excerpt { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted); }

/* ============================================================ Contact & form */

.cs-contact { display: grid; gap: 4rem; }
@media (min-width: 1024px) { .cs-contact { grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: start; } }
.cs-contact__cards { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .cs-contact__cards { grid-template-columns: 1fr 1fr; } }
.cs-contact__card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.5s var(--ease); }
.cs-contact__card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cs-contact__card svg { color: var(--bronze); }
.cs-contact__card span { display: flex; flex-direction: column; font-size: 1.1rem; font-weight: 500; }
.cs-contact__card small { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cs-contact__meta { display: grid; gap: 2rem; margin-top: 2.5rem; font-size: 0.95rem; }
@media (min-width: 640px) { .cs-contact__meta { grid-template-columns: 1fr 1fr; } }
.cs-contact__form { background: var(--paper); border-radius: 28px; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: 0 40px 80px -50px rgb(14 14 14 / 0.35); }

.cs-hours > div { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.2rem; }
.cs-hours dd { font-variant-numeric: tabular-nums; }
.cs-hours__closed { color: var(--muted); }
.cs-footer .cs-hours__closed { color: rgb(250 250 247 / 0.65); }

.cs-map { position: relative; margin-top: 2.5rem; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #e3dfd7; }
.cs-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-map__load {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-weight: 500;
	background: repeating-linear-gradient(0deg, transparent 0 39px, rgb(14 14 14 / 0.05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgb(14 14 14 / 0.05) 39px 40px);
}
.cs-map__load svg { color: var(--bronze); }
.cs-map__load small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }

.cs-form__grid { display: grid; gap: 1.5rem 1.25rem; }
@media (min-width: 640px) { .cs-form__grid { grid-template-columns: 1fr 1fr; } .cs-field--full { grid-column: 1 / -1; } }
.cs-field span { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.cs-field :is(input, select, textarea) { width: 100%; padding: 0.7rem 0; font-size: 1rem; border-bottom: 1px solid rgb(14 14 14 / 0.2); border-radius: 0; transition: border-color 0.3s; }
.cs-field :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--ink); }
.cs-field select { appearance: none; padding-right: 1.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6760' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 1.1rem; }
.cs-field textarea { resize: vertical; min-height: 6rem; }
.cs-consent { display: flex; gap: 0.75rem; margin-top: 1.75rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.cs-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--ink); }
.cs-consent a { text-decoration: underline; text-underline-offset: 3px; }
.cs-form .cs-btn { margin-top: 1.75rem; width: 100%; }
.cs-form__hp { position: absolute; left: -9999px; }
.cs-form__notice { padding: 0.9rem 1.1rem; border-radius: 14px; font-size: 0.92rem; margin-bottom: 1.5rem; }
.cs-form__notice.is-success { background: #e7f1e8; color: #1d4d27; }
.cs-form__notice.is-error { background: #f7e4e1; color: #7a2318; }

/* ============================================================ Articles (treatments, posts) */

.cs-article { display: grid; gap: 4rem; padding-block: clamp(3.5rem, 7vw, 6rem); justify-content: center; }
.cs-article__aside { display: none; }
@media (min-width: 1024px) {
	.cs-article { grid-template-columns: 250px minmax(0, 760px); gap: 5rem; }
	.cs-article__aside { display: block; }
}
.cs-article__body { min-width: 0; }
.cs-article__sticky { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2rem; }
.cs-article__figure { margin-bottom: 3rem; border-radius: 22px; overflow: hidden; }

.cs-toc ol { border-left: 1px solid var(--line); }
.cs-toc a { display: block; margin-left: -1px; padding: 0.4rem 0 0.4rem 1rem; border-left: 1px solid transparent; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }
.cs-toc a:hover, .cs-toc a.is-active { color: var(--ink); }
.cs-toc a.is-active { border-left-color: var(--ink); }

.cs-sidecard { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; border-radius: 20px; background: var(--stone); }
.cs-sidecard .cs-link { margin-top: 0; }
.cs-sidecard__title { font: 400 1.6rem/1.1 var(--serif); }
.cs-sidecard__phone { text-align: center; font-size: 0.88rem; color: var(--muted); }

.cs-author { display: flex; gap: 1.5rem; margin-top: 4rem; padding: 2rem; border-radius: 24px; background: var(--stone); }
.cs-author__photo { flex: none; width: 5rem; height: 5rem; border-radius: 999px; overflow: hidden; }
.cs-author__photo :is(img, .cs-portrait-placeholder) { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: 999px; }
.cs-author__photo span { font-size: 1.6rem !important; }
.cs-author .cs-kicker { margin-bottom: 0.4rem; }
.cs-author__name { font: 400 1.6rem/1.1 var(--serif); }
.cs-author__bio { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); }

/* ============================================================ CTA band, blog, footer */

.cs-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.cs-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 110%, rgb(125 97 57 / 0.5), transparent 70%); }
.cs-cta__title { font: 300 clamp(2.3rem, 5vw, 4.4rem)/1.02 var(--serif); max-width: 20ch; margin-inline: auto; }
.cs-cta__text { margin-top: 1.25rem; font-size: 1.1rem; color: rgb(250 250 247 / 0.7); }

.cs-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3.5rem; }
.cs-filter a { padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; }
.cs-filter a:hover { border-color: var(--ink); }
.cs-filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cs-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
.cs-pagination .page-numbers { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.cs-pagination .current { background: var(--ink); color: var(--paper); }

.cs-footer { background: #0a0a0a; color: rgb(250 250 247 / 0.7); padding-block: clamp(4.5rem, 9vw, 7rem) calc(6.5rem + env(safe-area-inset-bottom)); font-size: 0.95rem; }
@media (min-width: 1024px) { .cs-footer { padding-bottom: 3rem; } }
.cs-footer__grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .cs-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cs-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.cs-footer__grid .cs-btn { margin-top: 2rem; }
.cs-footer__name { font: 400 2.1rem/1.05 var(--serif); color: var(--paper); margin-bottom: 0.4rem; }
.cs-footer__heading { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 1rem; }
.cs-footer__heading:not(:first-child) { margin-top: 2rem; }
.cs-footer strong { font-weight: 500; color: var(--paper); }
.cs-footer a:not(.cs-btn):hover { color: var(--paper); }
.cs-footer__nav li + li { margin-top: 0.5rem; }
.cs-footer__social { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.cs-footer__bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid rgb(250 250 247 / 0.1); font-size: 0.78rem; color: rgb(250 250 247 / 0.62); }
@media (min-width: 1024px) { .cs-footer__bottom { flex-direction: row; justify-content: space-between; } }
.cs-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile bottom bar: call · WhatsApp · book */
.cs-ctabar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: rgb(14 14 14 / 0.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgb(250 250 247 / 0.1); padding-bottom: env(safe-area-inset-bottom); color: rgb(250 250 247 / 0.85); }
@media (min-width: 1024px) { .cs-ctabar { display: none; } }
.cs-ctabar a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding-block: 0.65rem; font-size: 0.72rem; font-weight: 500; }
.cs-ctabar a.is-primary { background: var(--bronze); color: #fff; }
.cs-ctabar { transition: opacity 0.3s, visibility 0.3s; }
.cs-ctabar.is-away { opacity: 0; visibility: hidden; }

/* "View this page in English?" suggestion — never an automatic redirect. */
.cs-langbanner { position: fixed; z-index: 45; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 0.75rem; width: max-content; max-width: calc(100vw - 32px); padding: 0.45rem 0.45rem 0.45rem 1.25rem; border-radius: 999px; background: var(--paper); font-size: 0.88rem; box-shadow: 0 20px 50px -20px rgb(14 14 14 / 0.5); border: 1px solid var(--line); animation: cs-fade 0.6s var(--ease); }
.cs-langbanner[hidden] { display: none; }
.cs-langbanner .cs-icon-btn:hover { background: var(--stone); }
@media (min-width: 1024px) { .cs-langbanner { bottom: 1.5rem; } }

/* ============================================================ Motion
 * Only when <html class="cs-motion"> (JS on and the visitor allows motion). main.js adds .is-in. */

.cs-motion :is([data-reveal], [data-hero-item]) {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
	transition-delay: var(--delay, 0s);
}
.cs-motion :is([data-reveal], [data-hero-item]).is-in { opacity: 1; transform: none; }

@keyframes cs-marquee { to { transform: translateX(-50%); } }
@keyframes cs-drift { to { transform: translate(2%, 2%) scale(1.08); } }
@keyframes cs-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.cs-marquee__track { flex-wrap: wrap; justify-content: center; row-gap: 0.5rem; width: auto; padding-inline: 16px; }
	.cs-marquee__copy { display: none !important; }
}
