/**
 * Design tokens taken directly from the client's source design file
 * (Basamed Limited.dc.html) — exact colors/fonts, not eyeballed.
 */
:root {
	--basamed-primary: #404094;
	--basamed-primary-dark: #2e2e6e;
	--basamed-accent: #c22127;
	--basamed-accent-dark: #a11a1f;
	--basamed-bg-cream: oklch(97.5% 0.012 75);
	--basamed-card-white: #ffffff;
	--basamed-text: oklch(24% 0.02 265);
	--basamed-text-light: oklch(38% 0.02 265);
	--basamed-border: oklch(90% 0.012 75);
	--basamed-lavender: oklch(94% 0.015 265);
	--basamed-icon-bg-red: oklch(93% 0.03 25);
	--basamed-icon-bg-blue: oklch(93% 0.03 265);
	--basamed-radius-btn: 9px;
	--basamed-radius-card: 16px;
	--font-heading: 'Sora', sans-serif;
	--font-body: 'Public Sans', sans-serif;
}

body {
	background-color: var(--basamed-bg-cream) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Crect x='16' y='20' width='36' height='15' rx='7.5' fill='%23404094' fill-opacity='0.05' transform='rotate(-25 34 27)'/%3E%3Ccircle cx='128' cy='34' r='9' fill='%23c22127' fill-opacity='0.05'/%3E%3Cg fill='%23404094' fill-opacity='0.045'%3E%3Crect x='96' y='96' width='18' height='4'/%3E%3Crect x='103' y='89' width='4' height='18'/%3E%3C/g%3E%3Crect x='30' y='118' width='32' height='14' rx='7' fill='%23c22127' fill-opacity='0.045' transform='rotate(18 46 125)'/%3E%3Ccircle cx='148' cy='140' r='6' fill='%23404094' fill-opacity='0.05'/%3E%3Cg fill='%23c22127' fill-opacity='0.04'%3E%3Crect x='8' y='140' width='16' height='4'/%3E%3Crect x='14' y='134' width='4' height='16'/%3E%3C/g%3E%3C/svg%3E") !important;
	background-size: 170px 170px !important;
	color: var(--basamed-text);
	font-family: var(--font-body) !important;
	line-height: 1.55;
}
button, input, select, textarea {
	font-family: var(--font-body);
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* Responsive rules copied verbatim from the client's source design
   (Basamed Limited.dc.html) so breakpoints match exactly. */
@media (max-width: 860px) {
	.nav-links { display: none !important; }
	.mobile-menu-btn { display: flex !important; }
	.hero-grid { grid-template-columns: 1fr !important; padding-top: 48px !important; padding-bottom: 48px !important; }
	.hero-grid h1 { font-size: 38px !important; }
	/* The source design's own mobile rules don't account for the new
	   viewport-fit hero wrapper — without this override, the hero stacking
	   to 1 column (much taller) would get clipped by height:100vh +
	   overflow:hidden on phones. Fall back to natural scrolling height. */
	.basamed-hero-viewport { height: auto !important; overflow: visible !important; }
	.contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
	.footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
	.product-detail-grid { grid-template-columns: 1fr !important; }
	.section-pad { padding-top: 56px !important; padding-bottom: 56px !important; }
	header > div:first-child { padding-left: 20px !important; padding-right: 20px !important; }
	.section-pad, #products > div, #contact { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 700px) {
	.stats-grid { grid-template-columns: repeat(2,1fr) !important; }
	.values-grid { grid-template-columns: repeat(3,1fr) !important; }
	.products-grid-3 { grid-template-columns: 1fr !important; }
	.services-grid { grid-template-columns: repeat(2,1fr) !important; }
	.partners-row { gap: 32px !important; }
}
@media (max-width: 480px) {
	.services-grid { grid-template-columns: 1fr !important; }
	.values-grid { grid-template-columns: repeat(2,1fr) !important; }
	.hero-grid h1 { font-size: 30px !important; }
}
@media (max-width: 520px) {
	.stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 20px !important; }
	.partners-row { gap: 24px !important; }
	.partners-row img { height: 28px !important; }
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-anim { animation: floaty 6s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.lift-card { transition: transform .25s ease, box-shadow .25s ease; }
.lift-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(20,20,60,0.10); }

.partner-logo { filter: grayscale(1) opacity(0.55); transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.partner-logo:hover { filter: grayscale(0) opacity(1); transform: translateY(-3px); }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: #404094; transition: width .25s ease; }
.nav-link:hover::after { width: 100%; }

.icon-pop { transition: transform .3s ease; }
.icon-pop:hover { transform: scale(1.1) rotate(-4deg); }

/* Hero rotating highlight — configured in Site Settings, cycled by
   assets/js/hero-rotator.js. Flip is a quick opacity + vertical-slide
   swap rather than a literal 3D flip, so it reads cleanly at any phrase
   length without needing a fixed-width container. */
.basamed-hero-rotator-text {
	display: inline-block;
	transition: opacity .3s ease, transform .3s ease;
}
.basamed-hero-rotator-text.is-flipping-out {
	opacity: 0;
	transform: translateY(-10px);
}
.basamed-hero-rotator-text.is-flipping-in {
	animation: basamed-flip-in .35s ease;
}
@keyframes basamed-flip-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.basamed-social-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: oklch(28% 0.02 265);
	display: flex;
	align-items: center;
	justify-content: center;
	color: oklch(80% 0.02 265);
	transition: background .2s ease, color .2s ease;
}
.basamed-social-icon:hover {
	background: var(--basamed-primary);
	color: #fff;
}

.basamed-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.basamed-mobile-menu-list a {
	display: block;
	font-weight: 600;
	font-size: 15px;
	color: var(--basamed-text);
	text-decoration: none;
	padding: 10px 0;
}

h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--font-heading) !important;
	font-weight: 700;
}

/* Header — sticky, translucent blur, matches source design exactly */
.basamed-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(253, 252, 250, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--basamed-border);
	box-shadow: none;
}
.basamed-logo img,
.basamed-logo .custom-logo,
.basamed-header-inner img {
	height: 80px !important;
	width: auto !important;
	max-height: 80px;
	/* The logo PNG has ~4% transparent padding baked in on its left edge,
	   so at this render height its visible mark sits ~12px right of the
	   container edge — pull it back so it aligns flush with the heading
	   text in the sections below. Re-check this offset if the logo image
	   file or its rendered height changes. */
	margin-left: -12px;
}
.basamed-nav-menu,
.basamed-footer-menu {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.basamed-footer-menu {
	flex-direction: column;
	gap: 0.6rem;
}
.basamed-nav-menu a,
.basamed-footer-menu a {
	text-decoration: none;
	color: var(--basamed-text);
	font-weight: 600;
	font-size: 15px;
	position: relative;
}
.basamed-nav-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--basamed-primary);
	transition: width .25s ease;
}
.basamed-nav-menu a:hover::after {
	width: 100%;
}
.basamed-footer-menu a {
	color: oklch(65% 0.02 265) !important;
	font-weight: 400;
	font-size: 14.5px;
}
.basamed-nav-menu a:hover,
.basamed-footer-menu a:hover {
	color: var(--basamed-primary) !important;
}
.elementor-widget-container nav ul {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}
.elementor-widget-container nav ul a {
	text-decoration: none;
	color: var(--basamed-text);
	font-weight: 600;
}

/* Buttons — 9px radius (not pill), matches source design */
.basamed-btn,
.elementor-button.basamed-btn-primary {
	background-color: var(--basamed-primary);
	color: #fff;
	border-radius: var(--basamed-radius-btn);
	padding: 0.9em 1.75em;
	font-weight: 600;
	font-family: var(--font-heading);
	border: none;
}
.basamed-btn:hover {
	background-color: var(--basamed-primary-dark);
	color: #fff;
}
.basamed-btn-accent {
	background-color: var(--basamed-accent) !important;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 0.9em 1.5em;
	font-weight: 600;
	font-family: var(--font-heading);
	font-size: 15px;
	width: 100%;
	cursor: pointer;
}
.basamed-btn-accent:hover {
	background-color: var(--basamed-accent-dark);
}
.basamed-contact-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333340;
	margin-bottom: 6px;
}
.basamed-contact-form input,
.basamed-contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid var(--basamed-border);
	font-size: 14.5px;
	font-family: var(--font-body);
}
.basamed-contact-form input.basamed-field-error,
.basamed-contact-form textarea.basamed-field-error {
	border-color: var(--basamed-accent);
	background: #fdf3f3;
}
.basamed-form-success {
	background: #e6f6ec;
	color: #1c6b3c;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14.5px;
	margin: 0;
}
.basamed-form-error {
	background: #fdf3f3;
	color: var(--basamed-accent-dark);
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin: 0 0 16px;
}
.grecaptcha-badge { visibility: hidden; }
.basamed-contact-form p {
	margin: 0 0 16px;
}

.basamed-btn-outline,
.elementor-button.basamed-btn-outline {
	background: #fff;
	color: var(--basamed-text);
	border: 1px solid var(--basamed-border);
	border-radius: var(--basamed-radius-btn);
	padding: 0.9em 1.75em;
	font-weight: 600;
	font-family: var(--font-heading);
}

.basamed-card {
	background: var(--basamed-card-white);
	border: 1px solid var(--basamed-border);
	border-radius: var(--basamed-radius-card);
	padding: 2rem;
}

.basamed-eyebrow {
	color: var(--basamed-accent);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-family: var(--font-heading);
}

.basamed-counters-strip {
	background-color: var(--basamed-primary);
	background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
	color: #fff;
	padding: 3rem 0;
}

/* Floating WhatsApp CTA */
.basamed-whatsapp-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	text-decoration: none;
}
.basamed-whatsapp-fab:hover {
	background-color: #1ebe5b;
	color: #fff;
}

/* Product photography is tall/portrait — cap display height */
.elementor-widget-image img {
	max-height: 420px;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	display: block;
	object-fit: contain;
}

/* Product archive/single templates */
.basamed-product-card {
	background: var(--basamed-card-white);
	border: 1px solid var(--basamed-border);
	border-radius: var(--basamed-radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.basamed-product-card__body {
	padding: 1.5rem;
}
.basamed-product-meta {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}
.basamed-product-meta th {
	text-align: left;
	color: #6b6b78;
	font-weight: 500;
	padding: 0.4rem 0;
	width: 40%;
}
.basamed-product-meta td {
	padding: 0.4rem 0;
}
.basamed-product-benefits {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}
.basamed-product-benefits li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.5rem;
}
.basamed-product-benefits li::before {
	content: "•";
	color: var(--basamed-accent);
	position: absolute;
	left: 0;
}
.basamed-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}
