/*
 * Promotiques components — page-level building blocks built on the tokens in main.css.
 *
 * Hero section · Card headings · Service cards · Tags · Process steps ·
 * Contact details / social links · Interior hero · Related links · Legal · Steps list.
 *
 * Custom components (hero visual, capabilities, journey, audiences, contact form) are styled
 * by the Promotiques Site plugin and configured in Settings › Promotiques Site.
 */

/* --- Hero ---------------------------------------------------------------- */
.e-con.pq-hero {
	--padding-top: clamp(3.5rem, 2rem + 6vw, 7rem);
	--padding-bottom: clamp(3.5rem, 2rem + 5vw, 6rem);
}

/* Card headings: one size for every card type (service, principle, step, work). */
.pq-card .elementor-widget-heading h3.elementor-heading-title {
	font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
	line-height: 1.25;
}

/* --- Service cards -------------------------------------------------------- */
.e-con.pq-service-card {
	position: relative;
	--justify-content: flex-start;
}

.pq-service-card .elementor-icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--pq-radius-md);
	background: color-mix(in srgb, var(--pq-red-600) 10%, var(--pq-white));
	color: var(--pq-red-600);
	transition: background-color var(--pq-dur) var(--pq-ease), color var(--pq-dur) var(--pq-ease);
}

.pq-service-card .elementor-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.pq-service-card:hover .elementor-icon,
.pq-service-card:focus-within .elementor-icon {
	background: var(--pq-red-600);
	color: var(--pq-white);
}

.pq-card-index .elementor-heading-title {
	font-family: var(--pq-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--pq-muted);
}

/* Whole card is clickable via the heading link: one descriptive link per card. */
.pq-service-card .pq-card-title a {
	color: inherit;
	text-decoration: none;
}

/* Elementor positions every widget; the title widget must not be the containing block,
   so the link overlay below stretches to the card (the card is position: relative). */
.pq-service-card .elementor-widget-heading.pq-card-title {
	position: static;
}

.pq-service-card .pq-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--pq-radius-lg);
}

.pq-service-card .pq-card-title a:focus-visible {
	outline: none;
}

.pq-service-card .pq-card-title a:focus-visible::after {
	outline: 2px solid var(--pq-red);
	outline-offset: 3px;
}

.pq-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--pq-red-600);
	font-size: 0.9375rem;
	font-weight: 600;
}

.pq-card-cta::after {
	content: "\2192";
	transition: transform var(--pq-dur) var(--pq-ease);
}

.pq-service-card:hover .pq-card-cta::after {
	transform: translateX(4px);
}

.elementor-widget.pq-push-bottom {
	margin-top: auto;
}

/* Tag list */
.pq-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pq-tags li {
	margin: 0;
	padding: 0.25em 0.7em;
	border: 1px solid var(--pq-line);
	border-radius: var(--pq-radius-pill);
	color: var(--pq-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.pq-dark .pq-tags li {
	border-color: var(--pq-ink-line);
	color: var(--pq-on-dark-muted);
}

/* --- Process steps -------------------------------------------------------- */
.pq-step-num .elementor-heading-title {
	font-family: var(--pq-font-heading);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--pq-red);
}


/* --- Contact details + social links ----------------------------------------- */
.pq-contact-details,
.pq-social-links {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pq-contact-details__label {
	display: block;
	color: var(--pq-muted);
	font-size: var(--pq-fs-small);
}

.pq-dark .pq-contact-details__label {
	color: var(--pq-on-dark-muted);
}

.pq-social-links {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pq-social-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.45em 0.9em;
	border: 1px solid var(--pq-line);
	border-radius: var(--pq-radius-pill);
	color: var(--pq-text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color var(--pq-dur) var(--pq-ease), color var(--pq-dur) var(--pq-ease);
}

.pq-social-links a::after {
	content: "\2197";
	font-size: 0.85em;
	color: var(--pq-red-600);
}

.pq-social-links a:hover {
	border-color: var(--pq-red-600);
}

.pq-dark .pq-social-links a {
	border-color: var(--pq-ink-line);
	color: var(--pq-on-dark);
}

/* --- Interior page hero ------------------------------------------------------- */
.e-con.pq-page-hero {
	--padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
	--padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.pq-page-hero .pq-breadcrumbs {
	margin-bottom: 0.25rem;
}

/* --- Service detail rows (Services overview) --------------------------------- */
.pq-service-row .pq-tags li {
	font-size: 0.8125rem;
}

/* --- Solution cards: related-service links ------------------------------------ */
.pq-related {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pq-related a,
.elementor-widget-text-editor .pq-related li a {
	text-decoration: none;
	color: var(--pq-red-600);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}

.pq-related a::after {
	content: " \2192";
}

.pq-related a:hover,
.elementor-widget-text-editor .pq-related li a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --- Legal / long-form pages (default template, narrow) ----------------------- */
.pq-legal h2 {
	margin-top: 2.5rem;
	font-size: clamp(1.375rem, 1.2rem + 0.75vw, 1.75rem);
}

.pq-legal h3 {
	margin-top: 1.75rem;
	font-size: 1.1875rem;
}

.pq-legal p,
.pq-legal li {
	color: var(--pq-text);
}

.pq-legal p + ul {
	margin-top: -0.5rem;
}

.pq-legal .pq-legal-meta {
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--pq-red);
	background: var(--pq-surface);
	color: var(--pq-muted);
	font-size: var(--pq-fs-small);
}

/* Cards whose title is an H2 (e.g. Services overview, Solutions) — one step larger than H3 cards. */
.pq-card .elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
}

/* Numbered "what happens next" list on the Contact page. */
.pq-steps {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pq-steps;
}

.pq-steps li {
	position: relative;
	padding-left: 2.75rem;
	counter-increment: pq-steps;
}

.pq-steps li::before {
	content: counter(pq-steps, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	color: var(--pq-red);
	font-family: var(--pq-font-heading);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1.5;
}

/* 404 fallback (when no "page-404" Elementor template exists). */
.pq-404-fallback {
	padding-block: var(--pq-section-y);
}

/* Service pages: "Where we can help" cards get a brand accent line (decorative). */
.e-con.pq-situation {
	border-top: 3px solid var(--pq-red);
}

/* --- Insights (Kadence blog) ------------------------------------------------ */
/* Archive and related-post cards match the site's cards. */
.loop-entry.type-post {
	overflow: hidden;
	border: 1px solid var(--pq-line);
	border-radius: var(--pq-radius-lg);
	background: var(--pq-white);
	box-shadow: var(--pq-shadow-sm);
	transition: transform var(--pq-dur) var(--pq-ease), box-shadow var(--pq-dur) var(--pq-ease), border-color var(--pq-dur) var(--pq-ease);
}

.loop-entry.type-post:hover,
.loop-entry.type-post:focus-within {
	transform: translateY(calc(var(--pq-card-lift, 4px) * -1));
	box-shadow: var(--pq-shadow-md);
	border-color: color-mix(in srgb, var(--pq-red) 35%, transparent);
}

.loop-entry.type-post .entry-content-wrap {
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
}

.loop-entry.type-post .entry-title {
	font-size: var(--pq-fs-h4);
	line-height: 1.25;
}

.loop-entry.type-post .entry-title a {
	color: var(--pq-text);
	text-decoration: none;
}

.loop-entry.type-post .entry-taxonomies a,
.entry-hero .entry-taxonomies a {
	color: var(--pq-red-600);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.entry-hero .entry-taxonomies a {
	color: var(--pq-red-300);
}

.loop-entry.type-post .more-link-wrap a {
	color: var(--pq-red-600);
}

/* Article title band: summary and date readable on dark. */
.entry-hero .title-entry-excerpt,
.entry-hero .archive-description {
	max-width: 760px;
	color: var(--pq-on-dark-text);
	font-size: var(--pq-fs-lead);
}

.entry-hero .entry-meta {
	color: var(--pq-on-dark-muted);
}

@media (prefers-reduced-motion: reduce) {
	.loop-entry.type-post {
		transition: none;
	}

	.loop-entry.type-post:hover,
	.loop-entry.type-post:focus-within {
		transform: none;
	}
}

/* --- Pricing (Pricing page; content in Elementor) --------------------------- */
.pq-plan-name .elementor-heading-title {
	font-size: var(--pq-fs-h4);
}

.pq-price .elementor-heading-title {
	font-family: var(--pq-font-heading);
	font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--pq-text);
}

.pq-price__per {
	margin-left: 0.2em;
	color: var(--pq-muted);
	font-family: var(--pq-font-body);
	font-size: var(--pq-fs-body);
	font-weight: 500;
	letter-spacing: 0;
}

.pq-plan-label .elementor-heading-title {
	font-family: var(--pq-font-body);
	font-size: var(--pq-fs-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pq-text);
}

.elementor-widget.pq-plan-list .elementor-icon-list-items .elementor-icon-list-item {
	align-items: flex-start;
	padding-block: 0.2rem;
	color: var(--pq-text);
}

.elementor-widget.pq-plan-list .elementor-icon-list-item .elementor-icon-list-icon {
	padding-top: 0.35em;
}

.pq-plan-list .elementor-icon-list-icon svg {
	width: 0.85em;
	height: 0.85em;
	fill: var(--pq-red-600);
}

.pq-plan-list--bonus .elementor-icon-list-icon svg {
	fill: var(--pq-text);
}

.pq-small,
.pq-small p {
	font-size: var(--pq-fs-small);
}

.pq-why-title .elementor-heading-title {
	font-size: var(--pq-fs-h4);
}
