:root {
	--jc-font-sans: "Noto Sans", system-ui, -apple-system, sans-serif;
	--jc-font-heading: "Figtree", var(--jc-font-sans);
	--jc-color-primary: #0369a1;
	--jc-color-primary-dark: #0c4a6e;
	--jc-color-accent: #0284c7;
	--jc-color-accent-hover: #0369a1;
	--jc-color-bg: #f8fafc;
	--jc-color-surface: #ffffff;
	--jc-color-clinical: #f0f9ff;
	--jc-color-text: #0f172a;
	--jc-color-muted: #475569;
	--jc-color-border: #e2e8f0;
	--jc-color-success: #047857;
	--jc-color-error: #b91c1c;
	--jc-radius: 8px;
	--jc-radius-lg: 12px;
	--jc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.04);
	--jc-container: 1140px;
	--jc-header-h: 64px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--jc-font-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--jc-color-text);
	background: var(--jc-color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--jc-color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--jc-color-primary-dark);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jc-container {
	width: min(100% - 32px, var(--jc-container));
	margin-inline: auto;
}

.jc-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.jc-main {
	flex: 1;
}

/* Header */
.jc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--jc-color-border);
}

.jc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--jc-header-h);
	gap: 20px;
}

.jc-brand img {
	height: 40px;
	width: auto;
}

.jc-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.jc-nav__link {
	padding: 8px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--jc-color-muted);
	border-radius: 6px;
	transition: color 0.15s, background 0.15s;
}

.jc-nav__link:hover,
.jc-nav__link.is-active {
	color: var(--jc-color-primary);
	background: var(--jc-color-clinical);
}

.jc-nav__cta {
	margin-left: 6px;
}

.jc-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--jc-color-border);
	border-radius: var(--jc-radius);
	background: var(--jc-color-surface);
	cursor: pointer;
}

.jc-nav-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: var(--jc-color-text);
}

/* Buttons */
.jc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: var(--jc-radius);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.jc-btn--primary {
	background: var(--jc-color-primary);
	color: #fff;
}

.jc-btn--primary:hover {
	background: var(--jc-color-primary-dark);
	color: #fff;
}

.jc-btn--accent {
	background: var(--jc-color-accent);
	color: #fff;
}

.jc-btn--accent:hover,
.jc-btn--accent.is-active {
	background: var(--jc-color-primary-dark);
	color: #fff;
}

.jc-btn--ghost {
	background: var(--jc-color-surface);
	color: var(--jc-color-primary);
	border-color: var(--jc-color-border);
}

.jc-btn--ghost:hover {
	border-color: var(--jc-color-primary);
	background: var(--jc-color-clinical);
	color: var(--jc-color-primary);
}

.jc-btn--sm {
	padding: 8px 14px;
	font-size: 0.8125rem;
}

.jc-btn--block {
	width: 100%;
}

.jc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Sections */
.jc-section {
	padding: 52px 0;
}

.jc-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.jc-section__head h2,
.jc-page-title {
	margin: 0 0 6px;
	font-family: var(--jc-font-heading);
	font-size: clamp(1.65rem, 3.5vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--jc-color-text);
}

.jc-section__head p,
.jc-page-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--jc-color-muted);
	max-width: 520px;
	line-height: 1.55;
}

.jc-link-arrow {
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Product cards */
.jc-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.jc-product-card {
	display: flex;
	flex-direction: column;
	background: var(--jc-color-surface);
	border: 1px solid var(--jc-color-border);
	border-radius: var(--jc-radius-lg);
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
	cursor: pointer;
}

.jc-product-card:hover {
	border-color: #bae6fd;
	box-shadow: var(--jc-shadow);
	color: inherit;
}

.jc-product-card__media {
	aspect-ratio: 4 / 3;
	background: var(--jc-color-clinical);
	overflow: hidden;
}

.jc-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jc-product-card__placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #f8fafc 100%);
}

.jc-product-card__body {
	padding: 14px 16px 16px;
}

.jc-product-card__cat {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--jc-color-primary);
}

.jc-product-card__body h3 {
	margin: 0;
	font-family: var(--jc-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Inquiry form — compact clinical */
.jc-inquiry-panel {
	background: var(--jc-color-surface);
	border: 1px solid var(--jc-color-border);
	border-left: 3px solid var(--jc-color-primary);
	border-radius: var(--jc-radius-lg);
	box-shadow: var(--jc-shadow);
	padding: 18px 20px;
}

.jc-inquiry-panel__title {
	margin: 0 0 4px;
	font-family: var(--jc-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--jc-color-text);
}

.jc-inquiry-panel__desc {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	color: var(--jc-color-muted);
	line-height: 1.45;
}

.jc-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.jc-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jc-field--full {
	margin-top: 10px;
}

.jc-field__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--jc-color-muted);
	letter-spacing: 0.01em;
}

.jc-field__label em {
	color: var(--jc-color-primary);
	font-style: normal;
}

.jc-field input,
.jc-field textarea {
	width: 100%;
	padding: 8px 11px;
	font: inherit;
	font-size: 0.875rem;
	color: var(--jc-color-text);
	background: var(--jc-color-bg);
	border: 1px solid var(--jc-color-border);
	border-radius: 6px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.jc-field textarea {
	resize: vertical;
	min-height: 72px;
}

.jc-field input:focus,
.jc-field textarea:focus {
	outline: none;
	border-color: var(--jc-color-primary);
	box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
	background: var(--jc-color-surface);
}

.jc-field input[readonly] {
	background: #f1f5f9;
	color: var(--jc-color-muted);
}

.jc-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.jc-form-actions {
	margin-top: 12px;
}

.jc-form-note {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-size: 0.8125rem;
}

.jc-form-note.is-success {
	color: var(--jc-color-success);
}

.jc-form-note.is-error {
	color: var(--jc-color-error);
}

.jc-form-fallback {
	margin: 8px 0 0;
	font-size: 0.75rem;
	color: var(--jc-color-muted);
	line-height: 1.4;
}

/* Entry content */
.entry-content p {
	margin: 0 0 0.85em;
}

.entry-content .joycare-images {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.entry-content .joycare-images img {
	width: calc(33.333% - 7px);
	min-width: 140px;
	border-radius: var(--jc-radius);
	border: 1px solid var(--jc-color-border);
	background: #fff;
}

/* Footer */
.jc-footer {
	margin-top: 40px;
	background: var(--jc-color-primary-dark);
	color: rgba(255, 255, 255, 0.85);
}

.jc-footer a {
	color: #fff;
}

.jc-footer a:hover {
	color: #bae6fd;
}

.jc-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding: 44px 0 32px;
}

.jc-footer__brand p {
	margin: 12px 0 0;
	max-width: 300px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

.jc-footer h3 {
	margin: 0 0 12px;
	font-family: var(--jc-font-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.jc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jc-footer li + li {
	margin-top: 8px;
}

.jc-footer li a {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.78);
}

.jc-footer__contact li {
	display: grid;
	gap: 2px;
	font-size: 0.875rem;
}

.jc-footer__contact strong {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.55);
}

.jc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 14px 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

.jc-footer__bottom p {
	margin: 0;
}

/* Page head */
.jc-page-head {
	padding: 36px 0 24px;
	background: linear-gradient(180deg, var(--jc-color-clinical) 0%, var(--jc-color-bg) 100%);
	border-bottom: 1px solid var(--jc-color-border);
}

.jc-page-head--compact {
	padding: 32px 0 20px;
}

/* Pagination */
.jc-pagination {
	margin-top: 28px;
}

.jc-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
}

.jc-pagination a,
.jc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--jc-color-border);
	background: var(--jc-color-surface);
	font-size: 0.875rem;
}

.jc-pagination .current {
	background: var(--jc-color-primary);
	border-color: var(--jc-color-primary);
	color: #fff;
}

.jc-empty {
	padding: 40px 24px;
	text-align: center;
	background: var(--jc-color-surface);
	border-radius: var(--jc-radius-lg);
	border: 1px dashed var(--jc-color-border);
	font-size: 0.9375rem;
	color: var(--jc-color-muted);
}

@media (max-width: 900px) {
	.jc-nav-toggle {
		display: flex;
	}

	.jc-nav {
		position: fixed;
		inset: var(--jc-header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		background: var(--jc-color-surface);
		border-bottom: 1px solid var(--jc-color-border);
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.2s, opacity 0.2s;
	}

	.jc-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.jc-nav__cta {
		margin: 6px 0 0;
	}

	.jc-form-grid {
		grid-template-columns: 1fr;
	}

	.jc-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.entry-content .joycare-images img {
		width: calc(50% - 5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
