/*
 * Pages built with Elementor.
 * Only what the free widgets cannot express; colours come from the kit
 * globals (--e-global-color-*). Mobile <= 899.98px (= Elementor tablet
 * breakpoint 899). Loaded only on pages built with Elementor.
 */

/* Emphasis inside headings: copper (dark on light, light on dark). */
.elementor-widget-heading .elementor-heading-title em {
	color: var(--e-global-color-secondary, var(--feramo-copper-dark));
	font-style: italic;
}

.feramo-e-on-dark .elementor-widget-heading .elementor-heading-title em {
	color: var(--e-global-color-copper, var(--feramo-copper));
}

/* Text editor: no outer margins, spacing between paragraphs only. */
.elementor-widget-text-editor p:first-child {
	margin-top: 0;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/*
 * Scale ready-to-wear -> made-to-measure: a rule behind the pills (opaque
 * backgrounds). ::after, not a background-image: Elementor hides nested
 * container background images until its lazy-load script runs.
 */
.feramo-e-scale {
	isolation: isolate;
}

.feramo-e-scale::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	right: 16.67%;
	left: 16.67%;
	height: 1px;
	background: var(--e-global-color-linestrong, var(--feramo-line-strong));
}

/* Title links: the theme underlines links by default; card titles are not underlined. */
.elementor-heading-title a,
.elementor-image-box-title a,
.elementor-icon-box-title a {
	text-decoration: none;
}

/* Keyboard focus on Elementor buttons and links. */
.elementor-button:focus-visible,
.elementor-widget-text-editor a:focus-visible,
.elementor-widget-heading a:focus-visible,
.elementor-image-box-title a:focus-visible,
.elementor-icon-box-title a:focus-visible {
	outline: 2px solid var(--feramo-copper-dark);
	outline-offset: 3px;
}

.feramo-e-on-dark a:focus-visible {
	outline-color: var(--feramo-copper);
}

@media (max-width: 899.98px) {
	.feramo-e-scale::after {
		top: 0;
		right: auto;
		bottom: 0;
		left: 50%;
		width: 1px;
		height: auto;
	}
}

/* Contact page: Contact Form 7 form inside .feramo-contact__card. */
.feramo-contact__card .wpcf7-form p {
	margin: 0 0 20px;
}

.feramo-contact__card .feramo-cf7__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.feramo-contact__card .wpcf7-form label {
	display: block;
	margin-bottom: 8px;
	font: 500 13px/1.4 var(--feramo-font-sans);
	color: var(--feramo-ink);
}

.feramo-contact__card .wpcf7-form abbr {
	color: var(--feramo-copper-dark);
	text-decoration: none;
}

.feramo-contact__card .wpcf7-form-control-wrap {
	display: block;
}

.feramo-contact__card .wpcf7-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	box-sizing: border-box;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--feramo-line-strong);
	border-radius: 8px;
	background: #fff;
	font: 400 15px/1.4 var(--feramo-font-sans);
	color: var(--feramo-ink);
}

.feramo-contact__card .wpcf7-form textarea {
	height: auto;
	min-height: 160px;
	padding: 14px 16px;
	resize: vertical;
}

.feramo-contact__card .wpcf7-form :is(input, textarea):focus-visible {
	outline: 2px solid var(--feramo-copper-dark);
	outline-offset: 2px;
}

.feramo-contact__card .wpcf7-form .wpcf7-not-valid {
	border-color: var(--feramo-copper-dark);
}

.feramo-contact__card .wpcf7-not-valid-tip,
.feramo-contact__card .wpcf7-response-output {
	margin: 8px 0 0;
	font: 400 13px/1.5 var(--feramo-font-sans);
	color: var(--feramo-copper-dark);
}

.feramo-contact__card .wpcf7-response-output {
	padding: 12px 16px;
	border: 1px solid var(--feramo-line-warm);
	border-radius: 8px;
	background: var(--feramo-ivory);
}

.feramo-contact__card .wpcf7-submit {
	height: 56px;
	padding: 0 40px;
	border: 0;
	border-radius: var(--feramo-radius-pill);
	background: var(--feramo-ink);
	font: 500 15px/1 var(--feramo-font-sans);
	letter-spacing: 0.04em;
	color: #fff;
	cursor: pointer;
}

.feramo-contact__card .wpcf7-submit:hover {
	background: var(--feramo-copper-dark);
}

.feramo-contact__card .wpcf7-submit:focus-visible {
	outline: 2px solid var(--feramo-copper-dark);
	outline-offset: 2px;
}

@media (max-width: 899.98px) {
	.feramo-contact__card .feramo-cf7__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.feramo-contact__card .wpcf7-submit {
		width: 100%;
	}
}
