/*
Theme Name: Inteshape Child
Template: inteshape
Text Domain: inteshape-child
Version: 1.0.0
Description: Child theme for westernsquarecapital.com. All custom code and performance, SEO and security tweaks live here.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Footer newsletter form.
   The site's existing styles expect the email field and button side by side,
   but Contact Form 7 wraps each in extra <p>/<span> tags, so the field kept
   its default width and overflowed the page. */
.form-news {
	width: 100%;
}
.form-news p {
	margin: 0;
}
.form-news > p {
	display: table-cell;
	vertical-align: top;
	white-space: nowrap;
}
.form-news .wpcf7-form-control-wrap {
	display: block;
}
.form-news .news-text input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	color: #fff;
}
.form-news {
	position: relative;
}
/* Keep the "sending" spinner inside the field so it cannot widen the page. */
.form-news .wpcf7-spinner {
	position: absolute;
	top: 11px;
	right: 72px;
	margin: 0;
}

/* The newsletter widget was set to 63% of its column, which cut off the
   field's placeholder text. */
.elementor-widget-shortcode:has(.form-news) {
	width: 100% !important;
	max-width: 100% !important;
}

/* Headings and labels for screen readers only. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The animated headline is briefly wider than a phone screen while it plays,
   which let the whole page scroll sideways. Clip it at the page edge. */
main#content {
	overflow-x: clip;
}

/* "Why work with WSC" boxes: description under each title. */
.wsc-why-text {
	display: block;
	margin-top: 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: normal;
}

/* Forms: labels, notes, select and checkboxes in the enquiry and event forms. */
.contact-one label {
	display: block;
	width: 100%;
	margin: 0;
	font-weight: inherit;
}
.contact-one .wsc-form-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #23252d;
}
.contact-one select.form-control {
	height: auto;
	color: inherit;
}
.contact-one .wsc-form-note {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
}
.contact-one .wsc-form-check {
	margin-top: 4px;
}
.contact-one .wsc-form-check .wpcf7-list-item {
	margin: 0;
}
.contact-one .wsc-form-check label,
.wsc-news-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}
.contact-one .wsc-form-check input[type="checkbox"],
.wsc-news-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
}

/* Footer newsletter: consent line under the field. */
.wsc-news-consent {
	margin-top: 10px;
	color: #b9b9b9;
}
.wsc-news-consent .wpcf7-list-item {
	margin: 0;
}
.wsc-news-consent a {
	color: #fff;
	text-decoration: underline;
}
.form-news .news-text label {
	display: block;
	margin: 0;
}

/* Make form checkboxes and in-text links visible against their backgrounds. */
.contact-one .wsc-form-check input[type="checkbox"],
.wsc-news-consent input[type="checkbox"] {
	position: static;
	opacity: 1;
	-webkit-appearance: checkbox;
	appearance: auto;
}
.contact-one .wsc-form-note a {
	color: #156eb1;
	text-decoration: underline;
}
.wsc-news-consent label {
	font-weight: 400;
}
#colophon .elementor-widget-text-editor a {
	color: #fff;
	text-decoration: underline;
}

/* Insights article cards: equal height, consistent image shape, tidy text. */
.elementor-widget-news-section .row > [class*="col-"] {
	display: flex;
}
.blog-post.date-style-3 {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.blog-post.date-style-3 .sx-post-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.blog-post.date-style-3 .sx-post-info {
	flex: 1 1 auto;
}
/* Titles broke in the middle of words; wrap at spaces and keep to two lines. */
.blog-post.date-style-3 .post-title,
.blog-post.date-style-3 .post-title a {
	word-break: normal;
	overflow-wrap: break-word;
}
.blog-post.date-style-3 .post-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	line-height: 1.3;
	min-height: 2.6em;
}
/* Summaries longer than three lines are cut off with an ellipsis. */
.blog-post.date-style-3 .sx-post-text p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin-bottom: 0;
}

/* Related-service cards on service pages: the icons are white images on a
   white card, so darken them; keep titles and summaries to a fixed number of
   lines so every card is the same height. */
.sx-icon-box-wraper.bg-white.shadow img {
	filter: brightness(0);
}
.sx-icon-box-wraper.bg-white.shadow .sx-tilte {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	line-height: 1.25;
	min-height: 2.5em;
}
.sx-icon-box-wraper.bg-white.shadow p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc(3 * 1.7em);
	line-height: 1.7;
}

/* "Read more" links: the theme draws the coloured bar behind the bottom of the
   text. Add room so the bar sits clear beneath the words. */
.site-button-link {
	padding-bottom: 9px;
}

/* Enquiry and event forms: text the visitor types is black. */
.contact-one input.form-control,
.contact-one textarea.form-control,
.contact-one select.form-control {
	color: #000;
}

/* Contact page map: fill the column width. */
.elementor-widget-tabs iframe {
	display: block;
	width: 100%;
	max-width: 100%;
}

/* Footer layout and spacing. */
#colophon .elementor-widget-text-editor p {
	margin: 0 0 10px;
}
#colophon .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}
#colophon .elementor-widget-image img {
	max-width: 200px;
	height: auto;
}
#colophon .elementor-widget-shortcode .wpcf7 {
	margin-top: 4px;
}
/* Bottom row: copyright and legal links, separated from the columns above. */
#colophon .wsc-footer-bottom {
	margin-top: 20px;
}
#colophon .wsc-footer-bottom > .elementor-container {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
/* Long email addresses wrap inside their column instead of running on. */
#colophon .elementor-icon-list-text {
	overflow-wrap: anywhere;
}
#colophon .wsc-footer-bottom .elementor-widget-text-editor:has(p:empty),
#colophon .wsc-footer-bottom p:empty {
	display: none;
}
#colophon .wsc-legal-links a {
	text-decoration: none;
}
#colophon .wsc-legal-links a:hover {
	text-decoration: underline;
}
/* Keep short footer links such as "Contact WSC" on one line. */
#colophon .elementor-widget-text-editor a {
	white-space: nowrap;
}

/* ==========================================================================
   Insights article page (single-post.php)
   ========================================================================== */
.wsc-article {
	padding: 64px 20px 56px;
	background: #fff;
}
.wsc-article__header,
.wsc-article__body,
.wsc-article__nav {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.wsc-article__meta {
	margin: 0 0 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b6f7b;
}
.wsc-article__meta a {
	color: #156eb1;
}
.wsc-article__meta span {
	margin: 0 6px;
	color: #c3c6cd;
}
.wsc-article .wsc-article__title {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #000;
	overflow-wrap: break-word;
}
.wsc-article__image {
	max-width: 980px;
	margin: 36px auto 40px;
}
.wsc-article__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.wsc-article__body {
	font-size: 17px;
	line-height: 1.8;
	color: #3a3d46;
}
.wsc-article__body p {
	margin: 0 0 1.3em;
}
.wsc-article__body h2,
.wsc-article__body h3,
.wsc-article__body h4 {
	margin: 1.8em 0 0.6em;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}
.wsc-article__body h2 { font-size: 28px; }
.wsc-article__body h3 { font-size: 23px; }
.wsc-article__body h4 { font-size: 19px; }
.wsc-article__body a {
	color: #156eb1;
	text-decoration: underline;
}
.wsc-article__body ul,
.wsc-article__body ol {
	margin: 0 0 1.3em 1.2em;
}
.wsc-article__body img {
	max-width: 100%;
	height: auto;
}
.wsc-article__body blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 22px;
	border-left: 4px solid #156eb1;
	font-size: 19px;
	color: #23252d;
}
/* The general-information line under every article. */
.wsc-article__body .wsc-article-footer {
	margin: 2.2em 0 0;
	padding: 16px 20px;
	border-left: 4px solid #156eb1;
	background: #f1f4f6;
	font-size: 14px;
	line-height: 1.6;
	color: #555a66;
}

/* Previous / next article links. */
.wsc-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid #e3e6ea;
}
.wsc-article__nav-link {
	display: block;
	padding: 16px 18px;
	border: 1px solid #e3e6ea;
	color: #23252d;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
.wsc-article__nav-link:hover,
.wsc-article__nav-link:focus-visible {
	border-color: #156eb1;
	background: #f7f9fb;
	color: #23252d;
}
.wsc-article__nav-link--next {
	grid-column: 2;
	text-align: right;
}
.wsc-article__nav-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #156eb1;
}
.wsc-article__nav-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

/* "More insights" cards: every image the same shape, every card the same height. */
.wsc-related {
	padding: 56px 20px 72px;
	background: #f1f4f6;
}
.wsc-related__inner {
	max-width: 1140px;
	margin: 0 auto;
}
.wsc-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.wsc-related .wsc-related__heading {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
}
.wsc-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}
.wsc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 6px 24px rgba(35, 37, 45, 0.08);
	color: #23252d;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wsc-card:hover,
.wsc-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(35, 37, 45, 0.14);
	color: #23252d;
}
.wsc-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #23252d;
}
.wsc-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wsc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 22px 24px;
}
.wsc-card__date {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b6f7b;
}
.wsc-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc(3 * 1.3em);
	margin-bottom: 16px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #000;
}
.wsc-card__more {
	align-self: flex-start;
	margin-top: auto;
}

@media (max-width: 900px) {
	.wsc-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.wsc-article {
		padding: 40px 16px 40px;
	}
	.wsc-article__image {
		margin: 24px auto 28px;
	}
	.wsc-article__body {
		font-size: 16px;
	}
	.wsc-article__nav {
		grid-template-columns: 1fr;
	}
	.wsc-article__nav-link--next {
		grid-column: 1;
		text-align: left;
	}
	.wsc-related {
		padding: 40px 16px 48px;
	}
	.wsc-related__grid {
		grid-template-columns: 1fr;
	}
	.wsc-related .wsc-related__heading {
		font-size: 24px;
	}
}

/* Enquiry and event interest forms: fixed-height, scrolling off-white panel */
.cons-contact-form {
	background-color: #faf8f4;
	border: 1px solid #ece7de;
	max-height: 560px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #c9c1b4 transparent;
}
.cons-contact-form .section-head {
	position: sticky;
	top: -30px;
	z-index: 2;
	margin: -30px -30px 10px;
	padding: 24px 30px 12px;
	background-color: #faf8f4;
	box-shadow: 0 1px 0 #ece7de;
}
.cons-contact-form .sx-separator-outer.separator-left .sep-line-one {
	padding: 14px 50px 14px 16px;
	font-size: 32px;
	line-height: 1.2;
}
.cons-contact-form textarea.form-control {
	height: 120px;
}
.cons-contact-form .form-control {
	background-color: #fff;
}
.cons-contact-form .text-right {
	margin-bottom: 0;
}

/* No announcements: the form takes the whole row */
.elementor .elementor-element.elementor-column.wsc-events-form--full {
	width: 100%;
}
.elementor-column.wsc-events-form--full #register-interest {
	max-width: 820px;
	margin: 0 auto;
}

/* Upcoming announcements list */
.wsc-announcements {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wsc-announcement {
	padding: 18px 0;
	border-bottom: 1px solid #e6e1d8;
}
.wsc-announcement:first-child {
	padding-top: 0;
}
.wsc-announcement__meta {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #6b6b6b;
}
.wsc-announcement .wsc-announcement__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.35;
}
.wsc-announcement__text p {
	margin: 0 0 8px;
}
.wsc-announcement__link {
	margin: 0;
}
@media (max-width: 767px) {
	.cons-contact-form {
		max-height: 75vh;
	}
	.cons-contact-form .sx-separator-outer.separator-left .sep-line-one {
		font-size: 26px;
	}
}

/* Contact page: office address above each map */
.wsc-office-address {
	margin: 0 0 16px;
	font-style: normal;
	line-height: 1.6;
	color: #1f2020;
}
.elementor-element-8a2b636 {
	margin-bottom: 40px;
}
