/*
Theme Name: Handyman Pro
Theme URI: https://example.com/handyman-pro
Description: Website for a handyman company that runs on the Handyman App plugin. Services, team, reviews, business details and online booking come straight from the app. Navy and orange, light and dark mode.
Version: 1.2.1
Requires at least: 6.2
Requires PHP: 7.4
Author: Your company
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: handyman-pro
Tags: business, one-column, custom-logo, custom-menu
*/

/* Tokens. --navy and --orange are set from Handyman App's colors (inline). */
:root {
	--navy: #13294b;
	--orange: #ea6c0a;
	--orange-ink: #b84f00;
	--ink: #0f1d33;
	--muted: #5b6779;
	--paper: #ffffff;
	--mist: #eef2f7;
	--line: #d6dde7;
	--card: #ffffff;
	--hero-ink: #ffffff;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1160px;
	--r: 6px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--ink: #e6edf6;
		--muted: #9fb0c5;
		--paper: #0b1626;
		--mist: #0f1e33;
		--line: #243650;
		--card: #12233b;
		--orange-ink: #ff9a4d;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.hp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hp-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.hp-skip:focus { left: 8px; }
.hp-muted { color: var(--muted); }
.hp-small { font-size: .9rem; }
.hp-plain { list-style: none; margin: 0; padding: 0; }
.hp-ic { flex: 0 0 auto; vertical-align: middle; }

/* Buttons: 20px bold condensed so white-on-orange passes as large text. */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 24px; border-radius: var(--r); border: 2px solid transparent; font: 700 1.25rem/1 var(--display); text-decoration: none; cursor: pointer; letter-spacing: .01em; }
.hp-btn-sm { min-height: 42px; padding: 8px 18px; font-size: 1.15rem; }
.hp-btn-block { width: 100%; }
.hp-btn-orange { background: var(--orange); color: #fff; }
.hp-btn-orange:hover { background: var(--orange-ink); }
.hp-btn-navy { background: var(--navy); color: #fff; }
.hp-btn-navy:hover { filter: brightness(1.2); }
.hp-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hp-btn-line { border-color: var(--line); color: var(--ink); background: var(--card); }
.hp-btn-line:hover { border-color: var(--ink); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-link { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .hp-btn-navy { background: #23426f; } }

/* Header */
.hp-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .hp-header { top: 32px; }
.hp-header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.hp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.hp-logo { width: auto; max-height: 48px; border-radius: 4px; }
.hp-brand-name { font: 700 1.5rem/1 var(--display); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-color-scheme: dark) { .hp-brand-name { color: var(--ink); } }
.hp-nav { display: flex; align-items: center; gap: 28px; }
.hp-menu { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.hp-menu a { text-decoration: none; font-weight: 500; }
.hp-menu a:hover, .hp-menu .current-menu-item > a, .hp-menu .current_page_item > a { color: var(--orange-ink); }
.hp-nav-actions { display: flex; align-items: center; gap: 16px; }
.hp-account { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hp-account:hover { color: var(--orange-ink); }
.hp-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hp-menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); cursor: pointer; }
.hp-burger, .hp-burger::before, .hp-burger::after { display: block; width: 20px; height: 2px; margin: 0 auto; background: currentColor; position: relative; transition: transform .2s; }
.hp-burger::before, .hp-burger::after { content: ''; position: absolute; left: 0; }
.hp-burger::before { top: -6px; }
.hp-burger::after { top: 6px; }
.hp-nav-open .hp-burger { background: transparent; }
.hp-nav-open .hp-burger::before { transform: translateY(6px) rotate(45deg); }
.hp-nav-open .hp-burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
	.hp-menu-btn { display: block; }
	.hp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
	.hp-nav-open .hp-nav { display: flex; }
	.hp-menu { flex-direction: column; gap: 0; }
	.hp-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
	.hp-nav-actions { flex-direction: column; align-items: stretch; padding-top: 16px; }
	.hp-phone, .hp-account { justify-content: center; min-height: 48px; }
}
@media (max-width: 782px) { .admin-bar .hp-header { top: 0; } }

/* Hero */
.hp-hero { position: relative; background: var(--navy); color: var(--hero-ink); padding: 72px 0 96px; overflow: hidden; }
.hp-hero.has-photo { background: linear-gradient(90deg, var(--navy) 35%, rgba(19, 41, 75, .72)), var(--hero) center / cover no-repeat var(--navy); }
.hp-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 56px; align-items: center; }
.hp-hero h1 { color: #fff; max-width: 17ch; }
.hp-hero-text { font-size: 1.25rem; max-width: 34em; color: rgba(255, 255, 255, .86); }
.hp-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; color: rgba(255, 255, 255, .9); }
.hp-facts li { display: flex; align-items: center; gap: 8px; }
.hp-facts .hp-ic { color: var(--orange); }

/* The ticket: a work-order slip pinned to the hero. */
.hp-ticket { --card: #fff; --ink: #0f1d33; --muted: #5b6779; --mist: #eef2f7; --line: #d6dde7; --orange-ink: #b84f00; position: relative; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); border-top: 8px solid var(--orange); }
.hp-ticket-top { padding: 26px 28px 22px; }
.hp-ticket h2 { font-size: 2rem; margin-bottom: 14px; }
.hp-ticket label { display: block; font-weight: 600; margin-bottom: 6px; }
.hp-ticket select { width: 100%; margin-bottom: 14px; }
.hp-ticket-note { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }
.hp-ticket-stub { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 28px 22px; background: var(--mist); border-radius: 0 0 var(--r) var(--r); border-top: 2px dashed var(--line); }
.hp-ticket-stub::before, .hp-ticket-stub::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); }
.hp-ticket-stub::before { left: -10px; }
.hp-ticket-stub::after { right: -10px; }
.hp-hero.has-photo .hp-ticket-stub::before, .hp-hero.has-photo .hp-ticket-stub::after { background: rgba(19, 41, 75, .9); }
.hp-ticket-stub span { color: var(--muted); font-size: .95rem; }
.hp-ticket-stub a { display: inline-flex; align-items: center; gap: 8px; font: 700 1.6rem/1.1 var(--display); text-decoration: none; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
	.hp-ticket { animation: hp-pin .6s cubic-bezier(.2, .8, .3, 1.2) both .15s; }
	@keyframes hp-pin { from { opacity: 0; transform: translateY(18px) rotate(2deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
}

/* Tape-measure edge under the hero. */
.hp-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background:
	repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 60px) bottom left / 100% 22px no-repeat,
	repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 12px) bottom left / 100% 10px no-repeat;
	opacity: .9; }

/* Forms */
input[type=text], input[type=tel], input[type=email], textarea, select { width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: inherit; font-size: 1.05rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234, 108, 10, .25); }
.hp-form { display: grid; gap: 16px; max-width: 620px; }
.hp-form label { display: grid; gap: 6px; font-weight: 600; }
.hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-form .hp-btn { justify-self: start; }
.hp-hp { position: absolute; left: -9999px; }
.hp-msg { padding: 14px 16px; border-radius: var(--r); font-weight: 500; }
.hp-msg-ok { background: #dcfce7; color: #14532d; }
.hp-msg-err { background: #fee2e2; color: #7f1d1d; }

/* Sections */
.hp-section { padding: 80px 0; }
.hp-alt { background: var(--mist); }
.hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hp-head h2 { margin: 0; }
.hp-pagehead { background: var(--mist); padding: 64px 0 52px; border-bottom: 4px solid var(--orange); }
.hp-pagehead h1 { color: var(--navy); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .hp-pagehead h1 { color: var(--ink); } }
.hp-lead { font-size: 1.25rem; color: var(--muted); max-width: 40em; }
.hp-pagehead .hp-actions { margin-top: 24px; }
.hp-crumbs { margin-bottom: 14px; font-weight: 600; }
.hp-crumbs a { color: var(--orange-ink); }
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.hp-split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.hp-prose { max-width: 68ch; }
.hp-prose > :last-child { margin-bottom: 0; }

/* Services */
.hp-svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-bottom: 1px solid var(--line); }
.hp-svc-list li { border-top: 1px solid var(--line); }
.hp-svc-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 22px 0; text-decoration: none; }
.hp-svc-list strong { display: block; font: 700 1.45rem/1.15 var(--display); margin-bottom: 4px; }
.hp-svc-list a:hover strong { color: var(--orange-ink); }
.hp-svc-body span { color: var(--muted); }
.hp-svc-price { font-size: .92rem; font-weight: 600; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.hp-svc-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: rgba(234, 108, 10, .12); color: var(--orange-ink); }
.hp-svc-ic-lg { width: 68px; height: 68px; }
.hp-svc-title { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.hp-svc-title h1 { margin: 0; }
.hp-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 56px; }
.hp-svc-block h2 { font-size: 1.7rem; }
.hp-svc-block h2 a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hp-svc-block h2 a:hover { color: var(--orange-ink); }
.hp-svc-block p { color: var(--muted); }
.hp-svc-block ul { margin: 0 0 14px; padding-left: 1.2em; }
.hp-svc-block li { margin: 3px 0; }
.hp-svc-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hp-svc-photo { border-radius: var(--r); margin-bottom: 28px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-quote-box { position: sticky; top: 110px; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--orange); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; }
.hp-quote-box p { margin: 0; color: var(--muted); }
.hp-quote-box .hp-quote-price { font: 700 2rem/1.1 var(--display); color: var(--ink); }
.hp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.hp-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; }
.hp-chips a:hover { border-color: var(--orange); }
.hp-chips .hp-ic { color: var(--orange-ink); }

/* Checklist */
.hp-checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.hp-checks li { display: flex; gap: 12px; align-items: flex-start; }
.hp-checks .hp-ic { color: var(--orange-ink); margin-top: 4px; }
.hp-guarantee { font: 700 1.35rem/1.2 var(--display); color: var(--navy); border-left: 4px solid var(--orange); padding-left: 14px; }
@media (prefers-color-scheme: dark) { .hp-guarantee { color: var(--ink); } }

/* Steps: a real sequence, so numbered. */
.hp-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.hp-steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.hp-steps li::before { content: counter(s); font: 700 3.6rem/1 var(--display); color: var(--orange); }
.hp-steps strong { font: 700 1.45rem/1.15 var(--display); }
.hp-steps span { color: var(--muted); }

/* Team */
.hp-team { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.hp-team-sm { grid-template-columns: 1fr; gap: 16px; }
.hp-person { display: flex; gap: 16px; align-items: flex-start; }
.hp-person img, .hp-initials { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hp-team-sm .hp-person img, .hp-team-sm .hp-initials { width: 60px; height: 60px; }
.hp-initials { display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 1.5rem/1 var(--display); }
.hp-person strong { display: block; font: 700 1.35rem/1.15 var(--display); }
.hp-person .hp-muted { display: block; }
.hp-person-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .95rem; color: var(--muted); margin-top: 2px; }
.hp-person p { margin: 8px 0 0; }
.hp-stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.hp-stars svg { fill: var(--line); }
.hp-stars svg.on { fill: #f59e0b; }

/* Reviews */
.hp-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.hp-review { margin: 0; }
.hp-review blockquote { margin: 12px 0; font-size: 1.2rem; line-height: 1.5; }
.hp-review blockquote p { margin: 0; }
.hp-review figcaption { color: var(--muted); font-weight: 600; }

/* About numbers */
.hp-numbers { margin: 0; display: grid; gap: 24px; }
.hp-numbers div { border-left: 4px solid var(--orange); padding-left: 16px; }
.hp-numbers dt { color: var(--muted); font-weight: 600; }
.hp-numbers dd { margin: 0; font: 700 3rem/1 var(--display); }
.hp-numbers small { font-size: 1.4rem; color: var(--muted); }
.hp-numbers .hp-dd-sm { font-size: 1.8rem; }

/* Contact */
.hp-contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hp-contact-list { list-style: none; margin: 0; padding: 8px 24px; }
.hp-contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hp-contact-list li:last-child { border-bottom: 0; }
.hp-contact-list .hp-ic { color: var(--orange-ink); margin-top: 3px; }
.hp-contact-list div { display: flex; flex-direction: column; }
.hp-contact-list a { font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.hp-contact-list .hp-muted { font-size: .9rem; }
.hp-map { display: block; width: 100%; height: 260px; border: 0; border-top: 1px solid var(--line); }

/* Call to action strip */
.hp-cta { background: var(--navy); color: #fff; padding: 56px 0; }
.hp-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.hp-cta h2 { margin: 0; max-width: 22ch; color: #fff; }

/* Footer */
.hp-footer { background: #0a1628; color: #c9d4e3; padding: 64px 0 24px; font-size: 1rem; }
.hp-footer a { color: #fff; text-decoration: none; }
.hp-footer a:hover { text-decoration: underline; }
.hp-footer h2 { font-size: 1.25rem; color: #fff; margin-bottom: 12px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.hp-footer-grid li { margin: 6px 0; }
.hp-footer-name { font: 700 1.8rem/1.1 var(--display); color: #fff; }
.hp-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #22344f; font-size: .9rem; }
.hp-footer-bottom p { margin: 0; }
.hp-footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }

/* Sticky call / book bar on phones */
.hp-stickybar { display: none; }
@media (max-width: 760px) {
	body { padding-bottom: 76px; }
	.hp-stickybar { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
	.hp-btn-ghost-dark { border-color: var(--line); color: var(--ink); background: var(--card); padding: 10px 18px; }
}

/* Responsive */
@media (max-width: 960px) {
	.hp-hero-in { grid-template-columns: 1fr; gap: 40px; }
	.hp-ticket { transform: none; max-width: 520px; }
	@keyframes hp-pin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
	.hp-split, .hp-split-wide { grid-template-columns: 1fr; gap: 40px; }
	.hp-quote-box { position: static; }
	.hp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 1.0625rem; }
	.hp-section { padding: 56px 0; }
	.hp-hero { padding: 44px 0 72px; }
	.hp-svc-list { grid-template-columns: 1fr; }
	.hp-svc-list a { grid-template-columns: auto 1fr; }
	.hp-svc-price { grid-column: 2; padding-top: 0; }
	.hp-steps { grid-template-columns: 1fr; gap: 28px; }
	.hp-form-row { grid-template-columns: 1fr; }
	.hp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.hp-wrap { padding: 0 18px; }
	.hp-brand-name { font-size: 1.25rem; }
	.hp-logo { max-height: 40px; }
	.hp-svc-grid { grid-template-columns: 1fr; }
}

/* WordPress content basics */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text { color: var(--muted); font-size: .9rem; }
.hp-post { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }

/* Crew login (footer) */
.hp-footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hp-crew-login { display: inline-flex; align-items: center; gap: 6px; color: #c9d4e3 !important; padding: 6px 12px; border: 1px solid #22344f; border-radius: 999px; }
.hp-crew-login:hover { color: #fff !important; border-color: #3a5378; text-decoration: none !important; }
