/**
 * Image + Text — Eyebrow Special (inc/blocks-layout/image-text-eyebrow-special.php)
 * — a close cousin of Image + Text (assets/css/image-text.css) with a
 * full-bleed Background Color band, a single WYSIWYG Text field, and a
 * fixed (non-configurable) layout: image always on the right at desktop,
 * text always top-aligned, image always rendered first in the markup so
 * it still stacks on top on mobile (CSS `order` puts it on the right at
 * desktop only).
 *
 * Background Color (.ites-bg-black/gold/white/gray) drives text color —
 * Black uses white text, the other three (Gold, White, Gray) all use
 * black text — same contrast pattern as Numbered Features
 * (assets/css/numbered-features.css). The CTA button ignores this and
 * always keeps its own gold background / black text, hardcoded below.
 *
 * The desktop row has NO bottom padding — combined with both columns
 * being top-aligned, that lets the (typically taller) image reach the
 * section's own bottom edge with nothing trimming below it. This is
 * desktop-only; the mobile stacked layout uses normal symmetric padding.
 *
 * The desktop gap scales fluidly from 8.125rem (130px, hit exactly at a
 * 1200px viewport) down toward 2rem (32px, hit exactly at the 900px
 * layout breakpoint) via clamp() — same fluid-gap technique as Image Grid
 * with CTA's grid gap — rather than staying a flat 8.125rem across every
 * desktop width.
 */

.image-text-eyebrow-special-block {
	width: 100%;
}

.ites-bg-black {
	background: #000000;
	color: #ffffff;
}

.ites-bg-gold {
	background: var(--goldHex);
	color: #000000;
}

.ites-bg-white {
	background: #ffffff;
	color: #000000;
}

.ites-bg-gray {
	background: #f0f0f0;
	color: #000000;
}

.ites-inner {
	max-width: 75rem;
	margin: 0 auto;
	padding: 3rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.ites-media {
	order: 1;
	align-self: flex-start;
	flex: 1 1 0%;
}

.ites-media img {
	display: block;
	width: 100%;
	height: auto;
}

.ites-content {
	order: 2;
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 0rem;
}

@media (min-width: 900px) {
	.ites-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: clamp(2rem, 10.8333vw, 8.125rem);
		padding: 5rem 2rem 0;
	}

	/* Image always on the right at desktop — hardcoded, not an editor
	   choice, unlike Image + Text's Image Position field. */
	.ites-media {
		order: 2;
	}

	.ites-content {
		order: 1;
	}
}

/* ---- Eyebrow / Title / Text ---- */

.ites-eyebrow {
	margin: 0 0 1rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 0.875rem;
	text-transform: uppercase;
}

.ites-title {
	margin: 0 0 1rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 1.4rem;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.ites-title {
		font-size: 1.625rem;
	}
}

.ites-text {
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}

.ites-text p,
.ites-text ul,
.ites-text ol {
	margin: 0 0 1em;
}

.ites-text p:last-child,
.ites-text ul:last-child,
.ites-text ol:last-child {
	margin-bottom: 0;
}

.ites-text ul,
.ites-text ol {
	padding-left: 1.25rem;
}

/* ---- CTA ----
   Always gold background / black text, regardless of the section's
   Background Color — hardcoded here rather than inheriting .ites-bg-*'s
   contrast color. No border-radius initially, +10px on hover (sitewide
   button convention — transition speed lives in style.css, not here). */

.ites-cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	margin-top: 0.5rem;
	padding: 0.9rem 1.5rem;
	border-radius: 0;
	background: var(--goldHex);
	color: #000000;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 0.95rem;
	text-decoration: none;
}

.ites-cta:hover,
.ites-cta:focus-visible {
	border-radius: 10px;
}

.ites-bg-gold {
  & .ites-cta {
    background: black;
    color: white;
  }
}

.ites-bg-black,
.ites-bg-gold {
  & .ites-cta:hover,
  & .ites-cta:focus-visible {
    background: white;
	  color: black;
  }
}



