/*
Theme Name: LocalPro
Theme URI: https://matthewxmurphy.com/themes/localpro/
Author: Matthew Murphy
Author URI: https://matthewxmurphy.com/
Description: LocalPro is a multi-niche WordPress theme crafted for local service businesses. Thirteen ready-made niche designs — law firms, roofing, HVAC, medical, podiatry, tax, restaurants and more — share one polished design system: utility top bar, full-bleed hero with trust panel, service cards, stats band, testimonials and a mobile slide-in menu. Customize everything from the native WordPress Customizer. Compatible with Elementor, WPBakery Page Builder and the Gutenberg block editor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: localpro
Tags: translation-ready, threaded-comments, editor-style, featured-images, full-width-template, two-columns, left-sidebar, right-sidebar, blog
*/

/* ============================================================
   LocalPro 1.0.0 — Design System
   One shared system powers all 12 niches. Per-niche identity
   (accent color, fonts, content) is applied via CSS custom
   properties set from the Customizer.
   ============================================================ */

:root {
	--lp-accent: #c9a227;
	--lp-accent-ink: #ffffff;
	--lp-navy: #0f1e33;
	--lp-navy-soft: #16294a;
	--lp-ink: #1c2330;
	--lp-body: #4a5568;
	--lp-bg: #ffffff;
	--lp-muted: #f5f6f8;
	--lp-line: #e5e8ee;
	--lp-radius: 10px;
	--lp-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--lp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--lp-font-script: "Pinyon Script", "Snell Roundhand", cursive;
	--lp-container: 1200px;
}

/* Trade niches use a heavy grotesque for display type. */
body.lp-font-trade {
	--lp-font-display: "Archivo", "Inter", -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--lp-font-body);
	color: var(--lp-body);
	background: var(--lp-bg);
	font-size: 16px;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lp-font-display);
	color: var(--lp-ink);
	line-height: 1.2;
	margin: 0 0 0.6em;
}

img { max-width: 100%; height: auto; }

a { color: var(--lp-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.lp-container {
	max-width: var(--lp-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* Screen-reader text (required for Theme Check). */
.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;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; display: block; height: auto;
	left: 5px; top: 5px; width: auto; z-index: 100000;
	background: #fff; padding: 12px 18px;
}

/* ---------- Eyebrow + section headers ---------- */

.lp-eyebrow {
	display: block;
	font-family: var(--lp-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--lp-accent);
	margin-bottom: 10px;
}

.lp-section { padding: 84px 0; }
.lp-section-muted { background: var(--lp-muted); }

.lp-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 40px;
}
.lp-section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.lp-section-head p { margin: 0; max-width: 420px; text-align: right; }
.lp-link-arrow { font-weight: 600; white-space: nowrap; }

/* ---------- Top utility bar ---------- */

.lp-topbar {
	background: var(--lp-navy);
	color: #cfd8e6;
	font-size: 13px;
}
.lp-topbar .lp-container {
	display: flex; justify-content: space-between; align-items: center;
	padding-top: 8px; padding-bottom: 8px; gap: 16px;
}
.lp-topbar-left, .lp-topbar-right {
	display: flex; align-items: center; gap: 18px;
}
.lp-topbar a { color: #fff; }
.lp-topbar .lp-phone { font-weight: 600; }

/* ---------- Buttons ---------- */

.lp-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--lp-font-body);
	font-weight: 700; font-size: 15px;
	padding: 14px 28px;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-btn-solid { background: var(--lp-accent); color: var(--lp-accent-ink); }
.lp-btn-solid:hover { filter: brightness(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.lp-btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.lp-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.lp-btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Header ---------- */

.lp-header { background: #fff; border-bottom: 1px solid var(--lp-line); position: sticky; top: 0; z-index: 60; }
.lp-header .lp-container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.lp-brand { display: flex; align-items: center; gap: 12px; color: var(--lp-ink); }
.lp-brand:hover { text-decoration: none; }
.lp-brand-mark {
	width: 44px; height: 44px; border-radius: 8px;
	background: var(--lp-accent); color: var(--lp-accent-ink);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--lp-font-display); font-weight: 700; font-size: 22px;
}
.lp-brand-name { font-family: var(--lp-font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; line-height: 1.1; }
.lp-brand-tag { display: block; font-family: var(--lp-font-body); font-size: 10px; letter-spacing: 0.32em; color: var(--lp-accent); font-weight: 700; }

.lp-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.lp-nav a { color: var(--lp-ink); font-weight: 600; font-size: 15px; }
.lp-nav a:hover { color: var(--lp-accent); text-decoration: none; }
.lp-nav .current-menu-item > a { color: var(--lp-accent); }

.lp-script-tag {
	font-family: var(--lp-font-script);
	font-size: 24px;
	color: var(--lp-ink);
	line-height: 1.1;
	text-align: right;
}

.lp-menu-toggle {
	display: none;
	background: none; border: 0; cursor: pointer; padding: 10px;
}
.lp-menu-toggle span { display: block; width: 26px; height: 3px; background: var(--lp-ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Tax & Accounting (Garcia Group) navy header ---------- */

body.lp-niche-tax .lp-header { background: var(--lp-navy); border-bottom-color: rgba(255,255,255,0.12); }
body.lp-niche-tax .lp-brand-name { color: #fff; }
body.lp-niche-tax .lp-nav a { color: #e6ebf3; }
body.lp-niche-tax .lp-nav a:hover,
body.lp-niche-tax .lp-nav .current-menu-item > a { color: var(--lp-accent); }
body.lp-niche-tax .lp-script-tag { color: #cfd8e6; }
body.lp-niche-tax .lp-menu-toggle span { background: #fff; }

/* ---------- Hero ---------- */

.lp-hero {
	position: relative;
	color: #fff;
	background: var(--lp-navy);
	overflow: hidden;
}
.lp-hero-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
}
.lp-hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(10,18,34,0.88) 0%, rgba(10,18,34,0.55) 45%, rgba(10,18,34,0.25) 100%);
}
.lp-hero .lp-container {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1fr 340px; gap: 48px;
	align-items: center;
	padding-top: 96px; padding-bottom: 96px;
}
.lp-hero h1 {
	color: #fff;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 800;
	margin: 0 0 18px;
}
.lp-hero h1 .lp-accent-word { color: var(--lp-accent); }
.lp-hero .lp-lede { font-size: 18px; color: #e6ebf3; max-width: 520px; margin: 0 0 30px; }
.lp-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Floating trust panel */
.lp-trust {
	background: rgba(13, 22, 40, 0.78);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 14px;
	padding: 8px 26px;
	list-style: none;
	margin: 0;
}
.lp-trust li {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lp-trust li:last-child { border-bottom: 0; }
.lp-trust-icon {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: var(--lp-accent);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 20px;
}
.lp-trust strong { display: block; color: #fff; font-size: 16px; }
.lp-trust span { font-size: 13px; color: #b9c4d6; }

/* ---------- Service cards ---------- */

.lp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none; margin: 0; padding: 0;
}
.lp-card {
	background: #fff;
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,30,51,0.12); }
.lp-card-media { aspect-ratio: 16 / 9; background: var(--lp-muted) center / cover; }
.lp-card-body { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; gap: 12px; }
.lp-card-body strong { color: var(--lp-ink); font-size: 16px; }
.lp-card-body .lp-arrow { color: var(--lp-accent); font-size: 20px; }

/* ---------- About / split ---------- */

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-split h2 { font-size: clamp(28px, 3.6vw, 42px); }
.lp-checks { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 16px; }
.lp-checks li { display: flex; gap: 14px; align-items: flex-start; }
.lp-checks .lp-check-icon { color: var(--lp-accent); font-size: 22px; flex: 0 0 28px; }
.lp-checks strong { display: block; color: var(--lp-ink); }
.lp-checks span { font-size: 14px; }
.lp-split-media img { border-radius: 14px; width: 100%; }

/* ---------- Stats band ---------- */

.lp-stats { background: var(--lp-navy); color: #fff; }
.lp-stats .lp-container {
	display: grid; grid-template-columns: repeat(4, 1fr);
	padding-top: 44px; padding-bottom: 44px; gap: 24px;
}
.lp-stat { text-align: center; }
.lp-stat-icon { color: var(--lp-accent); font-size: 30px; display: block; margin-bottom: 8px; }
.lp-stat strong { display: block; font-family: var(--lp-font-display); font-size: 32px; }
.lp-stat span { font-size: 14px; color: #b9c4d6; }

/* ---------- CTA banner (optional per-niche) ---------- */

.lp-banner { background: var(--lp-navy); color: #fff; }
.lp-banner .lp-container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 32px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap;
}
.lp-banner h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.lp-banner p { color: #cfd8e6; margin: 0; max-width: 560px; font-size: 16px; }
.lp-banner-cta { display: grid; gap: 10px; justify-items: center; text-align: center; }
.lp-banner-phone { color: var(--lp-accent); font-weight: 700; font-size: 20px; }
.lp-banner-phone:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) {
	.lp-banner .lp-container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Testimonial ---------- */

.lp-testimonial {
	background: #fff; border: 1px solid var(--lp-line);
	border-radius: 14px; padding: 34px; max-width: 640px;
}
.lp-stars { color: var(--lp-accent); letter-spacing: 4px; font-size: 18px; margin-bottom: 12px; }
.lp-testimonial blockquote { margin: 0 0 16px; font-size: 17px; color: var(--lp-ink); font-style: italic; }
.lp-testimonial cite { display: flex; align-items: center; gap: 14px; font-style: normal; }
.lp-testimonial cite img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.lp-testimonial cite strong { display: block; color: var(--lp-ink); }
.lp-testimonial cite span { font-size: 13px; }

/* ---------- Service areas strip ---------- */

.lp-areas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.lp-areas figure { margin: 0; }
.lp-areas .lp-area-photo { aspect-ratio: 16 / 10; border-radius: 8px; background: var(--lp-muted) center / cover; }
.lp-areas figcaption { font-size: 13px; color: var(--lp-ink); font-weight: 600; margin-top: 8px; }

/* ---------- Footer ---------- */

.lp-footer { background: var(--lp-navy); color: #b9c4d6; }
.lp-footer .lp-container { padding-top: 56px; padding-bottom: 28px; }
.lp-footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
	margin-bottom: 40px;
}
.lp-footer .lp-brand-name { color: #fff; }
.lp-footer h4 { color: #fff; font-size: 15px; font-family: var(--lp-font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer a { color: #b9c4d6; }
.lp-footer a:hover { color: var(--lp-accent); }
.lp-footer-phone { color: var(--lp-accent); font-weight: 700; font-size: 18px; }
.lp-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 22px;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: 13px;
}
.lp-social { display: flex; gap: 14px; }
.lp-social a {
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.25);
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; font-size: 16px;
}
.lp-social a:hover { border-color: var(--lp-accent); color: var(--lp-accent); text-decoration: none; }

/* ---------- Mobile drawer + sticky CTA ---------- */

.lp-drawer {
	position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw);
	background: var(--lp-navy); color: #fff; z-index: 200;
	transform: translateX(-102%); transition: transform 0.28s ease;
	display: flex; flex-direction: column; padding: 22px;
	overflow-y: auto;
}
body.lp-drawer-open .lp-drawer { transform: none; }
.lp-drawer-close { align-self: flex-end; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.lp-drawer nav ul { list-style: none; margin: 18px 0; padding: 0; display: grid; }
.lp-drawer nav a { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 600; }
.lp-drawer nav a:hover { color: var(--lp-accent); text-decoration: none; }
.lp-drawer-meta { display: grid; gap: 12px; margin: 18px 0; font-size: 14px; color: #cfd8e6; }
.lp-drawer .lp-btn { justify-content: center; margin: 8px 0 18px; }
.lp-drawer .lp-social { justify-content: center; }
.lp-scrim {
	position: fixed; inset: 0; background: rgba(5,10,20,0.6); z-index: 190;
	opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
body.lp-drawer-open .lp-scrim { opacity: 1; pointer-events: auto; }
body.lp-drawer-open { overflow: hidden; }

.lp-sticky-cta {
	display: none;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
	background: var(--lp-navy); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	gap: 10px;
}
.lp-sticky-cta .lp-btn { flex: 1; justify-content: center; padding: 12px 10px; font-size: 14px; }

/* ---------- Blog / generic ---------- */

.lp-content { padding: 64px 0; }
.lp-post { margin-bottom: 56px; }
.lp-post-title a { color: var(--lp-ink); }
.lp-post-meta { font-size: 13px; color: #8a94a6; margin-bottom: 14px; }
.lp-pagination { display: flex; gap: 10px; margin-top: 40px; }
.lp-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--lp-line); border-radius: 6px; color: var(--lp-ink); }
.lp-pagination .current { background: var(--lp-accent); border-color: var(--lp-accent); color: var(--lp-accent-ink); }

/* Comments */
.lp-comments { margin-top: 56px; }
.lp-comments ol { list-style: none; margin: 0; padding: 0; }
.lp-comments .comment { border: 1px solid var(--lp-line); border-radius: 10px; padding: 20px; margin-bottom: 18px; }

/* Widgets */
.widget { margin-bottom: 36px; }
.widget-title { font-size: 18px; }

/* Alignment (required) */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #8a94a6; }
.sticky { border-left: 4px solid var(--lp-accent); padding-left: 18px; }
.gallery-caption { font-size: 13px; }
.bypostauthor { font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.lp-hero .lp-container { grid-template-columns: 1fr; gap: 36px; }
	.lp-trust { max-width: 520px; }
	.lp-cards { grid-template-columns: repeat(2, 1fr); }
	.lp-areas { grid-template-columns: repeat(3, 1fr); }
	.lp-stats .lp-container { grid-template-columns: repeat(2, 1fr); }
	.lp-script-tag { display: none; }
}

@media (max-width: 760px) {
	.lp-nav, .lp-header .lp-btn { display: none; }
	.lp-menu-toggle { display: block; }
	.lp-topbar { display: none; }
	.lp-section { padding: 56px 0; }
	.lp-section-head { flex-direction: column; align-items: flex-start; }
	.lp-section-head p { text-align: left; }
	.lp-split { grid-template-columns: 1fr; gap: 36px; }
	.lp-cards { grid-template-columns: 1fr; }
	.lp-footer-grid { grid-template-columns: 1fr; }
	.lp-sticky-cta { display: flex; }
	body { padding-bottom: 76px; }
	.lp-hero .lp-container { padding-top: 64px; padding-bottom: 64px; }
}
