/*
Theme Name: Shield Pest Control
Theme URI: https://fiftysite.com/
Author: Fifty Site
Description: Calm, trustworthy block theme for a Melbourne pest control business, with a call button that stays on screen. Sample site by Fifty Site.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shield-pest
*/
:root {
	--sp-radius: 20px;
	--sp-pill: 999px;
	--sp-on-primary: #FFFFFF;
	--sp-field: #C9D8D0;
	--sp-cta-btn-bg: #FFFFFF;
	--sp-cta-btn-ink: #0A4634;
	--sp-cta-btn-hover: #DCEFE5;
	--sp-footer-link: #C5D6CD;
	--fq-field: #C9D8D0;
	--fq-tint: #EAF5EF;
	--fq-radius: 12px;
}

/* Layout helpers used by the patterns. Colours, fonts and sizes live in theme.json. */

.sp-header { border-bottom: 1px solid var(--wp--preset--color--line); }

.sp-eyebrow {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--tint-ink);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--sp-pill);
}

.sp-lead { color: var(--wp--preset--color--muted); font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; }
.wp-block-group > .sp-lead { margin-left: 0 !important; margin-right: auto !important; }

.sp-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.9375rem; }
.sp-checks li { display: flex; align-items: center; gap: 0.5rem; }
.sp-checks li::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5E46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.sp-card {
	border-radius: var(--sp-radius);
	padding: 2.25rem;
	height: 100%;
	box-sizing: border-box;
}
.sp-card ul { padding-left: 1.25rem; }

.sp-icon {
	width: 56px; height: 56px;
	border-radius: calc(var(--sp-radius) * 0.66);
	background: #fff;
	display: flex; align-items: center; justify-content: center;
}

.sp-step-num {
	width: 48px; height: 48px;
	border-radius: var(--sp-pill);
	background: var(--wp--preset--color--primary);
	color: var(--sp-on-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	margin: 0;
}

.sp-panel { border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--sp-radius) * 1.15); padding: 3rem; }

.sp-review {
	background: #fff;
	border-radius: calc(var(--sp-radius) * 0.85);
	padding: 1.75rem;
	height: 100%;
	box-sizing: border-box;
}
.sp-tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--tint-ink);
	background: var(--wp--preset--color--tint);
	padding: 0.25rem 0.625rem;
	border-radius: var(--sp-pill);
}

.sp-chips .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--sp-field);
	font-weight: 500;
	padding: 0.65rem 1.25rem;
}
.sp-chips .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-dark); background: transparent; }

.sp-cta { border-radius: calc(var(--sp-radius) * 1.3); }
.sp-cta .wp-block-button__link { background: var(--sp-cta-btn-bg); color: var(--sp-cta-btn-ink); font-weight: 700; }
.sp-cta .wp-block-button__link:hover { background: var(--sp-cta-btn-hover); color: var(--sp-cta-btn-ink); }
.sp-cta a:not(.wp-block-button__link) { color: inherit; }

.sp-footer a { color: var(--sp-footer-link); }
.sp-footer a:hover, .sp-footer a:focus-visible { color: #fff; }
.sp-sample-note { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: 0.8125rem; opacity: 0.85; }

.is-style-outline > .wp-block-button__link { border: 1.5px solid var(--sp-field); color: var(--wp--preset--color--ink); background: #fff; }
.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); background: #fff; color: var(--wp--preset--color--ink); }

.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* Links: one hover style everywhere. Underline, 2px. */
a:where(:not(.wp-element-button)) { text-decoration: none; }
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.wp-block-site-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.wp-element-button, .wp-block-button__link { text-decoration: none !important; }

@media (max-width: 781px) {
	.sp-panel { padding: 1.75rem; }
}

/* Photos */
.sp-hero-img { margin: 0; }
.sp-hero-img img { width: 100%; height: 460px; object-fit: cover; border-radius: calc(var(--sp-radius) * 1.15); display: block; }
.sp-photo-inline img { width: 100%; max-height: 420px; object-fit: cover; border-radius: calc(var(--sp-radius) * 0.85); display: block; }
.sp-card-img img { width: 100%; height: 200px; object-fit: cover; border-radius: calc(var(--sp-radius) * 0.7); display: block; }
.sp-card-img { margin: 0 0 0.5rem; }
.wp-site-blocks .sp-header a[href^="tel:"]:not(.wp-element-button) { color: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .sp-hero-img img { height: 280px; } }

/* Intro paragraph on standard pages: full content width */
.wp-block-post-content > .sp-lead { max-width: var(--wp--style--global--content-size); }

/* Standard pages: same 1200px frame as the hub pages; text keeps a readable line length, aligned to the left edge */
.sp-page .wp-block-post-content > :is(p, ul, ol, h2, h3, .wp-block-details, .wp-block-buttons, .fq-form, .fq-done, .fq-error, .sp-note) { max-width: 800px; margin-left: 0 !important; }
.sp-page .wp-block-post-content > .sp-photo-inline img { max-height: 460px; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.9rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Placeholder note for things the owner must supply */
.sp-note { background: var(--wp--preset--color--soft); border-left: 4px solid var(--wp--preset--color--primary); padding: 0.9rem 1.1rem; border-radius: 0 calc(var(--sp-radius) * 0.5) calc(var(--sp-radius) * 0.5) 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* ---- Shield Pest Control ---- */

/* Header call link */
.sp-header .sp-head-call a { color: var(--wp--preset--color--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.sp-header .sp-head-call svg { color: #E0592A; }

/* Call button that stays on screen */
.sp-callbar { position: fixed; z-index: 9999; right: 1.25rem; bottom: 1.25rem; display: flex; gap: 0.5rem; }
.sp-callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0 1.4rem; border-radius: 999px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1rem; box-shadow: 0 8px 24px rgba(11, 42, 32, 0.25); }
.sp-callbar-call { background: #E0592A; color: #fff !important; }
.sp-callbar-call:hover { background: #C94A1E; }
.sp-callbar-book { display: none !important; }
@media (max-width: 781px) {
	.sp-callbar { left: 0; right: 0; bottom: 0; gap: 0; padding: 0.6rem; padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -6px 18px rgba(11, 42, 32, 0.1); }
	.sp-callbar a { flex: 1; box-shadow: none; min-height: 50px; padding: 0 0.75rem; }
	.sp-callbar-book { display: inline-flex !important; background: var(--wp--preset--color--primary); color: #fff !important; margin-left: 0.5rem; }
	.sp-callbar-num { display: none; }
	body { padding-bottom: 76px; }
	.sp-header > .wp-block-group > .wp-block-group:last-child { display: none; }
}
@media (min-width: 782px) and (max-width: 1100px) { .sp-callbar-num { display: none; } }

/* Cards with photos */
.sp-card { border: 1px solid var(--wp--preset--color--line); }
.has-base-background-color.sp-card { border-color: var(--wp--preset--color--line); }
