/* =========================================================
   Medistrap — Global Styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
	/* Brand colours */
	--color-navy: #001F3D;
	--color-navy-dark: #00122A;
	--color-teal: #018C98;
	--color-teal-bright: #27C2C5;
	--color-coral: #E24336;
	--color-coral-hover: #CE2516;
	--color-bg: #F7FAFB;
	--color-grey-light: #EEF2F4;
	--color-text: #1A2833;
	--color-white: #FFFFFF;

	/* Typography */
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
	--fs-3xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
	--fs-4xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);

	/* Spacing scale */
	--space-2xs: 0.375rem;
	--space-xs: 0.75rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;

	/* Layout */
	--container-max: 1200px;
	--container-pad: 1.25rem;
	--header-height: 100px;
	--header-height-scrolled: 70px;

	/* Radius / shadow / motion */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-full: 999px;
	--shadow-sm: 0 2px 8px rgba(0, 18, 42, 0.06);
	--shadow-md: 0 8px 24px rgba(0, 18, 42, 0.1);
	--shadow-lg: 0 16px 48px rgba(0, 18, 42, 0.16);
	--transition-base: 0.25s ease;
	--transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
	scroll-behavior: auto;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-teal);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
	color: var(--color-teal-bright);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-navy);
	line-height: 1.2;
	margin: 0 0 var(--space-sm);
	font-weight: 700;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
	margin: 0 0 var(--space-sm);
}

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

button {
	font-family: inherit;
}

:focus-visible {
	outline: 3px solid var(--color-teal-bright);
	outline-offset: 2px;
}

.sr-only {
	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;
	top: -100px;
	left: var(--space-sm);
	z-index: 1000;
	background: var(--color-navy);
	color: var(--color-white);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-sm);
	transition: top var(--transition-base);
}

.skip-link:focus {
	top: var(--space-sm);
}

/* ---------- Layout helpers ---------- */
.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

section {
	scroll-margin-top: var(--header-height-scrolled);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-base);
	padding: 0.85rem 1.75rem;
	border-radius: var(--radius-full);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.btn:hover,
.btn:focus-visible {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--color-coral);
	color: var(--color-white);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--color-coral-hover);
	color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	background: transparent;
	color: var(--color-teal);
	border-color: var(--color-teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--color-teal);
	color: var(--color-white);
}

.btn-sm {
	padding: 0.55rem 1.1rem;
	font-size: var(--fs-sm);
	gap: 0.4rem;
}

.btn-sm svg {
	width: 16px;
	height: 16px;
}

.btn-lg {
	padding: 1rem 2.5rem;
	font-size: var(--fs-lg);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	width: 100%;
	background: var(--color-white);
	transition: box-shadow var(--transition-base), padding var(--transition-base);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	transition: height var(--transition-base);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-md);
}

.site-header.is-scrolled .site-header__inner {
	height: var(--header-height-scrolled);
}

.site-header__logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__logo {
	height: 68px;
	width: auto;
	transition: height var(--transition-base);
}

.site-header.is-scrolled .site-header__logo {
	height: 52px;
}

@media (max-width: 480px) {
	.site-header__logo {
		height: 52px;
	}

	.site-header.is-scrolled .site-header__logo {
		height: 42px;
	}
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.site-nav__link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-base);
	color: var(--color-navy);
	padding: 0.5rem 0.25rem;
	position: relative;
}

.site-nav__link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--color-teal);
	transition: right var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
	color: var(--color-teal);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
	right: 0;
}

.site-nav__link--cta {
	background: var(--color-coral);
	color: var(--color-white);
	padding: 0.6rem 1.4rem;
	border-radius: var(--radius-full);
}

.site-nav__link--cta::after {
	display: none;
}

.site-nav__link--cta:hover,
.site-nav__link--cta:focus-visible {
	background: var(--color-coral-hover);
	color: var(--color-white);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-navy);
	transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

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

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-white);
		box-shadow: var(--shadow-md);
		max-height: 0;
		overflow: hidden;
		transition: max-height var(--transition-base);
	}

	.site-nav--open {
		max-height: 400px;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--space-sm) var(--container-pad) var(--space-md);
	}

	.site-nav__item {
		border-bottom: 1px solid var(--color-grey-light);
	}

	.site-nav__link {
		display: block;
		padding: var(--space-sm) 0.25rem;
	}

	.site-nav__link--cta {
		display: inline-block;
		margin-top: var(--space-xs);
	}
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	position: relative;
	background: var(--color-navy-dark);
	color: var(--color-white);
	margin-top: var(--space-2xl);
}

.site-footer__accent {
	height: 4px;
	background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-teal-bright) 50%, var(--color-coral) 100%);
}

.site-footer a {
	color: var(--color-white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--color-teal-bright);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: var(--space-xl);
	padding: var(--space-2xl) var(--container-pad) var(--space-xl);
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.site-footer__logo-plate {
	display: inline-flex;
	align-items: center;
	background: var(--color-white);
	border-radius: var(--radius-md);
	padding: var(--space-xs) var(--space-sm);
	width: fit-content;
}

.site-footer__logo-plate img {
	height: 56px;
	width: auto;
}

.site-footer__tagline {
	max-width: 320px;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-sm);
	line-height: 1.6;
	margin: 0;
}

.site-footer__social {
	display: flex;
	gap: var(--space-xs);
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-teal-bright);
	transition: background-color var(--transition-base), transform var(--transition-base);
}

.site-footer__social-link svg {
	width: 20px;
	height: 20px;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	background: var(--color-teal);
	color: var(--color-white);
	transform: translateY(-2px);
}

.site-footer__heading {
	font-size: var(--fs-lg);
	color: var(--color-white);
	margin-bottom: var(--space-sm);
}

.site-footer__nav-list li,
.site-footer__contact-list li {
	margin-bottom: 0.6rem;
}

.site-footer__nav-list a {
	color: rgba(255, 255, 255, 0.8);
	display: inline-block;
	transition: color var(--transition-base), transform var(--transition-base);
}

.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible {
	color: var(--color-teal-bright);
	transform: translateX(4px);
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-xs);
	padding: var(--space-md) var(--container-pad);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.65);
}

.site-footer__copy,
.site-footer__credit {
	margin: 0;
}

.site-footer__credit a {
	color: var(--color-teal-bright);
	font-weight: 600;
}

@media (max-width: 900px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Hero (#home)
   ========================================================= */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: var(--color-navy);
	overflow: hidden;
}

.hero__media {
	position: relative;
	min-height: 480px;
	overflow: hidden;
	background: var(--color-navy-dark);
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__panel {
	display: flex;
	align-items: center;
	background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
	color: var(--color-white);
	padding: var(--space-2xl) var(--space-xl);
}

.hero__panel-inner {
	max-width: 560px;
}

.hero__wordmark-row {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	margin-bottom: var(--space-2xs);
}

.hero__wordmark {
	margin: 0;
	line-height: 0;
}

.hero__wordmark-img {
	display: block;
	height: clamp(2.75rem, 2rem + 3vw, 4.25rem);
	width: auto;
	/* Forces the two-tone navy/teal logo artwork to solid white while keeping
	   its exact silhouette (font shape unchanged) — brightness(0) flattens all
	   opaque pixels to black without touching alpha, invert(1) then flips
	   black to white. */
	filter: brightness(0) invert(1);
}

.hero__badge-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	color: var(--color-teal-bright);
}

.hero__badge-icon--sm svg {
	width: 16px;
	height: 16px;
}

.hero__patent {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-teal-bright);
	margin-bottom: var(--space-md);
}

.hero__descriptor {
	font-family: var(--font-heading);
	font-size: var(--fs-xl);
	font-weight: 600;
	color: var(--color-white);
	margin-bottom: var(--space-md);
}

.hero__tagline {
	margin: 0 0 var(--space-md);
	padding-left: var(--space-sm);
	border-left: 3px solid var(--color-teal-bright);
	font-style: italic;
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.92);
}

.hero__tagline p {
	margin: 0;
}

.hero__benefits {
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.5rem;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: var(--space-lg);
}

.hero__benefits li + li::before {
	content: '\2022';
	display: inline-block;
	margin: 0 0.6rem;
	color: var(--color-teal-bright);
}

.hero__cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

@media (max-width: 900px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero__media {
		min-height: 320px;
	}

	.hero__panel {
		padding: var(--space-xl) var(--container-pad);
	}
}

/* =========================================================
   Founder
   ========================================================= */
.founder {
	padding: var(--space-2xl) 0;
	background: var(--color-white);
}

.founder__inner {
	display: grid;
	grid-template-columns: 280px 1fr;
	align-items: center;
	gap: var(--space-xl);
}

.founder__portrait {
	display: flex;
	justify-content: center;
}

.founder__photo {
	width: 240px;
	height: 240px;
	border-radius: var(--radius-lg);
	object-fit: cover;
	box-shadow: var(--shadow-md);
}

.founder__eyebrow {
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
}

.founder__heading {
	margin-bottom: 0.15rem;
}

.founder__role {
	color: var(--color-teal);
	font-weight: 600;
	margin-bottom: var(--space-sm);
}

.founder__bio {
	font-size: var(--fs-lg);
	line-height: 1.7;
	max-width: 640px;
	margin: 0;
}

@media (max-width: 700px) {
	.founder__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.founder__bio {
		margin: 0 auto;
	}
}

/* =========================================================
   Products (#products)
   ========================================================= */
.products {
	padding: var(--space-2xl) 0;
	background: var(--color-grey-light);
}

.products__intro {
	max-width: 880px;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.products__eyebrow {
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
}

.products__heading {
	margin-bottom: var(--space-md);
}

.products__heading-divider {
	color: var(--color-coral);
	margin: 0 0.5rem;
}

.products__heading-sub {
	color: var(--color-teal);
	font-weight: 600;
}

.products__notes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
}

.products__note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--color-white);
	color: var(--color-navy);
	font-weight: 600;
	font-size: var(--fs-sm);
	margin: 0;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(1, 140, 152, 0.18);
}

.products__note svg {
	width: 18px;
	height: 18px;
	color: var(--color-coral);
	flex-shrink: 0;
}

.products__set-header {
	margin: 0 0 var(--space-lg);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.products__set-header img {
	width: 100%;
	height: auto;
	display: block;
}

.products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.product-tile__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow:
		0 0 0 2px rgba(39, 194, 197, 0.5),
		0 0 18px rgba(39, 194, 197, 0.45),
		var(--shadow-sm);
	cursor: pointer;
	transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

.product-tile__card:hover,
.product-tile__card:focus-visible {
	box-shadow:
		0 0 0 2px rgba(39, 194, 197, 0.85),
		0 0 32px rgba(39, 194, 197, 0.7),
		var(--shadow-lg);
	transform: translateY(-8px);
}

.product-tile__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--color-grey-light);
	overflow: hidden;
}

.product-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-tile__img.is-active {
	opacity: 1;
}

.product-tile__card:hover .product-tile__img.is-active,
.product-tile__card:focus-visible .product-tile__img.is-active {
	transform: scale(1.1);
}

.product-tile__badge {
	position: absolute;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: 2;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-navy);
	background: rgba(255, 255, 255, 0.92);
	border-radius: var(--radius-full);
	padding: 0.3rem 0.75rem;
}

.product-tile__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--space-xs);
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	z-index: 2;
}

.product-tile__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transition: background-color var(--transition-base), transform var(--transition-base);
}

.product-tile__dot.is-active {
	background: var(--color-white);
	transform: scale(1.3);
}

.product-tile__zoom {
	position: absolute;
	top: var(--space-xs);
	right: var(--space-xs);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full);
	background: rgba(0, 18, 42, 0.55);
	color: var(--color-white);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity var(--transition-base), transform var(--transition-base);
	z-index: 2;
}

.product-tile__zoom svg {
	width: 18px;
	height: 18px;
}

.product-tile__card:hover .product-tile__zoom,
.product-tile__card:focus-visible .product-tile__zoom {
	opacity: 1;
	transform: scale(1);
}

.product-tile__body {
	padding: var(--space-md);
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.product-tile__title {
	font-size: var(--fs-lg);
	margin: 0;
}

.product-tile__caption {
	font-size: var(--fs-sm);
	color: rgba(26, 40, 51, 0.75);
	margin: 0;
}

@media (max-width: 1024px) {
	.products__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.products__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Product lightbox ---------- */
.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
	opacity: 0;
	transition: opacity var(--transition-base);
}

.product-lightbox[hidden] {
	display: none;
}

.product-lightbox.is-open {
	opacity: 1;
}

.product-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 18, 42, 0.85);
}

.product-lightbox__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: scale(0.96);
	transition: transform var(--transition-base);
}

.product-lightbox.is-open .product-lightbox__dialog {
	transform: scale(1);
}

.product-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-navy-dark);
	min-height: 260px;
}

.product-lightbox__image {
	max-width: 100%;
	max-height: 65vh;
	object-fit: contain;
}

.product-lightbox__close,
.product-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	background: rgba(0, 18, 42, 0.55);
	color: var(--color-white);
	border: none;
	cursor: pointer;
	transition: background-color var(--transition-base), transform var(--transition-base);
	z-index: 2;
}

.product-lightbox__close svg,
.product-lightbox__nav svg {
	width: 18px;
	height: 18px;
}

.product-lightbox__close:hover,
.product-lightbox__close:focus-visible,
.product-lightbox__nav:hover,
.product-lightbox__nav:focus-visible {
	background: var(--color-teal);
	transform: scale(1.06);
}

.product-lightbox__close {
	top: var(--space-sm);
	right: var(--space-sm);
}

.product-lightbox__nav--prev,
.product-lightbox__nav--next {
	top: 50%;
	transform: translateY(-50%);
}

.product-lightbox__nav--prev {
	left: var(--space-sm);
}

.product-lightbox__nav--next {
	right: var(--space-sm);
}

.product-lightbox__nav--prev:hover,
.product-lightbox__nav--prev:focus-visible,
.product-lightbox__nav--next:hover,
.product-lightbox__nav--next:focus-visible {
	transform: translateY(-50%) scale(1.06);
}

.product-lightbox__nav[hidden] {
	display: none;
}

.product-lightbox__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
}

.product-lightbox__title {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-navy);
	margin: 0;
}

.product-lightbox__counter {
	font-size: var(--fs-sm);
	color: rgba(26, 40, 51, 0.6);
	margin: 0;
	white-space: nowrap;
}

body.lightbox-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.product-lightbox {
		padding: var(--space-xs);
	}

	.product-lightbox__dialog {
		max-height: 94vh;
	}

	.product-lightbox__close,
	.product-lightbox__nav {
		width: 36px;
		height: 36px;
	}
}

/* =========================================================
   Endorsements (#endorsements)
   ========================================================= */
.endorsements {
	padding: var(--space-2xl) 0;
	background: var(--color-white);
}

.endorsements__intro {
	max-width: 720px;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.endorsements__eyebrow {
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
}

.endorsements__lead {
	font-size: var(--fs-lg);
	color: rgba(26, 40, 51, 0.75);
	margin: 0;
}

.endorsements__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.testimonial-card {
	position: relative;
	background: var(--color-bg);
	border: 1px solid var(--color-grey-light);
	border-radius: var(--radius-lg);
	padding: var(--space-lg) var(--space-md) var(--space-md);
	display: flex;
	flex-direction: column;
}

.testimonial-card__quote-mark {
	display: inline-flex;
	margin-bottom: var(--space-sm);
	color: var(--color-teal-bright);
}

.testimonial-card__quote-mark svg {
	width: 32px;
	height: 32px;
}

.testimonial-card__quote {
	margin: 0 0 var(--space-md);
	flex: 1;
}

.testimonial-card__quote p {
	margin: 0;
	font-size: var(--fs-lg);
	line-height: 1.7;
	color: var(--color-text);
}

.testimonial-card__footer {
	border-top: 1px solid var(--color-grey-light);
	padding-top: var(--space-sm);
}

.testimonial-card__author {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-navy);
}

.testimonial-card__role {
	margin: 0.15rem 0 0;
	font-size: var(--fs-sm);
	color: var(--color-teal);
}

@media (max-width: 1024px) {
	.endorsements__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.endorsements__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Contact (#contact)
   ========================================================= */
.contact {
	padding: var(--space-2xl) 0;
	background: var(--color-grey-light);
}

.contact__intro {
	max-width: 720px;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.contact__eyebrow {
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
}

.contact__lead {
	font-size: var(--fs-lg);
	color: rgba(26, 40, 51, 0.75);
	margin: 0;
}

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: var(--space-lg);
	align-items: stretch;
}

.contact__card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--space-lg);
}

.contact__person {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-lg);
	color: var(--color-navy);
	margin-bottom: 0.35rem;
}

.contact__note {
	color: rgba(26, 40, 51, 0.65);
	margin-bottom: var(--space-lg);
}

.contact__methods {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.contact__method {
	display: flex;
	gap: var(--space-sm);
	align-items: flex-start;
}

.contact__method-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	background: rgba(1, 140, 152, 0.1);
	color: var(--color-teal);
}

.contact__method-icon svg {
	width: 20px;
	height: 20px;
}

.contact__method-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.contact__method-label {
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(26, 40, 51, 0.55);
}

.contact__method-value {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-navy);
	font-size: var(--fs-lg);
	word-break: break-word;
}

.contact__method-link:hover,
.contact__method-link:focus-visible {
	color: var(--color-teal);
}

.contact__method-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.5rem;
}

.contact__map {
	min-height: 320px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.contact__map-frame {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}

.contact__map-placeholder {
	width: 100%;
	height: 100%;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	text-align: center;
	padding: var(--space-lg);
	background: linear-gradient(160deg, var(--color-teal) 0%, var(--color-navy) 100%);
	color: var(--color-white);
}

.contact__map-placeholder svg {
	width: 40px;
	height: 40px;
}

.contact__map-placeholder-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-lg);
}

.contact__map-placeholder-note {
	margin: 0;
	max-width: 320px;
	font-size: var(--fs-sm);
	opacity: 0.85;
}

@media (max-width: 900px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}

	.contact__map {
		min-height: 260px;
	}

	.contact__map-frame,
	.contact__map-placeholder {
		min-height: 260px;
	}
}

@media (max-width: 480px) {
	.contact__method-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.contact__method-actions .btn {
		width: 100%;
	}
}

/* =========================================================
   Orders (#orders)
   ========================================================= */
.orders {
	padding: var(--space-2xl) 0;
	background: var(--color-white);
}

.orders__intro {
	max-width: 720px;
	margin: 0 auto var(--space-xl);
	text-align: center;
}

.orders__eyebrow {
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-teal);
	margin-bottom: var(--space-2xs);
}

.orders__lead {
	font-size: var(--fs-lg);
	color: rgba(26, 40, 51, 0.75);
	margin: 0;
}

.order-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: 720px;
	margin: 0 auto var(--space-lg);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	font-weight: 600;
}

.order-notice svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.order-notice p {
	margin: 0;
}

.order-notice--success {
	background: rgba(1, 140, 152, 0.1);
	color: var(--color-navy);
	border: 1px solid rgba(1, 140, 152, 0.3);
}

.order-notice--success svg {
	color: var(--color-teal);
}

.order-notice--error {
	background: rgba(226, 67, 54, 0.08);
	color: var(--color-navy);
	border: 1px solid rgba(226, 67, 54, 0.3);
}

.order-notice--error svg {
	color: var(--color-coral);
}

.order-form {
	max-width: 880px;
	margin: 0 auto;
	background: var(--color-bg);
	border: 1px solid var(--color-grey-light);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
}

.order-form__fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 var(--space-xl);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.order-form.is-visible .order-form__fieldset {
	opacity: 1;
	transform: none;
}

.order-form.is-visible .order-form__fieldset:nth-of-type(1) { transition-delay: 0.05s; }
.order-form.is-visible .order-form__fieldset:nth-of-type(2) { transition-delay: 0.18s; }
.order-form.is-visible .order-form__fieldset:nth-of-type(3) { transition-delay: 0.31s; }
.order-form.is-visible .order-form__fieldset:nth-of-type(4) { transition-delay: 0.44s; }

.order-form__fieldset legend {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-lg);
	color: var(--color-navy);
	padding: 0 0 var(--space-md);
}

.order-form__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: var(--space-md);
}

.order-form__grid > .field {
	margin-bottom: 0;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-navy);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.field label svg {
	width: 16px;
	height: 16px;
	color: var(--color-teal);
}

.field__optional {
	font-weight: 400;
	color: rgba(26, 40, 51, 0.5);
}

.field input,
.field select {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	color: var(--color-text);
	background: var(--color-white);
	border: 1.5px solid rgba(0, 31, 61, 0.24);
	border-radius: var(--radius-sm);
	padding: 0.7rem 0.85rem;
	transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.field input:focus,
.field select:focus {
	outline: none;
	border-color: var(--color-teal);
	box-shadow: 0 0 0 4px rgba(1, 140, 152, 0.15);
	transform: translateY(-1px);
}

.field label {
	transition: color var(--transition-base);
}

.field:focus-within label {
	color: var(--color-teal);
}

.field--error input,
.field--error select {
	border-color: var(--color-coral);
}

.field--error input:focus,
.field--error select:focus {
	box-shadow: 0 0 0 3px rgba(226, 67, 54, 0.15);
}

.field__error {
	margin: 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-coral-hover);
}

.field__note {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.3rem 0 0;
	font-size: var(--fs-sm);
	color: rgba(26, 40, 51, 0.65);
}

.field__note svg {
	width: 16px;
	height: 16px;
	color: var(--color-teal);
	flex-shrink: 0;
}

.field--quantity select {
	max-width: 160px;
}

/* Honeypot: hidden from sighted users and kept out of the tab order, but not
   display:none — some bots specifically skip display:none/visibility:hidden
   fields, so this stays "visible" to a naive DOM scan while being invisible
   and unreachable for real visitors. */
.order-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.order-form__suggestions {
	position: relative;
	z-index: 20;
	margin: 0.4rem 0 0;
	padding: 0;
	list-style: none;
	background: var(--color-white);
	border: 1px solid var(--color-grey-light);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	max-height: 220px;
	overflow-y: auto;
}

.order-form__suggestion {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--color-grey-light);
	padding: 0.65rem 0.85rem;
	font-size: var(--fs-sm);
	color: var(--color-text);
	cursor: pointer;
}

.order-form__suggestion:last-child {
	border-bottom: 0;
}

.order-form__suggestion:hover,
.order-form__suggestion:focus-visible {
	background: rgba(1, 140, 152, 0.08);
	color: var(--color-teal);
}

.order-form__submit {
	text-align: center;
	padding-top: var(--space-sm);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	transition-delay: 0.55s;
}

.order-form.is-visible .order-form__submit {
	opacity: 1;
	transform: none;
}

.order-form__submit .btn-lg {
	animation: medistrap-cta-pulse 2.6s ease-in-out infinite;
}

.order-form__submit .btn-lg:hover,
.order-form__submit .btn-lg:focus-visible {
	animation-play-state: paused;
}

@keyframes medistrap-cta-pulse {
	0%, 100% { box-shadow: var(--shadow-sm); }
	50% { box-shadow: 0 0 0 8px rgba(226, 67, 54, 0.12); }
}

.order-form__submit .btn[disabled] {
	opacity: 0.85;
	cursor: not-allowed;
	transform: none;
	animation: none;
	position: relative;
	padding-left: 3.25rem;
}

.order-form__submit .btn[disabled]::before {
	content: '';
	position: absolute;
	left: 1.25rem;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: medistrap-spin 0.7s linear infinite;
}

@keyframes medistrap-spin {
	to { transform: rotate(360deg); }
}

.order-form__privacy {
	margin: var(--space-sm) 0 0;
	font-size: var(--fs-sm);
	color: rgba(26, 40, 51, 0.55);
}

.order-form__recaptcha-note {
	margin: 0 0 var(--space-sm);
}

.order-form__recaptcha-note a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 700px) {
	.order-form {
		padding: var(--space-lg) var(--space-md);
	}

	.order-form__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Scroll-reveal animation utility
   ========================================================= */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity var(--transition-slow), transform var(--transition-slow);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn:hover,
	.btn:focus-visible {
		transform: none;
	}

	.product-tile__img {
		transition: none;
	}

	.product-tile__card:hover,
	.product-tile__card:focus-visible {
		transform: none;
	}

	.product-lightbox,
	.product-lightbox__dialog {
		transition: none;
	}

	.order-form__fieldset,
	.order-form__submit {
		opacity: 1;
		transform: none;
		transition: none;
		transition-delay: 0s;
	}

	.field input:focus,
	.field select:focus {
		transform: none;
	}

	.order-form__submit .btn-lg {
		animation: none;
	}

	.order-form__submit .btn[disabled]::before {
		animation: none;
	}
}

/* =========================================================
   Responsive breakpoints (mobile-first base already above)
   ========================================================= */
@media (min-width: 901px) and (max-width: 1100px) {
	.site-nav__list {
		gap: var(--space-sm);
	}
}
