/*!
Theme Name: Stone Craft Tarmac Bristol
Theme URI: http://localhost/stone-craft-tarmac-bristol/
Author: Stonecraft Construction
Description: Custom theme for Stonecraft Tarmac Bristol, converted from the original static HTML site. Content is managed with ACF Pro (Site Settings + Home page fields), the Services and Testimonials post types, WordPress menus and Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: stone-craft-tarmac-bristol
Tags: one-column, custom-menu, featured-images, translation-ready

The front-end design lives in assets/css/style.css (copied from the HTML site).
This file only holds WordPress-specific additions.
*/

/* ---------- Admin bar offset for the header ---------- */
.admin-bar .site-header { top: 71px; }
.admin-bar .site-header.scrolled { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 85px; }
	.admin-bar .site-header.scrolled { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header.scrolled { top: 0; }
}

/* ---------- Contact Form 7 inside the hero quote panel ---------- */
.quote-panel .wpcf7 form { margin: 0; }
.quote-panel .wpcf7-form-control-wrap { display: block; }
.quote-panel .wpcf7-not-valid { border-color: #ff6b5f !important; }
.quote-panel .wpcf7-not-valid-tip { font-size: 11px; color: #ffb3ab; margin-top: 4px; }
.quote-panel .consent .wpcf7-form-control-wrap,
.quote-panel .consent .wpcf7-list-item { display: inline; margin: 0; }
.quote-panel .consent label { display: flex; gap: 8px; align-items: flex-start; }
.quote-panel .wpcf7 form .wpcf7-response-output {
	font-size: 11px;
	margin: 8px 0 0;
	padding: 6px 10px;
	border-width: 1px;
	border-radius: 5px;
	color: #ffe48c;
}
.quote-panel .wpcf7 form.sent .wpcf7-response-output { color: #d8ffe4; }
/* Keep the spacing of the original (empty) .form-feedback line while CF7 hides its message box. */
.quote-panel .wpcf7 form:is(.init, .resetting, .submitting)::after { content: ""; display: block; height: 8px; }
.quote-panel .wpcf7-spinner { display: none; }
.quote-panel .wpcf7 form.submitting .submit-btn { opacity: .7; pointer-events: none; }

/* ---------- Footer social links (only rendered when set in Site Settings) ---------- */
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-grid .footer-social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	line-height: 1;
	border: 1px solid #ffffff2b;
	border-radius: 50%;
	color: #fff;
}
.footer-grid .footer-social a:hover { background: var(--yellow); border-color: var(--yellow); }
.footer-grid .footer-social a:hover i { color: #111; }
.footer-legal a:hover { color: var(--yellow); }

/* ---------- Inner pages (page.php, single.php, index.php, 404.php) ---------- */
.page-banner {
	background: #101315 url('assets/video/video-poster.png') center/cover;
	position: relative;
	color: #fff;
	padding: 210px 0 70px;
}
.page-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #0b0c0df2, #0b0c0dc4);
}
.page-banner .wrap { position: relative; }
.page-banner h1 {
	font: 700 clamp(38px, 4.4vw, 64px)/1 var(--font-head);
	text-transform: uppercase;
	margin: 0;
}
.page-banner p:not(.eyebrow) { color: #ccc; margin: 16px 0 0; max-width: 720px; }
.page-section { padding: 80px 0; background: #f7f7f4; }
.entry-content { max-width: 860px; font-size: 1rem; line-height: 1.8; color: #2b2d30; }
.entry-content h2,
.entry-content h3 { font-family: var(--font-head); text-transform: uppercase; margin: 1.6em 0 .6em; }
.entry-content a { text-decoration: underline; }
.entry-content img { height: auto; border-radius: 4px; }
.entry-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; }
.post-list { display: grid; gap: 22px; max-width: 860px; }
.post-card { background: #fff; border: 1px solid #ddd; border-radius: 3px; padding: 28px; }
.post-card h2 { font: 600 26px var(--font-head); text-transform: uppercase; margin: 0 0 8px; }
.post-card h2 a:hover { color: #8a7600; }
.post-card .post-thumb img { width: 100%; height: auto; margin-bottom: 16px; }
.pagination-wrap { margin-top: 32px; }
.pagination-wrap .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-family: var(--font-head);
	font-weight: 600;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: var(--yellow); border-color: var(--yellow); }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-actions .btn-dark:hover { color: #fff; }
.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;
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); }

@media (max-width: 767px) {
	.page-banner { padding: 170px 0 50px; }
	.page-section { padding: 55px 0; }
}
