/*!
Theme Name: StoneCraft Construction
Theme URI: http://localhost/stone-craft-construction/
Author: StoneCraft Construction
Description: Custom theme for StoneCraft Construction (driveways & 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, and Contact Form 7.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: stone-craft-construction
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. */
.navbar-brand img,
.site-footer img { height: auto; }

/* ---------- Contact Form 7 inside the quote panel ---------- */
.quote-panel .wpcf7 { margin: 0; }
/* CF7 wraps each control in a positioned <span>; keep the field icons on top and centred on the input. */
.quote-form .field-wrap i { z-index: 1; top: 22px; }
.quote-form .wpcf7-form-control-wrap { display: block; }
/* In the original, the select and textarea were direct grid items (block-level); keep them block inside CF7's wrapper. */
.quote-form .wpcf7-form-control-wrap > select,
.quote-form .wpcf7-form-control-wrap > textarea { display: block; }
.quote-form .wpcf7-not-valid-tip { font-size: 0.75rem; color: #ff8a80; margin-top: 4px; }
.quote-form .wpcf7-not-valid { border-color: #ff8a80 !important; }
.quote-form .wpcf7-spinner { display: none; }
.quote-form.submitting .btn { opacity: .7; pointer-events: none; }
.quote-panel .wpcf7 form .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 10px 12px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #fff;
	border-radius: 3px;
}
.quote-panel .wpcf7 form.sent .wpcf7-response-output { border-color: var(--yellow); }

/* ---------- Inner pages (privacy policy, blog, search, 404) ---------- */
.page-banner {
	background: #10181d;
	color: #fff;
	padding: 80px 0 70px;
}
.page-banner h1 {
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1.12;
	margin: 0;
}
.page-banner h1 em,
.page-banner h1 span { color: var(--yellow); font-style: normal; }
.page-banner p:not(.eyebrow) {
	color: #c6cccf;
	font-size: 15px;
	line-height: 1.8;
	max-width: 640px;
	margin: 16px 0 0;
}
.entry-content {
	max-width: 860px;
	font-size: 16px;
	line-height: 1.8;
	color: #3b4246;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.6em 0 .6em; color: var(--ink); }
.entry-content a:not(.btn) { color: #b48c00; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-meta { font-size: 0.875rem; color: var(--muted); }
.entry-meta a { color: inherit; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: 0.8125rem; color: var(--muted); }
.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}
.post-card {
	background: #fff;
	border: 1px solid #f1f1f1;
	box-shadow: 0 10px 35px #1212120b;
	padding: 0 0 24px;
}
.post-card .post-thumb { display: block; height: 210px; overflow: hidden; margin-bottom: 18px; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 20px; line-height: 1.3; margin: 18px 22px 8px; }
.post-card .post-thumb + h2 { margin-top: 0; }
.post-card h2 a { color: var(--ink); }
.post-card .entry-meta,
.post-card .entry-content,
.post-card .read-more { margin-left: 22px; margin-right: 22px; }
.post-card .entry-content { font-size: 0.875rem; }
.read-more { display: inline-block; font-size: 0.875rem; font-weight: 800; color: #111; }
.read-more i { color: #b38d00; margin-left: 7px; }
.pagination-wrap { margin-top: 40px; }
.pagination-wrap .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination-wrap .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-grid;
	place-items: center;
	border: 1px solid #d6dadd;
	color: var(--ink);
	font-weight: 700;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: var(--yellow); border-color: var(--yellow); }
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation a { color: var(--ink); font-weight: 700; }
.comments-area { max-width: 860px; margin-top: 50px; }
.comments-area input:not([type=submit]):not([type=checkbox]),
.comments-area textarea { width: 100%; border: 1px solid #d6dadd; border-radius: 3px; padding: 11px 13px; }
.comments-area .submit { background: var(--yellow); border: 1px solid var(--yellow); padding: 12px 22px; font-weight: 800; border-radius: 3px; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin-top: 16px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { width: 100%; border: 1px solid #d6dadd; border-radius: 3px; padding: 11px 13px; }
.search-form .search-submit { background: var(--yellow); border: 1px solid var(--yellow); padding: 0 18px; font-weight: 800; border-radius: 3px; }

/* 404 uses the original .status-page design between the header and footer. */
.error404 .status-page { min-height: 70vh; }
.status-page .btn { margin-top: 12px; }

/* Screen reader text (WordPress core class) */
.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;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
}
