/* ==========================================================================
   Medline Systems — design system
   Brand: green #16D878, violet #A878F0
   ========================================================================== */

:root {
	--ml-green: #16d878;
	--ml-green-600: #0fb763;
	--ml-violet: #a878f0;
	--ml-violet-600: #8b5cf6;

	--ml-ink: #0d1420;
	--ml-ink-2: #1c2635;
	--ml-body: #4a5568;
	--ml-muted: #7a8699;
	--ml-line: #e6eaf0;
	--ml-bg: #ffffff;
	--ml-bg-soft: #f6f8fb;

	--ml-radius: 16px;
	--ml-radius-lg: 24px;
	--ml-shadow: 0 1px 2px rgba(13, 20, 32, .04), 0 8px 24px rgba(13, 20, 32, .06);
	--ml-shadow-lg: 0 2px 4px rgba(13, 20, 32, .04), 0 18px 48px rgba(13, 20, 32, .10);

	--ml-max: 1180px;
	--ml-gradient: linear-gradient(120deg, var(--ml-green) 0%, var(--ml-violet) 100%);
}

/* --------------------------------------------------------------- base ---- */

body {
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--ml-body);
	background: var(--ml-bg);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
	color: var(--ml-ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }

a { color: var(--ml-green-600); text-decoration: none; }
a:hover { color: var(--ml-violet-600); }

/* ------------------------------------------------------------ layout ---- */

.ml-section {
	padding: clamp(56px, 8vw, 104px) 24px;
}

.ml-section--soft { background: var(--ml-bg-soft); }

.ml-section--dark {
	background: var(--ml-ink);
	color: rgba(255, 255, 255, .78);
}

.ml-section--dark h1,
.ml-section--dark h2,
.ml-section--dark h3 { color: #fff; }

.ml-wrap {
	max-width: var(--ml-max);
	margin-inline: auto;
}

.ml-narrow { max-width: 780px; }

.ml-center { text-align: center; }
.ml-center .ml-lead { margin-inline: auto; }

/* ------------------------------------------------------------ heading --- */

.ml-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ml-green-600);
	margin-bottom: 14px;
}

.ml-section--dark .ml-eyebrow { color: var(--ml-green); }

.ml-lead {
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	color: var(--ml-body);
	max-width: 62ch;
	margin-top: 18px;
}

.ml-section--dark .ml-lead { color: rgba(255, 255, 255, .74); }

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

.ml-hero {
	position: relative;
	background: var(--ml-ink);
	color: #fff;
	padding: clamp(72px, 11vw, 140px) 24px clamp(64px, 9vw, 116px);
	overflow: hidden;
}

.ml-hero::before,
.ml-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .30;
	pointer-events: none;
}

.ml-hero::before {
	width: 520px; height: 520px;
	background: var(--ml-green);
	top: -190px; right: -120px;
}

.ml-hero::after {
	width: 460px; height: 460px;
	background: var(--ml-violet);
	bottom: -220px; left: -140px;
}

.ml-hero .ml-wrap { position: relative; z-index: 1; }

.ml-hero h1 { color: #fff; max-width: 20ch; }

.ml-hero .ml-lead {
	color: rgba(255, 255, 255, .76);
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.ml-hero--center { text-align: center; }
.ml-hero--center h1 { margin-inline: auto; }
.ml-hero--center .ml-lead { margin-inline: auto; }

.ml-gradient-text {
	background: var(--ml-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

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

.ml-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.ml-hero--center .ml-actions,
.ml-center .ml-actions { justify-content: center; }

.ml-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .97rem;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	border: 1.5px solid transparent;
}

.ml-btn--primary {
	background: var(--ml-gradient);
	color: #08111c;
	box-shadow: 0 8px 24px rgba(22, 216, 120, .28);
}

.ml-btn--primary:hover {
	color: #08111c;
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(22, 216, 120, .36);
}

.ml-btn--ghost {
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

.ml-btn--ghost:hover {
	border-color: var(--ml-green);
	color: var(--ml-green);
	background: rgba(22, 216, 120, .08);
}

.ml-btn--dark {
	background: var(--ml-ink);
	color: #fff;
}

.ml-btn--dark:hover { background: var(--ml-ink-2); color: #fff; transform: translateY(-2px); }

/* -------------------------------------------------------------- grids ---- */

.ml-grid {
	display: grid;
	gap: 24px;
	margin-top: 48px;
}

.ml-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ml-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ml-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

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

.ml-card {
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius-lg);
	padding: 34px 30px;
	box-shadow: var(--ml-shadow);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ml-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--ml-shadow-lg);
	border-color: rgba(22, 216, 120, .40);
}

.ml-card h3 { margin: 0 0 12px; }
.ml-card p { margin: 0; color: var(--ml-body); font-size: .98rem; }

.ml-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ml-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 20px;
}

.ml-section--dark .ml-card {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .10);
	box-shadow: none;
}

.ml-section--dark .ml-card p { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------- list ---- */

.ml-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.ml-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 11px;
	font-size: .97rem;
}

.ml-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(22, 216, 120, .14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fb763' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 12px;
	background-repeat: no-repeat;
	background-position: center;
	transform: translateY(-50%);
}

.ml-section--dark .ml-list li::before { background-color: rgba(22, 216, 120, .18); }

/* --------------------------------------------------------------- misc ---- */

.ml-media img {
	width: 100%;
	height: auto;
	border-radius: var(--ml-radius-lg);
	box-shadow: var(--ml-shadow-lg);
	display: block;
}

.ml-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.ml-value {
	text-align: center;
	padding: 30px 20px;
}

.ml-value__num {
	font-size: 2rem;
	font-weight: 800;
	background: var(--ml-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: block;
	margin-bottom: 6px;
}

.ml-value h3 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }

.ml-pill {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--ml-bg-soft);
	border: 1px solid var(--ml-line);
	font-size: .9rem;
	font-weight: 600;
	color: var(--ml-ink);
	margin: 0 8px 10px 0;
}

.ml-section--dark .ml-pill {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .12);
	color: #fff;
}

/* --------------------------------------------------------- contact ------ */

.ml-contact-item { margin-bottom: 26px; }

.ml-contact-item h4 {
	font-size: .78rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ml-muted);
	margin: 0 0 6px;
	font-weight: 700;
}

.ml-contact-item p { margin: 0; color: var(--ml-ink); font-weight: 600; }
.ml-contact-item a { color: var(--ml-ink); }
.ml-contact-item a:hover { color: var(--ml-green-600); }

/* ------------------------------------------------------------- forms ---- */

.wpforms-container { margin: 0 !important; }

.wpforms-container .wpforms-field { padding: 0 0 18px !important; }

.wpforms-container input[type=text],
.wpforms-container input[type=email],
.wpforms-container input[type=tel],
.wpforms-container textarea {
	width: 100% !important;
	max-width: 100% !important;
	border: 1px solid var(--ml-line) !important;
	border-radius: 12px !important;
	padding: 13px 16px !important;
	font-size: .97rem !important;
	font-family: inherit !important;
	background: #fff !important;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus {
	border-color: var(--ml-green) !important;
	box-shadow: 0 0 0 3px rgba(22, 216, 120, .16) !important;
	outline: none !important;
}

.wpforms-container .wpforms-field-label {
	font-size: .88rem !important;
	font-weight: 600 !important;
	color: var(--ml-ink) !important;
	margin-bottom: 7px !important;
}

.wpforms-container button[type=submit] {
	background: var(--ml-gradient) !important;
	color: #08111c !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 14px 34px !important;
	font-weight: 700 !important;
	font-size: .97rem !important;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
	box-shadow: 0 8px 24px rgba(22, 216, 120, .26);
}

.wpforms-container button[type=submit]:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(22, 216, 120, .34);
}

/* ------------------------------------------------------------ header ---- */

.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar {
	background: var(--ml-ink) !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

.main-header-menu > .menu-item > .menu-link,
.ast-header-break-point .main-header-menu .menu-link {
	color: rgba(255, 255, 255, .82) !important;
	font-weight: 600;
	font-size: .95rem;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
	color: var(--ml-green) !important;
}

.ast-builder-menu-mobile .main-navigation .menu-item .menu-link { color: rgba(255,255,255,.85) !important; }

.site-header .ast-site-identity img { max-height: 46px; width: auto; }

/* ------------------------------------------------------------ footer ---- */

.site-footer,
.ast-footer-overlay {
	background: var(--ml-ink) !important;
	color: rgba(255, 255, 255, .62);
}

.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--ml-green); }

/* ------------------------------------------------------- responsive ----- */

@media (max-width: 782px) {
	body { font-size: 16px; }
	.ml-card { padding: 28px 24px; }
	.ml-actions .ml-btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------- a11y --------- */

@media (prefers-reduced-motion: reduce) {
	.ml-card, .ml-btn { transition: none; }
	.ml-card:hover, .ml-btn:hover { transform: none; }
}

:where(a, button, input, textarea):focus-visible {
	outline: 3px solid rgba(22, 216, 120, .55);
	outline-offset: 2px;
}

/* --------------------------------------- block-editor interop ----------- */

/* Neutralise the core layout margins inside our grids. */
.ml-grid > *,
.ml-split > * { margin-block: 0 !important; }

/* Our grids win over core's flex columns if columns blocks are ever used. */
.wp-block-columns.ml-grid { display: grid !important; }
.wp-block-columns.ml-grid > .wp-block-column { flex-basis: auto !important; }

/* Astra's page-builder layout already removes the container; keep sections flush. */
.ml-redesign .site-content .ast-container { max-width: none; padding: 0; }
.ml-redesign .entry-content > .ml-section,
.ml-redesign .entry-content > .ml-hero { margin-block: 0; }

/* Constrained group children shouldn't inherit a narrow measure. */
.ml-wrap > * { max-width: none; }

/* Override the legacy customizer header image, redesigned pages only. */
.ml-redesign #ast-desktop-header {
	background-image: none !important;
	background-color: var(--ml-ink) !important;
	height: auto !important;
	opacity: 1 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

/* --------------------------------------------------------- clients ------ */

.ml-clients {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.ml-client {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	text-align: center;
	padding: 34px 26px;
	background: #fff;
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-radius-lg);
	box-shadow: var(--ml-shadow);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ml-client:hover {
	transform: translateY(-5px);
	box-shadow: var(--ml-shadow-lg);
	border-color: rgba(22, 216, 120, .40);
}

/* Uniform optical size across very different logo shapes. */
.ml-client__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 76px;
	width: 100%;
}

.ml-client__mark img {
	max-height: 76px;
	max-width: 170px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ml-client__name {
	font-weight: 700;
	font-size: .98rem;
	color: var(--ml-ink);
	line-height: 1.35;
	margin: 0;
}

.ml-client__meta {
	font-size: .84rem;
	color: var(--ml-muted);
	margin: 0;
}

a.ml-client,
a.ml-client:hover { text-decoration: none; }
