/*!
Theme Name: Somerset Tree & Landscaping
Author: Somerset Tree and Landscaping Ltd
Description: Custom theme for Somerset Tree and Landscaping Ltd, converted from the original static HTML site. Content is managed with ACF Pro (Site Settings + Home page fields), the Services, Projects and Testimonials post types, and Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
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: somerset-tree-landscaping
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 floating header ---------- */
.admin-bar .site-header { top: 81px; }
.admin-bar .site-header.scrolled { top: 40px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 95px; }
	.admin-bar .site-header.scrolled { top: 54px; }
}
@media (max-width: 767.98px) {
	.admin-bar .site-header { top: 88px; }
	.admin-bar .site-header.scrolled { top: 51px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header.scrolled { top: 5px; }
}

/* ---------- Section backgrounds editable in ACF (image set inline as --stl-bg-image) ---------- */
.hero { background-image: linear-gradient(90deg, #0b281eea 0%, #0b281eb0 38%, #0b281e08 75%), var(--stl-bg-image, none); }
.why-section { background-image: linear-gradient(90deg, #0b2c1fe8, #102e23ec), var(--stl-bg-image, none); background-color: var(--green); }
.contact-section { background-image: linear-gradient(90deg, #0a2a20e8, #0c3024a8), var(--stl-bg-image, none); background-color: var(--green); }

/* Project category names are stored in normal case; the design shows them in capitals. */
.project-overlay span { text-transform: uppercase; }

/* ---------- Contact Form 7 inside the hero quote card ---------- */
.hero-form-column > .wpcf7 { display: contents; }
.quote-form .wpcf7-form-control-wrap { display: block; }
.quote-form .wpcf7-not-valid { border-color: #c0392b !important; }
.quote-form .wpcf7-not-valid-tip { font-size: 11px; color: #c0392b; margin-top: 4px; }
.wpcf7 form.quote-form .wpcf7-response-output {
	font-size: 12px;
	margin: 14px 0 0;
	padding: 9px 12px;
	border-width: 1px;
	border-radius: 7px;
}
.quote-form .wpcf7-spinner { display: none; }
.quote-form.submitting button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Navigation dropdowns (sub-menu items) ---------- */
.navbar-nav .dropdown-menu { min-width: 220px; }

/* ---------- Inner pages (singular.php, index.php, 404.php) ---------- */
.page-banner {
	background: linear-gradient(90deg, #0a2a20f2, #0c3024d9), var(--green);
	color: #fff;
	padding: 210px 0 80px;
}
.page-banner h1 {
	font-size: clamp(2.4rem, 4vw, 4rem);
	line-height: 1.1;
	letter-spacing: -.035em;
	margin: 0;
}
.page-banner p { color: #dbe5dd; margin: 16px 0 0; max-width: 680px; }
.entry-content { max-width: 860px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.entry-content h2,
.entry-content h3 { margin: 1.6em 0 .6em; }
.entry-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.entry-content a:not(.btn) { color: #ae8d4e; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-list { display: grid; gap: 22px; max-width: 860px; }
.post-card { background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 15px 40px #1433220f; }
.post-card h2 { font-size: 1.6rem; margin: 0 0 8px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--gold); }
.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 #d5d9d1;
	border-radius: 50%;
	color: var(--green);
	font-weight: 600;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: var(--green); color: #fff; }
.btn-outline-green { border-color: var(--green); color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
@media (max-width: 767.98px) {
	.page-banner { padding: 170px 0 60px; }
}

/* ---------- WordPress core classes ---------- */
.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;
}
.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: .875rem; color: var(--muted); }
