/*!
Theme Name: StoneCraft Driveways
Theme URI: https://stonecraft-driveways-bristol.co.uk/
Author: StoneCraft Construction
Description: Custom theme for StoneCraft Construction (Bristol driveway specialists), converted from the original static HTML site. Content is managed with ACF Pro (Site Settings + Home page fields), 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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stonecraft-driveways
Tags: one-column, custom-menu, featured-images, translation-ready

The front-end design lives in 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.sticky-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky-top { top: 0; } }

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

/* ---------- Contact Form 7 (hero quote form) ---------- */
.hero-form .wpcf7-form-control-wrap { display: block; }
.hero-form .wpcf7-not-valid-tip { font-size: 11px; margin-top: 4px; }
.hero-form .wpcf7 form .wpcf7-response-output {
	display: block !important; /* Keep the original's status line space in every form state. */
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	color: #5a5100;
}
.hero-form .wpcf7 form.invalid .wpcf7-response-output,
.hero-form .wpcf7 form.unaccepted .wpcf7-response-output,
.hero-form .wpcf7 form.failed .wpcf7-response-output,
.hero-form .wpcf7 form.spam .wpcf7-response-output { color: #b00020; }
.hero-form .wpcf7-spinner { position: absolute; margin: 18px 0 0 -40px; background-color: #111; }

/* ---------- Inner pages (legal pages, blog) ---------- */
.page-main { max-width: 850px; margin: 10vh auto; padding: 30px; }
.page-main h1 { margin-top: 40px; }
.page-main .entry-content img { max-width: 100%; height: auto; }
.page-main .post-list article + article { margin-top: 40px; padding-top: 40px; border-top: 1px solid #eee; }
.page-main .post-list h2 { font-size: 30px; }
.page-main .post-list h2 a,
.page-main .back-link { color: #111; }
.page-main .back-link:hover,
.page-main .post-list h2 a:hover { color: #b49b00; }
.page-main .entry-meta { font-size: 12px; color: #999; }
.page-main .nav-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.page-main .nav-links a { color: #111; font-weight: 600; }

/* Accessibility helper used by WordPress core markup. */
.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: 6px;
	top: 6px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--yellow);
	color: #111;
}
