/**
 * Theme B base styles — typography defaults, buttons, links.
 * Tokens from Figma CCS-C-TX Responsive Theme B.
 */

/* -------------------------------------------------------------------------
   Typography defaults (reinforce theme.json presets)
   ------------------------------------------------------------------------- */

body {
	color: var(--wp--preset--color--body, #282828);
	font-family: var(--wp--preset--font-family--body, "Montserrat", sans-serif);
	font-size: var(--wp--preset--font-size--body, 18px);
	font-weight: 400;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
	color: var(--wp--preset--color--body, #282828);
	font-family: var(--wp--preset--font-family--body, "Montserrat", sans-serif);
}

h1,
h1.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-1, 100px);
	font-weight: 800;
	line-height: 0.9;
	margin-bottom: 24px;
	text-transform: uppercase;
}

h2,
h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-2, 60px);
	font-weight: 600;
	line-height: 1;
	margin-bottom: 16px;
}

h3,
h3.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-3, 48px);
	font-weight: 500;
	line-height: 1.04;
	margin-bottom: 14px;
	text-transform: uppercase;
}

h4,
h4.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-4, 40px);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 12px;
}

h5,
h5.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-5, 35px);
	font-weight: 600;
	line-height: 1.29;
	margin-bottom: 10px;
	text-transform: uppercase;
}

h6,
h6.wp-block-heading {
	font-size: var(--wp--preset--font-size--h-6, 26px);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 8px;
}

p {
	margin-bottom: 18px;
}

strong,
b {
	font-weight: 700;
}

.has-intro-font-size {
	font-weight: 600;
	line-height: 1.15;
	margin-bottom: 16px;
}

.has-testimonial-font-size {
	font-weight: 500;
	line-height: 1.54;
	margin-bottom: 18px;
}

/* -------------------------------------------------------------------------
   Links — color + underline only; size/family/weight inherit from parent.
   ------------------------------------------------------------------------- */

a {
	color: var(--wp--preset--color--secondary, #6ca9d8);
	text-decoration: underline;
	text-decoration-thickness: 6%;
	text-underline-offset: 0.12em;
	transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
	color: var(--wp--preset--color--secondary-dark, #5a9bcd);
}

/* -------------------------------------------------------------------------
   Buttons (core + Stackable-friendly)
   ------------------------------------------------------------------------- */

.wp-block-button__link {
	background-color: var(--wp--preset--color--secondary, #6ca9d8);
	border: 0;
	border-radius: 100px;
	color: var(--wp--preset--color--white, #fff);
	font-family: var(--wp--preset--font-family--body, "Montserrat", sans-serif);
	font-size: var(--wp--preset--font-size--button, 18px);
	font-weight: 500;
	line-height: 1.11;
	padding: 14px 28px;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		color 0.25s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--secondary-dark, #5a9bcd);
	color: var(--wp--preset--color--white, #fff);
}

.wp-block-button.is-style-ccs-large .wp-block-button__link {
	font-size: var(--wp--preset--font-size--button-large, 22px);
	line-height: 1.64;
	padding: 34px 50px 36px;
}

@media (prefers-reduced-motion: reduce) {
	a,
	.wp-block-button__link {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Elements sample page helpers
   ------------------------------------------------------------------------- */

.ccs-elements-sample .ccs-elements-sample__label {
	color: var(--wp--preset--color--secondary, #6ca9d8);
	font-family: var(--wp--preset--font-family--body, "Montserrat", sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 32px 0 12px;
	text-transform: uppercase;
}

.ccs-elements-sample .ccs-elements-sample__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 24px;
}

.ccs-elements-sample .ccs-elements-sample__swatch {
	align-items: flex-end;
	box-sizing: border-box;
	display: flex;
	height: 96px;
	padding: 10px;
	width: 96px;
}

.ccs-elements-sample .ccs-elements-sample__swatch span {
	color: var(--wp--preset--color--white, #fff);
	font-size: 11px;
	line-height: 1.2;
	mix-blend-mode: difference;
}

.ccs-elements-sample .ccs-elements-sample__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 24px;
}

.ccs-elements-sample .ccs-elements-sample__icons img {
	display: block;
	height: 64px;
	width: 64px;
}
