/*
 * Public clinic site.
 *
 * Colours, fonts and spacing all resolve from custom properties the shell sets
 * from the content option, so the Factory changes a site's whole look by
 * writing four values — it never rewrites a stylesheet.
 */

.gmed-site {
	--gmed-primary: #2563eb;
	--gmed-accent: #22c55e;
	--gmed-ink: #0f172a;
	--gmed-surface: #ffffff;
	--gmed-muted: #5b6878;
	--gmed-line: #e4e9f0;
	--gmed-tint: #f6f8fc;
	--gmed-font-head: inherit;
	--gmed-font-body: inherit;

	margin: 0;
	background: var(--gmed-surface);
	color: var(--gmed-ink);
	font-family: var(--gmed-font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.gmed-site *,
.gmed-site *::before,
.gmed-site *::after { box-sizing: border-box; }

.gmed-site h1, .gmed-site h2, .gmed-site h3 {
	font-family: var(--gmed-font-head), inherit;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 0;
}

.gmed-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.gmed-narrow { max-width: 760px; }

.gmed-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	padding: 10px 16px;
	background: var(--gmed-ink);
	color: #fff;
	z-index: 100;
}
.gmed-skip:focus { left: 10px; top: 10px; }

/* ------------------------------------------------------------------ buttons */

.gmed-site .gmed-btn,
.gmed-site-head .gmed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 11px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.gmed-site .gmed-btn.is-lg { padding: 15px 28px; font-size: 16.5px; }
.gmed-site .gmed-btn.is-primary { background: var(--gmed-primary); color: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); }
.gmed-site .gmed-btn.is-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(15, 23, 42, .2); }
.gmed-site .gmed-btn.is-ghost { background: #fff; border-color: var(--gmed-line); color: var(--gmed-ink); }
.gmed-site .gmed-btn.is-ghost:hover { border-color: var(--gmed-primary); color: var(--gmed-primary); }
.gmed-site .gmed-btn:focus-visible { outline: 3px solid var(--gmed-primary); outline-offset: 3px; }

/* --------------------------------------------------------------------- head */

.gmed-site-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--gmed-surface) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--gmed-line);
}

/* color-mix is recent; this is the fallback order, not a duplicate. */
@supports not (background: color-mix(in srgb, white 50%, transparent)) {
	.gmed-site-head { background: var(--gmed-surface); }
}

.gmed-site-head-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 74px;
}

.gmed-site-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: inherit;
	margin-right: auto;
}

.gmed-site-logo { display: block; max-height: 42px; width: auto; }

.gmed-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--gmed-primary);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	flex: 0 0 auto;
}

.gmed-site-brand-text strong { display: block; font-size: 16.5px; font-weight: 700; }
.gmed-site-brand-text small { display: block; font-size: 12.5px; color: var(--gmed-muted); }

.gmed-site-nav { display: flex; align-items: center; gap: 6px; }

.gmed-site-nav a {
	padding: 9px 13px;
	border-radius: 9px;
	color: var(--gmed-muted);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.gmed-site-nav a:hover { background: var(--gmed-tint); color: var(--gmed-ink); }

/* --------------------------------------------------------------------- hero */

.gmed-hero {
	padding: 92px 0 72px;
	background:
		radial-gradient(1100px 420px at 18% -8%, color-mix(in srgb, var(--gmed-primary) 14%, transparent), transparent),
		var(--gmed-surface);
	text-align: center;
}

@supports not (background: color-mix(in srgb, white 50%, transparent)) {
	.gmed-hero { background: var(--gmed-tint); }
}

.gmed-hero.is-compact { padding: 60px 0 44px; }

.gmed-hero-eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--gmed-line);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--gmed-primary);
}

.gmed-hero-title {
	font-size: clamp(2rem, 5vw, 3.3rem);
	font-weight: 800;
	max-width: 20ch;
	margin: 0 auto;
}

.gmed-hero.is-compact .gmed-hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }

.gmed-hero-text {
	max-width: 58ch;
	margin: 20px auto 0;
	font-size: 18px;
	color: var(--gmed-muted);
}

.gmed-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}

.gmed-hero-note { margin: 18px 0 0; font-size: 14px; color: var(--gmed-muted); }

/* ---------------------------------------------------------------- emergency */

.gmed-emergency {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 14px 20px;
	background: #fef2f2;
	border-top: 1px solid #fecaca;
	border-bottom: 1px solid #fecaca;
	color: #991b1b;
	font-size: 15px;
	font-weight: 650;
	text-align: center;
}

.gmed-emergency .ti { flex: 0 0 auto; font-size: 20px; width: 20px; height: 20px; }

/* ----------------------------------------------------------------- sections */

.gmed-section { padding: 76px 0; }
.gmed-section.is-tinted { background: var(--gmed-tint); }

.gmed-section-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 750;
	margin: 0 0 34px;
	text-align: center;
}

.gmed-section-more { margin: 34px 0 0; text-align: center; }

.gmed-prose { color: var(--gmed-muted); }
.gmed-prose p { margin: 0 0 1em; }
.gmed-prose p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- cards */

.gmed-cards,
.gmed-people,
.gmed-steps,
.gmed-facts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gmed-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
	gap: 20px;
}

.gmed-card-item {
	padding: 26px;
	border: 1px solid var(--gmed-line);
	border-radius: 16px;
	background: #fff;
	animation: gmed-rise .5s both;
	animation-delay: var(--gmed-delay, 0ms);
}

.gmed-card-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 7px; }
.gmed-card-item p { margin: 0; font-size: 15px; color: var(--gmed-muted); }

.gmed-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 15px;
	border-radius: 12px;
	background: var(--gmed-tint);
	color: var(--gmed-primary);
	font-size: 22px;
}

.gmed-card-icon .ti { width: 22px; height: 22px; }

/* -------------------------------------------------------------------- team */

.gmed-people {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
	gap: 22px;
}

.gmed-person {
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--gmed-line);
	text-align: center;
	animation: gmed-rise .5s both;
	animation-delay: var(--gmed-delay, 0ms);
}

.gmed-person-photo,
.gmed-person-initial {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 15px;
	border-radius: 50%;
	object-fit: cover;
}

.gmed-person-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gmed-tint);
	color: var(--gmed-primary);
	font-size: 32px;
	font-weight: 700;
}

.gmed-person h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.gmed-person p { margin: 0; font-size: 14.5px; color: var(--gmed-muted); }

/* ------------------------------------------------------------------- steps */

.gmed-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
	gap: 24px;
	counter-reset: gmed-step;
}

.gmed-steps li {
	animation: gmed-rise .5s both;
	animation-delay: var(--gmed-delay, 0ms);
}

.gmed-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 13px;
	border-radius: 50%;
	background: var(--gmed-primary);
	color: #fff;
	font-weight: 700;
}

.gmed-steps h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 6px; }
.gmed-steps p { margin: 0; font-size: 15px; color: var(--gmed-muted); }

/* --------------------------------------------------------------------- faq */

.gmed-faq details {
	border: 1px solid var(--gmed-line);
	border-radius: 13px;
	background: #fff;
	margin-bottom: 11px;
	overflow: hidden;
}

.gmed-faq summary {
	padding: 17px 20px;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.gmed-faq summary::-webkit-details-marker { display: none; }
.gmed-faq summary::after { content: "+"; float: right; color: var(--gmed-primary); font-weight: 700; }
.gmed-faq details[open] summary::after { content: "–"; }
.gmed-faq details > div { padding: 0 20px 18px; }

/* ------------------------------------------------------------------- facts */

.gmed-facts { display: grid; gap: 15px; }

.gmed-facts li {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 19px 21px;
	border: 1px solid var(--gmed-line);
	border-radius: 14px;
	background: #fff;
}

.gmed-fact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--gmed-tint);
	color: var(--gmed-primary);
	font-size: 20px;
	flex: 0 0 auto;
}

.gmed-fact-icon .ti { width: 20px; height: 20px; }
.gmed-fact-body strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--gmed-muted); }
.gmed-fact-body > span { font-size: 16px; }

/* --------------------------------------------------------------------- cta */

.gmed-cta {
	padding: 70px 0;
	background: var(--gmed-ink);
	color: #fff;
	text-align: center;
}

.gmed-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; margin: 0 0 24px; }
.gmed-cta .gmed-btn.is-primary { background: #fff; color: var(--gmed-ink); }

/* -------------------------------------------------------------------- foot */

.gmed-site-foot {
	padding: 52px 0 40px;
	border-top: 1px solid var(--gmed-line);
	background: var(--gmed-tint);
	font-size: 15px;
	color: var(--gmed-muted);
}

.gmed-site-foot-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
	gap: 30px;
}

.gmed-site-foot strong { color: var(--gmed-ink); font-size: 16.5px; }
.gmed-site-foot p { margin: 7px 0 0; }
.gmed-site-disclaimer { font-size: 13px; }
.gmed-site-copy { font-size: 13px; margin-top: 14px; }

/* ------------------------------------------------------------------ motion */

@keyframes gmed-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.gmed-card-item,
	.gmed-person,
	.gmed-steps li { animation: none; }
	.gmed-site .gmed-btn { transition: none; }
	.gmed-site .gmed-btn.is-primary:hover { transform: none; }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 860px) {
	.gmed-site-head-inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
	.gmed-site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
	.gmed-site-call { order: 2; }
	.gmed-hero { padding: 58px 0 48px; }
	.gmed-section { padding: 54px 0; }
}
