/*
Theme Name: RossBuilt Construction
Theme URI: https://rossbuiltco.com
Author: RossBuilt Construction
Description: Custom theme for RossBuilt Construction, a St. Louis residential general contractor. Pairs with the RossBuilt Site Tools and RossBuilt Daily Blog plugins.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rossbuilt
*/

:root {
	--ink: #111111;
	--char: #171717;
	--char-2: #212121;
	--char-3: #2c2c2c;
	--gold: #b8914f;
	--gold-2: #d2ad6c;
	--gold-dark: #8f6d35;
	--steel: #a5a7aa;
	--steel-2: #c9cbcd;
	--paper: #f4f1ec;
	--white: #ffffff;
	--text: #2a2826;
	--muted: #6b6762;
	--line: #e3ded6;
	--radius: 6px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .10);
	--head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.08;
	color: var(--ink);
	letter-spacing: .01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.icon { flex: none; vertical-align: -4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--gold); color: #000; padding: 10px 16px; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--char); color: #d9d6d1; }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* Eyebrow: small caps flanked by gold rules, echoing the logo */
.eyebrow {
	font-family: var(--head);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #b9b5ae; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.08rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 26px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 17px 32px; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110a; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); color: #000; }
.btn-dark { background: var(--char); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--gold-2); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); text-decoration: none; }

/* Top bar */
.topbar { background: var(--ink); color: var(--steel); font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--steel-2); text-decoration: none; margin-left: 22px; }
.topbar a:hover { color: var(--gold-2); }
.topbar .icon { width: 16px; height: 16px; color: var(--gold); margin-right: 4px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(23, 23, 23, .97);
	border-bottom: 1px solid rgba(184, 145, 79, .35);
	transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand { flex: none; display: block; }
.brand img, .brand .custom-logo { width: auto; height: 78px; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block;
	padding: 10px 12px;
	font-family: var(--head);
	font-weight: 600;
	font-size: 1.08rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--steel-2);
	text-decoration: none;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--gold-2); }
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: var(--char-2);
	border-top: 2px solid var(--gold);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s;
}
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 9px 20px; font-size: 1rem; letter-spacing: .06em; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; white-space: nowrap; }
.nav-phone .icon { color: var(--gold); }
.nav-phone:hover { color: var(--gold-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); border-radius: var(--radius); padding: 10px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; display: block; }
.nav-toggle-close { display: none; }

/* Hero */
.hero {
	position: relative;
	background: var(--char) var(--hero-img) center / cover no-repeat;
	color: var(--white);
	min-height: min(82vh, 760px);
	display: flex;
	align-items: center;
	padding: 110px 0 90px;
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, .74) 48%, rgba(12, 12, 12, .3) 100%);
	z-index: -1;
}
.hero-inner { max-width: var(--wrap); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 22px; }
.hero-text { font-size: 1.25rem; max-width: 560px; color: #dedbd6; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { list-style: none; padding: 22px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 760px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; color: var(--steel-2); }
.hero-trust .icon { color: var(--gold); }

/* Page hero */
.page-hero {
	position: relative;
	background: var(--char);
	color: var(--white);
	padding: 84px 0 70px;
	isolation: isolate;
	border-bottom: 3px solid var(--gold);
}
.page-hero.has-image { background: var(--char) var(--hero-img) center / cover no-repeat; padding: 120px 0 90px; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 12, 12, .9), rgba(12, 12, 12, .55)); z-index: -1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 22ch; }
.page-hero-text { font-size: 1.2rem; max-width: 640px; color: #d4d0ca; margin: 0; }
.post-hero h1 { text-transform: none; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .meta { color: var(--steel); margin: 0; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--text);
	box-shadow: 0 2px 0 var(--line), var(--shadow);
	transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 var(--gold), 0 18px 40px rgba(0, 0, 0, .16); color: var(--text); }
.service-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--char-2); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px 26px 28px; border-top: 3px solid var(--gold); flex: 1; display: flex; flex-direction: column; }
.service-card-body p { color: var(--muted); flex: 1; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-img { position: relative; }
.why-img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why-img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.why { position: relative; isolation: isolate; }
.why-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 18px; }
.why-list li > span { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(184, 145, 79, .5); display: grid; place-items: center; color: var(--gold); }
.why-list strong { display: block; color: var(--white); font-family: var(--head); font-size: 1.3rem; letter-spacing: .03em; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--char); color: var(--white); }
.project-card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.project-card:hover .project-card-img img { transform: scale(1.05); opacity: .85; }
.project-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.project-card-body h3 { color: var(--white); margin: 6px 0 2px; font-size: 1.35rem; }
.project-card .meta { margin: 0; color: var(--steel-2); font-size: .92rem; }
.photo-count { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .7); color: var(--white); font-size: .8rem; padding: 3px 10px; border-radius: 20px; }
.tag { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: #15110a; padding: 3px 10px; border-radius: 3px; }
.img-fallback { width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2a2a, #141414); }
.img-fallback img { width: 42%; max-width: 180px; height: auto; opacity: .9; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chips a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.filter-chips a.active, .filter-chips a:hover { background: var(--char); color: var(--gold-2); border-color: var(--char); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--char-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-lead { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.project-desc { margin: 0 auto 40px; }
.back-link { margin-top: 40px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; padding: 40px 60px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 3rem; line-height: 1; cursor: pointer; padding: 10px 16px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--white); padding: 30px 26px; border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: 0 2px 0 var(--line); }
.step-num { display: block; font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stars { color: var(--gold); display: flex; gap: 2px; margin-bottom: 14px; }
.stars .icon { fill: currentColor; }
.review blockquote { margin: 0 0 16px; font-size: 1.08rem; }
.review figcaption { font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Service areas strip */
.areas-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.area-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.area-chips li { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--char-2); border: 1px solid #333; border-left: 3px solid var(--gold); border-radius: var(--radius); font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: .05em; color: var(--white); }
.area-chips .icon { color: var(--gold); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--char); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img .img-fallback img { width: 40%; height: auto; object-fit: contain; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.4rem; }
.post-card-body h3 a { color: var(--ink); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--gold-dark); }
.post-card-body > p:not(.meta) { color: var(--muted); flex: 1; }
.meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.pagination .current { background: var(--char); color: var(--gold-2); border-color: var(--char); }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose .wp-block-gallery, .prose .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prose-lead { font-size: 1.15rem; color: var(--muted); }

/* Service page layout */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.service-aside { position: sticky; top: 120px; display: grid; gap: 24px; }
.quote-card { background: var(--char); color: #d4d0ca; padding: 30px; border-radius: var(--radius); border-top: 3px solid var(--gold); display: grid; gap: 12px; }
.quote-card h2 { color: var(--white); font-size: 1.9rem; margin: 0; }
.quote-card p { margin: 0 0 6px; }
.side-services { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-services h3 { font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.side-services ul { list-style: none; margin: 0; padding: 0; }
.side-services a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.side-services li:last-child a { border-bottom: 0; }
.side-services .current a, .side-services a:hover { color: var(--gold-dark); }
.side-services .icon { width: 16px; height: 16px; color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 56px; align-items: start; }
.contact-card { background: var(--paper); padding: 32px; border-radius: var(--radius); border-top: 3px solid var(--gold); }
.contact-card h2 { font-size: 1.8rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { color: var(--gold-dark); width: 24px; height: 24px; margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--head); letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--muted); }
.contact-list a { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }

/* Single post */
.post-feature { margin: 0 0 36px; }
.post-feature img { border-radius: var(--radius); width: 100%; }
.post-cta { margin: 56px 0 32px; display: flex; gap: 26px; align-items: center; background: var(--char); color: #d4d0ca; border-radius: var(--radius); padding: 30px; border-left: 4px solid var(--gold); }
.post-cta img { width: 110px; flex: none; }
.post-cta h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 6px; }
.post-cta p:last-child { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-weight: 600; }

.empty-state { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; }
.empty-state img { margin: 0 auto 20px; width: 160px; }
.empty-state p { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #1b1b1b, #262626); border-top: 3px solid var(--gold); padding: 64px 0; color: #d4d0ca; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #a8a49d; padding: 70px 0 0; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; }
.footer-motto { font-family: var(--head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-size: .95rem; }
.footer-social { display: flex; gap: 16px; }
.site-footer h3 { color: var(--white); font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9c5be; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid #262626; margin-top: 54px; padding: 22px 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

.mobile-bar { display: none; }

/* Quote form (from RossBuilt Site Tools plugin) */
.rb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.rb-form .full { grid-column: 1 / -1; }
.rb-form label { display: block; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.rb-form input, .rb-form select, .rb-form textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1px solid #cfc9bf; border-radius: var(--radius); background: var(--white); color: var(--text); }
.rb-form input:focus, .rb-form select:focus, .rb-form textarea:focus { border-color: var(--gold); outline: 2px solid rgba(184, 145, 79, .3); }
.rb-form textarea { min-height: 150px; resize: vertical; }
.rb-form .hp { position: absolute; left: -9999px; }
.rb-form button { justify-self: start; }
.rb-notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; }
.rb-notice.ok { background: #eef6ea; border-left: 4px solid #4c8a3a; }
.rb-notice.err { background: #fbeeee; border-left: 4px solid #b03a3a; }

/* WordPress core alignment */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1180px) {
	.nav-phone { display: none; }
	.site-nav .menu a { padding: 10px 9px; letter-spacing: .07em; }
}
@media (max-width: 1024px) {
	.topbar-area { display: none; }
	.topbar-inner { justify-content: center; }
	.header-inner { min-height: 80px; }
	.brand img, .brand .custom-logo { height: 62px; }
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100vh - 80px);
		height: calc(100dvh - 80px);
		visibility: hidden;
		background: var(--char);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 20px 24px 120px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s;
	}
	.nav-open .site-nav { transform: none; visibility: visible; }
	.header-inner { position: relative; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 14px 4px; font-size: 1.35rem; border-bottom: 1px solid #2c2c2c; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; display: none; }
	.site-nav .sub-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { font-size: 1.1rem; }
	.nav-cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
	.nav-phone { display: block; text-align: center; padding: 12px; }
	.service-grid, .project-grid, .post-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.why-grid, .areas-inner, .service-layout, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
	.why-img img { aspect-ratio: 16 / 10; }
	.service-aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	body { font-size: 16px; padding-bottom: 64px; }
	.wrap { padding: 0 16px; }
	.section { padding: 60px 0; }
	.topbar { display: none; }
	.hero { min-height: 0; padding: 70px 0 60px; }
	.hero::before { background: linear-gradient(180deg, rgba(12, 12, 12, .78), rgba(12, 12, 12, .9)); }
	.hero-text { font-size: 1.1rem; }
	.hero-actions .btn { width: 100%; }
	.hero-trust { gap: 10px 20px; }
	.hero-trust li { font-size: .9rem; }
	.page-hero, .page-hero.has-image { padding: 60px 0 50px; }
	.service-grid, .project-grid, .post-grid, .review-grid, .steps, .gallery, .area-chips, .footer-grid, .rb-form { grid-template-columns: 1fr; }
	.gallery-lead { aspect-ratio: 4 / 3; }
	.why-img::after { display: none; }
	.post-cta { flex-direction: column; align-items: flex-start; }
	.cta-band-actions, .cta-band-actions .btn { width: 100%; }
	.footer-bottom { flex-direction: column; text-align: center; padding-bottom: 30px; }
	.mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: var(--ink);
		border-top: 2px solid var(--gold);
	}
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	.mobile-bar .icon { color: var(--gold); }
	.mobile-bar-cta { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110a !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
