/*
Theme Name: Handyman Dubai AE
Theme URI: https://handymandubai.ae/
Author: Handyman Dubai AE
Description: Fast, secure block theme for Handyman Dubai AE. Toolbox and workshop design in safety yellow and black. Every page, section and text is editable in the WordPress Site Editor. Includes lead forms with spam protection, a once-only popup, SEO fields and schema. Read CLAUDE.md before changing code.
Version: 1.5.7
Requires at least: 6.5
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: handyman-dubai-ae
*/

/* =========================================================
   Global
   Colours, fonts and sizes live in theme.json.
   This file only holds small helper classes used by blocks
   (added in the editor under Block > Advanced > CSS class).
   ========================================================= */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.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; position: fixed !important; top: 8px; left: 8px; z-index: 100000; background: #000; color: #FFC400; padding: 12px 18px; font-weight: 700; }
:focus-visible { outline: 3px solid #1F5FD6; outline-offset: 3px; }
p, li { max-width: 72ch; }
.has-text-align-center, .has-text-align-center p { margin-left: auto; margin-right: auto; }

/* Button variants: add class in editor */
.wp-block-button.is-style-yellow .wp-block-button__link,
.hd-btn-yellow .wp-block-button__link { background: #FFC400; color: #000; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border: 3px solid currentColor; padding: 14px 23px; }
.wp-block-button .wp-block-button__link { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

/* ---------- Header ---------- */
.hd-header { position: relative; z-index: 50; }
.hd-header .wp-block-site-logo img, .hd-header .hd-logo img { height: 56px; width: auto; }
.hd-header .wp-block-navigation a { text-decoration: none; padding: 10px 2px; border-bottom: 4px solid transparent; }
.hd-header .wp-block-navigation .current-menu-item > a,
.hd-header .wp-block-navigation a[aria-current="page"] { border-bottom-color: #000; }
.hd-header .wp-block-navigation__responsive-container.is-menu-open { background: #FFC400; color: #000; padding: 24px; }
.hd-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 26px; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; }
.hd-header-phone a { text-decoration: none; font-weight: 700; white-space: nowrap; }
@media (max-width: 781px) {
	.hd-header-phone { display: none; }
	.hd-header .wp-block-site-logo img, .hd-header .hd-logo img { height: 44px; }
	.hd-header .wp-block-button__link { font-size: 17px; padding: 12px 14px; min-height: 46px; }
}

/* Hazard stripes */
.hd-hazard { height: 12px; background: repeating-linear-gradient(-45deg, #FFC400 0 16px, #000 16px 32px); margin: 0 !important; }
.hd-hazard-frame { padding: 14px !important; border-radius: 6px; background: repeating-linear-gradient(-45deg, #FFC400 0 22px, #000 22px 44px); }

/* ---------- Sections ---------- */
.hd-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.hd-section-tight { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.hd-hero { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.hd-hero h1 { margin-top: 12px; }
.hd-hero .hd-lead { font-size: var(--wp--preset--font-size--large); font-weight: 500; line-height: 1.5; }
.hd-dark { color: #fff; }
.hd-dark h1, .hd-dark h2, .hd-dark h3, .hd-dark h4 { color: #FFC400; }
.hd-dark a:not(.wp-block-button__link) { color: #fff; }
.hd-dark p { color: #E2E0DA; }
.hd-pegboard { background-color: #2B2A27; background-image: radial-gradient(circle, #1E1D1B 2.6px, rgba(30,29,27,0) 3.2px); background-size: 28px 28px; color: #fff; }
.hd-pegboard h2, .hd-pegboard h3 { color: #FFC400; }

/* Trust strip */
.hd-trust { list-style: none; padding: 20px 0 0 !important; margin: 28px 0 0; border-top: 3px solid #000; display: flex; flex-wrap: wrap; gap: 12px 30px; font-weight: 700; font-size: 17px; }
.hd-trust li { display: flex; align-items: center; gap: 9px; margin: 0; }
.hd-trust li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 3px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC400' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hd-dark .hd-trust { border-top-color: #FFC400; }

/* Check list */
.hd-checks { list-style: none; padding-left: 0 !important; }
.hd-checks li { position: relative; padding-left: 38px; margin: 0 0 12px; }
.hd-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 3px; background: #FFC400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* Price tag */
.hd-pricetag { display: inline-block !important; width: auto !important; padding: 8px 18px 8px 30px !important; background: #000; color: #FFC400 !important; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }

/* Cards */
.hd-card { background: #fff; border-radius: 4px; padding: 24px !important; border-bottom: 6px solid #000; height: 100%; box-sizing: border-box; }
.hd-card h3 { margin-top: 12px; }
.hd-card p { color: #3C3B37; font-size: 17px; }
.hd-card a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hd-card-top { background: #fff; border-radius: 4px; padding: 24px !important; border-top: 6px solid #FFC400; height: 100%; box-sizing: border-box; }
.hd-card-icon img { width: 64px !important; height: 64px !important; }
.hd-grid > .wp-block-column, .hd-grid > * { min-width: 0; }

/* Steps */
.hd-step { border-top: 6px solid #000; padding-top: 18px !important; }
.hd-step .hd-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 60px; line-height: 1; margin: 0; }
.hd-dark .hd-step { border-top-color: #FFC400; }

/* Reviews: taped notes */
.hd-note { position: relative; background: #fff; color: #000; padding: 30px 26px 24px !important; box-shadow: 0 16px 24px -18px rgba(0,0,0,.5); }
.hd-note::before { content: ""; position: absolute; top: -13px; left: 50%; margin-left: -48px; width: 96px; height: 26px; background: rgba(232,222,196,.92); transform: rotate(-2deg); }
.hd-note:nth-child(3n+1) { transform: rotate(-1.1deg); }
.hd-note:nth-child(3n+2) { transform: rotate(.9deg); }
.hd-note .hd-stars { color: #000; letter-spacing: 3px; font-size: 20px; margin: 0; }
.hd-note blockquote, .hd-note .wp-block-quote { border: 0; padding: 0; margin: 14px 0 0; font-size: 19px; }
.hd-note cite, .hd-note .hd-who { font-style: normal; font-weight: 700; font-size: 16px; }
.hd-rating { display: inline-flex !important; align-items: center; gap: 14px; background: #000; color: #fff; padding: 12px 20px !important; border-radius: 4px; }
.hd-rating strong { font-family: var(--wp--preset--font-family--heading); font-size: 48px; color: #FFC400; line-height: .9; }

/* Area chips */
.hd-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hd-chips li { margin: 0; }
.hd-chips a { display: inline-block; background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 13px; border-radius: 3px; }
.hd-chips a:hover { background: #2B2A27; color: #FFC400; }
.hd-dark .hd-chips a { background: transparent; border: 1px solid #5A5852; }

/* Urgent band */
.hd-band { position: relative; }
.hd-band::before, .hd-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; background: repeating-linear-gradient(-45deg, #FFC400 0 16px, #000 16px 32px); }
.hd-band::before { left: 0; } .hd-band::after { right: 0; }
@media (max-width: 781px) { .hd-band::before, .hd-band::after { width: 16px; } }

/* Stamp */
.hd-stamp { display: inline-block; transform: rotate(-8deg); border: 4px solid #000; background: #fff; padding: 6px 16px !important; font-family: var(--wp--preset--font-family--stencil); font-size: 28px; line-height: 1.1; }

/* FAQ (core Details block) */
.hd-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(21px, 2vw, 26px); text-transform: uppercase; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hd-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.hd-faq .wp-block-details summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 3px; background: #FFC400; color: #000; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.hd-faq .wp-block-details[open] summary::after { content: "\2212"; background: #000; color: #FFC400; }
.hd-faq .wp-block-details > :not(summary) { margin-top: 12px; color: #3C3B37; }

/* Long-form content readability */
.hd-prose h2 { font-size: clamp(36px, 4vw, 56px); margin-top: 1.4em; }
.hd-prose h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.3em; }
.hd-prose p, .hd-prose li { color: #3C3B37; }
.hd-prose strong { color: #000; }
.hd-prose table { border-collapse: collapse; width: 100%; background: #fff; }
.hd-prose th, .hd-prose td { border: 1px solid #C9C6BE; padding: 10px 12px; text-align: left; vertical-align: top; }
.hd-prose th { background: #000; color: #FFC400; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; letter-spacing: .02em; }

/* Breadcrumbs */
.hd-breadcrumbs { font-size: 15px; font-weight: 600; margin: 0; }
.hd-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.hd-breadcrumbs li { margin: 0; }
.hd-breadcrumbs li + li::before { content: "/"; padding: 0 8px; }
.hd-breadcrumbs a { color: inherit; }

/* Footer */
.hd-footer a { color: #fff; text-decoration: none; }
.hd-footer a:hover { color: #FFC400; text-decoration: underline; }
.hd-footer h2, .hd-footer h3 { color: #FFC400; font-size: 20px; letter-spacing: .02em; }
.hd-footer ul { list-style: none; padding: 0 !important; margin: 0; }
.hd-footer li { padding: 5px 0; margin: 0; }
.hd-footer p { color: #C9C7C1; }
.hd-socials a { display: inline-block; border: 1px solid #45433F; border-radius: 3px; padding: 7px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Sticky mobile action bar */
.hd-mobile-bar { display: none; }
@media (max-width: 781px) {
	.hd-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #000; padding: 8px; gap: 8px; box-shadow: 0 -8px 20px rgba(0,0,0,.25); }
	.hd-mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 4px; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 19px; text-transform: uppercase; text-decoration: none; }
	.hd-mobile-bar .hd-mb-wa { background: #FFC400; color: #000; }
	.hd-mobile-bar .hd-mb-call { border: 2px solid #fff; color: #fff; }
	body { padding-bottom: 64px; }
}

/* ---------- Lead form ---------- */
.hd-form-card { background: #fff; color: #000; border-top: 10px solid #000; border-radius: 4px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 50px -34px rgba(0,0,0,.55); box-sizing: border-box; }
.hd-form-card .hd-form-title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; margin: 0; color: #000; }
.hd-form-card .hd-form-sub { margin: 6px 0 0; font-size: 15px; color: #5A5852; }
.hd-offer { margin: 14px 0 0; padding: 10px 12px; background: #FFF6D6; border-left: 5px solid #FFC400; font-size: 15px; font-weight: 600; }
.hd-offer span { display: block; }
.hd-form { margin-top: 16px; display: grid; gap: 12px; }
.hd-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hd-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.hd-form input, .hd-form select, .hd-form textarea { font: inherit; font-size: 16px; color: #000; background: #fff; border: 2px solid #000; border-radius: 4px; padding: 0 12px; min-height: 48px; box-sizing: border-box; width: 100%; }
.hd-form textarea { padding: 10px 12px; min-height: 90px; resize: vertical; line-height: 1.5; }
.hd-form [aria-invalid="true"] { border-color: #C62828; box-shadow: 0 0 0 2px #FDE2E2; }
.hd-form .hd-hint { font-size: 13px; font-weight: 500; color: #5A5852; }
.hd-form .hd-err { font-size: 14px; font-weight: 700; color: #C62828; min-height: 0; }
.hd-form .hd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hd-form button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border: 0; border-radius: 4px; background: #000; color: #FFC400; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 22px; text-transform: uppercase; cursor: pointer; width: 100%; }
.hd-form button[type="submit"]:hover { background: #2B2A27; }
.hd-form button[disabled] { opacity: .6; cursor: wait; }
.hd-form .hd-privacy { font-size: 13px; color: #5A5852; margin: 0; }
.hd-form-status { margin-top: 12px; font-weight: 700; }
.hd-form-status.is-ok { color: #1B5E20; }
.hd-form-status.is-error { color: #C62828; }
.hd-form-done { text-align: center; padding: 10px 0; }
.hd-form-done .wp-block-button__link { margin-top: 12px; }

/* ---------- Popup ---------- */
.hd-popup[hidden] { display: none !important; }
.hd-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hd-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.hd-popup-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; }
.hd-popup-close { position: absolute; top: 14px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 4px; background: #000; color: #FFC400; font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 600px) {
	.hd-popup { align-items: flex-end; padding: 0; }
	.hd-popup-box { max-width: none; max-height: 88vh; }
	.hd-popup-box .hd-form-card { border-radius: 10px 10px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
	.hd-popup:not([hidden]) .hd-popup-box { animation: hd-up .25s ease-out; }
	@keyframes hd-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Tape measure divider */
.hd-tape { height: 46px; background-color: #FFC400; background-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 50px), repeating-linear-gradient(90deg, #000 0 1.5px, transparent 1.5px 10px); background-size: 100% 24px, 100% 12px; background-repeat: no-repeat; margin: 0 !important; }

/* Utilities */
.hd-muted { color: #5A5852; }
.hd-upper { text-transform: uppercase; }
.hd-no-margin { margin: 0 !important; }
.hd-h-md { font-size: clamp(40px, 4.4vw, 64px) !important; }
@media (max-width: 781px) { .hd-hide-mobile { display: none !important; } }

/* Text styles used by imported pages */
.hd-band .hd-band-title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1; text-transform: uppercase; color: #FFC400; margin: 0; }
.hd-band p { margin: 6px 0 0; color: #E2E0DA; }
.hd-band > * { padding-left: 80px; padding-right: 80px; }
@media (max-width: 781px) { .hd-band > * { padding-left: 24px; padding-right: 24px; } }
.hd-stat { margin: 0; border-left: 6px solid #FFC400; padding-left: 16px; }
.hd-stat strong { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: #FFC400; }
.hd-stat + p { padding-left: 22px; margin-top: 6px; }
.hd-stencil { font-family: var(--wp--preset--font-family--stencil); font-size: 26px; line-height: 1.05; margin: 0; }
.hd-stencil strong { font-weight: 400; }
.hd-404 { margin: 0; text-align: center; }
.hd-404 strong { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(160px, 24vw, 340px); line-height: .8; display: inline-block; background: repeating-linear-gradient(-9deg, transparent 0 46%, #FFC400 46% 54%, transparent 54% 100%); padding: 0 12px; }
.hd-cta-inner { padding: clamp(28px, 5vw, 60px) !important; border-radius: 3px; }
.hd-cta-inner h2 { color: #FFC400; margin: 0; }
.hd-cta-inner p { color: #E2E0DA; font-size: 20px; }
.hd-note .hd-who { margin-top: 16px; font-weight: 400; color: #5A5852; }
.hd-note .hd-who strong { color: #000; }
.hd-rating a { color: #fff !important; text-decoration: none; font-weight: 700; }
.hd-rating a strong { font-family: var(--wp--preset--font-family--heading); font-size: 44px; color: #FFC400; margin-right: 8px; vertical-align: middle; }
hr.hd-hazard, .wp-block-spacer.hd-hazard { border: 0; }
.hd-header .wp-block-buttons .wp-block-button__link { padding: 12px 20px; font-size: 19px; min-height: 48px; }
.hd-header-phone { margin: 0; }
.hd-hero .wp-block-image img { width: 100%; height: auto; }
.hd-hero .wp-block-columns { gap: clamp(28px, 5vw, 72px); }
.hd-hero h1 { font-size: clamp(52px, 6.4vw, 100px); }
.hd-hero .hd-pricetag { margin-top: 20px; }
.hd-dark .hd-checks li, .hd-pegboard .hd-checks li { color: #E2E0DA; }
.hd-pegboard .hd-form-card p, .hd-pegboard .hd-form-card label { color: #000; }
.hd-card h3 a { text-decoration: none; }
.hd-card h3 a:hover { text-decoration: underline; }
.hd-footer .wp-block-columns { gap: 32px; }
.hd-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.hd-socials li { padding: 0 !important; }
.hd-main > .wp-block-post-content > *:first-child { margin-top: 0; }
.wp-block-post-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.hd-hazard-frame > .hd-cta-inner { margin: 0; }
@media (max-width: 781px) {
	.hd-hero h1 { font-size: clamp(48px, 13vw, 72px); }
	.hd-h-md { font-size: clamp(36px, 10vw, 52px) !important; }
}
.hd-prose { max-width: 820px; }
.hd-prose > * { max-width: 820px; }
/* Buttons on dark backgrounds turn yellow */
.hd-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.hd-pegboard .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.has-black-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #FFC400; color: #000; }
.hd-dark .wp-block-button.is-style-outline .wp-block-button__link,
.has-black-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }
.hd-form .hd-err:empty { display: none; }
/* Popup: compact so it never covers the whole phone screen */
.hd-popup .hd-form-title { font-size: 26px; padding-right: 52px; }
.hd-popup .hd-form-card { padding: 20px; }
.hd-popup .hd-form { gap: 10px; margin-top: 12px; }
@media (max-width: 600px) {
	.hd-popup .hd-form-row { grid-template-columns: 1fr 1fr; gap: 8px; }
	.hd-popup .hd-form label { font-size: 13px; }
	.hd-popup .hd-form input, .hd-popup .hd-form select { min-height: 44px; }
	.hd-popup .hd-offer { font-size: 13px; padding: 8px 10px; margin-top: 10px; }
	.hd-popup .hd-form-sub { display: none; }
	.hd-popup-box { max-height: 80vh; }
}
@media (max-width: 781px) {
	.hd-header .alignwide { flex-wrap: nowrap !important; gap: 12px; }
	.hd-header .hd-logo img { width: auto !important; height: 42px !important; }
	.hd-header .hd-logo { flex: none; }
}

/* ---------- Dark hero (cover block: tool-shop picture + 70% black) ---------- */
.hd-hero-cover { color: #fff; padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--50) !important; min-height: 0 !important; }
.hd-hero-cover .wp-block-cover__inner-container { width: 100%; max-width: 1280px; }
.hd-hero-cover h1, .hd-hero-cover h2 { color: #fff; }
.hd-hero-cover .hd-lead, .hd-hero-cover p { color: #E2E0DA; }
.hd-hero-cover .hd-breadcrumbs, .hd-hero-cover .hd-breadcrumbs a { color: #fff; }
.hd-hero-cover .hd-trust { border-top-color: #FFC400; color: #fff; }
.hd-hero-cover .hd-trust li::before { background-color: #FFC400; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.hd-hero-cover .hd-pricetag { background: #FFC400; color: #000 !important; }
.hd-hero-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #FFC400; color: #000; }
.hd-hero-cover .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.hd-hero-cover .hd-checks li { color: #fff; }
.hd-hero-cover .hd-form-card p, .hd-hero-cover .hd-form-card label { color: #000; }
.hd-hero-cover .hd-form-card .hd-form-sub, .hd-hero-cover .hd-form-card .hd-hint, .hd-hero-cover .hd-form-card .hd-privacy { color: #5A5852; }
.hd-hero-cover .hd-stamp { color: #000; }
.hd-hero-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, #FFC400 0 16px, #000 16px 32px); z-index: 2; }

/* Services / Areas list block */
.hd-post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.hd-post-cards .hd-card-icon-img { width: 64px; height: 64px; display: block; }
.hd-post-cards h3 { margin: 14px 0 0; }

/* Menu dropdowns */
.hd-header .wp-block-navigation__submenu-container { background: #fff !important; color: #000 !important; border: 0 !important; border-top: 4px solid #000 !important; box-shadow: 0 18px 30px -12px rgba(0,0,0,.35); padding: 8px 0 !important; min-width: 260px !important; }
.hd-header .wp-block-navigation__submenu-container a { padding: 8px 18px !important; border-bottom: 0 !important; font-weight: 600; font-size: 16px; }
.hd-header .wp-block-navigation__submenu-container a:hover { background: #FFC400; }
.hd-header .wp-block-navigation__submenu-container.hd-auto-hd_area, .hd-header .hd-auto-hd_area > .wp-block-navigation__submenu-container { display: grid !important; grid-template-columns: repeat(3, minmax(180px, 1fr)); width: 640px; }
.hd-header .hd-menu-all a { font-weight: 800 !important; text-decoration: underline !important; }
.hd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { display: block !important; width: auto; box-shadow: none; border-top: 0 !important; background: transparent !important; padding-left: 12px !important; }
.hd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-size: 17px; font-family: var(--wp--preset--font-family--body); text-transform: none; }
.hd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { overflow-y: auto; }
/* Mobile menu: yellow, left aligned, quick-contact bar hidden while open */
.hd-header .wp-block-navigation__responsive-container.is-menu-open { background-color: #FFC400 !important; }
.hd-header .is-menu-open .wp-block-navigation__responsive-container-content,
.hd-header .is-menu-open .wp-block-navigation__container,
.hd-header .is-menu-open .wp-block-navigation__submenu-container,
.hd-header .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; }
.hd-header .is-menu-open .wp-block-navigation__submenu-container a:hover { background: transparent; text-decoration: underline; }
.has-modal-open .hd-mobile-bar { display: none !important; }

/* ---------- Blog ---------- */
.hd-post-hero { position: relative; background-color: #1d1c1a; background-size: cover; background-position: center; color: #fff; padding: var(--wp--preset--spacing--50) clamp(16px, 4vw, 40px) !important; margin: 0 !important; }
.hd-post-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.hd-post-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, #FFC400 0 16px, #000 16px 32px); }
.hd-post-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.hd-post-hero .hd-breadcrumbs, .hd-post-hero .hd-breadcrumbs a { color: #fff; }
.hd-post-hero-title { color: #fff !important; font-size: clamp(42px, 5.4vw, 84px); margin: 14px 0 0; max-width: 18ch; }
.hd-post-hero .hd-lead { color: #E2E0DA; margin-top: 16px; max-width: 40em; }
.hd-post-hero .hd-post-meta { color: #E2E0DA; margin-top: 16px; }
.hd-post-cat, .hd-post-cat a { display: inline-block; margin: 0; background: #FFC400; color: #000 !important; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; text-decoration: none; }
.hd-post-cat a { padding: 0; background: none; }
.hd-post-meta { color: #5A5852; font-size: 14px; margin: 10px 0 0; }
.hd-post-grid, .hd-blog .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; list-style: none; padding: 0 !important; margin: 0; }
.hd-post-card { background: #fff; border-radius: 4px; overflow: hidden; border-bottom: 6px solid #000; height: 100%; display: flex; flex-direction: column; }
.hd-post-card-img, .hd-post-card .wp-block-post-featured-image { display: block; margin: 0 !important; aspect-ratio: 16 / 9; overflow: hidden; background: #2B2A27; position: relative; }
.hd-post-card-img img, .hd-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.hd-post-card:hover .hd-post-card-img img, .hd-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.hd-post-card-body { padding: 20px 22px 22px !important; }
.hd-post-card h3, .hd-post-card .wp-block-post-title { font-size: 26px !important; line-height: 1.05; margin: 12px 0 0; }
.hd-post-card h3 a, .hd-post-card .wp-block-post-title a { text-decoration: none; color: #000; }
.hd-post-card h3 a:hover, .hd-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.hd-post-card p, .hd-post-card .wp-block-post-excerpt { color: #3C3B37; font-size: 16px; margin: 10px 0 0; }
.hd-latest-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 28px; }
.hd-latest-head h2 { margin: 0; }
.hd-latest-all { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hd-latest-text { margin: -12px 0 24px; color: #3C3B37; }
.hd-blog .wp-block-query-pagination { margin-top: 36px; font-weight: 700; }
.hd-blog .wp-block-query-pagination a, .hd-blog .wp-block-query-pagination .current { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 2px solid #000; border-radius: 4px; text-decoration: none; padding: 0 12px; }
.hd-blog .wp-block-query-pagination .current { background: #000; color: #FFC400; }
.hd-prose-article { background: #fff; }
.hd-prose-article .wp-block-post-content { font-size: 19px; line-height: 1.75; }
.hd-prose-article .wp-block-post-content h2 { font-size: clamp(32px, 3.4vw, 46px); margin-top: 1.5em; }
.hd-prose-article .wp-block-post-content h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.3em; }
.hd-prose-article .wp-block-post-content p, .hd-prose-article .wp-block-post-content li { color: #3C3B37; }
.hd-prose-article .wp-block-post-content a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hd-prose-article .wp-block-post-content img { border-radius: 4px; }
.hd-pegboard .hd-lead-form-block { max-width: 640px; margin: 0 auto; }
.hd-post-grid, .hd-blog .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .hd-post-grid, .hd-blog .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .hd-post-grid, .hd-blog .wp-block-post-template { grid-template-columns: 1fr !important; } }
.hd-post-hero .hd-post-cat { margin-top: 18px; }

/* ---------- Home hero: 2-line heading + clickable tools pegboard ---------- */
.hd-hero-cover h1.hd-h1-home { font-size: clamp(44px, 5.2vw, 78px); line-height: .92; }
.hd-hero-cover h1.hd-h1-home mark { background: transparent; color: #FFC400; }
@media (min-width: 600px) { .hd-h1-home { white-space: nowrap; } }
.hd-pegboard-board { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px; border: 8px solid #FFC400; border-radius: 6px; background-color: #2B2A27; background-image: radial-gradient(circle, #141412 2.6px, rgba(20,20,18,0) 3.2px); background-size: 26px 26px; box-shadow: 0 40px 60px -36px rgba(0,0,0,.7); max-width: 560px; margin: 0 auto; }
.hd-tool { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 2px 10px; border-radius: 4px; text-decoration: none !important; color: #fff !important; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.hd-tool svg { height: 150px; width: auto; display: block; transition: transform .2s ease; transform-origin: 50% 0; }
.hd-tool span { background: #000; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 2px; border: 1px solid rgba(255,255,255,.18); white-space: nowrap; }
.hd-tool:hover, .hd-tool:focus-visible { background: rgba(255,255,255,.07); box-shadow: 0 0 0 2px #FFC400, 0 0 26px rgba(255,196,0,.28); }
.hd-tool:hover svg { transform: rotate(-4deg); }
.hd-tool:hover span, .hd-tool:focus-visible span { background: #FFC400; color: #000; }
.hd-tool-curtains { grid-column: 1 / -1; }
.hd-tool-curtains svg { height: auto; width: 100%; }
.hd-tool-tv { grid-column: span 2; }
.hd-tool-tv svg, .hd-tool-silicone svg, .hd-tool-locks svg { height: 120px; }
.hd-pegboard-hint { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; color: #C9C7C1 !important; font-size: 14px; }
@media (max-width: 600px) { .hd-tool svg { height: 96px; } .hd-tool-tv svg, .hd-tool-silicone svg, .hd-tool-locks svg { height: 80px; } .hd-tool span { font-size: 9px; letter-spacing: .06em; } .hd-pegboard-board { padding: 10px; gap: 4px; } }

/* ==========================================================================
   1.4.0: top bar and lighter heroes (more space, gradient overlay, fewer items)
   ========================================================================== */
.hd-topbar { font-size: 14px; font-weight: 500; line-height: 1.3; color: #E2E0DA; position: relative; z-index: 51; }
.hd-topbar > .alignwide { min-height: 36px; align-items: center; row-gap: 2px; }
.hd-topbar .hd-tb { margin: 0; display: inline-flex; align-items: center; gap: 7px; color: #E2E0DA; }
.hd-topbar .hd-tb a { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 0; }
.hd-topbar .hd-tb a:hover, .hd-topbar .hd-tb a:focus-visible { color: #FFC400; }
.hd-topbar .hd-tb::before { content: ""; flex: none; width: 15px; height: 15px; background: #FFC400; -webkit-mask: var(--hd-ico) center / contain no-repeat; mask: var(--hd-ico) center / contain no-repeat; }
.hd-tb-clock { --hd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.hd-tb-pin { --hd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.hd-tb-star { --hd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E"); }
.hd-tb-phone { --hd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.hd-tb-wa { --hd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.6 7.4L3 21l1.6-5.2A8.5 8.5 0 1 1 21 12z'/%3E%3C/svg%3E"); }
@media (max-width: 781px) { .hd-topbar { display: none; } }
.hd-header .wp-block-site-logo img, .hd-header .hd-logo img { height: 52px; }
.hd-header .wp-block-navigation a { border-bottom-width: 3px; }
.wp-block-spacer.hd-hazard-thin { height: 6px !important; background: repeating-linear-gradient(-45deg, #000 0 12px, #FFC400 12px 24px); }

/* Hero: room to breathe */
.hd-hero-cover { padding-top: clamp(64px, 7vw, 112px) !important; padding-bottom: clamp(64px, 7vw, 112px) !important; }
.hd-hero-cover::after { display: none; }
.hd-hero-cover .wp-block-cover__background { background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.74) 48%, rgba(0,0,0,.5) 100%) !important; opacity: 1 !important; }
@media (max-width: 781px) { .hd-hero-cover .wp-block-cover__background { background: rgba(0,0,0,.8) !important; } }
.hd-hero-cover .wp-block-columns { gap: 56px clamp(48px, 7vw, 112px); }
.hd-hero-cover h1 { font-size: clamp(38px, 4.4vw, 64px) !important; line-height: .96; margin-top: 18px; }
.hd-hero-cover h1:first-child { margin-top: 0; }
.hd-hero-cover h1.hd-h1-home { font-size: clamp(38px, 4.4vw, 66px) !important; line-height: .96; }
.hd-hero-cover .hd-lead { font-size: clamp(18px, 1.35vw, 20px); font-weight: 400; line-height: 1.6; max-width: 30em; color: #D8D6D0; margin-top: 24px; }
.hd-hero-cover .hd-breadcrumbs { font-size: 14px; font-weight: 500; }
.hd-hero-cover .hd-breadcrumbs, .hd-hero-cover .hd-breadcrumbs a { color: #C9C6BE; }
.hd-hero-cover .hd-breadcrumbs [aria-current] { color: #fff; }
.hd-hero-cover .hd-trust { border-top: 0; padding: 0 !important; margin-top: 28px; gap: 10px 28px; font-weight: 600; font-size: 16px; }
.hd-hero-cover .hd-trust li { gap: 8px; }
.hd-hero-cover .hd-trust li::before { width: 18px; height: 18px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat; }
.hd-hero-cover .wp-block-buttons { margin-top: 36px; }
.hd-hero-cover .wp-block-button__link { min-height: 54px; }
.hd-hero-cover .wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; border-color: rgba(255,255,255,.7); }
.hd-hero-cover p.hd-hero-call { margin-top: 32px; font-size: 16px; color: #D8D6D0; }
.hd-hero-cover .hd-hero-call a { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.hd-hero-cover .hd-hero-call a:hover { color: #FFC400; }

/* Hero form: smaller and quieter */
.hd-hero-cover .hd-form-card { border-top: 5px solid #FFC400; border-radius: 6px; padding: clamp(22px, 2.4vw, 30px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); max-width: 420px; margin-left: auto; }
.hd-hero-cover .hd-form-card .hd-form-title { font-size: 28px; }
.hd-hero-cover .hd-form label { font-size: 14px; font-weight: 600; color: #3C3B37; }
.hd-hero-cover .hd-form input, .hd-hero-cover .hd-form select, .hd-hero-cover .hd-form textarea { border-width: 1px; border-color: #8A877F; }
.hd-hero-cover .hd-form button[type="submit"] { min-height: 52px; font-size: 20px; }
.hd-form-compact .hd-form-row { grid-template-columns: 1fr; }
@media (max-width: 781px) { .hd-hero-cover .hd-form-card { margin-left: 0; max-width: none; } }

/* Home pegboard: thinner frame */
.hd-hero-cover .hd-pegboard-board { border-width: 3px; max-width: 520px; padding: 16px; }

/* 1.5.0: footer services in two columns, "not included" list */
.hd-footer ul.hd-footer-svc { columns: 2; column-gap: 24px; }
.hd-footer ul.hd-footer-svc li { break-inside: avoid; }
@media (max-width: 480px) { .hd-footer ul.hd-footer-svc { columns: 1; } }
ul.hd-crosses { list-style: none; padding-left: 0; }
ul.hd-crosses li { position: relative; padding-left: 30px; margin: 0 0 10px; }
ul.hd-crosses li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 18px no-repeat; }
.hd-hub-guide td:first-child { font-weight: 600; }

/* 1.5.1: Google map block */
.hd-map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 6px; background: #ECEBE7; }
.hd-map-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-weight: 600; }
.hd-map-editor { padding: 40px 24px; background: #ECEBE7; border: 2px dashed #C9C6BE; border-radius: 6px; text-align: center; }
@media (max-width: 781px) { .hd-map iframe { height: 320px; } }

/* 1.5.2: reviews widget (Trustindex etc.) in place of the review cards */
.hd-reviews-widget { margin-top: 32px; }

/* 1.5.3: job photos on service pages. Placeholder images are hidden on the
   live site (not in the editor); the whole section hides until one real
   photo replaces a placeholder. */
.hd-work .hd-work-grid figure { margin: 0; }
.hd-work .hd-work-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #2B2A27; }
body:not(.editor-styles-wrapper) .hd-work figure:has(img[src*="photo-placeholder"]) { display: none; }
body:not(.editor-styles-wrapper) .hd-work:not(:has(img:not([src*="photo-placeholder"]))) { display: none; }
.hd-work .hd-work-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important; }

/* 1.5.5: readable pegboard labels (min 12px) */
.hd-tool span { font-size: 13px; }
@media (max-width: 600px) {
	.hd-tool span { font-size: 12px; letter-spacing: .02em; white-space: normal; text-align: center; line-height: 1.2; padding: 4px 5px; }
}

/* 1.5.5: Featured image on service cards and in the service hero */
.hd-card.hd-card-has-photo { padding-top: 0 !important; overflow: hidden; }
.hd-card .hd-card-photo { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 -24px 18px; }
.hd-card.hd-card-has-photo .hd-card-icon, .hd-card.hd-card-has-photo .hd-card-icon-img { display: none; }
.hd-hero-photo .wp-block-cover__image-background { object-position: center; }
