/*
Theme Name: HBS Custom Renovation
Theme URI: https://localcustomrenovation.com
Author: Beyond Digital Labs
Description: Custom builds and renovation satellite site for Home & Beyond Services.
Version: 1.1.1
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: hbs-custom
*/

:root {
	--ink: #101116;
	--charcoal: #1a1c22;
	--panel: #24262d;
	--panel-soft: #2e3037;
	--paper: #f3f1ec;
	--paper-warm: #e8e2d8;
	--gold: #d8aa61;
	--gold-light: #f0cf91;
	--red: #b53b33;
	--red-bright: #d74a3e;
	--white: #fffdf9;
	--muted: #b9bbc2;
	--text: #202126;
	--success: #1f7a4f;
	--error: #a62f2f;
	--radius-sm: 14px;
	--radius: 22px;
	--radius-lg: 34px;
	--shadow: 0 22px 60px rgba(7, 8, 12, 0.2), 0 5px 16px rgba(7, 8, 12, 0.14);
	--shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(216, 170, 97, 0.13);
	--shadow-soft: 0 10px 25px rgba(8, 9, 13, 0.12), 0 2px 7px rgba(8, 9, 13, 0.08);
	--shadow-raised: 0 30px 70px rgba(8, 9, 13, 0.22), 0 12px 28px rgba(8, 9, 13, 0.14), 0 2px 6px rgba(8, 9, 13, 0.12);
	--shadow-gold: 0 24px 60px rgba(7, 8, 12, 0.34), 0 0 0 1px rgba(216, 170, 97, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	--inset-depth: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(16, 17, 22, 0.08);
	--content: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background:
		radial-gradient(circle at 12% 8%, rgba(216, 170, 97, 0.12), transparent 30rem),
		linear-gradient(145deg, #faf8f3 0%, var(--paper) 48%, #e8e2d8 100%);
	color: var(--text);
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img {
	display: block; max-width: 100%; height: auto; margin-inline: auto;
	object-position: center center; border-radius: var(--radius-sm);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; left: 16px; top: 16px; z-index: 9999;
	background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 10px;
}

h1, h2, h3, h4 {
	font-family: "Arial Narrow", "Segoe UI", sans-serif;
	line-height: 1.05;
	letter-spacing: -0.025em;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}
h1 { font-size: clamp(3rem, 7.2vw, 6.8rem); margin: 0; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); margin: 0 0 22px; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); margin: 0 0 14px; }
p { margin: 0 0 1.15em; }
.wrap { width: var(--content); margin-inline: auto; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
	color: #77501f; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.17em;
	text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section {
	position: relative; padding: clamp(70px, 9vw, 120px) 0;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.62), inset 0 -1px 0 rgba(16,17,22,.07);
}
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { color: #5c5f67; max-width: 680px; font-size: 1.08rem; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark .section-heading p { color: var(--muted); }
.hero .eyebrow, .section-dark .eyebrow, .service-card .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }
.text-link { color: var(--gold); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.site-header {
	position: sticky; top: 0; z-index: 1000; color: var(--white);
	background: rgba(16, 17, 22, 0.94); border-bottom: 1px solid rgba(216,170,97,.18);
	backdrop-filter: blur(18px); box-shadow: 0 14px 38px rgba(0,0,0,.32), inset 0 -1px 0 rgba(255,255,255,.04);
}
.header-inner { width: var(--content); min-height: 88px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; min-width: 0; }
.brand img {
	width: 62px; height: 62px; object-fit: contain; object-position: center; border-radius: 50%;
	background: rgba(255,255,255,.04); box-shadow: 0 10px 24px rgba(0,0,0,.38), 0 0 0 1px rgba(216,170,97,.18);
	filter: drop-shadow(0 0 14px rgba(216,170,97,.22));
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.03rem; letter-spacing: .055em; }
.brand-copy span { color: var(--gold-light); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #f3f0ea; font-size: .9rem; font-weight: 700; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-light); transform: translateY(-2px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; border: 0; color: var(--white); background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: currentColor; }
.nav-toggle .screen-reader-text { width: 1px; height: 1px; margin: -1px; }
.gtm-frame { display: none; visibility: hidden; }

.button, .hbs-submit {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 15px;
	background: linear-gradient(135deg, var(--red-bright), #8f2925, var(--red-bright)); background-size: 200% 100%; color: var(--white);
	font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer;
	box-shadow: 0 10px 28px rgba(181,59,51,.28); transition: transform .22s ease, box-shadow .22s ease, background-position .35s ease, border-color .22s ease;
}
.button:hover, .button:focus-visible, .hbs-submit:hover, .hbs-submit:focus-visible { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 17px 38px rgba(181,59,51,.42), 0 0 0 1px rgba(255,255,255,.16); }
.button:active, .hbs-submit:active { transform: translateY(0) scale(.98); box-shadow: 0 7px 18px rgba(181,59,51,.3); }
.button-gold { color: var(--ink); background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 10px 28px rgba(216,170,97,.24); }
.button-outline { background: transparent; border-color: rgba(240,207,145,.55); box-shadow: none; }
.button-small { min-height: 42px; padding: 10px 16px; border-radius: 12px; font-size: .82rem; }

.hero {
	position: relative; min-height: min(680px, calc(100vh - 70px)); display: grid; align-items: center;
	overflow: hidden; color: var(--white); background: var(--ink);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	box-shadow: 0 34px 80px rgba(7,8,12,.34), inset 0 -1px 0 rgba(240,207,145,.14);
}
.hero-inner { width: var(--content); margin-inline: auto; padding: clamp(40px, 8vw, 90px) 0; }
.hero-copy { max-width: 760px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; gap: clamp(34px, 5vw, 76px); }
.hero-layout .hero-copy { max-width: none; }
.hero-layout h1 { font-size: clamp(3rem, 5.4vw, 5.5rem); }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid rgba(240,207,145,.24); box-shadow: var(--shadow-gold); }
.hero-lead { font-size: clamp(1.12rem, 1.8vw, 1.5rem); color: var(--muted); margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--gold-light); font-weight: 700; font-size: .9rem; }
.hero-proof span::before { content: "\2713 "; }

.trust-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: clamp(40px, 6vw, 70px) 0; }
.trust-card {
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 28px;
	border: 1px solid rgba(16,17,22,.06);
}
.trust-card strong { display: block; color: var(--gold); font-size: .95rem; margin-bottom: 8px; }
.trust-card span { color: #5c5f67; font-size: .95rem; }

.service-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.service-card {
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
	overflow: hidden; display: flex; flex-direction: column;
	border: 1px solid rgba(16,17,22,.06); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-warm); border-radius: 0; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.service-icon { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: var(--gold); }
.service-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { font-size: .95rem; color: #5c5f67; flex: 1; }
.service-card-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }

.split-feature { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: start; }
.feature-photo { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 0 0 30px; border: 1px solid rgba(240,207,145,.18); box-shadow: var(--shadow-dark); }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--muted); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: -2px; width: 24px; height: 24px; background: var(--gold); color: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; }
.check-list a { color: var(--gold-light); }

.process-list { list-style: none; padding: 0; margin: 24px 0; counter-reset: none; }
.process-list li { display: flex; gap: 18px; margin-bottom: 24px; align-items: flex-start; }
.process-number { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; box-shadow: 0 8px 22px rgba(216,170,97,.28); }
.process-list strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.process-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.location-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.location-card {
	display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius-sm);
	background: var(--white); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--text);
	border: 1px solid rgba(16,17,22,.06); transition: transform .2s ease, box-shadow .2s ease;
}
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.location-card strong { font-size: 1.15rem; }
.location-card span { color: #74767d; font-size: .85rem; }

.content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); }
.content-card.prose { max-width: 820px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }

.empty-state { text-align: center; color: #74767d; padding: 60px 20px; font-size: 1.1rem; }
.not-found { min-height: 50vh; display: grid; align-items: center; }

.page-hero { background: var(--charcoal); color: var(--white); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: clamp(50px, 7vw, 80px) 0; box-shadow: 0 24px 60px rgba(7,8,12,.28); }
.page-hero--compact { padding: clamp(36px, 5vw, 56px) 0; }
.page-hero h1 { margin: 0; }

.section-cta { background: linear-gradient(135deg, var(--charcoal), var(--ink)); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.cta-inner { text-align: center; max-width: 620px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

.hbs-form { max-width: 720px; margin-inline: auto; }
.hbs-form-grid { display: grid; gap: 20px; }
.hbs-field { margin: 0; }
.hbs-field-full { grid-column: 1 / -1; }
.hbs-field label, .hbs-consent span { font-weight: 700; font-size: .92rem; display: block; margin-bottom: 6px; }
.hbs-field label span { font-weight: 400; color: #74767d; font-size: .85rem; }
.hbs-field input, .hbs-field select, .hbs-field textarea {
	width: 100%; padding: 13px 16px; border: 1px solid #c8c6c0; border-radius: 12px;
	background: #fff; font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.hbs-field input:focus, .hbs-field select:focus, .hbs-field textarea:focus {
	border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,170,97,.18); outline: none;
}
.hbs-field textarea { min-height: 120px; resize: vertical; }
.hbs-hp { position: absolute; left: -9999px; }
.hbs-consent { display: flex; gap: 12px; align-items: flex-start; }
.hbs-consent input { margin-top: 4px; flex-shrink: 0; }
.hbs-consent span { margin: 0; font-weight: 400; font-size: .85rem; color: #5c5f67; }
.hbs-form-actions { display: flex; flex-direction: column; gap: 10px; }
.hbs-form-actions small { color: #74767d; font-size: .82rem; }

.hbs-notice { padding: 18px 22px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.hbs-notice-success { background: #e8f5ee; border: 1px solid #b5ddc8; }
.hbs-notice-error { background: #fdf0f0; border: 1px solid #f0c8c8; }
.hbs-notice p { margin: 8px 0 0; }
.hbs-notice-callout { font-weight: 700; }
.hbs-notice-link { color: var(--red); font-weight: 800; }

.site-footer { background: #000000; color: var(--white); padding: clamp(50px, 7vw, 80px) 0 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand h3 { color: var(--gold-light); margin: 0 0 10px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.footer-services-link { color: var(--gold-light); font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-services-link:hover { text-decoration: underline; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s ease; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-credit {
	width: fit-content; max-width: 100%; margin: 48px auto 28px; padding: 14px 22px;
	display: flex; align-items: center; justify-content: center; gap: 14px;
	border: 1px solid rgba(216,170,97,.2); border-radius: var(--radius);
	background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(216,170,97,.035));
	box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
	text-decoration: none; color: var(--muted);
}
.footer-credit img { width: 40px; height: 40px; flex: 0 0 40px; margin: 0; object-fit: contain; border-radius: 8px; }
.footer-credit span { font-size: .88rem; }
.footer-credit strong { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: .82rem; }

@media (max-width: 960px) {
	.hero-layout { grid-template-columns: 1fr; }
	.hero-media { width: min(720px, 100%); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.site-nav { display: none; }
	.nav-toggle { display: block; }
	.site-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 20px; gap: 16px; border-bottom: 1px solid rgba(216,170,97,.18); }
	.split-feature { grid-template-columns: 1fr; gap: 36px; }
	.header-inner { min-height: 74px; gap: 10px; }
	.brand { gap: 10px; }
	.brand img { width: 50px; height: 50px; }
	.brand-copy strong { font-size: .9rem; }
	.brand-copy span { font-size: .62rem; letter-spacing: .12em; }
	.nav-toggle { flex: 0 0 auto; margin-left: auto; padding: 7px; }
	.header-actions { flex: 0 0 auto; flex-direction: row; gap: 0; }
	.header-actions .button-outline { display: none; }
	.header-actions .button-small { min-height: 40px; padding: 9px 12px; font-size: .72rem; white-space: nowrap; }
	.hero { min-height: auto; }
	.hero-inner { padding: 54px 0 60px; }
	.hero-layout { gap: 34px; }
	.hero h1 { font-size: clamp(2.35rem, 12vw, 3.1rem); }
	.hero-lead { margin: 18px 0 26px; font-size: 1rem; line-height: 1.55; }
	.process-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; margin-bottom: 28px; }
	.process-number { grid-row: 1 / span 2; width: 48px; height: 48px; font-size: 1rem; }
	.process-list strong { grid-column: 2; margin: 0; font-size: 1rem; line-height: 1.3; }
	.process-list p { grid-column: 2; line-height: 1.55; }
	.footer-grid { grid-template-columns: 1fr; }
	.hbs-form-grid { grid-template-columns: 1fr; }
	.footer-credit { width: 100%; padding: 12px; gap: 10px; text-align: left; }
	.footer-credit img { width: 34px; height: 34px; flex-basis: 34px; }
	.footer-credit span { font-size: .8rem; line-height: 1.45; }
}
@media (max-width: 430px) {
	:root { --content: min(1180px, calc(100vw - 28px)); }
	body { font-size: 16px; }
	h1 { font-size: 2.3rem; }
	h2 { font-size: 1.95rem; }
	.header-inner { min-height: 66px; gap: 6px; }
	.brand { gap: 7px; }
	.brand img { width: 44px; height: 44px; }
	.brand-copy strong { font-size: .82rem; letter-spacing: .035em; }
	.brand-copy span { display: none; }
	.nav-toggle { padding: 5px; }
	.nav-toggle span { width: 23px; margin: 4px; }
	.header-actions .button-small { min-height: 38px; padding: 8px 10px; font-size: .68rem; border-radius: 10px; }
	.hero-inner { padding: 44px 0 52px; }
	.hero h1 { font-size: 2.3rem; line-height: 1.02; }
	.hero .eyebrow { font-size: .68rem; letter-spacing: .13em; }
	.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
	.hero-actions .button { width: 100%; }
	.section { padding: 58px 0; }
	.footer-credit img { width: 32px; height: 32px; flex-basis: 32px; }
	.footer-credit span { font-size: .76rem; }
}
