/*!
Theme Name: Stonecraft Patios Bristol
Theme URI: https://stonecraft-patios-bristol.co.uk/
Author: Stonecraft Patios Bristol
Description: Custom theme for Stonecraft Patios 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: stonecraft-patios-bristol
Tags: one-column, custom-menu, featured-images, translation-ready

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

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

/* WordPress adds width/height attributes to images; keep the original aspect ratios. */
.brand img,
.footer-logo img { height: auto; }

/* ---------- Contact Form 7 inside the hero quote form ---------- */
.quote-form .wpcf7 form { margin: 0; }
.quote-form .wpcf7-form-control-wrap { display: block; }
/* The original form ended with an empty .form-note paragraph (9px top margin); keep that spacing. */
.quote-form .wpcf7 form::after { content: ""; display: block; margin-top: 9px; }
.quote-form .wpcf7-not-valid { border-color: #ff6b6b !important; }
.quote-form .wpcf7-not-valid-tip { font-size: 11px; color: #ff9b9b; margin: -6px 0 8px; }
.quote-form .wpcf7 form .wpcf7-response-output {
	margin: 9px 0 0;
	padding: 8px 10px;
	font-size: 11px;
	color: #ddd;
	border-width: 1px;
	border-radius: 3px;
}
.quote-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--yellow); }
.quote-form .wpcf7-spinner { display: none; }
.quote-form .wpcf7 form.submitting button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Active link on inner pages ---------- */
.mobile-menu a.active { color: var(--yellow); }

/* ---------- Inner pages (page.php, single.php, archive.php, 404.php) ---------- */
.page-banner {
	position: relative;
	background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.55)), var(--banner-bg, #101010) center/cover no-repeat;
	color: #fff;
	padding: 80px 0 70px;
}
.page-banner h1 {
	font-size: clamp(48px, 6vw, 90px);
	font-weight: 900;
	line-height: .95;
	text-transform: uppercase;
	margin: 0;
}
.page-banner h1 span { color: var(--yellow); }
.page-banner p:not(.eyebrow) { color: #ddd; margin: 16px 0 0; max-width: 640px; line-height: 1.7; }
.entry-content { max-width: 860px; font-size: 1rem; line-height: 1.8; color: var(--body); }
.entry-content h2,
.entry-content h3 { color: #111; margin: 1.6em 0 .6em; text-transform: uppercase; }
.entry-content h2 { font-size: 34px; }
.entry-content h3 { font-size: 26px; }
.entry-content a:not(.btn-yellow) { color: #111; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-meta { font-size: 0.875rem; color: #888; margin-bottom: 18px; }
.post-list { display: grid; gap: 22px; max-width: 860px; }
.post-card { border: 1px solid #e6e6e6; border-top: 3px solid var(--yellow); padding: 26px; }
.post-card h2 { font-size: 30px; margin: 0 0 8px; text-transform: uppercase; }
.post-card h2 a:hover { color: #c9a900; }
.post-card .post-thumb img { width: 100%; height: auto; margin-bottom: 16px; }
.post-card .text-link { font-weight: 800; text-transform: uppercase; font-size: 0.875rem; }
.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 #ddd;
	font-weight: 800;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: var(--yellow); border-color: var(--yellow); color: #111; }
.post-navigation { margin-top: 40px; max-width: 860px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; font-weight: 800; }
.page-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-outline-dark-sc {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 49px;
	padding: 13px 21px;
	border: 2px solid #111;
	border-radius: 4px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
}
.btn-outline-dark-sc:hover { background: #111; color: #fff; }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 12px 14px; }
.search-form .search-submit { background: var(--yellow); border: 0; border-radius: 3px; padding: 0 20px; font-weight: 800; text-transform: uppercase; }
.comments-area { max-width: 860px; margin-top: 50px; }

/* ---------- 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 { position: fixed; top: 8px; left: 8px; z-index: 2000; width: auto; height: auto; clip: auto; clip-path: none; background: #fff; color: #111; padding: 10px 16px; }

/* ---------- 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: #888; }
