/**
 * Integrations — centered heading + platform chip row. Typography via utilities.
 */

/*
 * BLOCK PADDING IS PER-VARIANT — one layout, three different mockup blocks.
 *
 * All three fell back to `.flexible-section`'s `--section-pad-y` (100px at the
 * ceiling) and were too tall; each mockup block states its own value, so each
 * variant declares its own here rather than sharing one number:
 *
 *   variant      mockup block                                mockup  x1.25
 *   (base)       `.res-int`                                   74px    92.5px
 *   .is-logos    classless <section style="padding:60px 72px"> 60px    75px
 *   .is-compact  `.sv-bundle`                                  64px    80px
 *
 * The base is the audience pages (Residential, Commercial, Realtors, Attorneys —
 * 4 pages), `.is-logos` the 9 that carry the platform strip, `.is-compact` the 2
 * service-hero pages. Verified against every mockup that uses the layout.
 *
 * ⚠️ The `.is-logos` source is the CLASSLESS `<section>` styled only with inline
 * `style=` attributes — the one HANDOFF §8d warns a class-based scan and a
 * rule-by-rule CSS diff are both structurally blind to. Grep the inline
 * `padding:` on the `<section>` tag itself, not a stylesheet rule.
 *
 * Inline 72 × 1.25 = 90px already matches `--section-pad-x` in all three, so
 * only the block axis is set.
 *
 * Clamps use the file's standard formula with min scaled by the 0.44 ratio the
 * `--section-pad-y` token uses: A = (max − min) / 12.4, B = min − (max − min) ×
 * 0.290322.
 */
.flexible-section.integrations {
	background: var(--color-bg2);
	padding-inline: var(--section-pad-x);
	padding-block: clamp(40.7px, 4.18vw + 25.66px, 92.5px);
}

.integrations-in {
	max-width: 1250px;
	margin: 0 auto;
	text-align: center;
}

.integrations-in .section-ti {
	margin-block-end: clamp(8px, 0.4vw + 6px, 14px);
}

.integrations-sub {
	max-width: 600px;
	margin: 0 auto clamp(24px, 1.6vw + 16px, 34px);
}

.integrations-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.integrations-chip {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 3px;
	padding: 15px 27px;
	letter-spacing: 0.02em;
}

.integrations-chip.is-link {
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.integrations-chip.is-link:hover {
	border-color: var(--color-gold2);
	color: var(--color-gold);
}

/* Logo-strip variant — muted gray label over one continuous row of adjacent
   bordered platform boxes (Meet the Team mockup). Cream bg + top rule.
   Values = mockup CSS × 1.25 zoom. */
.flexible-section.integrations.is-logos {
	background: var(--color-bg);
	border-top: 1px solid var(--color-border);
	/* 60px x 1.25 = 75px — see the per-variant table at the top of this file. */
	padding-block: clamp(33px, 3.39vw + 20.81px, 75px);
}

.flexible-section.integrations.is-logos .section-ey {
	color: var(--color-text3);
	letter-spacing: 0.25em;
	margin-block-end: clamp(24px, 1.69vw + 17.9px, 45px);
}

.flexible-section.integrations.is-logos .integrations-chips {
	gap: 0;
}

.flexible-section.integrations.is-logos .integrations-chip {
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 0;
	color: var(--color-text3);
	font-weight: var(--fw-800);
	font-size: clamp(13px, 0.262vw + 12.06px, 16.25px);
	letter-spacing: 0.02em;
	padding: clamp(14px, 0.887vw + 10.8px, 25px) clamp(18px, 1.774vw + 11.6px, 40px);
}

/*
 * The highlighted "Your LOS" cell — the box the client asked to appear at the end of
 * EVERY platform row (call 2026-08-04, @17:54 "the blue box with the white L-O-S").
 *
 * BOTH selectors are required, and it has to sit AFTER the `.is-logos` chip rule
 * above:
 *   - the `.is-logos` rule sets `background: transparent` and a grey `color` with
 *     3-class specificity, so the bare `.integrations-chip.is-highlight` (2 classes)
 *     loses to it on the nine `.is-logos` sections;
 *   - but scoping ONLY to `.is-logos` — as it briefly was on 2026-08-05 — dropped the
 *     five sections that do not carry that class (Residential Lenders, Commercial
 *     Lenders, Realtors, Attorneys, Mortgage Credit Services). The template adds the
 *     `text-white` utility to a highlighted chip, so with no navy background those
 *     rendered white type on cream: invisible.
 * Verified painting on all 16 pages that carry the chip.
 *
 * `background` is deliberately the shorthand: it has to set `background-image`, since
 * the navy token is a gradient (see the shorthand trap in HANDOFF §8).
 */
.integrations-chip.is-highlight,
.flexible-section.integrations.is-logos .integrations-chip.is-highlight {
	background: var(--gradient-navy);
	border-color: var(--color-navy);
	color: var(--color-white);
}

/* Compact variant — "Works Well With" bundle on service-detail pages */
.flexible-section.integrations.is-compact {
	/* `.sv-bundle` 64px x 1.25 = 80px — see the per-variant table at the top. */
	padding-block: clamp(35.2px, 3.61vw + 22.19px, 80px);
}

.flexible-section.integrations.is-compact .integrations-in {
	max-width: var(--container-narrow);
}

.flexible-section.integrations.is-compact .section-ti {
	font-size: clamp(22.4px, 1.016vw + 18.74px, 35px);
}

.flexible-section.integrations.is-compact .integrations-chip {
	font-size: clamp(13px, 0.21vw + 12.25px, 15.63px);
	padding: clamp(9px, 0.4vw + 7.6px, 13.75px) clamp(15px, 0.81vw + 12.1px, 25px);
}
@media screen and (max-width:992px){
body .flexible-section.integrations.is-logos .integrations-chips {
	gap: 10px;
}
}