/* XnY Clinics: styles for index.html and doctors.html.
   booking.html and the policy pages keep their own styles. */

@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-variable.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
}

:root {
	--ink: #10282c;
	--ink-soft: #4b6267;
	--deep: #0b3a40;
	--teal: #0c5f60;
	--teal-bright: #7fd0cf;
	--wash: #eef5f5;
	--paper: #fbfbf9;
	--line: #dce6e6;
	--pink: #c92a5e;
	--white: #fff;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "DM Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--gutter: clamp(20px, 5vw, 64px);
	--section: clamp(72px, 10vw, 136px);
	--radius: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--serif); font-weight: 350; letter-spacing: -.018em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.4vw, 4.75rem); }
h2 { font-size: clamp(2.05rem, 3.8vw, 3.25rem); }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--teal);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.lede { max-width: 56ch; margin-top: 22px; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-row > div { max-width: 720px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 8px; background: var(--deep); color: var(--white); }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep); color: var(--white); }
.btn-primary:hover { background: var(--teal); }
.btn-outline { border-color: #a9c4c4; color: var(--deep); }
.btn-outline:hover { border-color: var(--deep); background: var(--white); }
.btn-light { background: var(--white); color: var(--deep); }
.btn-light:hover { background: var(--wash); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--teal);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: #a9c4c4;
	text-underline-offset: 5px;
	transition: text-decoration-color .25s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 251, 249, .9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: block; flex: none; }
.brand img { width: 178px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: .9688rem; text-decoration: none; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--teal); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--teal); font-weight: 500; }
.menu-toggle {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--deep);
	cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle span { position: relative; transform: translateY(-3px); }
.menu-toggle span::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }

/* Hero */
.hero { padding-top: clamp(20px, 3vw, 44px); padding-bottom: clamp(44px, 5vw, 72px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); align-items: center; gap: clamp(36px, 5vw, 80px); }
.hero .wrap-block { display: block; }
.hero .lede { margin-top: 26px; }
.hero-figure { position: relative; }
.hero-figure img {
	width: 100%;
	aspect-ratio: 1 / .92;
	object-fit: cover;
	object-position: 45% 50%;
	border-radius: var(--radius) var(--radius) var(--radius) 120px;
	animation: hero-in 1.3s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
.promises {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 40px;
	margin-top: clamp(44px, 5vw, 72px);
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.promises dt { font-family: var(--serif); font-size: 1.1875rem; }
.promises dd { margin-top: 4px; color: var(--ink-soft); font-size: .9688rem; }

/* Treatments */
.treatments { background: #fbf3f2; }
.treatments .btn-outline { border-color: #d9b9bd; }
.treatments .btn-outline:hover { border-color: #a8485f; }
.treatment-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid #ecd9d8;
}
.treatment-grid li { border-bottom: 1px solid #ecd9d8; }
.treatment-grid li:not(:nth-child(3n)) { border-right: 1px solid #ecd9d8; }
.treatment-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 30px 26px;
	text-decoration: none;
	transition: background-color .25s var(--ease);
}
.treatment-link:hover { background: rgba(255, 255, 255, .72); }
.treatment-link:focus-visible { outline-offset: -3px; }
.treatment-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: var(--tone-bg);
	color: var(--tone);
}
.treatment-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tone-rose { --tone: #a8485f; --tone-bg: #f6e0e3; }
.tone-teal { --tone: #2f7c7a; --tone-bg: #dcecea; }
.tone-sand { --tone: #8d6a45; --tone-bg: #f1e7da; }
.treatment-link h3 { transition: color .2s; }
.treatment-link:hover h3 { color: var(--tone); }
.treatment-link p { margin-top: 10px; margin-bottom: 18px; color: var(--ink-soft); font-size: .9875rem; }
.treatment-cta { margin-top: auto; color: var(--tone); font-size: .9063rem; font-weight: 500; }
.treatment-cta span { display: inline-block; transition: transform .25s var(--ease); }
.treatment-link:hover .treatment-cta span { transform: translateX(4px); }

/* Doctors */
.doctor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.doctor-photo { overflow: hidden; border-radius: var(--radius); background: var(--deep); }
.doctor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.doctor-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: linear-gradient(180deg, #2f7283, #0b3a40); }
.doctor-placeholder span { color: rgba(255, 255, 255, .85); font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; letter-spacing: .04em; }
.doctor-card:hover .doctor-photo img { transform: scale(1.025); }
.doctor-card h3 { margin-top: 20px; }
.doctor-role { margin-top: 6px; color: var(--ink-soft); font-size: .9688rem; line-height: 1.5; }
.doctor-cred { margin-top: 8px; color: var(--teal); font-size: .875rem; font-weight: 500; }

/* International patients */
.international { background: var(--deep); color: var(--white); }
.international .eyebrow { color: var(--teal-bright); }
.international .lede { color: #c9dcdc; }
.intl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(44px, 6vw, 96px); }
.intl-photo { margin-top: 44px; }
.intl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.intl-list li { padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .17); }
.intl-list li:first-child { padding-top: 0; border-top: 0; }
.intl-list p { margin-top: 8px; color: #c9dcdc; font-size: 1rem; }
.regions { margin-top: 28px; color: var(--teal-bright); font-size: .9688rem; }

/* Online consultation */
.online-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(44px, 7vw, 112px); }
.online-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 60% 20%; border-radius: 120px var(--radius) var(--radius) var(--radius); }
.check-list { margin-top: 32px; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.check-list strong { font-weight: 500; }
.check-list span { color: var(--ink-soft); font-size: .9875rem; }
.app-note { margin-top: 24px; color: var(--ink-soft); font-size: .9688rem; }
.app-note a { color: var(--teal); font-weight: 500; text-underline-offset: 4px; }

/* Patient journey */
.journey { background: var(--wash); }
.journey-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.journey-steps li { position: relative; padding-top: 24px; border-top: 1px solid #a9c4c4; counter-increment: step; }
.journey-steps li::before {
	content: counter(step);
	display: block;
	margin-bottom: 16px;
	color: var(--teal);
	font-family: var(--serif);
	font-size: 2.25rem;
	font-weight: 300;
	line-height: 1;
}
.journey-steps h3 { font-size: 1.25rem; }
.journey-steps p { margin-top: 8px; color: var(--ink-soft); font-size: .9688rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding-block: 16px;
	cursor: pointer;
	list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.25rem; }
.faq-list summary::after { content: "+"; flex: none; color: var(--teal); font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 24px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: stretch; }
.contact-list { margin-top: 32px; }
.contact-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding-block: 15px; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); font-size: .9375rem; }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }
.contact-list a { text-underline-offset: 4px; text-decoration-color: #a9c4c4; }
.map-frame { min-height: 420px; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.disclaimer { padding-block: 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9063rem; }
.disclaimer h2 { margin-bottom: 8px; font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1.5; }
.disclaimer p { max-width: 92ch; }

/* Doctors page */
.page-intro { padding-block: clamp(44px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.doctor-profiles { display: grid; gap: clamp(44px, 6vw, 80px); padding-bottom: var(--section); }
.doctor-profile { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(44px, 6vw, 80px); border-top: 1px solid var(--line); }
.doctor-profile h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.doctor-profile .doctor-role { margin-top: 12px; font-size: 1.0625rem; }
.doctor-profile .doctor-cred { font-size: .9375rem; }
.doctor-profile ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.doctor-profile li { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); font-size: .875rem; }
.doctor-profile .btn-row { margin-top: 28px; }

/* Policy and about pages */
.legal-page { max-width: 820px; padding-block: clamp(40px, 6vw, 72px) var(--section); }
.legal-page h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.5rem; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.legal-page p { color: var(--ink-soft); }
.legal-page p + p { margin-top: 10px; }
.legal-page .lede { margin-bottom: 8px; }
.legal-page ul { padding-left: 20px; color: var(--ink-soft); list-style: disc; }
.legal-page li + li { margin-top: 6px; }
.legal-page a:not(.btn) { color: var(--teal); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: #082b30; color: #c9dcdc; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 44px clamp(28px, 4vw, 64px); padding-block: clamp(56px, 7vw, 88px) 44px; }
.footer-brand img { width: 184px; height: auto; }
.footer-brand p { max-width: 34ch; margin-top: 20px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 14px; }
.footer-social a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.footer-grid h2 { margin-bottom: 14px; color: var(--white); font: 500 .9375rem/1.4 var(--sans); letter-spacing: 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-grid address { font-style: normal; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 22px; padding-right: 64px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .875rem; }

/* WhatsApp */
.whatsapp-float {
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--teal);
	box-shadow: 0 6px 24px rgba(11, 58, 64, .16);
	transition: transform .25s var(--ease), color .25s;
}
.whatsapp-float:hover { color: #128c5e; transform: translateY(-2px); }
.whatsapp-float svg { width: 24px; height: 24px; fill: currentColor; }

/* Scroll reveal: only hidden once JS has confirmed it can show them again */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1140px) {
	.brand img { width: 158px; }
	.site-nav { gap: 18px; }
	.site-nav a:not(.btn) { font-size: .9375rem; }
}

@media (max-width: 1020px) {
	.menu-toggle { display: flex; }
	.brand img { width: 150px; }
	.site-header .wrap { min-height: 70px; }
	html { scroll-padding-top: 84px; }
	.site-nav {
		position: fixed;
		inset: 71px 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 24px;
		overflow-y: auto;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
	}
	.site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.site-nav a:not(.btn) { min-height: 54px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
	.site-nav .btn { margin-top: 18px; }
	.doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.treatment-grid li:not(:nth-child(3n)) { border-right: 0; }
	.treatment-grid li:nth-child(odd) { border-right: 1px solid #ecd9d8; }
	.intl-grid, .online-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
	.online-photo { max-width: 560px; order: 2; }
	.journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
	.hero .wrap { grid-template-columns: minmax(0, 1fr); }
	.hero-figure img { aspect-ratio: 4 / 3.1; border-bottom-left-radius: 72px; }
	.promises { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 600px) {
	.eyebrow { letter-spacing: .09em; font-size: .75rem; }
	.treatment-grid { grid-template-columns: minmax(0, 1fr); }
	.treatment-grid li:nth-child(odd) { border-right: 0; }
	.treatment-link { padding: 24px 4px 22px; }
	.journey-steps { grid-template-columns: minmax(0, 1fr); }
	.doctor-profile { grid-template-columns: minmax(0, 1fr); }
	.doctor-profile .doctor-photo { max-width: 340px; }
	.btn-row .btn { width: 100%; }
	.check-list li { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.doctor-grid { gap: 36px 16px; }
	.doctor-card h3 { font-size: 1.1875rem; }
	.doctor-role { font-size: .9063rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
