/**
 * ART FAQ Manager — CTA section styles
 *
 * Self-contained, matching the site's existing CTA banner: navy panel with a
 * serif heading (one word in gold), a paragraph and a white pill button, beside
 * a full-bleed photo.
 *
 *   #00041f  navy — panel background, button text
 *   #b97f2b  gold — highlighted heading word, button hover text
 *   #ffffff  white — heading, body copy, button background
 *
 * Fonts are declared as stacks: when the theme loads Montserrat and
 * Times Newer Roman they are used, otherwise the fallbacks keep the proportions.
 * Single-class specificity throughout, so it is easy to override.
 */

.art-cta {
	--art-cta-navy: #00041f;
	--art-cta-gold: #b97f2b;
	--art-cta-aqua: #83cdcc;
	--art-cta-white: #ffffff;
	/* Button colours default to the palette above; the `art_cta_settings` filter
	   can override any of them. The label deliberately stays navy on hover — the
	   aqua fill supplies the state change, as it does elsewhere on the site. */
	--art-cta-button-bg: var(--art-cta-white);
	--art-cta-button-text: var(--art-cta-navy);
	--art-cta-button-hover: var(--art-cta-navy);
	--art-cta-button-border: var(--art-cta-aqua);
	--art-cta-button-fill: var(--art-cta-aqua);
	--art-cta-min-height: 615px;
	--art-cta-font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--art-cta-font-serif: "Times Newer Roman", "Times New Roman", Georgia, serif;

	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
}

.art-cta *,
.art-cta *::before,
.art-cta *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * Text panel
 * ---------------------------------------------------------------------- */

.art-cta__panel {
	display: flex;
	flex: 1 1 50%;
	align-items: center;
	min-width: 0;
	min-height: var(--art-cta-min-height);
	padding: 80px 70px;
	background: var(--art-cta-navy);
}

.art-cta__content {
	width: 100%;
	max-width: 550px;
	margin-left: auto;
}

.art-cta--image_left .art-cta__content {
	margin-left: 0;
	margin-right: auto;
}

.art-cta__heading {
	margin: 0 0 26px;
	font-family: var(--art-cta-font-serif);
	font-weight: 400;
	font-size: 55px;
	line-height: 1.18;
	color: var(--art-cta-white);
}

.art-cta__highlight {
	color: var(--art-cta-gold);
}

.art-cta__text {
	margin: 0 0 38px;
	max-width: 520px;
	font-family: var(--art-cta-font-sans);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.76;
	color: var(--art-cta-white);
}

.art-cta__text p {
	margin: 0 0 14px;
	color: inherit;
}

.art-cta__text > *:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Button
 * ---------------------------------------------------------------------- */

/**
 * Matches the site's `.content_btn1 a` treatment: white pill with an aqua
 * hairline border, and an aqua fill that sweeps in from the left on hover while
 * the label stays navy.
 *
 * Geometry is the same as the theme button — 60px of space before the label,
 * 25px between label and arrow, 40px after the arrow — expressed with flex
 * padding and a gap instead of an absolutely positioned pseudo-element.
 */
.art-cta__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 25px;
	padding: 18px 40px 18px 60px;
	border: 1px solid var(--art-cta-button-border);
	border-radius: 100px;
	background: var(--art-cta-button-bg);
	overflow: hidden;
	font-family: var(--art-cta-font-sans);
	font-weight: 500;
	font-size: 14px;
	line-height: 28px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--art-cta-button-text);
	cursor: pointer;
	transition: color 300ms ease;
}

/* The sweeping fill. Sits behind the label, which is lifted by z-index below. */
.art-cta__button::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 100%;
	border-radius: 30px;
	background: var(--art-cta-button-fill);
	transition: width 300ms ease;
}

.art-cta__button:hover::before,
.art-cta__button:focus::before {
	width: 100%;
}

.art-cta__button:hover,
.art-cta__button:focus {
	color: var(--art-cta-button-hover);
	text-decoration: none;
}

/* The theme removes outlines globally, so the focus ring needs to insist. */
.art-cta__button:focus-visible {
	outline: 2px solid var(--art-cta-gold) !important;
	outline-offset: 4px;
}

/* Lifted above the sweeping fill. */
.art-cta__button-label,
.art-cta__button-arrow {
	position: relative;
	z-index: 1;
}

.art-cta__button-arrow {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	width: 15px;
	height: 11px;
	transition: transform 300ms ease;
}

.art-cta__button-arrow svg {
	display: block;
	width: 15px;
	height: 11px;
}

.art-cta__button:hover .art-cta__button-arrow {
	transform: translateX(4px);
}

/* Editor-only hint, shown when a button has link text but no URL. */
.art-cta__notice {
	margin: 0;
	padding: 12px 16px;
	border: 1px dashed var(--art-cta-gold);
	font-family: var(--art-cta-font-sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--art-cta-white);
}

/* -------------------------------------------------------------------------
 * Image
 * ---------------------------------------------------------------------- */

.art-cta__media {
	flex: 1 1 50%;
	min-width: 0;
	min-height: var(--art-cta-min-height);
	overflow: hidden;
}

.art-cta__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: var(--art-cta-min-height);
	object-fit: cover;
	object-position: center;
}

/* Image first in the source order, so it sits left without reversing on mobile. */
.art-cta--image_left .art-cta__media {
	order: -1;
}

.art-cta--no-image .art-cta__panel {
	flex-basis: 100%;
}

/* Editor-only placeholder shown when a page has no CTA section assigned. */
.art-cta--empty {
	display: block;
	padding: 24px;
	background: #ffffff;
	border: 1px dashed #b97f2b;
	font-family: var(--art-cta-font-sans);
	font-size: 15px;
	line-height: 26px;
	color: #6d7585;
}

.art-cta--empty p {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Responsive — matches the site's breakpoints (1199 / 991 / 767 / 575)
 * ---------------------------------------------------------------------- */

@media (max-width: 1440px) {
	.art-cta {
		--art-cta-min-height: 560px;
	}

	.art-cta__panel {
		padding: 70px 60px;
	}

	.art-cta__heading {
		font-size: 48px;
	}
}

@media (max-width: 1199px) {
	.art-cta {
		--art-cta-min-height: 500px;
	}

	.art-cta__panel {
		padding: 60px 45px;
	}

	.art-cta__heading {
		font-size: 40px;
		margin-bottom: 22px;
	}

	.art-cta__text {
		font-size: 16px;
		margin-bottom: 32px;
	}
}

/* Tablet and below: stack, text first, image full width underneath. */
@media (max-width: 991px) {
	.art-cta {
		--art-cta-min-height: 0;
		flex-direction: column;
	}

	.art-cta__panel,
	.art-cta__media {
		flex: 1 1 100%;
		width: 100%;
	}

	.art-cta__panel {
		padding: 55px 40px;
	}

	.art-cta__content,
	.art-cta--image_left .art-cta__content {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}

	.art-cta__heading {
		font-size: 36px;
	}

	.art-cta__text {
		max-width: none;
	}

	.art-cta__media,
	.art-cta__image {
		min-height: 0;
		height: 420px;
	}

	/* Keep the photo below the copy on small screens regardless of layout. */
	.art-cta--image_left .art-cta__media {
		order: 0;
	}
}

@media (max-width: 767px) {
	.art-cta__panel {
		padding: 45px 24px;
	}

	.art-cta__heading {
		font-size: 30px;
		line-height: 1.25;
		margin-bottom: 18px;
	}

	.art-cta__text {
		font-size: 15px;
		line-height: 1.7;
		margin-bottom: 28px;
	}

	.art-cta__button {
		gap: 20px;
		padding: 15px 30px 15px 40px;
		font-size: 13px;
		line-height: 24px;
	}

	.art-cta__media,
	.art-cta__image {
		height: 320px;
	}
}

@media (max-width: 575px) {
	.art-cta__panel {
		padding: 38px 20px;
	}

	.art-cta__heading {
		font-size: 26px;
	}

	/* Full width, so the asymmetric padding is dropped for even centring. */
	.art-cta__button {
		justify-content: center;
		width: 100%;
		padding-left: 24px;
		padding-right: 24px;
	}

	.art-cta__media,
	.art-cta__image {
		height: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.art-cta__button,
	.art-cta__button::before,
	.art-cta__button-arrow {
		transition-duration: 1ms;
	}
}
