/*
 * VPS9 – sitewide design standardisation layer (Dec 2026 audit)
 * Loaded last (child theme). Remove this file's enqueue in functions.php to roll back.
 *
 * Goal: one consistent type scale and one button style across all landing,
 * policy and company pages, without touching page content in the editor.
 */

:root {
	--v9-navy: #080f2c;
	--v9-blue: #2563eb;
	--v9-blue-hover: #1d4ed8;
	--v9-text: #49495f;
	--v9-radius: 8px;

	/* Type scale (fluid, 390px → 1440px) */
	--v9-h1: clamp(30px, 1.55vw + 24px, 46px);
	--v9-h2: clamp(25px, 0.95vw + 21px, 34px);
	--v9-h3: clamp(19px, 0.4vw + 17px, 22px);
}

/* ---------- Headings inside page content ---------- */
main h1,
main .h1 {
	font-size: var(--v9-h1) !important;
	line-height: 1.18 !important;
	letter-spacing: -0.01em;
}

main h2,
main h2.fs-3,
main h2.h3 {
	font-size: var(--v9-h2) !important;
	line-height: 1.25 !important;
}

/* Only the oversized section-style H3s (fs-48 renders H3 larger than H2).
   Small card titles keep their own size. */
main h3.fs-48,
main h3.fs-1,
main h3.fs-2,
main h3.fs-3 {
	font-size: var(--v9-h3) !important;
	line-height: 1.35 !important;
}

/* ---------- Buttons: one shape, one size ---------- */
main .btn,
.footer-cta .btn {
	border-radius: var(--v9-radius) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	min-height: 44px;              /* comfortable tap target on mobile */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-left: 22px;
	padding-right: 22px;
}

main .btn-primary {
	background-color: var(--v9-blue) !important;
	border-color: var(--v9-blue) !important;
	color: #fff !important;
}
main .btn-primary:hover,
main .btn-primary:focus {
	background-color: var(--v9-blue-hover) !important;
	border-color: var(--v9-blue-hover) !important;
}

/* ---------- Body copy ---------- */
main p {
	line-height: 1.7;
}

/* ---------- Datacenters page: cards overflowed the screen on mobile ---------- */
.dc-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)) !important;
}
@media (max-width: 575.98px) {
	.dc-body {
		padding-left: 0 !important;
	}
}

/* ---------- Mobile: keep the fixed "Connect on Telegram" bar from covering the footer ---------- */
@media (max-width: 767.98px) {
	body {
		padding-bottom: 60px;
	}
}

/* ---------- Never let a section create sideways scrolling on phones ---------- */
@media (max-width: 991.98px) {
	html,
	body {
		overflow-x: clip;
	}
}
