/* ==========================================================
   WSS Creative — WordPress integration styles.
   Loaded after assets/css/style.css (the original design CSS,
   which is left untouched). Only WordPress / Contact Form 7
   specific output is styled here.
========================================================== */

/* Accessibility helpers ----------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 100000;
	padding: 12px 18px;
	background: #fff;
	color: var(--ink);
	border-radius: 8px;
	font-weight: 700;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

/* Footer legal links (originally plain text in the bottom bar) */
.footer-bottom .footer-legal a {
	display: inline;
	font-size: inherit;
	color: inherit;
	margin: 0;
}
.footer-bottom .footer-legal a:hover {
	color: var(--red);
}

/* Mobile header: call icon before the hamburger (matches the desktop phone icon) */
.mobile-header-actions {
	gap: 10px;
}
.header-call {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	color: #172033;
	font-size: 16px;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
	transition: color .25s ease, background .25s ease;
}
.header-call:hover,
.header-call:focus-visible {
	color: var(--red);
}
.site-header.is-scrolled .header-call {
	background: #fff0f2;
	color: var(--red);
}

/* Homepage services: slider on mobile only (initialised in app.js below 768px) */
.service-pagination {
	display: none;
}
@media (max-width: 767.98px) {
	/* Extra padding (offset by negative margin) keeps card shadows/hover lift from being clipped */
	.service-grid-wrap.swiper {
		overflow: hidden;
		padding: 10px 0 34px;
		margin: -10px 0 -30px;
	}
	.service-grid-wrap .service-grid.swiper-wrapper {
		flex-wrap: nowrap;
		margin: 0;
	}
	.service-grid-wrap .service-grid > .swiper-slide {
		padding: 0;
		margin-top: 0;
		height: auto;
	}
	.service-grid-wrap .swiper-slide .service-card {
		height: 100%;
	}
	.service-pagination {
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 6px;
		margin-top: 22px;
	}
	.service-pagination .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		margin: 0 !important;
		border-radius: 999px;
		background: #c9ccd3;
		opacity: 1;
		transition: width .3s ease, background .3s ease;
	}
	.service-pagination .swiper-pagination-bullet-active {
		width: 24px;
		background: var(--red);
	}
}

/* Contact Form 7 — shared ---------------------------------- */
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--red);
}
.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #1f9d55;
	background: rgba(31, 157, 85, .07);
	color: #17663a;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: rgba(255, 31, 61, .45);
	background: rgba(255, 31, 61, .06);
	color: #b4122b;
}
.wpcf7 form.submitting .wpcf7-submit {
	opacity: .75;
	cursor: progress;
}
.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
	margin: 0 0 0 14px;
	background-color: var(--red);
}

/* Contact page form */
.contact-form .form-control.wpcf7-not-valid {
	border-color: var(--red);
}
.contact-form select.form-control {
	cursor: pointer;
}

/* Popup form (dark panel) */
#wssPopupForm .wpcf7-not-valid-tip {
	color: #ff6b80;
}
#wssPopupForm .wpcf7-not-valid {
	border-color: rgba(255, 36, 66, .75);
}
#wssPopupForm .wpcf7-response-output {
	color: #fff;
	border-color: rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .06);
}
#wssPopupForm.sent .wpcf7-response-output {
	border-color: rgba(70, 200, 120, .6);
	background: rgba(70, 200, 120, .1);
	color: #c9f5da;
}
#wssPopupForm.invalid .wpcf7-response-output,
#wssPopupForm.failed .wpcf7-response-output,
#wssPopupForm.spam .wpcf7-response-output {
	border-color: rgba(255, 36, 66, .6);
	background: rgba(255, 36, 66, .1);
	color: #ffd2d9;
}
#wssPopupForm .wpcf7-spinner {
	display: none;
	margin: 12px auto 0;
}
#wssPopupForm.submitting .wpcf7-spinner {
	display: block;
}

/* Generic page / post content ---------------------------- */
.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink);
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 1.6em 0 .6em;
}
.entry-content a {
	color: var(--red);
}
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}
.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
	margin-bottom: 18px;
}
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}
.alignright {
	float: right;
	margin: 0 0 16px 24px;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.wp-caption-text,
.wp-element-caption {
	font-size: 13px;
	color: var(--muted);
}
.post-navigation-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 50px 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-weight: 700;
}
.post-navigation-links a {
	color: var(--ink);
	text-decoration: none;
}
.wss-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 45px;
}
.wss-pagination .page-numbers {
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
}
.wss-pagination .page-numbers.current {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.comments-area {
	margin-top: 60px;
}
.comment-list {
	padding-left: 0;
	list-style: none;
}
